/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to configure

  • Committer: edam
  • Date: 2012-04-23 18:40:10 UTC
  • Revision ID: tim@ed.am-20120423184010-3zaiqkhxwequfaey
Removed an optimisation in command::step() (calling finalize() here prevents
the command from being reset() and reused), and added a wrapper for a
transaction's begin() method to transaction_guard (both thanks to Ron Wilson).

Show diffs side-by-side

added added

removed removed

 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.68 for sqlite3cc 0.1.
 
4
#
 
5
# Report bugs to <tim@ed.am>.
 
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
as_myself=
 
95
case $0 in #((
 
96
  *[\\/]* ) as_myself=$0 ;;
 
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
98
for as_dir in $PATH
 
99
do
 
100
  IFS=$as_save_IFS
 
101
  test -z "$as_dir" && as_dir=.
 
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
103
  done
 
104
IFS=$as_save_IFS
 
105
 
 
106
     ;;
 
107
esac
 
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
109
# in which case we are not to be found in the path.
 
110
if test "x$as_myself" = x; then
 
111
  as_myself=$0
 
112
fi
 
113
if test ! -f "$as_myself"; then
 
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
115
  exit 1
 
116
fi
 
117
 
 
118
# Unset variables that we do not need and which cause bugs (e.g. in
 
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
120
# suppresses any "Segmentation fault" message there.  '((' could
 
121
# trigger a bug in pdksh 5.2.14.
 
122
for as_var in BASH_ENV ENV MAIL MAILPATH
 
123
do eval test x\${$as_var+set} = xset \
 
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# CDPATH.
 
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
138
 
 
139
if test "x$CONFIG_SHELL" = x; then
 
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
141
  emulate sh
 
142
  NULLCMD=:
 
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
144
  # is contrary to our usage.  Disable this feature.
 
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
146
  setopt NO_GLOB_SUBST
 
147
else
 
148
  case \`(set -o) 2>/dev/null\` in #(
 
149
  *posix*) :
 
150
    set -o posix ;; #(
 
151
  *) :
 
152
     ;;
 
153
esac
 
154
fi
 
155
"
 
156
  as_required="as_fn_return () { (exit \$1); }
 
157
as_fn_success () { as_fn_return 0; }
 
158
as_fn_failure () { as_fn_return 1; }
 
159
as_fn_ret_success () { return 0; }
 
160
as_fn_ret_failure () { return 1; }
 
161
 
 
162
exitcode=0
 
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
168
 
 
169
else
 
170
  exitcode=1; echo positional parameters were not saved.
 
171
fi
 
172
test x\$exitcode = x0 || exit 1"
 
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
 
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
182
    PATH=/empty FPATH=/empty; export PATH FPATH
 
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
185
test \$(( 1 + 1 )) = 2 || exit 1"
 
186
  if (eval "$as_required") 2>/dev/null; then :
 
187
  as_have_required=yes
 
188
else
 
189
  as_have_required=no
 
190
fi
 
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
192
 
 
193
else
 
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
195
as_found=false
 
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
197
do
 
198
  IFS=$as_save_IFS
 
199
  test -z "$as_dir" && as_dir=.
 
200
  as_found=:
 
201
  case $as_dir in #(
 
202
         /*)
 
203
           for as_base in sh bash ksh sh5; do
 
204
             # Try only shells that exist, to save several forks.
 
205
             as_shell=$as_dir/$as_base
 
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$as_shell as_have_required=yes
 
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
210
  break 2
 
211
fi
 
212
fi
 
213
           done;;
 
214
       esac
 
215
  as_found=false
 
216
done
 
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
219
  CONFIG_SHELL=$SHELL as_have_required=yes
 
220
fi; }
 
221
IFS=$as_save_IFS
 
222
 
 
223
 
 
224
      if test "x$CONFIG_SHELL" != x; then :
 
225
  # We cannot yet assume a decent shell, so we have to provide a
 
226
        # neutralization value for shells without unset; and this also
 
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
 
229
        BASH_ENV=/dev/null
 
230
        ENV=/dev/null
 
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
232
        export CONFIG_SHELL
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
240
fi
 
241
 
 
242
    if test x$as_have_required = xno; then :
 
243
  $as_echo "$0: This script requires a shell more modern than all"
 
244
  $as_echo "$0: the shells that I found on your system."
 
245
  if test x${ZSH_VERSION+set} = xset ; then
 
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
248
  else
 
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and tim@ed.am about
 
250
$0: your system, including any error possibly output before
 
251
$0: this message. Then install a modern shell, or manually
 
252
$0: run the script under such a shell if you do have one."
 
253
  fi
 
254
  exit 1
 
255
fi
 
256
fi
 
257
fi
 
258
SHELL=${CONFIG_SHELL-/bin/sh}
 
259
export SHELL
 
260
# Unset more variables known to interfere with behavior of common tools.
 
261
CLICOLOR_FORCE= GREP_OPTIONS=
 
262
unset CLICOLOR_FORCE GREP_OPTIONS
 
263
 
 
264
## --------------------- ##
 
265
## M4sh Shell Functions. ##
 
266
## --------------------- ##
 
267
# as_fn_unset VAR
 
268
# ---------------
 
269
# Portably unset VAR.
 
270
as_fn_unset ()
 
271
{
 
272
  { eval $1=; unset $1;}
 
273
}
 
274
as_unset=as_fn_unset
 
275
 
 
276
# as_fn_set_status STATUS
 
277
# -----------------------
 
278
# Set $? to STATUS, without forking.
 
279
as_fn_set_status ()
 
280
{
 
281
  return $1
 
282
} # as_fn_set_status
 
283
 
 
284
# as_fn_exit STATUS
 
285
# -----------------
 
286
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
287
as_fn_exit ()
 
288
{
 
289
  set +e
 
290
  as_fn_set_status $1
 
291
  exit $1
 
292
} # as_fn_exit
 
293
 
 
294
# as_fn_mkdir_p
 
295
# -------------
 
296
# Create "$as_dir" as a directory, including parents if necessary.
 
297
as_fn_mkdir_p ()
 
298
{
 
299
 
 
300
  case $as_dir in #(
 
301
  -*) as_dir=./$as_dir;;
 
302
  esac
 
303
  test -d "$as_dir" || eval $as_mkdir_p || {
 
304
    as_dirs=
 
305
    while :; do
 
306
      case $as_dir in #(
 
307
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
308
      *) as_qdir=$as_dir;;
 
309
      esac
 
310
      as_dirs="'$as_qdir' $as_dirs"
 
311
      as_dir=`$as_dirname -- "$as_dir" ||
 
312
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
313
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
314
         X"$as_dir" : 'X\(//\)$' \| \
 
315
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
316
$as_echo X"$as_dir" |
 
317
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
318
            s//\1/
 
319
            q
 
320
          }
 
321
          /^X\(\/\/\)[^/].*/{
 
322
            s//\1/
 
323
            q
 
324
          }
 
325
          /^X\(\/\/\)$/{
 
326
            s//\1/
 
327
            q
 
328
          }
 
329
          /^X\(\/\).*/{
 
330
            s//\1/
 
331
            q
 
332
          }
 
333
          s/.*/./; q'`
 
334
      test -d "$as_dir" && break
 
335
    done
 
336
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
337
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
338
 
 
339
 
 
340
} # as_fn_mkdir_p
 
341
# as_fn_append VAR VALUE
 
342
# ----------------------
 
343
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
344
# advantage of any shell optimizations that allow amortized linear growth over
 
345
# repeated appends, instead of the typical quadratic growth present in naive
 
346
# implementations.
 
347
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
348
  eval 'as_fn_append ()
 
349
  {
 
350
    eval $1+=\$2
 
351
  }'
 
352
else
 
353
  as_fn_append ()
 
354
  {
 
355
    eval $1=\$$1\$2
 
356
  }
 
357
fi # as_fn_append
 
358
 
 
359
# as_fn_arith ARG...
 
360
# ------------------
 
361
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
362
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
363
# must be portable across $(()) and expr.
 
364
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
365
  eval 'as_fn_arith ()
 
366
  {
 
367
    as_val=$(( $* ))
 
368
  }'
 
369
else
 
370
  as_fn_arith ()
 
371
  {
 
372
    as_val=`expr "$@" || test $? -eq 1`
 
373
  }
 
374
fi # as_fn_arith
 
375
 
 
376
 
 
377
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
378
# ----------------------------------------
 
379
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
380
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
381
# script with STATUS, using 1 if that was 0.
 
382
as_fn_error ()
 
383
{
 
384
  as_status=$1; test $as_status -eq 0 && as_status=1
 
385
  if test "$4"; then
 
386
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
387
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
388
  fi
 
389
  $as_echo "$as_me: error: $2" >&2
 
390
  as_fn_exit $as_status
 
391
} # as_fn_error
 
392
 
 
393
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
394
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
395
  as_expr=expr
 
396
else
 
397
  as_expr=false
 
398
fi
 
399
 
 
400
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
401
  as_basename=basename
 
402
else
 
403
  as_basename=false
 
404
fi
 
405
 
 
406
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
407
  as_dirname=dirname
 
408
else
 
409
  as_dirname=false
 
410
fi
 
411
 
 
412
as_me=`$as_basename -- "$0" ||
 
413
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
414
         X"$0" : 'X\(//\)$' \| \
 
415
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
416
$as_echo X/"$0" |
 
417
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
418
            s//\1/
 
419
            q
 
420
          }
 
421
          /^X\/\(\/\/\)$/{
 
422
            s//\1/
 
423
            q
 
424
          }
 
425
          /^X\/\(\/\).*/{
 
426
            s//\1/
 
427
            q
 
428
          }
 
429
          s/.*/./; q'`
 
430
 
 
431
# Avoid depending upon Character Ranges.
 
432
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
433
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
434
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
435
as_cr_digits='0123456789'
 
436
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
437
 
 
438
 
 
439
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
440
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
441
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
442
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
443
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
444
  sed -n '
 
445
    p
 
446
    /[$]LINENO/=
 
447
  ' <$as_myself |
 
448
    sed '
 
449
      s/[$]LINENO.*/&-/
 
450
      t lineno
 
451
      b
 
452
      :lineno
 
453
      N
 
454
      :loop
 
455
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
456
      t loop
 
457
      s/-\n.*//
 
458
    ' >$as_me.lineno &&
 
459
  chmod +x "$as_me.lineno" ||
 
460
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
461
 
 
462
  # Don't try to exec as it changes $[0], causing all sort of problems
 
463
  # (the dirname of $[0] is not the place where we might find the
 
464
  # original and so on.  Autoconf is especially sensitive to this).
 
465
  . "./$as_me.lineno"
 
466
  # Exit status is that of the last command.
 
467
  exit
 
468
}
 
469
 
 
470
ECHO_C= ECHO_N= ECHO_T=
 
471
case `echo -n x` in #(((((
 
472
-n*)
 
473
  case `echo 'xy\c'` in
 
474
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
475
  xy)  ECHO_C='\c';;
 
476
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
477
       ECHO_T=' ';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
rm -f conf$$ conf$$.exe conf$$.file
 
484
if test -d conf$$.dir; then
 
485
  rm -f conf$$.dir/conf$$.file
 
486
else
 
487
  rm -f conf$$.dir
 
488
  mkdir conf$$.dir 2>/dev/null
 
489
fi
 
490
if (echo >conf$$.file) 2>/dev/null; then
 
491
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
492
    as_ln_s='ln -s'
 
493
    # ... but there are two gotchas:
 
494
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
495
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
496
    # In both cases, we have to default to `cp -p'.
 
497
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
498
      as_ln_s='cp -p'
 
499
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
500
    as_ln_s=ln
 
501
  else
 
502
    as_ln_s='cp -p'
 
503
  fi
 
504
else
 
505
  as_ln_s='cp -p'
 
506
fi
 
507
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
508
rmdir conf$$.dir 2>/dev/null
 
509
 
 
510
if mkdir -p . 2>/dev/null; then
 
511
  as_mkdir_p='mkdir -p "$as_dir"'
 
512
else
 
513
  test -d ./-p && rmdir ./-p
 
514
  as_mkdir_p=false
 
515
fi
 
516
 
 
517
if test -x / >/dev/null 2>&1; then
 
518
  as_test_x='test -x'
 
519
else
 
520
  if ls -dL / >/dev/null 2>&1; then
 
521
    as_ls_L_option=L
 
522
  else
 
523
    as_ls_L_option=
 
524
  fi
 
525
  as_test_x='
 
526
    eval sh -c '\''
 
527
      if test -d "$1"; then
 
528
        test -d "$1/.";
 
529
      else
 
530
        case $1 in #(
 
531
        -*)set "./$1";;
 
532
        esac;
 
533
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
534
        ???[sx]*):;;*)false;;esac;fi
 
535
    '\'' sh
 
536
  '
 
537
fi
 
538
as_executable_p=$as_test_x
 
539
 
 
540
# Sed expression to map a string onto a valid CPP name.
 
541
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
542
 
 
543
# Sed expression to map a string onto a valid variable name.
 
544
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
545
 
 
546
SHELL=${CONFIG_SHELL-/bin/sh}
 
547
 
 
548
 
 
549
test -n "$DJDIR" || exec 7<&0 </dev/null
 
550
exec 6>&1
 
551
 
 
552
# Name of the host.
 
553
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
554
# so uname gets run too.
 
555
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
556
 
 
557
#
 
558
# Initializations.
 
559
#
 
560
ac_default_prefix=/usr/local
 
561
ac_clean_files=
 
562
ac_config_libobj_dir=.
 
563
LIBOBJS=
 
564
cross_compiling=no
 
565
subdirs=
 
566
MFLAGS=
 
567
MAKEFLAGS=
 
568
 
 
569
# Identity of this package.
 
570
PACKAGE_NAME='sqlite3cc'
 
571
PACKAGE_TARNAME='sqlite3cc'
 
572
PACKAGE_VERSION='0.1'
 
573
PACKAGE_STRING='sqlite3cc 0.1'
 
574
PACKAGE_BUGREPORT='tim@ed.am'
 
575
PACKAGE_URL='http://ed.am/dev/sqlite3cc'
 
576
 
 
577
ac_unique_file="src/command.cc"
 
578
# Factoring default headers for most tests.
 
579
ac_includes_default="\
 
580
#include <stdio.h>
 
581
#ifdef HAVE_SYS_TYPES_H
 
582
# include <sys/types.h>
 
583
#endif
 
584
#ifdef HAVE_SYS_STAT_H
 
585
# include <sys/stat.h>
 
586
#endif
 
587
#ifdef STDC_HEADERS
 
588
# include <stdlib.h>
 
589
# include <stddef.h>
 
590
#else
 
591
# ifdef HAVE_STDLIB_H
 
592
#  include <stdlib.h>
 
593
# endif
 
594
#endif
 
595
#ifdef HAVE_STRING_H
 
596
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
597
#  include <memory.h>
 
598
# endif
 
599
# include <string.h>
 
600
#endif
 
601
#ifdef HAVE_STRINGS_H
 
602
# include <strings.h>
 
603
#endif
 
604
#ifdef HAVE_INTTYPES_H
 
605
# include <inttypes.h>
 
606
#endif
 
607
#ifdef HAVE_STDINT_H
 
608
# include <stdint.h>
 
609
#endif
 
610
#ifdef HAVE_UNISTD_H
 
611
# include <unistd.h>
 
612
#endif"
 
613
 
 
614
ac_subst_vars='am__EXEEXT_FALSE
 
615
am__EXEEXT_TRUE
 
616
LTLIBOBJS
 
617
LIBOBJS
 
618
CXXCPP
 
619
CPP
 
620
OTOOL64
 
621
OTOOL
 
622
LIPO
 
623
NMEDIT
 
624
DSYMUTIL
 
625
MANIFEST_TOOL
 
626
RANLIB
 
627
ac_ct_AR
 
628
AR
 
629
DLLTOOL
 
630
OBJDUMP
 
631
LN_S
 
632
NM
 
633
ac_ct_DUMPBIN
 
634
DUMPBIN
 
635
LD
 
636
FGREP
 
637
EGREP
 
638
GREP
 
639
SED
 
640
am__fastdepCC_FALSE
 
641
am__fastdepCC_TRUE
 
642
CCDEPMODE
 
643
ac_ct_CC
 
644
CFLAGS
 
645
CC
 
646
host_os
 
647
host_vendor
 
648
host_cpu
 
649
host
 
650
build_os
 
651
build_vendor
 
652
build_cpu
 
653
build
 
654
LIBTOOL
 
655
am__fastdepCXX_FALSE
 
656
am__fastdepCXX_TRUE
 
657
CXXDEPMODE
 
658
AMDEPBACKSLASH
 
659
AMDEP_FALSE
 
660
AMDEP_TRUE
 
661
am__quote
 
662
am__include
 
663
DEPDIR
 
664
OBJEXT
 
665
EXEEXT
 
666
ac_ct_CXX
 
667
CPPFLAGS
 
668
LDFLAGS
 
669
CXXFLAGS
 
670
CXX
 
671
am__untar
 
672
am__tar
 
673
AMTAR
 
674
am__leading_dot
 
675
SET_MAKE
 
676
AWK
 
677
mkdir_p
 
678
MKDIR_P
 
679
INSTALL_STRIP_PROGRAM
 
680
STRIP
 
681
install_sh
 
682
MAKEINFO
 
683
AUTOHEADER
 
684
AUTOMAKE
 
685
AUTOCONF
 
686
ACLOCAL
 
687
VERSION
 
688
PACKAGE
 
689
CYGPATH_W
 
690
am__isrc
 
691
INSTALL_DATA
 
692
INSTALL_SCRIPT
 
693
INSTALL_PROGRAM
 
694
LIBSQLITE3CC_INTERFACE
 
695
target_alias
 
696
host_alias
 
697
build_alias
 
698
LIBS
 
699
ECHO_T
 
700
ECHO_N
 
701
ECHO_C
 
702
DEFS
 
703
mandir
 
704
localedir
 
705
libdir
 
706
psdir
 
707
pdfdir
 
708
dvidir
 
709
htmldir
 
710
infodir
 
711
docdir
 
712
oldincludedir
 
713
includedir
 
714
localstatedir
 
715
sharedstatedir
 
716
sysconfdir
 
717
datadir
 
718
datarootdir
 
719
libexecdir
 
720
sbindir
 
721
bindir
 
722
program_transform_name
 
723
prefix
 
724
exec_prefix
 
725
PACKAGE_URL
 
726
PACKAGE_BUGREPORT
 
727
PACKAGE_STRING
 
728
PACKAGE_VERSION
 
729
PACKAGE_TARNAME
 
730
PACKAGE_NAME
 
731
PATH_SEPARATOR
 
732
SHELL'
 
733
ac_subst_files=''
 
734
ac_user_opts='
 
735
enable_option_checking
 
736
enable_dependency_tracking
 
737
enable_shared
 
738
enable_static
 
739
with_pic
 
740
enable_fast_install
 
741
with_gnu_ld
 
742
with_sysroot
 
743
enable_libtool_lock
 
744
'
 
745
      ac_precious_vars='build_alias
 
746
host_alias
 
747
target_alias
 
748
CXX
 
749
CXXFLAGS
 
750
LDFLAGS
 
751
LIBS
 
752
CPPFLAGS
 
753
CCC
 
754
CC
 
755
CFLAGS
 
756
CPP
 
757
CXXCPP'
 
758
 
 
759
 
 
760
# Initialize some variables set by options.
 
761
ac_init_help=
 
762
ac_init_version=false
 
763
ac_unrecognized_opts=
 
764
ac_unrecognized_sep=
 
765
# The variables have the same names as the options, with
 
766
# dashes changed to underlines.
 
767
cache_file=/dev/null
 
768
exec_prefix=NONE
 
769
no_create=
 
770
no_recursion=
 
771
prefix=NONE
 
772
program_prefix=NONE
 
773
program_suffix=NONE
 
774
program_transform_name=s,x,x,
 
775
silent=
 
776
site=
 
777
srcdir=
 
778
verbose=
 
779
x_includes=NONE
 
780
x_libraries=NONE
 
781
 
 
782
# Installation directory options.
 
783
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
784
# and all the variables that are supposed to be based on exec_prefix
 
785
# by default will actually change.
 
786
# Use braces instead of parens because sh, perl, etc. also accept them.
 
787
# (The list follows the same order as the GNU Coding Standards.)
 
788
bindir='${exec_prefix}/bin'
 
789
sbindir='${exec_prefix}/sbin'
 
790
libexecdir='${exec_prefix}/libexec'
 
791
datarootdir='${prefix}/share'
 
792
datadir='${datarootdir}'
 
793
sysconfdir='${prefix}/etc'
 
794
sharedstatedir='${prefix}/com'
 
795
localstatedir='${prefix}/var'
 
796
includedir='${prefix}/include'
 
797
oldincludedir='/usr/include'
 
798
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
799
infodir='${datarootdir}/info'
 
800
htmldir='${docdir}'
 
801
dvidir='${docdir}'
 
802
pdfdir='${docdir}'
 
803
psdir='${docdir}'
 
804
libdir='${exec_prefix}/lib'
 
805
localedir='${datarootdir}/locale'
 
806
mandir='${datarootdir}/man'
 
807
 
 
808
ac_prev=
 
809
ac_dashdash=
 
810
for ac_option
 
811
do
 
812
  # If the previous option needs an argument, assign it.
 
813
  if test -n "$ac_prev"; then
 
814
    eval $ac_prev=\$ac_option
 
815
    ac_prev=
 
816
    continue
 
817
  fi
 
818
 
 
819
  case $ac_option in
 
820
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
821
  *=)   ac_optarg= ;;
 
822
  *)    ac_optarg=yes ;;
 
823
  esac
 
824
 
 
825
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
826
 
 
827
  case $ac_dashdash$ac_option in
 
828
  --)
 
829
    ac_dashdash=yes ;;
 
830
 
 
831
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
832
    ac_prev=bindir ;;
 
833
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
834
    bindir=$ac_optarg ;;
 
835
 
 
836
  -build | --build | --buil | --bui | --bu)
 
837
    ac_prev=build_alias ;;
 
838
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
839
    build_alias=$ac_optarg ;;
 
840
 
 
841
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
842
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
843
    ac_prev=cache_file ;;
 
844
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
845
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
846
    cache_file=$ac_optarg ;;
 
847
 
 
848
  --config-cache | -C)
 
849
    cache_file=config.cache ;;
 
850
 
 
851
  -datadir | --datadir | --datadi | --datad)
 
852
    ac_prev=datadir ;;
 
853
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
854
    datadir=$ac_optarg ;;
 
855
 
 
856
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
857
  | --dataroo | --dataro | --datar)
 
858
    ac_prev=datarootdir ;;
 
859
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
860
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
861
    datarootdir=$ac_optarg ;;
 
862
 
 
863
  -disable-* | --disable-*)
 
864
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
865
    # Reject names that are not valid shell variable names.
 
866
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
867
      as_fn_error $? "invalid feature name: $ac_useropt"
 
868
    ac_useropt_orig=$ac_useropt
 
869
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
870
    case $ac_user_opts in
 
871
      *"
 
872
"enable_$ac_useropt"
 
873
"*) ;;
 
874
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
875
         ac_unrecognized_sep=', ';;
 
876
    esac
 
877
    eval enable_$ac_useropt=no ;;
 
878
 
 
879
  -docdir | --docdir | --docdi | --doc | --do)
 
880
    ac_prev=docdir ;;
 
881
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
882
    docdir=$ac_optarg ;;
 
883
 
 
884
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
885
    ac_prev=dvidir ;;
 
886
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
887
    dvidir=$ac_optarg ;;
 
888
 
 
889
  -enable-* | --enable-*)
 
890
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
891
    # Reject names that are not valid shell variable names.
 
892
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
893
      as_fn_error $? "invalid feature name: $ac_useropt"
 
894
    ac_useropt_orig=$ac_useropt
 
895
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
896
    case $ac_user_opts in
 
897
      *"
 
898
"enable_$ac_useropt"
 
899
"*) ;;
 
900
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
901
         ac_unrecognized_sep=', ';;
 
902
    esac
 
903
    eval enable_$ac_useropt=\$ac_optarg ;;
 
904
 
 
905
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
906
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
907
  | --exec | --exe | --ex)
 
908
    ac_prev=exec_prefix ;;
 
909
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
910
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
911
  | --exec=* | --exe=* | --ex=*)
 
912
    exec_prefix=$ac_optarg ;;
 
913
 
 
914
  -gas | --gas | --ga | --g)
 
915
    # Obsolete; use --with-gas.
 
916
    with_gas=yes ;;
 
917
 
 
918
  -help | --help | --hel | --he | -h)
 
919
    ac_init_help=long ;;
 
920
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
921
    ac_init_help=recursive ;;
 
922
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
923
    ac_init_help=short ;;
 
924
 
 
925
  -host | --host | --hos | --ho)
 
926
    ac_prev=host_alias ;;
 
927
  -host=* | --host=* | --hos=* | --ho=*)
 
928
    host_alias=$ac_optarg ;;
 
929
 
 
930
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
931
    ac_prev=htmldir ;;
 
932
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
933
  | --ht=*)
 
934
    htmldir=$ac_optarg ;;
 
935
 
 
936
  -includedir | --includedir | --includedi | --included | --include \
 
937
  | --includ | --inclu | --incl | --inc)
 
938
    ac_prev=includedir ;;
 
939
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
940
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
941
    includedir=$ac_optarg ;;
 
942
 
 
943
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
944
    ac_prev=infodir ;;
 
945
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
946
    infodir=$ac_optarg ;;
 
947
 
 
948
  -libdir | --libdir | --libdi | --libd)
 
949
    ac_prev=libdir ;;
 
950
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
951
    libdir=$ac_optarg ;;
 
952
 
 
953
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
954
  | --libexe | --libex | --libe)
 
955
    ac_prev=libexecdir ;;
 
956
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
957
  | --libexe=* | --libex=* | --libe=*)
 
958
    libexecdir=$ac_optarg ;;
 
959
 
 
960
  -localedir | --localedir | --localedi | --localed | --locale)
 
961
    ac_prev=localedir ;;
 
962
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
963
    localedir=$ac_optarg ;;
 
964
 
 
965
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
966
  | --localstate | --localstat | --localsta | --localst | --locals)
 
967
    ac_prev=localstatedir ;;
 
968
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
969
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
970
    localstatedir=$ac_optarg ;;
 
971
 
 
972
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
973
    ac_prev=mandir ;;
 
974
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
975
    mandir=$ac_optarg ;;
 
976
 
 
977
  -nfp | --nfp | --nf)
 
978
    # Obsolete; use --without-fp.
 
979
    with_fp=no ;;
 
980
 
 
981
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
982
  | --no-cr | --no-c | -n)
 
983
    no_create=yes ;;
 
984
 
 
985
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
986
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
987
    no_recursion=yes ;;
 
988
 
 
989
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
990
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
991
  | --oldin | --oldi | --old | --ol | --o)
 
992
    ac_prev=oldincludedir ;;
 
993
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
994
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
995
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
996
    oldincludedir=$ac_optarg ;;
 
997
 
 
998
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
999
    ac_prev=prefix ;;
 
1000
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1001
    prefix=$ac_optarg ;;
 
1002
 
 
1003
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1004
  | --program-pre | --program-pr | --program-p)
 
1005
    ac_prev=program_prefix ;;
 
1006
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1007
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1008
    program_prefix=$ac_optarg ;;
 
1009
 
 
1010
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1011
  | --program-suf | --program-su | --program-s)
 
1012
    ac_prev=program_suffix ;;
 
1013
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1014
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1015
    program_suffix=$ac_optarg ;;
 
1016
 
 
1017
  -program-transform-name | --program-transform-name \
 
1018
  | --program-transform-nam | --program-transform-na \
 
1019
  | --program-transform-n | --program-transform- \
 
1020
  | --program-transform | --program-transfor \
 
1021
  | --program-transfo | --program-transf \
 
1022
  | --program-trans | --program-tran \
 
1023
  | --progr-tra | --program-tr | --program-t)
 
1024
    ac_prev=program_transform_name ;;
 
1025
  -program-transform-name=* | --program-transform-name=* \
 
1026
  | --program-transform-nam=* | --program-transform-na=* \
 
1027
  | --program-transform-n=* | --program-transform-=* \
 
1028
  | --program-transform=* | --program-transfor=* \
 
1029
  | --program-transfo=* | --program-transf=* \
 
1030
  | --program-trans=* | --program-tran=* \
 
1031
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1032
    program_transform_name=$ac_optarg ;;
 
1033
 
 
1034
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1035
    ac_prev=pdfdir ;;
 
1036
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1037
    pdfdir=$ac_optarg ;;
 
1038
 
 
1039
  -psdir | --psdir | --psdi | --psd | --ps)
 
1040
    ac_prev=psdir ;;
 
1041
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1042
    psdir=$ac_optarg ;;
 
1043
 
 
1044
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1045
  | -silent | --silent | --silen | --sile | --sil)
 
1046
    silent=yes ;;
 
1047
 
 
1048
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1049
    ac_prev=sbindir ;;
 
1050
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1051
  | --sbi=* | --sb=*)
 
1052
    sbindir=$ac_optarg ;;
 
1053
 
 
1054
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1055
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1056
  | --sharedst | --shareds | --shared | --share | --shar \
 
1057
  | --sha | --sh)
 
1058
    ac_prev=sharedstatedir ;;
 
1059
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1060
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1061
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1062
  | --sha=* | --sh=*)
 
1063
    sharedstatedir=$ac_optarg ;;
 
1064
 
 
1065
  -site | --site | --sit)
 
1066
    ac_prev=site ;;
 
1067
  -site=* | --site=* | --sit=*)
 
1068
    site=$ac_optarg ;;
 
1069
 
 
1070
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1071
    ac_prev=srcdir ;;
 
1072
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1073
    srcdir=$ac_optarg ;;
 
1074
 
 
1075
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1076
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1077
    ac_prev=sysconfdir ;;
 
1078
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1079
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1080
    sysconfdir=$ac_optarg ;;
 
1081
 
 
1082
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1083
    ac_prev=target_alias ;;
 
1084
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1085
    target_alias=$ac_optarg ;;
 
1086
 
 
1087
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1088
    verbose=yes ;;
 
1089
 
 
1090
  -version | --version | --versio | --versi | --vers | -V)
 
1091
    ac_init_version=: ;;
 
1092
 
 
1093
  -with-* | --with-*)
 
1094
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1095
    # Reject names that are not valid shell variable names.
 
1096
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1097
      as_fn_error $? "invalid package name: $ac_useropt"
 
1098
    ac_useropt_orig=$ac_useropt
 
1099
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1100
    case $ac_user_opts in
 
1101
      *"
 
1102
"with_$ac_useropt"
 
1103
"*) ;;
 
1104
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1105
         ac_unrecognized_sep=', ';;
 
1106
    esac
 
1107
    eval with_$ac_useropt=\$ac_optarg ;;
 
1108
 
 
1109
  -without-* | --without-*)
 
1110
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1111
    # Reject names that are not valid shell variable names.
 
1112
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1113
      as_fn_error $? "invalid package name: $ac_useropt"
 
1114
    ac_useropt_orig=$ac_useropt
 
1115
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1116
    case $ac_user_opts in
 
1117
      *"
 
1118
"with_$ac_useropt"
 
1119
"*) ;;
 
1120
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1121
         ac_unrecognized_sep=', ';;
 
1122
    esac
 
1123
    eval with_$ac_useropt=no ;;
 
1124
 
 
1125
  --x)
 
1126
    # Obsolete; use --with-x.
 
1127
    with_x=yes ;;
 
1128
 
 
1129
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1130
  | --x-incl | --x-inc | --x-in | --x-i)
 
1131
    ac_prev=x_includes ;;
 
1132
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1133
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1134
    x_includes=$ac_optarg ;;
 
1135
 
 
1136
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1137
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1138
    ac_prev=x_libraries ;;
 
1139
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1140
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1141
    x_libraries=$ac_optarg ;;
 
1142
 
 
1143
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1144
Try \`$0 --help' for more information"
 
1145
    ;;
 
1146
 
 
1147
  *=*)
 
1148
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1149
    # Reject names that are not valid shell variable names.
 
1150
    case $ac_envvar in #(
 
1151
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1152
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1153
    esac
 
1154
    eval $ac_envvar=\$ac_optarg
 
1155
    export $ac_envvar ;;
 
1156
 
 
1157
  *)
 
1158
    # FIXME: should be removed in autoconf 3.0.
 
1159
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1160
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1161
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1162
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1163
    ;;
 
1164
 
 
1165
  esac
 
1166
done
 
1167
 
 
1168
if test -n "$ac_prev"; then
 
1169
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1170
  as_fn_error $? "missing argument to $ac_option"
 
1171
fi
 
1172
 
 
1173
if test -n "$ac_unrecognized_opts"; then
 
1174
  case $enable_option_checking in
 
1175
    no) ;;
 
1176
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1177
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1178
  esac
 
1179
fi
 
1180
 
 
1181
# Check all directory arguments for consistency.
 
1182
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1183
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1184
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1185
                libdir localedir mandir
 
1186
do
 
1187
  eval ac_val=\$$ac_var
 
1188
  # Remove trailing slashes.
 
1189
  case $ac_val in
 
1190
    */ )
 
1191
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1192
      eval $ac_var=\$ac_val;;
 
1193
  esac
 
1194
  # Be sure to have absolute directory names.
 
1195
  case $ac_val in
 
1196
    [\\/$]* | ?:[\\/]* )  continue;;
 
1197
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1198
  esac
 
1199
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1200
done
 
1201
 
 
1202
# There might be people who depend on the old broken behavior: `$host'
 
1203
# used to hold the argument of --host etc.
 
1204
# FIXME: To remove some day.
 
1205
build=$build_alias
 
1206
host=$host_alias
 
1207
target=$target_alias
 
1208
 
 
1209
# FIXME: To remove some day.
 
1210
if test "x$host_alias" != x; then
 
1211
  if test "x$build_alias" = x; then
 
1212
    cross_compiling=maybe
 
1213
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1214
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1215
  elif test "x$build_alias" != "x$host_alias"; then
 
1216
    cross_compiling=yes
 
1217
  fi
 
1218
fi
 
1219
 
 
1220
ac_tool_prefix=
 
1221
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1222
 
 
1223
test "$silent" = yes && exec 6>/dev/null
 
1224
 
 
1225
 
 
1226
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1227
ac_ls_di=`ls -di .` &&
 
1228
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1229
  as_fn_error $? "working directory cannot be determined"
 
1230
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1231
  as_fn_error $? "pwd does not report name of working directory"
 
1232
 
 
1233
 
 
1234
# Find the source files, if location was not specified.
 
1235
if test -z "$srcdir"; then
 
1236
  ac_srcdir_defaulted=yes
 
1237
  # Try the directory containing this script, then the parent directory.
 
1238
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1239
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1240
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1241
         X"$as_myself" : 'X\(//\)$' \| \
 
1242
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1243
$as_echo X"$as_myself" |
 
1244
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1245
            s//\1/
 
1246
            q
 
1247
          }
 
1248
          /^X\(\/\/\)[^/].*/{
 
1249
            s//\1/
 
1250
            q
 
1251
          }
 
1252
          /^X\(\/\/\)$/{
 
1253
            s//\1/
 
1254
            q
 
1255
          }
 
1256
          /^X\(\/\).*/{
 
1257
            s//\1/
 
1258
            q
 
1259
          }
 
1260
          s/.*/./; q'`
 
1261
  srcdir=$ac_confdir
 
1262
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1263
    srcdir=..
 
1264
  fi
 
1265
else
 
1266
  ac_srcdir_defaulted=no
 
1267
fi
 
1268
if test ! -r "$srcdir/$ac_unique_file"; then
 
1269
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1270
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1271
fi
 
1272
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1273
ac_abs_confdir=`(
 
1274
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1275
        pwd)`
 
1276
# When building in place, set srcdir=.
 
1277
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1278
  srcdir=.
 
1279
fi
 
1280
# Remove unnecessary trailing slashes from srcdir.
 
1281
# Double slashes in file names in object file debugging info
 
1282
# mess up M-x gdb in Emacs.
 
1283
case $srcdir in
 
1284
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1285
esac
 
1286
for ac_var in $ac_precious_vars; do
 
1287
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1288
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1289
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1290
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1291
done
 
1292
 
 
1293
#
 
1294
# Report the --help message.
 
1295
#
 
1296
if test "$ac_init_help" = "long"; then
 
1297
  # Omit some internal or obsolete options to make the list less imposing.
 
1298
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1299
  cat <<_ACEOF
 
1300
\`configure' configures sqlite3cc 0.1 to adapt to many kinds of systems.
 
1301
 
 
1302
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1303
 
 
1304
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1305
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1306
 
 
1307
Defaults for the options are specified in brackets.
 
1308
 
 
1309
Configuration:
 
1310
  -h, --help              display this help and exit
 
1311
      --help=short        display options specific to this package
 
1312
      --help=recursive    display the short help of all the included packages
 
1313
  -V, --version           display version information and exit
 
1314
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1315
      --cache-file=FILE   cache test results in FILE [disabled]
 
1316
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1317
  -n, --no-create         do not create output files
 
1318
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1319
 
 
1320
Installation directories:
 
1321
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1322
                          [$ac_default_prefix]
 
1323
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1324
                          [PREFIX]
 
1325
 
 
1326
By default, \`make install' will install all the files in
 
1327
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1328
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1329
for instance \`--prefix=\$HOME'.
 
1330
 
 
1331
For better control, use the options below.
 
1332
 
 
1333
Fine tuning of the installation directories:
 
1334
  --bindir=DIR            user executables [EPREFIX/bin]
 
1335
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1336
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1337
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1338
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1339
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1340
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1341
  --includedir=DIR        C header files [PREFIX/include]
 
1342
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1343
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1344
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1345
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1346
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1347
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1348
  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite3cc]
 
1349
  --htmldir=DIR           html documentation [DOCDIR]
 
1350
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1351
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1352
  --psdir=DIR             ps documentation [DOCDIR]
 
1353
_ACEOF
 
1354
 
 
1355
  cat <<\_ACEOF
 
1356
 
 
1357
Program names:
 
1358
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1359
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1360
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1361
 
 
1362
System types:
 
1363
  --build=BUILD     configure for building on BUILD [guessed]
 
1364
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1365
_ACEOF
 
1366
fi
 
1367
 
 
1368
if test -n "$ac_init_help"; then
 
1369
  case $ac_init_help in
 
1370
     short | recursive ) echo "Configuration of sqlite3cc 0.1:";;
 
1371
   esac
 
1372
  cat <<\_ACEOF
 
1373
 
 
1374
Optional Features:
 
1375
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1376
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1377
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1378
  --disable-dependency-tracking  speeds up one-time build
 
1379
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1380
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1381
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1382
  --enable-fast-install[=PKGS]
 
1383
                          optimize for fast installation [default=yes]
 
1384
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1385
 
 
1386
Optional Packages:
 
1387
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1388
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1389
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1390
                          both]
 
1391
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1392
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1393
                        (or the compiler's sysroot if not specified).
 
1394
 
 
1395
Some influential environment variables:
 
1396
  CXX         C++ compiler command
 
1397
  CXXFLAGS    C++ compiler flags
 
1398
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1399
              nonstandard directory <lib dir>
 
1400
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1401
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1402
              you have headers in a nonstandard directory <include dir>
 
1403
  CC          C compiler command
 
1404
  CFLAGS      C compiler flags
 
1405
  CPP         C preprocessor
 
1406
  CXXCPP      C++ preprocessor
 
1407
 
 
1408
Use these variables to override the choices made by `configure' or to help
 
1409
it to find libraries and programs with nonstandard names/locations.
 
1410
 
 
1411
Report bugs to <tim@ed.am>.
 
1412
sqlite3cc home page: <http://ed.am/dev/sqlite3cc>.
 
1413
_ACEOF
 
1414
ac_status=$?
 
1415
fi
 
1416
 
 
1417
if test "$ac_init_help" = "recursive"; then
 
1418
  # If there are subdirs, report their specific --help.
 
1419
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1420
    test -d "$ac_dir" ||
 
1421
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1422
      continue
 
1423
    ac_builddir=.
 
1424
 
 
1425
case "$ac_dir" in
 
1426
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1427
*)
 
1428
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1429
  # A ".." for each directory in $ac_dir_suffix.
 
1430
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1431
  case $ac_top_builddir_sub in
 
1432
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1433
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1434
  esac ;;
 
1435
esac
 
1436
ac_abs_top_builddir=$ac_pwd
 
1437
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1438
# for backward compatibility:
 
1439
ac_top_builddir=$ac_top_build_prefix
 
1440
 
 
1441
case $srcdir in
 
1442
  .)  # We are building in place.
 
1443
    ac_srcdir=.
 
1444
    ac_top_srcdir=$ac_top_builddir_sub
 
1445
    ac_abs_top_srcdir=$ac_pwd ;;
 
1446
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1447
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1448
    ac_top_srcdir=$srcdir
 
1449
    ac_abs_top_srcdir=$srcdir ;;
 
1450
  *) # Relative name.
 
1451
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1452
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1453
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1454
esac
 
1455
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1456
 
 
1457
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1458
    # Check for guested configure.
 
1459
    if test -f "$ac_srcdir/configure.gnu"; then
 
1460
      echo &&
 
1461
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1462
    elif test -f "$ac_srcdir/configure"; then
 
1463
      echo &&
 
1464
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1465
    else
 
1466
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1467
    fi || ac_status=$?
 
1468
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1469
  done
 
1470
fi
 
1471
 
 
1472
test -n "$ac_init_help" && exit $ac_status
 
1473
if $ac_init_version; then
 
1474
  cat <<\_ACEOF
 
1475
sqlite3cc configure 0.1
 
1476
generated by GNU Autoconf 2.68
 
1477
 
 
1478
Copyright (C) 2010 Free Software Foundation, Inc.
 
1479
This configure script is free software; the Free Software Foundation
 
1480
gives unlimited permission to copy, distribute and modify it.
 
1481
_ACEOF
 
1482
  exit
 
1483
fi
 
1484
 
 
1485
## ------------------------ ##
 
1486
## Autoconf initialization. ##
 
1487
## ------------------------ ##
 
1488
 
 
1489
# ac_fn_cxx_try_compile LINENO
 
1490
# ----------------------------
 
1491
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1492
ac_fn_cxx_try_compile ()
 
1493
{
 
1494
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1495
  rm -f conftest.$ac_objext
 
1496
  if { { ac_try="$ac_compile"
 
1497
case "(($ac_try" in
 
1498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1499
  *) ac_try_echo=$ac_try;;
 
1500
esac
 
1501
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1502
$as_echo "$ac_try_echo"; } >&5
 
1503
  (eval "$ac_compile") 2>conftest.err
 
1504
  ac_status=$?
 
1505
  if test -s conftest.err; then
 
1506
    grep -v '^ *+' conftest.err >conftest.er1
 
1507
    cat conftest.er1 >&5
 
1508
    mv -f conftest.er1 conftest.err
 
1509
  fi
 
1510
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1511
  test $ac_status = 0; } && {
 
1512
         test -z "$ac_cxx_werror_flag" ||
 
1513
         test ! -s conftest.err
 
1514
       } && test -s conftest.$ac_objext; then :
 
1515
  ac_retval=0
 
1516
else
 
1517
  $as_echo "$as_me: failed program was:" >&5
 
1518
sed 's/^/| /' conftest.$ac_ext >&5
 
1519
 
 
1520
        ac_retval=1
 
1521
fi
 
1522
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1523
  as_fn_set_status $ac_retval
 
1524
 
 
1525
} # ac_fn_cxx_try_compile
 
1526
 
 
1527
# ac_fn_c_try_compile LINENO
 
1528
# --------------------------
 
1529
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1530
ac_fn_c_try_compile ()
 
1531
{
 
1532
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1533
  rm -f conftest.$ac_objext
 
1534
  if { { ac_try="$ac_compile"
 
1535
case "(($ac_try" in
 
1536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1537
  *) ac_try_echo=$ac_try;;
 
1538
esac
 
1539
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1540
$as_echo "$ac_try_echo"; } >&5
 
1541
  (eval "$ac_compile") 2>conftest.err
 
1542
  ac_status=$?
 
1543
  if test -s conftest.err; then
 
1544
    grep -v '^ *+' conftest.err >conftest.er1
 
1545
    cat conftest.er1 >&5
 
1546
    mv -f conftest.er1 conftest.err
 
1547
  fi
 
1548
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1549
  test $ac_status = 0; } && {
 
1550
         test -z "$ac_c_werror_flag" ||
 
1551
         test ! -s conftest.err
 
1552
       } && test -s conftest.$ac_objext; then :
 
1553
  ac_retval=0
 
1554
else
 
1555
  $as_echo "$as_me: failed program was:" >&5
 
1556
sed 's/^/| /' conftest.$ac_ext >&5
 
1557
 
 
1558
        ac_retval=1
 
1559
fi
 
1560
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1561
  as_fn_set_status $ac_retval
 
1562
 
 
1563
} # ac_fn_c_try_compile
 
1564
 
 
1565
# ac_fn_c_try_link LINENO
 
1566
# -----------------------
 
1567
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1568
ac_fn_c_try_link ()
 
1569
{
 
1570
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1571
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1572
  if { { ac_try="$ac_link"
 
1573
case "(($ac_try" in
 
1574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1575
  *) ac_try_echo=$ac_try;;
 
1576
esac
 
1577
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1578
$as_echo "$ac_try_echo"; } >&5
 
1579
  (eval "$ac_link") 2>conftest.err
 
1580
  ac_status=$?
 
1581
  if test -s conftest.err; then
 
1582
    grep -v '^ *+' conftest.err >conftest.er1
 
1583
    cat conftest.er1 >&5
 
1584
    mv -f conftest.er1 conftest.err
 
1585
  fi
 
1586
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1587
  test $ac_status = 0; } && {
 
1588
         test -z "$ac_c_werror_flag" ||
 
1589
         test ! -s conftest.err
 
1590
       } && test -s conftest$ac_exeext && {
 
1591
         test "$cross_compiling" = yes ||
 
1592
         $as_test_x conftest$ac_exeext
 
1593
       }; then :
 
1594
  ac_retval=0
 
1595
else
 
1596
  $as_echo "$as_me: failed program was:" >&5
 
1597
sed 's/^/| /' conftest.$ac_ext >&5
 
1598
 
 
1599
        ac_retval=1
 
1600
fi
 
1601
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1602
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1603
  # interfere with the next link command; also delete a directory that is
 
1604
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1605
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1606
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1607
  as_fn_set_status $ac_retval
 
1608
 
 
1609
} # ac_fn_c_try_link
 
1610
 
 
1611
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1612
# -------------------------------------------------------
 
1613
# Tests whether HEADER exists and can be compiled using the include files in
 
1614
# INCLUDES, setting the cache variable VAR accordingly.
 
1615
ac_fn_c_check_header_compile ()
 
1616
{
 
1617
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1618
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1619
$as_echo_n "checking for $2... " >&6; }
 
1620
if eval \${$3+:} false; then :
 
1621
  $as_echo_n "(cached) " >&6
 
1622
else
 
1623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1624
/* end confdefs.h.  */
 
1625
$4
 
1626
#include <$2>
 
1627
_ACEOF
 
1628
if ac_fn_c_try_compile "$LINENO"; then :
 
1629
  eval "$3=yes"
 
1630
else
 
1631
  eval "$3=no"
 
1632
fi
 
1633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1634
fi
 
1635
eval ac_res=\$$3
 
1636
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1637
$as_echo "$ac_res" >&6; }
 
1638
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1639
 
 
1640
} # ac_fn_c_check_header_compile
 
1641
 
 
1642
# ac_fn_c_try_cpp LINENO
 
1643
# ----------------------
 
1644
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1645
ac_fn_c_try_cpp ()
 
1646
{
 
1647
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1648
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1649
case "(($ac_try" in
 
1650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1651
  *) ac_try_echo=$ac_try;;
 
1652
esac
 
1653
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1654
$as_echo "$ac_try_echo"; } >&5
 
1655
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1656
  ac_status=$?
 
1657
  if test -s conftest.err; then
 
1658
    grep -v '^ *+' conftest.err >conftest.er1
 
1659
    cat conftest.er1 >&5
 
1660
    mv -f conftest.er1 conftest.err
 
1661
  fi
 
1662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1663
  test $ac_status = 0; } > conftest.i && {
 
1664
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1665
         test ! -s conftest.err
 
1666
       }; then :
 
1667
  ac_retval=0
 
1668
else
 
1669
  $as_echo "$as_me: failed program was:" >&5
 
1670
sed 's/^/| /' conftest.$ac_ext >&5
 
1671
 
 
1672
    ac_retval=1
 
1673
fi
 
1674
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1675
  as_fn_set_status $ac_retval
 
1676
 
 
1677
} # ac_fn_c_try_cpp
 
1678
 
 
1679
# ac_fn_c_try_run LINENO
 
1680
# ----------------------
 
1681
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1682
# that executables *can* be run.
 
1683
ac_fn_c_try_run ()
 
1684
{
 
1685
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1686
  if { { ac_try="$ac_link"
 
1687
case "(($ac_try" in
 
1688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1689
  *) ac_try_echo=$ac_try;;
 
1690
esac
 
1691
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1692
$as_echo "$ac_try_echo"; } >&5
 
1693
  (eval "$ac_link") 2>&5
 
1694
  ac_status=$?
 
1695
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1696
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1697
  { { case "(($ac_try" in
 
1698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1699
  *) ac_try_echo=$ac_try;;
 
1700
esac
 
1701
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1702
$as_echo "$ac_try_echo"; } >&5
 
1703
  (eval "$ac_try") 2>&5
 
1704
  ac_status=$?
 
1705
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1706
  test $ac_status = 0; }; }; then :
 
1707
  ac_retval=0
 
1708
else
 
1709
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1710
       $as_echo "$as_me: failed program was:" >&5
 
1711
sed 's/^/| /' conftest.$ac_ext >&5
 
1712
 
 
1713
       ac_retval=$ac_status
 
1714
fi
 
1715
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1716
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1717
  as_fn_set_status $ac_retval
 
1718
 
 
1719
} # ac_fn_c_try_run
 
1720
 
 
1721
# ac_fn_c_check_func LINENO FUNC VAR
 
1722
# ----------------------------------
 
1723
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1724
ac_fn_c_check_func ()
 
1725
{
 
1726
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1727
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1728
$as_echo_n "checking for $2... " >&6; }
 
1729
if eval \${$3+:} false; then :
 
1730
  $as_echo_n "(cached) " >&6
 
1731
else
 
1732
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1733
/* end confdefs.h.  */
 
1734
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1735
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1736
#define $2 innocuous_$2
 
1737
 
 
1738
/* System header to define __stub macros and hopefully few prototypes,
 
1739
    which can conflict with char $2 (); below.
 
1740
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1741
    <limits.h> exists even on freestanding compilers.  */
 
1742
 
 
1743
#ifdef __STDC__
 
1744
# include <limits.h>
 
1745
#else
 
1746
# include <assert.h>
 
1747
#endif
 
1748
 
 
1749
#undef $2
 
1750
 
 
1751
/* Override any GCC internal prototype to avoid an error.
 
1752
   Use char because int might match the return type of a GCC
 
1753
   builtin and then its argument prototype would still apply.  */
 
1754
#ifdef __cplusplus
 
1755
extern "C"
 
1756
#endif
 
1757
char $2 ();
 
1758
/* The GNU C library defines this for functions which it implements
 
1759
    to always fail with ENOSYS.  Some functions are actually named
 
1760
    something starting with __ and the normal name is an alias.  */
 
1761
#if defined __stub_$2 || defined __stub___$2
 
1762
choke me
 
1763
#endif
 
1764
 
 
1765
int
 
1766
main ()
 
1767
{
 
1768
return $2 ();
 
1769
  ;
 
1770
  return 0;
 
1771
}
 
1772
_ACEOF
 
1773
if ac_fn_c_try_link "$LINENO"; then :
 
1774
  eval "$3=yes"
 
1775
else
 
1776
  eval "$3=no"
 
1777
fi
 
1778
rm -f core conftest.err conftest.$ac_objext \
 
1779
    conftest$ac_exeext conftest.$ac_ext
 
1780
fi
 
1781
eval ac_res=\$$3
 
1782
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1783
$as_echo "$ac_res" >&6; }
 
1784
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1785
 
 
1786
} # ac_fn_c_check_func
 
1787
 
 
1788
# ac_fn_cxx_try_cpp LINENO
 
1789
# ------------------------
 
1790
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1791
ac_fn_cxx_try_cpp ()
 
1792
{
 
1793
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1794
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1795
case "(($ac_try" in
 
1796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1797
  *) ac_try_echo=$ac_try;;
 
1798
esac
 
1799
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1800
$as_echo "$ac_try_echo"; } >&5
 
1801
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1802
  ac_status=$?
 
1803
  if test -s conftest.err; then
 
1804
    grep -v '^ *+' conftest.err >conftest.er1
 
1805
    cat conftest.er1 >&5
 
1806
    mv -f conftest.er1 conftest.err
 
1807
  fi
 
1808
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1809
  test $ac_status = 0; } > conftest.i && {
 
1810
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1811
         test ! -s conftest.err
 
1812
       }; then :
 
1813
  ac_retval=0
 
1814
else
 
1815
  $as_echo "$as_me: failed program was:" >&5
 
1816
sed 's/^/| /' conftest.$ac_ext >&5
 
1817
 
 
1818
    ac_retval=1
 
1819
fi
 
1820
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1821
  as_fn_set_status $ac_retval
 
1822
 
 
1823
} # ac_fn_cxx_try_cpp
 
1824
 
 
1825
# ac_fn_cxx_try_link LINENO
 
1826
# -------------------------
 
1827
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1828
ac_fn_cxx_try_link ()
 
1829
{
 
1830
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1831
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1832
  if { { ac_try="$ac_link"
 
1833
case "(($ac_try" in
 
1834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1835
  *) ac_try_echo=$ac_try;;
 
1836
esac
 
1837
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1838
$as_echo "$ac_try_echo"; } >&5
 
1839
  (eval "$ac_link") 2>conftest.err
 
1840
  ac_status=$?
 
1841
  if test -s conftest.err; then
 
1842
    grep -v '^ *+' conftest.err >conftest.er1
 
1843
    cat conftest.er1 >&5
 
1844
    mv -f conftest.er1 conftest.err
 
1845
  fi
 
1846
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1847
  test $ac_status = 0; } && {
 
1848
         test -z "$ac_cxx_werror_flag" ||
 
1849
         test ! -s conftest.err
 
1850
       } && test -s conftest$ac_exeext && {
 
1851
         test "$cross_compiling" = yes ||
 
1852
         $as_test_x conftest$ac_exeext
 
1853
       }; then :
 
1854
  ac_retval=0
 
1855
else
 
1856
  $as_echo "$as_me: failed program was:" >&5
 
1857
sed 's/^/| /' conftest.$ac_ext >&5
 
1858
 
 
1859
        ac_retval=1
 
1860
fi
 
1861
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1862
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1863
  # interfere with the next link command; also delete a directory that is
 
1864
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1865
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1866
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1867
  as_fn_set_status $ac_retval
 
1868
 
 
1869
} # ac_fn_cxx_try_link
 
1870
 
 
1871
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1872
# -------------------------------------------------------
 
1873
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1874
# the include files in INCLUDES and setting the cache variable VAR
 
1875
# accordingly.
 
1876
ac_fn_c_check_header_mongrel ()
 
1877
{
 
1878
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1879
  if eval \${$3+:} false; then :
 
1880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1881
$as_echo_n "checking for $2... " >&6; }
 
1882
if eval \${$3+:} false; then :
 
1883
  $as_echo_n "(cached) " >&6
 
1884
fi
 
1885
eval ac_res=\$$3
 
1886
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1887
$as_echo "$ac_res" >&6; }
 
1888
else
 
1889
  # Is the header compilable?
 
1890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1891
$as_echo_n "checking $2 usability... " >&6; }
 
1892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1893
/* end confdefs.h.  */
 
1894
$4
 
1895
#include <$2>
 
1896
_ACEOF
 
1897
if ac_fn_c_try_compile "$LINENO"; then :
 
1898
  ac_header_compiler=yes
 
1899
else
 
1900
  ac_header_compiler=no
 
1901
fi
 
1902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1904
$as_echo "$ac_header_compiler" >&6; }
 
1905
 
 
1906
# Is the header present?
 
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1908
$as_echo_n "checking $2 presence... " >&6; }
 
1909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1910
/* end confdefs.h.  */
 
1911
#include <$2>
 
1912
_ACEOF
 
1913
if ac_fn_c_try_cpp "$LINENO"; then :
 
1914
  ac_header_preproc=yes
 
1915
else
 
1916
  ac_header_preproc=no
 
1917
fi
 
1918
rm -f conftest.err conftest.i conftest.$ac_ext
 
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1920
$as_echo "$ac_header_preproc" >&6; }
 
1921
 
 
1922
# So?  What about this header?
 
1923
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1924
  yes:no: )
 
1925
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1926
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1927
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1928
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1929
    ;;
 
1930
  no:yes:* )
 
1931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1932
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1933
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1934
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1935
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1936
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1937
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1938
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1939
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1940
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1941
( $as_echo "## ------------------------ ##
 
1942
## Report this to tim@ed.am ##
 
1943
## ------------------------ ##"
 
1944
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1945
    ;;
 
1946
esac
 
1947
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1948
$as_echo_n "checking for $2... " >&6; }
 
1949
if eval \${$3+:} false; then :
 
1950
  $as_echo_n "(cached) " >&6
 
1951
else
 
1952
  eval "$3=\$ac_header_compiler"
 
1953
fi
 
1954
eval ac_res=\$$3
 
1955
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1956
$as_echo "$ac_res" >&6; }
 
1957
fi
 
1958
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1959
 
 
1960
} # ac_fn_c_check_header_mongrel
 
1961
cat >config.log <<_ACEOF
 
1962
This file contains any messages produced by compilers while
 
1963
running configure, to aid debugging if configure makes a mistake.
 
1964
 
 
1965
It was created by sqlite3cc $as_me 0.1, which was
 
1966
generated by GNU Autoconf 2.68.  Invocation command line was
 
1967
 
 
1968
  $ $0 $@
 
1969
 
 
1970
_ACEOF
 
1971
exec 5>>config.log
 
1972
{
 
1973
cat <<_ASUNAME
 
1974
## --------- ##
 
1975
## Platform. ##
 
1976
## --------- ##
 
1977
 
 
1978
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1979
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1980
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1981
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1982
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1983
 
 
1984
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1985
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1986
 
 
1987
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1988
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1989
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1990
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1991
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1992
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1993
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1994
 
 
1995
_ASUNAME
 
1996
 
 
1997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1998
for as_dir in $PATH
 
1999
do
 
2000
  IFS=$as_save_IFS
 
2001
  test -z "$as_dir" && as_dir=.
 
2002
    $as_echo "PATH: $as_dir"
 
2003
  done
 
2004
IFS=$as_save_IFS
 
2005
 
 
2006
} >&5
 
2007
 
 
2008
cat >&5 <<_ACEOF
 
2009
 
 
2010
 
 
2011
## ----------- ##
 
2012
## Core tests. ##
 
2013
## ----------- ##
 
2014
 
 
2015
_ACEOF
 
2016
 
 
2017
 
 
2018
# Keep a trace of the command line.
 
2019
# Strip out --no-create and --no-recursion so they do not pile up.
 
2020
# Strip out --silent because we don't want to record it for future runs.
 
2021
# Also quote any args containing shell meta-characters.
 
2022
# Make two passes to allow for proper duplicate-argument suppression.
 
2023
ac_configure_args=
 
2024
ac_configure_args0=
 
2025
ac_configure_args1=
 
2026
ac_must_keep_next=false
 
2027
for ac_pass in 1 2
 
2028
do
 
2029
  for ac_arg
 
2030
  do
 
2031
    case $ac_arg in
 
2032
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2033
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2034
    | -silent | --silent | --silen | --sile | --sil)
 
2035
      continue ;;
 
2036
    *\'*)
 
2037
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2038
    esac
 
2039
    case $ac_pass in
 
2040
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2041
    2)
 
2042
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2043
      if test $ac_must_keep_next = true; then
 
2044
        ac_must_keep_next=false # Got value, back to normal.
 
2045
      else
 
2046
        case $ac_arg in
 
2047
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2048
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2049
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2050
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2051
            case "$ac_configure_args0 " in
 
2052
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2053
            esac
 
2054
            ;;
 
2055
          -* ) ac_must_keep_next=true ;;
 
2056
        esac
 
2057
      fi
 
2058
      as_fn_append ac_configure_args " '$ac_arg'"
 
2059
      ;;
 
2060
    esac
 
2061
  done
 
2062
done
 
2063
{ ac_configure_args0=; unset ac_configure_args0;}
 
2064
{ ac_configure_args1=; unset ac_configure_args1;}
 
2065
 
 
2066
# When interrupted or exit'd, cleanup temporary files, and complete
 
2067
# config.log.  We remove comments because anyway the quotes in there
 
2068
# would cause problems or look ugly.
 
2069
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2070
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2071
trap 'exit_status=$?
 
2072
  # Save into config.log some information that might help in debugging.
 
2073
  {
 
2074
    echo
 
2075
 
 
2076
    $as_echo "## ---------------- ##
 
2077
## Cache variables. ##
 
2078
## ---------------- ##"
 
2079
    echo
 
2080
    # The following way of writing the cache mishandles newlines in values,
 
2081
(
 
2082
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2083
    eval ac_val=\$$ac_var
 
2084
    case $ac_val in #(
 
2085
    *${as_nl}*)
 
2086
      case $ac_var in #(
 
2087
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2088
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2089
      esac
 
2090
      case $ac_var in #(
 
2091
      _ | IFS | as_nl) ;; #(
 
2092
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2093
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2094
      esac ;;
 
2095
    esac
 
2096
  done
 
2097
  (set) 2>&1 |
 
2098
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2099
    *${as_nl}ac_space=\ *)
 
2100
      sed -n \
 
2101
        "s/'\''/'\''\\\\'\'''\''/g;
 
2102
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2103
      ;; #(
 
2104
    *)
 
2105
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2106
      ;;
 
2107
    esac |
 
2108
    sort
 
2109
)
 
2110
    echo
 
2111
 
 
2112
    $as_echo "## ----------------- ##
 
2113
## Output variables. ##
 
2114
## ----------------- ##"
 
2115
    echo
 
2116
    for ac_var in $ac_subst_vars
 
2117
    do
 
2118
      eval ac_val=\$$ac_var
 
2119
      case $ac_val in
 
2120
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2121
      esac
 
2122
      $as_echo "$ac_var='\''$ac_val'\''"
 
2123
    done | sort
 
2124
    echo
 
2125
 
 
2126
    if test -n "$ac_subst_files"; then
 
2127
      $as_echo "## ------------------- ##
 
2128
## File substitutions. ##
 
2129
## ------------------- ##"
 
2130
      echo
 
2131
      for ac_var in $ac_subst_files
 
2132
      do
 
2133
        eval ac_val=\$$ac_var
 
2134
        case $ac_val in
 
2135
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2136
        esac
 
2137
        $as_echo "$ac_var='\''$ac_val'\''"
 
2138
      done | sort
 
2139
      echo
 
2140
    fi
 
2141
 
 
2142
    if test -s confdefs.h; then
 
2143
      $as_echo "## ----------- ##
 
2144
## confdefs.h. ##
 
2145
## ----------- ##"
 
2146
      echo
 
2147
      cat confdefs.h
 
2148
      echo
 
2149
    fi
 
2150
    test "$ac_signal" != 0 &&
 
2151
      $as_echo "$as_me: caught signal $ac_signal"
 
2152
    $as_echo "$as_me: exit $exit_status"
 
2153
  } >&5
 
2154
  rm -f core *.core core.conftest.* &&
 
2155
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2156
    exit $exit_status
 
2157
' 0
 
2158
for ac_signal in 1 2 13 15; do
 
2159
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2160
done
 
2161
ac_signal=0
 
2162
 
 
2163
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2164
rm -f -r conftest* confdefs.h
 
2165
 
 
2166
$as_echo "/* confdefs.h */" > confdefs.h
 
2167
 
 
2168
# Predefined preprocessor variables.
 
2169
 
 
2170
cat >>confdefs.h <<_ACEOF
 
2171
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2172
_ACEOF
 
2173
 
 
2174
cat >>confdefs.h <<_ACEOF
 
2175
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2176
_ACEOF
 
2177
 
 
2178
cat >>confdefs.h <<_ACEOF
 
2179
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2180
_ACEOF
 
2181
 
 
2182
cat >>confdefs.h <<_ACEOF
 
2183
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2184
_ACEOF
 
2185
 
 
2186
cat >>confdefs.h <<_ACEOF
 
2187
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2188
_ACEOF
 
2189
 
 
2190
cat >>confdefs.h <<_ACEOF
 
2191
#define PACKAGE_URL "$PACKAGE_URL"
 
2192
_ACEOF
 
2193
 
 
2194
 
 
2195
# Let the site file select an alternate cache file if it wants to.
 
2196
# Prefer an explicitly selected file to automatically selected ones.
 
2197
ac_site_file1=NONE
 
2198
ac_site_file2=NONE
 
2199
if test -n "$CONFIG_SITE"; then
 
2200
  # We do not want a PATH search for config.site.
 
2201
  case $CONFIG_SITE in #((
 
2202
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2203
    */*) ac_site_file1=$CONFIG_SITE;;
 
2204
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2205
  esac
 
2206
elif test "x$prefix" != xNONE; then
 
2207
  ac_site_file1=$prefix/share/config.site
 
2208
  ac_site_file2=$prefix/etc/config.site
 
2209
else
 
2210
  ac_site_file1=$ac_default_prefix/share/config.site
 
2211
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2212
fi
 
2213
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2214
do
 
2215
  test "x$ac_site_file" = xNONE && continue
 
2216
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2217
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2218
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2219
    sed 's/^/| /' "$ac_site_file" >&5
 
2220
    . "$ac_site_file" \
 
2221
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2222
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2223
as_fn_error $? "failed to load site script $ac_site_file
 
2224
See \`config.log' for more details" "$LINENO" 5; }
 
2225
  fi
 
2226
done
 
2227
 
 
2228
if test -r "$cache_file"; then
 
2229
  # Some versions of bash will fail to source /dev/null (special files
 
2230
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2231
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2232
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2233
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2234
    case $cache_file in
 
2235
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2236
      *)                      . "./$cache_file";;
 
2237
    esac
 
2238
  fi
 
2239
else
 
2240
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2241
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2242
  >$cache_file
 
2243
fi
 
2244
 
 
2245
# Check that the precious variables saved in the cache have kept the same
 
2246
# value.
 
2247
ac_cache_corrupted=false
 
2248
for ac_var in $ac_precious_vars; do
 
2249
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2250
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2251
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2252
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2253
  case $ac_old_set,$ac_new_set in
 
2254
    set,)
 
2255
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2256
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2257
      ac_cache_corrupted=: ;;
 
2258
    ,set)
 
2259
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2260
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2261
      ac_cache_corrupted=: ;;
 
2262
    ,);;
 
2263
    *)
 
2264
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2265
        # differences in whitespace do not lead to failure.
 
2266
        ac_old_val_w=`echo x $ac_old_val`
 
2267
        ac_new_val_w=`echo x $ac_new_val`
 
2268
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2269
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2270
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2271
          ac_cache_corrupted=:
 
2272
        else
 
2273
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2274
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2275
          eval $ac_var=\$ac_old_val
 
2276
        fi
 
2277
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2278
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2279
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2280
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2281
      fi;;
 
2282
  esac
 
2283
  # Pass precious variables to config.status.
 
2284
  if test "$ac_new_set" = set; then
 
2285
    case $ac_new_val in
 
2286
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2287
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2288
    esac
 
2289
    case " $ac_configure_args " in
 
2290
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2291
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2292
    esac
 
2293
  fi
 
2294
done
 
2295
if $ac_cache_corrupted; then
 
2296
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2297
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2298
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2299
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2300
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2301
fi
 
2302
## -------------------- ##
 
2303
## Main body of script. ##
 
2304
## -------------------- ##
 
2305
 
 
2306
ac_ext=c
 
2307
ac_cpp='$CPP $CPPFLAGS'
 
2308
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2309
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2310
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2311
 
 
2312
 
 
2313
LIBSQLITE3CC_INTERFACE=0:0:0
 
2314
 
 
2315
ac_aux_dir=
 
2316
for ac_dir in build-aux "$srcdir"/build-aux; do
 
2317
  if test -f "$ac_dir/install-sh"; then
 
2318
    ac_aux_dir=$ac_dir
 
2319
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2320
    break
 
2321
  elif test -f "$ac_dir/install.sh"; then
 
2322
    ac_aux_dir=$ac_dir
 
2323
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2324
    break
 
2325
  elif test -f "$ac_dir/shtool"; then
 
2326
    ac_aux_dir=$ac_dir
 
2327
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2328
    break
 
2329
  fi
 
2330
done
 
2331
if test -z "$ac_aux_dir"; then
 
2332
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
2333
fi
 
2334
 
 
2335
# These three variables are undocumented and unsupported,
 
2336
# and are intended to be withdrawn in a future Autoconf release.
 
2337
# They can cause serious problems if a builder's source tree is in a directory
 
2338
# whose full name contains unusual characters.
 
2339
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2340
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2341
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2342
 
 
2343
 
 
2344
 
 
2345
am__api_version='1.11'
 
2346
 
 
2347
# Find a good install program.  We prefer a C program (faster),
 
2348
# so one script is as good as another.  But avoid the broken or
 
2349
# incompatible versions:
 
2350
# SysV /etc/install, /usr/sbin/install
 
2351
# SunOS /usr/etc/install
 
2352
# IRIX /sbin/install
 
2353
# AIX /bin/install
 
2354
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2355
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2356
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2357
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2358
# OS/2's system install, which has a completely different semantic
 
2359
# ./install, which can be erroneously created by make from ./install.sh.
 
2360
# Reject install programs that cannot install multiple files.
 
2361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2362
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2363
if test -z "$INSTALL"; then
 
2364
if ${ac_cv_path_install+:} false; then :
 
2365
  $as_echo_n "(cached) " >&6
 
2366
else
 
2367
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2368
for as_dir in $PATH
 
2369
do
 
2370
  IFS=$as_save_IFS
 
2371
  test -z "$as_dir" && as_dir=.
 
2372
    # Account for people who put trailing slashes in PATH elements.
 
2373
case $as_dir/ in #((
 
2374
  ./ | .// | /[cC]/* | \
 
2375
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2376
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2377
  /usr/ucb/* ) ;;
 
2378
  *)
 
2379
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2380
    # Don't use installbsd from OSF since it installs stuff as root
 
2381
    # by default.
 
2382
    for ac_prog in ginstall scoinst install; do
 
2383
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2384
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2385
          if test $ac_prog = install &&
 
2386
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2387
            # AIX install.  It has an incompatible calling convention.
 
2388
            :
 
2389
          elif test $ac_prog = install &&
 
2390
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2391
            # program-specific install script used by HP pwplus--don't use.
 
2392
            :
 
2393
          else
 
2394
            rm -rf conftest.one conftest.two conftest.dir
 
2395
            echo one > conftest.one
 
2396
            echo two > conftest.two
 
2397
            mkdir conftest.dir
 
2398
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2399
              test -s conftest.one && test -s conftest.two &&
 
2400
              test -s conftest.dir/conftest.one &&
 
2401
              test -s conftest.dir/conftest.two
 
2402
            then
 
2403
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2404
              break 3
 
2405
            fi
 
2406
          fi
 
2407
        fi
 
2408
      done
 
2409
    done
 
2410
    ;;
 
2411
esac
 
2412
 
 
2413
  done
 
2414
IFS=$as_save_IFS
 
2415
 
 
2416
rm -rf conftest.one conftest.two conftest.dir
 
2417
 
 
2418
fi
 
2419
  if test "${ac_cv_path_install+set}" = set; then
 
2420
    INSTALL=$ac_cv_path_install
 
2421
  else
 
2422
    # As a last resort, use the slow shell script.  Don't cache a
 
2423
    # value for INSTALL within a source directory, because that will
 
2424
    # break other packages using the cache if that directory is
 
2425
    # removed, or if the value is a relative name.
 
2426
    INSTALL=$ac_install_sh
 
2427
  fi
 
2428
fi
 
2429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2430
$as_echo "$INSTALL" >&6; }
 
2431
 
 
2432
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2433
# It thinks the first close brace ends the variable substitution.
 
2434
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2435
 
 
2436
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2437
 
 
2438
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2439
 
 
2440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2441
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2442
# Just in case
 
2443
sleep 1
 
2444
echo timestamp > conftest.file
 
2445
# Reject unsafe characters in $srcdir or the absolute working directory
 
2446
# name.  Accept space and tab only in the latter.
 
2447
am_lf='
 
2448
'
 
2449
case `pwd` in
 
2450
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2451
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2452
esac
 
2453
case $srcdir in
 
2454
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2455
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2456
esac
 
2457
 
 
2458
# Do `set' in a subshell so we don't clobber the current shell's
 
2459
# arguments.  Must try -L first in case configure is actually a
 
2460
# symlink; some systems play weird games with the mod time of symlinks
 
2461
# (eg FreeBSD returns the mod time of the symlink's containing
 
2462
# directory).
 
2463
if (
 
2464
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2465
   if test "$*" = "X"; then
 
2466
      # -L didn't work.
 
2467
      set X `ls -t "$srcdir/configure" conftest.file`
 
2468
   fi
 
2469
   rm -f conftest.file
 
2470
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2471
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2472
 
 
2473
      # If neither matched, then we have a broken ls.  This can happen
 
2474
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2475
      # broken ls alias from the environment.  This has actually
 
2476
      # happened.  Such a system could not be considered "sane".
 
2477
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2478
alias in your environment" "$LINENO" 5
 
2479
   fi
 
2480
 
 
2481
   test "$2" = conftest.file
 
2482
   )
 
2483
then
 
2484
   # Ok.
 
2485
   :
 
2486
else
 
2487
   as_fn_error $? "newly created file is older than distributed files!
 
2488
Check your system clock" "$LINENO" 5
 
2489
fi
 
2490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2491
$as_echo "yes" >&6; }
 
2492
test "$program_prefix" != NONE &&
 
2493
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2494
# Use a double $ so make ignores it.
 
2495
test "$program_suffix" != NONE &&
 
2496
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2497
# Double any \ or $.
 
2498
# By default was `s,x,x', remove it if useless.
 
2499
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2500
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2501
 
 
2502
# expand $ac_aux_dir to an absolute path
 
2503
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2504
 
 
2505
if test x"${MISSING+set}" != xset; then
 
2506
  case $am_aux_dir in
 
2507
  *\ * | *\     *)
 
2508
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2509
  *)
 
2510
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2511
  esac
 
2512
fi
 
2513
# Use eval to expand $SHELL
 
2514
if eval "$MISSING --run true"; then
 
2515
  am_missing_run="$MISSING --run "
 
2516
else
 
2517
  am_missing_run=
 
2518
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2519
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2520
fi
 
2521
 
 
2522
if test x"${install_sh}" != xset; then
 
2523
  case $am_aux_dir in
 
2524
  *\ * | *\     *)
 
2525
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2526
  *)
 
2527
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2528
  esac
 
2529
fi
 
2530
 
 
2531
# Installed binaries are usually stripped using `strip' when the user
 
2532
# run `make install-strip'.  However `strip' might not be the right
 
2533
# tool to use in cross-compilation environments, therefore Automake
 
2534
# will honor the `STRIP' environment variable to overrule this program.
 
2535
if test "$cross_compiling" != no; then
 
2536
  if test -n "$ac_tool_prefix"; then
 
2537
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2538
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2540
$as_echo_n "checking for $ac_word... " >&6; }
 
2541
if ${ac_cv_prog_STRIP+:} false; then :
 
2542
  $as_echo_n "(cached) " >&6
 
2543
else
 
2544
  if test -n "$STRIP"; then
 
2545
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2546
else
 
2547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2548
for as_dir in $PATH
 
2549
do
 
2550
  IFS=$as_save_IFS
 
2551
  test -z "$as_dir" && as_dir=.
 
2552
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2554
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2555
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2556
    break 2
 
2557
  fi
 
2558
done
 
2559
  done
 
2560
IFS=$as_save_IFS
 
2561
 
 
2562
fi
 
2563
fi
 
2564
STRIP=$ac_cv_prog_STRIP
 
2565
if test -n "$STRIP"; then
 
2566
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2567
$as_echo "$STRIP" >&6; }
 
2568
else
 
2569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2570
$as_echo "no" >&6; }
 
2571
fi
 
2572
 
 
2573
 
 
2574
fi
 
2575
if test -z "$ac_cv_prog_STRIP"; then
 
2576
  ac_ct_STRIP=$STRIP
 
2577
  # Extract the first word of "strip", so it can be a program name with args.
 
2578
set dummy strip; ac_word=$2
 
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2580
$as_echo_n "checking for $ac_word... " >&6; }
 
2581
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2582
  $as_echo_n "(cached) " >&6
 
2583
else
 
2584
  if test -n "$ac_ct_STRIP"; then
 
2585
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2586
else
 
2587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2588
for as_dir in $PATH
 
2589
do
 
2590
  IFS=$as_save_IFS
 
2591
  test -z "$as_dir" && as_dir=.
 
2592
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2593
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2594
    ac_cv_prog_ac_ct_STRIP="strip"
 
2595
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2596
    break 2
 
2597
  fi
 
2598
done
 
2599
  done
 
2600
IFS=$as_save_IFS
 
2601
 
 
2602
fi
 
2603
fi
 
2604
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2605
if test -n "$ac_ct_STRIP"; then
 
2606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2607
$as_echo "$ac_ct_STRIP" >&6; }
 
2608
else
 
2609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2610
$as_echo "no" >&6; }
 
2611
fi
 
2612
 
 
2613
  if test "x$ac_ct_STRIP" = x; then
 
2614
    STRIP=":"
 
2615
  else
 
2616
    case $cross_compiling:$ac_tool_warned in
 
2617
yes:)
 
2618
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2619
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2620
ac_tool_warned=yes ;;
 
2621
esac
 
2622
    STRIP=$ac_ct_STRIP
 
2623
  fi
 
2624
else
 
2625
  STRIP="$ac_cv_prog_STRIP"
 
2626
fi
 
2627
 
 
2628
fi
 
2629
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2630
 
 
2631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2632
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2633
if test -z "$MKDIR_P"; then
 
2634
  if ${ac_cv_path_mkdir+:} false; then :
 
2635
  $as_echo_n "(cached) " >&6
 
2636
else
 
2637
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2638
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2639
do
 
2640
  IFS=$as_save_IFS
 
2641
  test -z "$as_dir" && as_dir=.
 
2642
    for ac_prog in mkdir gmkdir; do
 
2643
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2644
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2645
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2646
             'mkdir (GNU coreutils) '* | \
 
2647
             'mkdir (coreutils) '* | \
 
2648
             'mkdir (fileutils) '4.1*)
 
2649
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2650
               break 3;;
 
2651
           esac
 
2652
         done
 
2653
       done
 
2654
  done
 
2655
IFS=$as_save_IFS
 
2656
 
 
2657
fi
 
2658
 
 
2659
  test -d ./--version && rmdir ./--version
 
2660
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2661
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2662
  else
 
2663
    # As a last resort, use the slow shell script.  Don't cache a
 
2664
    # value for MKDIR_P within a source directory, because that will
 
2665
    # break other packages using the cache if that directory is
 
2666
    # removed, or if the value is a relative name.
 
2667
    MKDIR_P="$ac_install_sh -d"
 
2668
  fi
 
2669
fi
 
2670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2671
$as_echo "$MKDIR_P" >&6; }
 
2672
 
 
2673
mkdir_p="$MKDIR_P"
 
2674
case $mkdir_p in
 
2675
  [\\/$]* | ?:[\\/]*) ;;
 
2676
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2677
esac
 
2678
 
 
2679
for ac_prog in gawk mawk nawk awk
 
2680
do
 
2681
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2682
set dummy $ac_prog; ac_word=$2
 
2683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2684
$as_echo_n "checking for $ac_word... " >&6; }
 
2685
if ${ac_cv_prog_AWK+:} false; then :
 
2686
  $as_echo_n "(cached) " >&6
 
2687
else
 
2688
  if test -n "$AWK"; then
 
2689
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2690
else
 
2691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2692
for as_dir in $PATH
 
2693
do
 
2694
  IFS=$as_save_IFS
 
2695
  test -z "$as_dir" && as_dir=.
 
2696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2698
    ac_cv_prog_AWK="$ac_prog"
 
2699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2700
    break 2
 
2701
  fi
 
2702
done
 
2703
  done
 
2704
IFS=$as_save_IFS
 
2705
 
 
2706
fi
 
2707
fi
 
2708
AWK=$ac_cv_prog_AWK
 
2709
if test -n "$AWK"; then
 
2710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2711
$as_echo "$AWK" >&6; }
 
2712
else
 
2713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2714
$as_echo "no" >&6; }
 
2715
fi
 
2716
 
 
2717
 
 
2718
  test -n "$AWK" && break
 
2719
done
 
2720
 
 
2721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2722
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2723
set x ${MAKE-make}
 
2724
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2725
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2726
  $as_echo_n "(cached) " >&6
 
2727
else
 
2728
  cat >conftest.make <<\_ACEOF
 
2729
SHELL = /bin/sh
 
2730
all:
 
2731
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2732
_ACEOF
 
2733
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2734
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2735
  *@@@%%%=?*=@@@%%%*)
 
2736
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2737
  *)
 
2738
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2739
esac
 
2740
rm -f conftest.make
 
2741
fi
 
2742
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2743
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2744
$as_echo "yes" >&6; }
 
2745
  SET_MAKE=
 
2746
else
 
2747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2748
$as_echo "no" >&6; }
 
2749
  SET_MAKE="MAKE=${MAKE-make}"
 
2750
fi
 
2751
 
 
2752
rm -rf .tst 2>/dev/null
 
2753
mkdir .tst 2>/dev/null
 
2754
if test -d .tst; then
 
2755
  am__leading_dot=.
 
2756
else
 
2757
  am__leading_dot=_
 
2758
fi
 
2759
rmdir .tst 2>/dev/null
 
2760
 
 
2761
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2762
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2763
  # is not polluted with repeated "-I."
 
2764
  am__isrc=' -I$(srcdir)'
 
2765
  # test to see if srcdir already configured
 
2766
  if test -f $srcdir/config.status; then
 
2767
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2768
  fi
 
2769
fi
 
2770
 
 
2771
# test whether we have cygpath
 
2772
if test -z "$CYGPATH_W"; then
 
2773
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2774
    CYGPATH_W='cygpath -w'
 
2775
  else
 
2776
    CYGPATH_W=echo
 
2777
  fi
 
2778
fi
 
2779
 
 
2780
 
 
2781
# Define the identity of the package.
 
2782
 PACKAGE='sqlite3cc'
 
2783
 VERSION='0.1'
 
2784
 
 
2785
 
 
2786
cat >>confdefs.h <<_ACEOF
 
2787
#define PACKAGE "$PACKAGE"
 
2788
_ACEOF
 
2789
 
 
2790
 
 
2791
cat >>confdefs.h <<_ACEOF
 
2792
#define VERSION "$VERSION"
 
2793
_ACEOF
 
2794
 
 
2795
# Some tools Automake needs.
 
2796
 
 
2797
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2798
 
 
2799
 
 
2800
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2801
 
 
2802
 
 
2803
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2804
 
 
2805
 
 
2806
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2807
 
 
2808
 
 
2809
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2810
 
 
2811
# We need awk for the "check" target.  The system "awk" is bad on
 
2812
# some platforms.
 
2813
# Always define AMTAR for backward compatibility.
 
2814
 
 
2815
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2816
 
 
2817
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2818
 
 
2819
 
 
2820
 
 
2821
 
 
2822
 
 
2823
 
 
2824
ac_config_headers="$ac_config_headers config.h"
 
2825
 
 
2826
 
 
2827
# checks for programs.
 
2828
ac_ext=cpp
 
2829
ac_cpp='$CXXCPP $CPPFLAGS'
 
2830
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2831
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2832
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2833
if test -z "$CXX"; then
 
2834
  if test -n "$CCC"; then
 
2835
    CXX=$CCC
 
2836
  else
 
2837
    if test -n "$ac_tool_prefix"; then
 
2838
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2839
  do
 
2840
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2841
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2843
$as_echo_n "checking for $ac_word... " >&6; }
 
2844
if ${ac_cv_prog_CXX+:} false; then :
 
2845
  $as_echo_n "(cached) " >&6
 
2846
else
 
2847
  if test -n "$CXX"; then
 
2848
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2849
else
 
2850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2851
for as_dir in $PATH
 
2852
do
 
2853
  IFS=$as_save_IFS
 
2854
  test -z "$as_dir" && as_dir=.
 
2855
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2856
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2857
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2858
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2859
    break 2
 
2860
  fi
 
2861
done
 
2862
  done
 
2863
IFS=$as_save_IFS
 
2864
 
 
2865
fi
 
2866
fi
 
2867
CXX=$ac_cv_prog_CXX
 
2868
if test -n "$CXX"; then
 
2869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
2870
$as_echo "$CXX" >&6; }
 
2871
else
 
2872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2873
$as_echo "no" >&6; }
 
2874
fi
 
2875
 
 
2876
 
 
2877
    test -n "$CXX" && break
 
2878
  done
 
2879
fi
 
2880
if test -z "$CXX"; then
 
2881
  ac_ct_CXX=$CXX
 
2882
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2883
do
 
2884
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2885
set dummy $ac_prog; ac_word=$2
 
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2887
$as_echo_n "checking for $ac_word... " >&6; }
 
2888
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
2889
  $as_echo_n "(cached) " >&6
 
2890
else
 
2891
  if test -n "$ac_ct_CXX"; then
 
2892
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2893
else
 
2894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2895
for as_dir in $PATH
 
2896
do
 
2897
  IFS=$as_save_IFS
 
2898
  test -z "$as_dir" && as_dir=.
 
2899
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2900
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2901
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2902
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2903
    break 2
 
2904
  fi
 
2905
done
 
2906
  done
 
2907
IFS=$as_save_IFS
 
2908
 
 
2909
fi
 
2910
fi
 
2911
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2912
if test -n "$ac_ct_CXX"; then
 
2913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
2914
$as_echo "$ac_ct_CXX" >&6; }
 
2915
else
 
2916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2917
$as_echo "no" >&6; }
 
2918
fi
 
2919
 
 
2920
 
 
2921
  test -n "$ac_ct_CXX" && break
 
2922
done
 
2923
 
 
2924
  if test "x$ac_ct_CXX" = x; then
 
2925
    CXX="g++"
 
2926
  else
 
2927
    case $cross_compiling:$ac_tool_warned in
 
2928
yes:)
 
2929
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2930
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2931
ac_tool_warned=yes ;;
 
2932
esac
 
2933
    CXX=$ac_ct_CXX
 
2934
  fi
 
2935
fi
 
2936
 
 
2937
  fi
 
2938
fi
 
2939
# Provide some information about the compiler.
 
2940
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
2941
set X $ac_compile
 
2942
ac_compiler=$2
 
2943
for ac_option in --version -v -V -qversion; do
 
2944
  { { ac_try="$ac_compiler $ac_option >&5"
 
2945
case "(($ac_try" in
 
2946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2947
  *) ac_try_echo=$ac_try;;
 
2948
esac
 
2949
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2950
$as_echo "$ac_try_echo"; } >&5
 
2951
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2952
  ac_status=$?
 
2953
  if test -s conftest.err; then
 
2954
    sed '10a\
 
2955
... rest of stderr output deleted ...
 
2956
         10q' conftest.err >conftest.er1
 
2957
    cat conftest.er1 >&5
 
2958
  fi
 
2959
  rm -f conftest.er1 conftest.err
 
2960
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2961
  test $ac_status = 0; }
 
2962
done
 
2963
 
 
2964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2965
/* end confdefs.h.  */
 
2966
 
 
2967
int
 
2968
main ()
 
2969
{
 
2970
 
 
2971
  ;
 
2972
  return 0;
 
2973
}
 
2974
_ACEOF
 
2975
ac_clean_files_save=$ac_clean_files
 
2976
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2977
# Try to create an executable without -o first, disregard a.out.
 
2978
# It will help us diagnose broken compilers, and finding out an intuition
 
2979
# of exeext.
 
2980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
2981
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
2982
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2983
 
 
2984
# The possible output files:
 
2985
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2986
 
 
2987
ac_rmfiles=
 
2988
for ac_file in $ac_files
 
2989
do
 
2990
  case $ac_file in
 
2991
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2992
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2993
  esac
 
2994
done
 
2995
rm -f $ac_rmfiles
 
2996
 
 
2997
if { { ac_try="$ac_link_default"
 
2998
case "(($ac_try" in
 
2999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3000
  *) ac_try_echo=$ac_try;;
 
3001
esac
 
3002
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3003
$as_echo "$ac_try_echo"; } >&5
 
3004
  (eval "$ac_link_default") 2>&5
 
3005
  ac_status=$?
 
3006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3007
  test $ac_status = 0; }; then :
 
3008
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3009
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3010
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3011
# so that the user can short-circuit this test for compilers unknown to
 
3012
# Autoconf.
 
3013
for ac_file in $ac_files ''
 
3014
do
 
3015
  test -f "$ac_file" || continue
 
3016
  case $ac_file in
 
3017
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3018
        ;;
 
3019
    [ab].out )
 
3020
        # We found the default executable, but exeext='' is most
 
3021
        # certainly right.
 
3022
        break;;
 
3023
    *.* )
 
3024
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3025
        then :; else
 
3026
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3027
        fi
 
3028
        # We set ac_cv_exeext here because the later test for it is not
 
3029
        # safe: cross compilers may not add the suffix if given an `-o'
 
3030
        # argument, so we may need to know it at that point already.
 
3031
        # Even if this section looks crufty: it has the advantage of
 
3032
        # actually working.
 
3033
        break;;
 
3034
    * )
 
3035
        break;;
 
3036
  esac
 
3037
done
 
3038
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3039
 
 
3040
else
 
3041
  ac_file=''
 
3042
fi
 
3043
if test -z "$ac_file"; then :
 
3044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3045
$as_echo "no" >&6; }
 
3046
$as_echo "$as_me: failed program was:" >&5
 
3047
sed 's/^/| /' conftest.$ac_ext >&5
 
3048
 
 
3049
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3050
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3051
as_fn_error 77 "C++ compiler cannot create executables
 
3052
See \`config.log' for more details" "$LINENO" 5; }
 
3053
else
 
3054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3055
$as_echo "yes" >&6; }
 
3056
fi
 
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 
3058
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3060
$as_echo "$ac_file" >&6; }
 
3061
ac_exeext=$ac_cv_exeext
 
3062
 
 
3063
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3064
ac_clean_files=$ac_clean_files_save
 
3065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3066
$as_echo_n "checking for suffix of executables... " >&6; }
 
3067
if { { ac_try="$ac_link"
 
3068
case "(($ac_try" in
 
3069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3070
  *) ac_try_echo=$ac_try;;
 
3071
esac
 
3072
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3073
$as_echo "$ac_try_echo"; } >&5
 
3074
  (eval "$ac_link") 2>&5
 
3075
  ac_status=$?
 
3076
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3077
  test $ac_status = 0; }; then :
 
3078
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3079
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3080
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3081
# `rm'.
 
3082
for ac_file in conftest.exe conftest conftest.*; do
 
3083
  test -f "$ac_file" || continue
 
3084
  case $ac_file in
 
3085
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3086
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3087
          break;;
 
3088
    * ) break;;
 
3089
  esac
 
3090
done
 
3091
else
 
3092
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3093
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3094
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3095
See \`config.log' for more details" "$LINENO" 5; }
 
3096
fi
 
3097
rm -f conftest conftest$ac_cv_exeext
 
3098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3099
$as_echo "$ac_cv_exeext" >&6; }
 
3100
 
 
3101
rm -f conftest.$ac_ext
 
3102
EXEEXT=$ac_cv_exeext
 
3103
ac_exeext=$EXEEXT
 
3104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3105
/* end confdefs.h.  */
 
3106
#include <stdio.h>
 
3107
int
 
3108
main ()
 
3109
{
 
3110
FILE *f = fopen ("conftest.out", "w");
 
3111
 return ferror (f) || fclose (f) != 0;
 
3112
 
 
3113
  ;
 
3114
  return 0;
 
3115
}
 
3116
_ACEOF
 
3117
ac_clean_files="$ac_clean_files conftest.out"
 
3118
# Check that the compiler produces executables we can run.  If not, either
 
3119
# the compiler is broken, or we cross compile.
 
3120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3121
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3122
if test "$cross_compiling" != yes; then
 
3123
  { { ac_try="$ac_link"
 
3124
case "(($ac_try" in
 
3125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3126
  *) ac_try_echo=$ac_try;;
 
3127
esac
 
3128
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3129
$as_echo "$ac_try_echo"; } >&5
 
3130
  (eval "$ac_link") 2>&5
 
3131
  ac_status=$?
 
3132
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3133
  test $ac_status = 0; }
 
3134
  if { ac_try='./conftest$ac_cv_exeext'
 
3135
  { { case "(($ac_try" in
 
3136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3137
  *) ac_try_echo=$ac_try;;
 
3138
esac
 
3139
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3140
$as_echo "$ac_try_echo"; } >&5
 
3141
  (eval "$ac_try") 2>&5
 
3142
  ac_status=$?
 
3143
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3144
  test $ac_status = 0; }; }; then
 
3145
    cross_compiling=no
 
3146
  else
 
3147
    if test "$cross_compiling" = maybe; then
 
3148
        cross_compiling=yes
 
3149
    else
 
3150
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3151
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3152
as_fn_error $? "cannot run C++ compiled programs.
 
3153
If you meant to cross compile, use \`--host'.
 
3154
See \`config.log' for more details" "$LINENO" 5; }
 
3155
    fi
 
3156
  fi
 
3157
fi
 
3158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3159
$as_echo "$cross_compiling" >&6; }
 
3160
 
 
3161
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3162
ac_clean_files=$ac_clean_files_save
 
3163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3164
$as_echo_n "checking for suffix of object files... " >&6; }
 
3165
if ${ac_cv_objext+:} false; then :
 
3166
  $as_echo_n "(cached) " >&6
 
3167
else
 
3168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3169
/* end confdefs.h.  */
 
3170
 
 
3171
int
 
3172
main ()
 
3173
{
 
3174
 
 
3175
  ;
 
3176
  return 0;
 
3177
}
 
3178
_ACEOF
 
3179
rm -f conftest.o conftest.obj
 
3180
if { { ac_try="$ac_compile"
 
3181
case "(($ac_try" in
 
3182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3183
  *) ac_try_echo=$ac_try;;
 
3184
esac
 
3185
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3186
$as_echo "$ac_try_echo"; } >&5
 
3187
  (eval "$ac_compile") 2>&5
 
3188
  ac_status=$?
 
3189
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3190
  test $ac_status = 0; }; then :
 
3191
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3192
  test -f "$ac_file" || continue;
 
3193
  case $ac_file in
 
3194
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3195
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3196
       break;;
 
3197
  esac
 
3198
done
 
3199
else
 
3200
  $as_echo "$as_me: failed program was:" >&5
 
3201
sed 's/^/| /' conftest.$ac_ext >&5
 
3202
 
 
3203
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3204
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3205
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3206
See \`config.log' for more details" "$LINENO" 5; }
 
3207
fi
 
3208
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3209
fi
 
3210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3211
$as_echo "$ac_cv_objext" >&6; }
 
3212
OBJEXT=$ac_cv_objext
 
3213
ac_objext=$OBJEXT
 
3214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3215
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3216
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
3217
  $as_echo_n "(cached) " >&6
 
3218
else
 
3219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3220
/* end confdefs.h.  */
 
3221
 
 
3222
int
 
3223
main ()
 
3224
{
 
3225
#ifndef __GNUC__
 
3226
       choke me
 
3227
#endif
 
3228
 
 
3229
  ;
 
3230
  return 0;
 
3231
}
 
3232
_ACEOF
 
3233
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3234
  ac_compiler_gnu=yes
 
3235
else
 
3236
  ac_compiler_gnu=no
 
3237
fi
 
3238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3239
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3240
 
 
3241
fi
 
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3243
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3244
if test $ac_compiler_gnu = yes; then
 
3245
  GXX=yes
 
3246
else
 
3247
  GXX=
 
3248
fi
 
3249
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3250
ac_save_CXXFLAGS=$CXXFLAGS
 
3251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3252
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3253
if ${ac_cv_prog_cxx_g+:} false; then :
 
3254
  $as_echo_n "(cached) " >&6
 
3255
else
 
3256
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3257
   ac_cxx_werror_flag=yes
 
3258
   ac_cv_prog_cxx_g=no
 
3259
   CXXFLAGS="-g"
 
3260
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3261
/* end confdefs.h.  */
 
3262
 
 
3263
int
 
3264
main ()
 
3265
{
 
3266
 
 
3267
  ;
 
3268
  return 0;
 
3269
}
 
3270
_ACEOF
 
3271
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3272
  ac_cv_prog_cxx_g=yes
 
3273
else
 
3274
  CXXFLAGS=""
 
3275
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3276
/* end confdefs.h.  */
 
3277
 
 
3278
int
 
3279
main ()
 
3280
{
 
3281
 
 
3282
  ;
 
3283
  return 0;
 
3284
}
 
3285
_ACEOF
 
3286
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3287
 
 
3288
else
 
3289
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3290
         CXXFLAGS="-g"
 
3291
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3292
/* end confdefs.h.  */
 
3293
 
 
3294
int
 
3295
main ()
 
3296
{
 
3297
 
 
3298
  ;
 
3299
  return 0;
 
3300
}
 
3301
_ACEOF
 
3302
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3303
  ac_cv_prog_cxx_g=yes
 
3304
fi
 
3305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3306
fi
 
3307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3308
fi
 
3309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3310
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3311
fi
 
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3313
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3314
if test "$ac_test_CXXFLAGS" = set; then
 
3315
  CXXFLAGS=$ac_save_CXXFLAGS
 
3316
elif test $ac_cv_prog_cxx_g = yes; then
 
3317
  if test "$GXX" = yes; then
 
3318
    CXXFLAGS="-g -O2"
 
3319
  else
 
3320
    CXXFLAGS="-g"
 
3321
  fi
 
3322
else
 
3323
  if test "$GXX" = yes; then
 
3324
    CXXFLAGS="-O2"
 
3325
  else
 
3326
    CXXFLAGS=
 
3327
  fi
 
3328
fi
 
3329
ac_ext=c
 
3330
ac_cpp='$CPP $CPPFLAGS'
 
3331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3334
DEPDIR="${am__leading_dot}deps"
 
3335
 
 
3336
ac_config_commands="$ac_config_commands depfiles"
 
3337
 
 
3338
 
 
3339
am_make=${MAKE-make}
 
3340
cat > confinc << 'END'
 
3341
am__doit:
 
3342
        @echo this is the am__doit target
 
3343
.PHONY: am__doit
 
3344
END
 
3345
# If we don't find an include directive, just comment out the code.
 
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3347
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3348
am__include="#"
 
3349
am__quote=
 
3350
_am_result=none
 
3351
# First try GNU make style include.
 
3352
echo "include confinc" > confmf
 
3353
# Ignore all kinds of additional output from `make'.
 
3354
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3355
*the\ am__doit\ target*)
 
3356
  am__include=include
 
3357
  am__quote=
 
3358
  _am_result=GNU
 
3359
  ;;
 
3360
esac
 
3361
# Now try BSD make style include.
 
3362
if test "$am__include" = "#"; then
 
3363
   echo '.include "confinc"' > confmf
 
3364
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3365
   *the\ am__doit\ target*)
 
3366
     am__include=.include
 
3367
     am__quote="\""
 
3368
     _am_result=BSD
 
3369
     ;;
 
3370
   esac
 
3371
fi
 
3372
 
 
3373
 
 
3374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3375
$as_echo "$_am_result" >&6; }
 
3376
rm -f confinc confmf
 
3377
 
 
3378
# Check whether --enable-dependency-tracking was given.
 
3379
if test "${enable_dependency_tracking+set}" = set; then :
 
3380
  enableval=$enable_dependency_tracking;
 
3381
fi
 
3382
 
 
3383
if test "x$enable_dependency_tracking" != xno; then
 
3384
  am_depcomp="$ac_aux_dir/depcomp"
 
3385
  AMDEPBACKSLASH='\'
 
3386
fi
 
3387
 if test "x$enable_dependency_tracking" != xno; then
 
3388
  AMDEP_TRUE=
 
3389
  AMDEP_FALSE='#'
 
3390
else
 
3391
  AMDEP_TRUE='#'
 
3392
  AMDEP_FALSE=
 
3393
fi
 
3394
 
 
3395
 
 
3396
 
 
3397
depcc="$CXX"  am_compiler_list=
 
3398
 
 
3399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3400
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3401
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
3402
  $as_echo_n "(cached) " >&6
 
3403
else
 
3404
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3405
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3406
  # making bogus files that we don't know about and never remove.  For
 
3407
  # instance it was reported that on HP-UX the gcc test will end up
 
3408
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3409
  # in D'.
 
3410
  mkdir conftest.dir
 
3411
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3412
  # using a relative directory.
 
3413
  cp "$am_depcomp" conftest.dir
 
3414
  cd conftest.dir
 
3415
  # We will build objects and dependencies in a subdirectory because
 
3416
  # it helps to detect inapplicable dependency modes.  For instance
 
3417
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3418
  # side effect of compilation, but ICC will put the dependencies in
 
3419
  # the current directory while Tru64 will put them in the object
 
3420
  # directory.
 
3421
  mkdir sub
 
3422
 
 
3423
  am_cv_CXX_dependencies_compiler_type=none
 
3424
  if test "$am_compiler_list" = ""; then
 
3425
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3426
  fi
 
3427
  am__universal=false
 
3428
  case " $depcc " in #(
 
3429
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3430
     esac
 
3431
 
 
3432
  for depmode in $am_compiler_list; do
 
3433
    # Setup a source with many dependencies, because some compilers
 
3434
    # like to wrap large dependency lists on column 80 (with \), and
 
3435
    # we should not choose a depcomp mode which is confused by this.
 
3436
    #
 
3437
    # We need to recreate these files for each test, as the compiler may
 
3438
    # overwrite some of them when testing with obscure command lines.
 
3439
    # This happens at least with the AIX C compiler.
 
3440
    : > sub/conftest.c
 
3441
    for i in 1 2 3 4 5 6; do
 
3442
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3443
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3444
      # Solaris 8's {/usr,}/bin/sh.
 
3445
      touch sub/conftst$i.h
 
3446
    done
 
3447
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3448
 
 
3449
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3450
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3451
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3452
    # versions had trouble with output in subdirs
 
3453
    am__obj=sub/conftest.${OBJEXT-o}
 
3454
    am__minus_obj="-o $am__obj"
 
3455
    case $depmode in
 
3456
    gcc)
 
3457
      # This depmode causes a compiler race in universal mode.
 
3458
      test "$am__universal" = false || continue
 
3459
      ;;
 
3460
    nosideeffect)
 
3461
      # after this tag, mechanisms are not by side-effect, so they'll
 
3462
      # only be used when explicitly requested
 
3463
      if test "x$enable_dependency_tracking" = xyes; then
 
3464
        continue
 
3465
      else
 
3466
        break
 
3467
      fi
 
3468
      ;;
 
3469
    msvisualcpp | msvcmsys)
 
3470
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3471
      # not run yet.  These depmodes are late enough in the game, and
 
3472
      # so weak that their functioning should not be impacted.
 
3473
      am__obj=conftest.${OBJEXT-o}
 
3474
      am__minus_obj=
 
3475
      ;;
 
3476
    none) break ;;
 
3477
    esac
 
3478
    if depmode=$depmode \
 
3479
       source=sub/conftest.c object=$am__obj \
 
3480
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3481
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3482
         >/dev/null 2>conftest.err &&
 
3483
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3484
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3485
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3486
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3487
      # icc doesn't choke on unknown options, it will just issue warnings
 
3488
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3489
      # that says an option was ignored or not supported.
 
3490
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3491
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3492
      # The diagnosis changed in icc 8.0:
 
3493
      #   icc: Command line remark: option '-MP' not supported
 
3494
      if (grep 'ignoring option' conftest.err ||
 
3495
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3496
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3497
        break
 
3498
      fi
 
3499
    fi
 
3500
  done
 
3501
 
 
3502
  cd ..
 
3503
  rm -rf conftest.dir
 
3504
else
 
3505
  am_cv_CXX_dependencies_compiler_type=none
 
3506
fi
 
3507
 
 
3508
fi
 
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3510
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3511
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3512
 
 
3513
 if
 
3514
  test "x$enable_dependency_tracking" != xno \
 
3515
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3516
  am__fastdepCXX_TRUE=
 
3517
  am__fastdepCXX_FALSE='#'
 
3518
else
 
3519
  am__fastdepCXX_TRUE='#'
 
3520
  am__fastdepCXX_FALSE=
 
3521
fi
 
3522
 
 
3523
 
 
3524
case `pwd` in
 
3525
  *\ * | *\     *)
 
3526
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3527
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3528
esac
 
3529
 
 
3530
 
 
3531
 
 
3532
macro_version='2.4.2'
 
3533
macro_revision='1.3337'
 
3534
 
 
3535
 
 
3536
 
 
3537
 
 
3538
 
 
3539
 
 
3540
 
 
3541
 
 
3542
 
 
3543
 
 
3544
 
 
3545
 
 
3546
 
 
3547
ltmain="$ac_aux_dir/ltmain.sh"
 
3548
 
 
3549
# Make sure we can run config.sub.
 
3550
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3551
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
3552
 
 
3553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3554
$as_echo_n "checking build system type... " >&6; }
 
3555
if ${ac_cv_build+:} false; then :
 
3556
  $as_echo_n "(cached) " >&6
 
3557
else
 
3558
  ac_build_alias=$build_alias
 
3559
test "x$ac_build_alias" = x &&
 
3560
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3561
test "x$ac_build_alias" = x &&
 
3562
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
3563
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3564
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3565
 
 
3566
fi
 
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3568
$as_echo "$ac_cv_build" >&6; }
 
3569
case $ac_cv_build in
 
3570
*-*-*) ;;
 
3571
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
3572
esac
 
3573
build=$ac_cv_build
 
3574
ac_save_IFS=$IFS; IFS='-'
 
3575
set x $ac_cv_build
 
3576
shift
 
3577
build_cpu=$1
 
3578
build_vendor=$2
 
3579
shift; shift
 
3580
# Remember, the first character of IFS is used to create $*,
 
3581
# except with old shells:
 
3582
build_os=$*
 
3583
IFS=$ac_save_IFS
 
3584
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3585
 
 
3586
 
 
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3588
$as_echo_n "checking host system type... " >&6; }
 
3589
if ${ac_cv_host+:} false; then :
 
3590
  $as_echo_n "(cached) " >&6
 
3591
else
 
3592
  if test "x$host_alias" = x; then
 
3593
  ac_cv_host=$ac_cv_build
 
3594
else
 
3595
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3596
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3597
fi
 
3598
 
 
3599
fi
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3601
$as_echo "$ac_cv_host" >&6; }
 
3602
case $ac_cv_host in
 
3603
*-*-*) ;;
 
3604
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
3605
esac
 
3606
host=$ac_cv_host
 
3607
ac_save_IFS=$IFS; IFS='-'
 
3608
set x $ac_cv_host
 
3609
shift
 
3610
host_cpu=$1
 
3611
host_vendor=$2
 
3612
shift; shift
 
3613
# Remember, the first character of IFS is used to create $*,
 
3614
# except with old shells:
 
3615
host_os=$*
 
3616
IFS=$ac_save_IFS
 
3617
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3618
 
 
3619
 
 
3620
# Backslashify metacharacters that are still active within
 
3621
# double-quoted strings.
 
3622
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
3623
 
 
3624
# Same as above, but do not quote variable references.
 
3625
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
3626
 
 
3627
# Sed substitution to delay expansion of an escaped shell variable in a
 
3628
# double_quote_subst'ed string.
 
3629
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3630
 
 
3631
# Sed substitution to delay expansion of an escaped single quote.
 
3632
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3633
 
 
3634
# Sed substitution to avoid accidental globbing in evaled expressions
 
3635
no_glob_subst='s/\*/\\\*/g'
 
3636
 
 
3637
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3638
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3639
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3640
 
 
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
3642
$as_echo_n "checking how to print strings... " >&6; }
 
3643
# Test print first, because it will be a builtin if present.
 
3644
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
3645
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3646
  ECHO='print -r --'
 
3647
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3648
  ECHO='printf %s\n'
 
3649
else
 
3650
  # Use this function as a fallback that always works.
 
3651
  func_fallback_echo ()
 
3652
  {
 
3653
    eval 'cat <<_LTECHO_EOF
 
3654
$1
 
3655
_LTECHO_EOF'
 
3656
  }
 
3657
  ECHO='func_fallback_echo'
 
3658
fi
 
3659
 
 
3660
# func_echo_all arg...
 
3661
# Invoke $ECHO with all args, space-separated.
 
3662
func_echo_all ()
 
3663
{
 
3664
    $ECHO ""
 
3665
}
 
3666
 
 
3667
case "$ECHO" in
 
3668
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
3669
$as_echo "printf" >&6; } ;;
 
3670
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
3671
$as_echo "print -r" >&6; } ;;
 
3672
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
3673
$as_echo "cat" >&6; } ;;
 
3674
esac
 
3675
 
 
3676
 
 
3677
 
 
3678
 
 
3679
 
 
3680
 
 
3681
 
 
3682
 
 
3683
 
 
3684
 
 
3685
 
 
3686
 
 
3687
 
 
3688
 
 
3689
ac_ext=c
 
3690
ac_cpp='$CPP $CPPFLAGS'
 
3691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3694
if test -n "$ac_tool_prefix"; then
 
3695
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3696
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3698
$as_echo_n "checking for $ac_word... " >&6; }
 
3699
if ${ac_cv_prog_CC+:} false; then :
 
3700
  $as_echo_n "(cached) " >&6
 
3701
else
 
3702
  if test -n "$CC"; then
 
3703
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3704
else
 
3705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3706
for as_dir in $PATH
 
3707
do
 
3708
  IFS=$as_save_IFS
 
3709
  test -z "$as_dir" && as_dir=.
 
3710
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3711
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3712
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3713
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3714
    break 2
 
3715
  fi
 
3716
done
 
3717
  done
 
3718
IFS=$as_save_IFS
 
3719
 
 
3720
fi
 
3721
fi
 
3722
CC=$ac_cv_prog_CC
 
3723
if test -n "$CC"; then
 
3724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3725
$as_echo "$CC" >&6; }
 
3726
else
 
3727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3728
$as_echo "no" >&6; }
 
3729
fi
 
3730
 
 
3731
 
 
3732
fi
 
3733
if test -z "$ac_cv_prog_CC"; then
 
3734
  ac_ct_CC=$CC
 
3735
  # Extract the first word of "gcc", so it can be a program name with args.
 
3736
set dummy gcc; ac_word=$2
 
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3738
$as_echo_n "checking for $ac_word... " >&6; }
 
3739
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3740
  $as_echo_n "(cached) " >&6
 
3741
else
 
3742
  if test -n "$ac_ct_CC"; then
 
3743
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3744
else
 
3745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3746
for as_dir in $PATH
 
3747
do
 
3748
  IFS=$as_save_IFS
 
3749
  test -z "$as_dir" && as_dir=.
 
3750
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3751
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3752
    ac_cv_prog_ac_ct_CC="gcc"
 
3753
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3754
    break 2
 
3755
  fi
 
3756
done
 
3757
  done
 
3758
IFS=$as_save_IFS
 
3759
 
 
3760
fi
 
3761
fi
 
3762
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3763
if test -n "$ac_ct_CC"; then
 
3764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3765
$as_echo "$ac_ct_CC" >&6; }
 
3766
else
 
3767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3768
$as_echo "no" >&6; }
 
3769
fi
 
3770
 
 
3771
  if test "x$ac_ct_CC" = x; then
 
3772
    CC=""
 
3773
  else
 
3774
    case $cross_compiling:$ac_tool_warned in
 
3775
yes:)
 
3776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3777
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3778
ac_tool_warned=yes ;;
 
3779
esac
 
3780
    CC=$ac_ct_CC
 
3781
  fi
 
3782
else
 
3783
  CC="$ac_cv_prog_CC"
 
3784
fi
 
3785
 
 
3786
if test -z "$CC"; then
 
3787
          if test -n "$ac_tool_prefix"; then
 
3788
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3789
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3791
$as_echo_n "checking for $ac_word... " >&6; }
 
3792
if ${ac_cv_prog_CC+:} false; then :
 
3793
  $as_echo_n "(cached) " >&6
 
3794
else
 
3795
  if test -n "$CC"; then
 
3796
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3797
else
 
3798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3799
for as_dir in $PATH
 
3800
do
 
3801
  IFS=$as_save_IFS
 
3802
  test -z "$as_dir" && as_dir=.
 
3803
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3804
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3805
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3806
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3807
    break 2
 
3808
  fi
 
3809
done
 
3810
  done
 
3811
IFS=$as_save_IFS
 
3812
 
 
3813
fi
 
3814
fi
 
3815
CC=$ac_cv_prog_CC
 
3816
if test -n "$CC"; then
 
3817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3818
$as_echo "$CC" >&6; }
 
3819
else
 
3820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3821
$as_echo "no" >&6; }
 
3822
fi
 
3823
 
 
3824
 
 
3825
  fi
 
3826
fi
 
3827
if test -z "$CC"; then
 
3828
  # Extract the first word of "cc", so it can be a program name with args.
 
3829
set dummy cc; ac_word=$2
 
3830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3831
$as_echo_n "checking for $ac_word... " >&6; }
 
3832
if ${ac_cv_prog_CC+:} false; then :
 
3833
  $as_echo_n "(cached) " >&6
 
3834
else
 
3835
  if test -n "$CC"; then
 
3836
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3837
else
 
3838
  ac_prog_rejected=no
 
3839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3840
for as_dir in $PATH
 
3841
do
 
3842
  IFS=$as_save_IFS
 
3843
  test -z "$as_dir" && as_dir=.
 
3844
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3846
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3847
       ac_prog_rejected=yes
 
3848
       continue
 
3849
     fi
 
3850
    ac_cv_prog_CC="cc"
 
3851
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3852
    break 2
 
3853
  fi
 
3854
done
 
3855
  done
 
3856
IFS=$as_save_IFS
 
3857
 
 
3858
if test $ac_prog_rejected = yes; then
 
3859
  # We found a bogon in the path, so make sure we never use it.
 
3860
  set dummy $ac_cv_prog_CC
 
3861
  shift
 
3862
  if test $# != 0; then
 
3863
    # We chose a different compiler from the bogus one.
 
3864
    # However, it has the same basename, so the bogon will be chosen
 
3865
    # first if we set CC to just the basename; use the full file name.
 
3866
    shift
 
3867
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3868
  fi
 
3869
fi
 
3870
fi
 
3871
fi
 
3872
CC=$ac_cv_prog_CC
 
3873
if test -n "$CC"; then
 
3874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3875
$as_echo "$CC" >&6; }
 
3876
else
 
3877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3878
$as_echo "no" >&6; }
 
3879
fi
 
3880
 
 
3881
 
 
3882
fi
 
3883
if test -z "$CC"; then
 
3884
  if test -n "$ac_tool_prefix"; then
 
3885
  for ac_prog in cl.exe
 
3886
  do
 
3887
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3888
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3890
$as_echo_n "checking for $ac_word... " >&6; }
 
3891
if ${ac_cv_prog_CC+:} false; then :
 
3892
  $as_echo_n "(cached) " >&6
 
3893
else
 
3894
  if test -n "$CC"; then
 
3895
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3896
else
 
3897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3898
for as_dir in $PATH
 
3899
do
 
3900
  IFS=$as_save_IFS
 
3901
  test -z "$as_dir" && as_dir=.
 
3902
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3904
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3905
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3906
    break 2
 
3907
  fi
 
3908
done
 
3909
  done
 
3910
IFS=$as_save_IFS
 
3911
 
 
3912
fi
 
3913
fi
 
3914
CC=$ac_cv_prog_CC
 
3915
if test -n "$CC"; then
 
3916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3917
$as_echo "$CC" >&6; }
 
3918
else
 
3919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3920
$as_echo "no" >&6; }
 
3921
fi
 
3922
 
 
3923
 
 
3924
    test -n "$CC" && break
 
3925
  done
 
3926
fi
 
3927
if test -z "$CC"; then
 
3928
  ac_ct_CC=$CC
 
3929
  for ac_prog in cl.exe
 
3930
do
 
3931
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3932
set dummy $ac_prog; ac_word=$2
 
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3934
$as_echo_n "checking for $ac_word... " >&6; }
 
3935
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3936
  $as_echo_n "(cached) " >&6
 
3937
else
 
3938
  if test -n "$ac_ct_CC"; then
 
3939
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3940
else
 
3941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3942
for as_dir in $PATH
 
3943
do
 
3944
  IFS=$as_save_IFS
 
3945
  test -z "$as_dir" && as_dir=.
 
3946
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3947
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3948
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3949
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3950
    break 2
 
3951
  fi
 
3952
done
 
3953
  done
 
3954
IFS=$as_save_IFS
 
3955
 
 
3956
fi
 
3957
fi
 
3958
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3959
if test -n "$ac_ct_CC"; then
 
3960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3961
$as_echo "$ac_ct_CC" >&6; }
 
3962
else
 
3963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3964
$as_echo "no" >&6; }
 
3965
fi
 
3966
 
 
3967
 
 
3968
  test -n "$ac_ct_CC" && break
 
3969
done
 
3970
 
 
3971
  if test "x$ac_ct_CC" = x; then
 
3972
    CC=""
 
3973
  else
 
3974
    case $cross_compiling:$ac_tool_warned in
 
3975
yes:)
 
3976
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3977
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3978
ac_tool_warned=yes ;;
 
3979
esac
 
3980
    CC=$ac_ct_CC
 
3981
  fi
 
3982
fi
 
3983
 
 
3984
fi
 
3985
 
 
3986
 
 
3987
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3988
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3989
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3990
See \`config.log' for more details" "$LINENO" 5; }
 
3991
 
 
3992
# Provide some information about the compiler.
 
3993
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3994
set X $ac_compile
 
3995
ac_compiler=$2
 
3996
for ac_option in --version -v -V -qversion; do
 
3997
  { { ac_try="$ac_compiler $ac_option >&5"
 
3998
case "(($ac_try" in
 
3999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4000
  *) ac_try_echo=$ac_try;;
 
4001
esac
 
4002
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4003
$as_echo "$ac_try_echo"; } >&5
 
4004
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4005
  ac_status=$?
 
4006
  if test -s conftest.err; then
 
4007
    sed '10a\
 
4008
... rest of stderr output deleted ...
 
4009
         10q' conftest.err >conftest.er1
 
4010
    cat conftest.er1 >&5
 
4011
  fi
 
4012
  rm -f conftest.er1 conftest.err
 
4013
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4014
  test $ac_status = 0; }
 
4015
done
 
4016
 
 
4017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4018
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4019
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4020
  $as_echo_n "(cached) " >&6
 
4021
else
 
4022
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4023
/* end confdefs.h.  */
 
4024
 
 
4025
int
 
4026
main ()
 
4027
{
 
4028
#ifndef __GNUC__
 
4029
       choke me
 
4030
#endif
 
4031
 
 
4032
  ;
 
4033
  return 0;
 
4034
}
 
4035
_ACEOF
 
4036
if ac_fn_c_try_compile "$LINENO"; then :
 
4037
  ac_compiler_gnu=yes
 
4038
else
 
4039
  ac_compiler_gnu=no
 
4040
fi
 
4041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4042
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4043
 
 
4044
fi
 
4045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4046
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4047
if test $ac_compiler_gnu = yes; then
 
4048
  GCC=yes
 
4049
else
 
4050
  GCC=
 
4051
fi
 
4052
ac_test_CFLAGS=${CFLAGS+set}
 
4053
ac_save_CFLAGS=$CFLAGS
 
4054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4055
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4056
if ${ac_cv_prog_cc_g+:} false; then :
 
4057
  $as_echo_n "(cached) " >&6
 
4058
else
 
4059
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4060
   ac_c_werror_flag=yes
 
4061
   ac_cv_prog_cc_g=no
 
4062
   CFLAGS="-g"
 
4063
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4064
/* end confdefs.h.  */
 
4065
 
 
4066
int
 
4067
main ()
 
4068
{
 
4069
 
 
4070
  ;
 
4071
  return 0;
 
4072
}
 
4073
_ACEOF
 
4074
if ac_fn_c_try_compile "$LINENO"; then :
 
4075
  ac_cv_prog_cc_g=yes
 
4076
else
 
4077
  CFLAGS=""
 
4078
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4079
/* end confdefs.h.  */
 
4080
 
 
4081
int
 
4082
main ()
 
4083
{
 
4084
 
 
4085
  ;
 
4086
  return 0;
 
4087
}
 
4088
_ACEOF
 
4089
if ac_fn_c_try_compile "$LINENO"; then :
 
4090
 
 
4091
else
 
4092
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4093
         CFLAGS="-g"
 
4094
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4095
/* end confdefs.h.  */
 
4096
 
 
4097
int
 
4098
main ()
 
4099
{
 
4100
 
 
4101
  ;
 
4102
  return 0;
 
4103
}
 
4104
_ACEOF
 
4105
if ac_fn_c_try_compile "$LINENO"; then :
 
4106
  ac_cv_prog_cc_g=yes
 
4107
fi
 
4108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4109
fi
 
4110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4111
fi
 
4112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4113
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4114
fi
 
4115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4116
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4117
if test "$ac_test_CFLAGS" = set; then
 
4118
  CFLAGS=$ac_save_CFLAGS
 
4119
elif test $ac_cv_prog_cc_g = yes; then
 
4120
  if test "$GCC" = yes; then
 
4121
    CFLAGS="-g -O2"
 
4122
  else
 
4123
    CFLAGS="-g"
 
4124
  fi
 
4125
else
 
4126
  if test "$GCC" = yes; then
 
4127
    CFLAGS="-O2"
 
4128
  else
 
4129
    CFLAGS=
 
4130
  fi
 
4131
fi
 
4132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4133
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4134
if ${ac_cv_prog_cc_c89+:} false; then :
 
4135
  $as_echo_n "(cached) " >&6
 
4136
else
 
4137
  ac_cv_prog_cc_c89=no
 
4138
ac_save_CC=$CC
 
4139
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4140
/* end confdefs.h.  */
 
4141
#include <stdarg.h>
 
4142
#include <stdio.h>
 
4143
#include <sys/types.h>
 
4144
#include <sys/stat.h>
 
4145
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4146
struct buf { int x; };
 
4147
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4148
static char *e (p, i)
 
4149
     char **p;
 
4150
     int i;
 
4151
{
 
4152
  return p[i];
 
4153
}
 
4154
static char *f (char * (*g) (char **, int), char **p, ...)
 
4155
{
 
4156
  char *s;
 
4157
  va_list v;
 
4158
  va_start (v,p);
 
4159
  s = g (p, va_arg (v,int));
 
4160
  va_end (v);
 
4161
  return s;
 
4162
}
 
4163
 
 
4164
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4165
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4166
   These don't provoke an error unfortunately, instead are silently treated
 
4167
   as 'x'.  The following induces an error, until -std is added to get
 
4168
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4169
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4170
   that's true only with -std.  */
 
4171
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4172
 
 
4173
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4174
   inside strings and character constants.  */
 
4175
#define FOO(x) 'x'
 
4176
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4177
 
 
4178
int test (int i, double x);
 
4179
struct s1 {int (*f) (int a);};
 
4180
struct s2 {int (*f) (double a);};
 
4181
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4182
int argc;
 
4183
char **argv;
 
4184
int
 
4185
main ()
 
4186
{
 
4187
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4188
  ;
 
4189
  return 0;
 
4190
}
 
4191
_ACEOF
 
4192
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4193
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4194
do
 
4195
  CC="$ac_save_CC $ac_arg"
 
4196
  if ac_fn_c_try_compile "$LINENO"; then :
 
4197
  ac_cv_prog_cc_c89=$ac_arg
 
4198
fi
 
4199
rm -f core conftest.err conftest.$ac_objext
 
4200
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4201
done
 
4202
rm -f conftest.$ac_ext
 
4203
CC=$ac_save_CC
 
4204
 
 
4205
fi
 
4206
# AC_CACHE_VAL
 
4207
case "x$ac_cv_prog_cc_c89" in
 
4208
  x)
 
4209
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4210
$as_echo "none needed" >&6; } ;;
 
4211
  xno)
 
4212
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4213
$as_echo "unsupported" >&6; } ;;
 
4214
  *)
 
4215
    CC="$CC $ac_cv_prog_cc_c89"
 
4216
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4217
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4218
esac
 
4219
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4220
 
 
4221
fi
 
4222
 
 
4223
ac_ext=c
 
4224
ac_cpp='$CPP $CPPFLAGS'
 
4225
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4226
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4227
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4228
 
 
4229
depcc="$CC"   am_compiler_list=
 
4230
 
 
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4232
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4233
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4234
  $as_echo_n "(cached) " >&6
 
4235
else
 
4236
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4237
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4238
  # making bogus files that we don't know about and never remove.  For
 
4239
  # instance it was reported that on HP-UX the gcc test will end up
 
4240
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4241
  # in D'.
 
4242
  mkdir conftest.dir
 
4243
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4244
  # using a relative directory.
 
4245
  cp "$am_depcomp" conftest.dir
 
4246
  cd conftest.dir
 
4247
  # We will build objects and dependencies in a subdirectory because
 
4248
  # it helps to detect inapplicable dependency modes.  For instance
 
4249
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4250
  # side effect of compilation, but ICC will put the dependencies in
 
4251
  # the current directory while Tru64 will put them in the object
 
4252
  # directory.
 
4253
  mkdir sub
 
4254
 
 
4255
  am_cv_CC_dependencies_compiler_type=none
 
4256
  if test "$am_compiler_list" = ""; then
 
4257
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4258
  fi
 
4259
  am__universal=false
 
4260
  case " $depcc " in #(
 
4261
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4262
     esac
 
4263
 
 
4264
  for depmode in $am_compiler_list; do
 
4265
    # Setup a source with many dependencies, because some compilers
 
4266
    # like to wrap large dependency lists on column 80 (with \), and
 
4267
    # we should not choose a depcomp mode which is confused by this.
 
4268
    #
 
4269
    # We need to recreate these files for each test, as the compiler may
 
4270
    # overwrite some of them when testing with obscure command lines.
 
4271
    # This happens at least with the AIX C compiler.
 
4272
    : > sub/conftest.c
 
4273
    for i in 1 2 3 4 5 6; do
 
4274
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4275
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4276
      # Solaris 8's {/usr,}/bin/sh.
 
4277
      touch sub/conftst$i.h
 
4278
    done
 
4279
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4280
 
 
4281
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4282
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4283
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4284
    # versions had trouble with output in subdirs
 
4285
    am__obj=sub/conftest.${OBJEXT-o}
 
4286
    am__minus_obj="-o $am__obj"
 
4287
    case $depmode in
 
4288
    gcc)
 
4289
      # This depmode causes a compiler race in universal mode.
 
4290
      test "$am__universal" = false || continue
 
4291
      ;;
 
4292
    nosideeffect)
 
4293
      # after this tag, mechanisms are not by side-effect, so they'll
 
4294
      # only be used when explicitly requested
 
4295
      if test "x$enable_dependency_tracking" = xyes; then
 
4296
        continue
 
4297
      else
 
4298
        break
 
4299
      fi
 
4300
      ;;
 
4301
    msvisualcpp | msvcmsys)
 
4302
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4303
      # not run yet.  These depmodes are late enough in the game, and
 
4304
      # so weak that their functioning should not be impacted.
 
4305
      am__obj=conftest.${OBJEXT-o}
 
4306
      am__minus_obj=
 
4307
      ;;
 
4308
    none) break ;;
 
4309
    esac
 
4310
    if depmode=$depmode \
 
4311
       source=sub/conftest.c object=$am__obj \
 
4312
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4313
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4314
         >/dev/null 2>conftest.err &&
 
4315
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4316
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4317
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4318
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4319
      # icc doesn't choke on unknown options, it will just issue warnings
 
4320
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4321
      # that says an option was ignored or not supported.
 
4322
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4323
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4324
      # The diagnosis changed in icc 8.0:
 
4325
      #   icc: Command line remark: option '-MP' not supported
 
4326
      if (grep 'ignoring option' conftest.err ||
 
4327
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4328
        am_cv_CC_dependencies_compiler_type=$depmode
 
4329
        break
 
4330
      fi
 
4331
    fi
 
4332
  done
 
4333
 
 
4334
  cd ..
 
4335
  rm -rf conftest.dir
 
4336
else
 
4337
  am_cv_CC_dependencies_compiler_type=none
 
4338
fi
 
4339
 
 
4340
fi
 
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4342
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4343
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4344
 
 
4345
 if
 
4346
  test "x$enable_dependency_tracking" != xno \
 
4347
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4348
  am__fastdepCC_TRUE=
 
4349
  am__fastdepCC_FALSE='#'
 
4350
else
 
4351
  am__fastdepCC_TRUE='#'
 
4352
  am__fastdepCC_FALSE=
 
4353
fi
 
4354
 
 
4355
 
 
4356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4357
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4358
if ${ac_cv_path_SED+:} false; then :
 
4359
  $as_echo_n "(cached) " >&6
 
4360
else
 
4361
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4362
     for ac_i in 1 2 3 4 5 6 7; do
 
4363
       ac_script="$ac_script$as_nl$ac_script"
 
4364
     done
 
4365
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4366
     { ac_script=; unset ac_script;}
 
4367
     if test -z "$SED"; then
 
4368
  ac_path_SED_found=false
 
4369
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4370
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4371
for as_dir in $PATH
 
4372
do
 
4373
  IFS=$as_save_IFS
 
4374
  test -z "$as_dir" && as_dir=.
 
4375
    for ac_prog in sed gsed; do
 
4376
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4377
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4378
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4379
# Check for GNU ac_path_SED and select it if it is found.
 
4380
  # Check for GNU $ac_path_SED
 
4381
case `"$ac_path_SED" --version 2>&1` in
 
4382
*GNU*)
 
4383
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4384
*)
 
4385
  ac_count=0
 
4386
  $as_echo_n 0123456789 >"conftest.in"
 
4387
  while :
 
4388
  do
 
4389
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4390
    mv "conftest.tmp" "conftest.in"
 
4391
    cp "conftest.in" "conftest.nl"
 
4392
    $as_echo '' >> "conftest.nl"
 
4393
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4394
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4395
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4396
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4397
      # Best one so far, save it but keep looking for a better one
 
4398
      ac_cv_path_SED="$ac_path_SED"
 
4399
      ac_path_SED_max=$ac_count
 
4400
    fi
 
4401
    # 10*(2^10) chars as input seems more than enough
 
4402
    test $ac_count -gt 10 && break
 
4403
  done
 
4404
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4405
esac
 
4406
 
 
4407
      $ac_path_SED_found && break 3
 
4408
    done
 
4409
  done
 
4410
  done
 
4411
IFS=$as_save_IFS
 
4412
  if test -z "$ac_cv_path_SED"; then
 
4413
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4414
  fi
 
4415
else
 
4416
  ac_cv_path_SED=$SED
 
4417
fi
 
4418
 
 
4419
fi
 
4420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4421
$as_echo "$ac_cv_path_SED" >&6; }
 
4422
 SED="$ac_cv_path_SED"
 
4423
  rm -f conftest.sed
 
4424
 
 
4425
test -z "$SED" && SED=sed
 
4426
Xsed="$SED -e 1s/^X//"
 
4427
 
 
4428
 
 
4429
 
 
4430
 
 
4431
 
 
4432
 
 
4433
 
 
4434
 
 
4435
 
 
4436
 
 
4437
 
 
4438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4439
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4440
if ${ac_cv_path_GREP+:} false; then :
 
4441
  $as_echo_n "(cached) " >&6
 
4442
else
 
4443
  if test -z "$GREP"; then
 
4444
  ac_path_GREP_found=false
 
4445
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4446
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4447
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4448
do
 
4449
  IFS=$as_save_IFS
 
4450
  test -z "$as_dir" && as_dir=.
 
4451
    for ac_prog in grep ggrep; do
 
4452
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4453
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4454
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4455
# Check for GNU ac_path_GREP and select it if it is found.
 
4456
  # Check for GNU $ac_path_GREP
 
4457
case `"$ac_path_GREP" --version 2>&1` in
 
4458
*GNU*)
 
4459
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4460
*)
 
4461
  ac_count=0
 
4462
  $as_echo_n 0123456789 >"conftest.in"
 
4463
  while :
 
4464
  do
 
4465
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4466
    mv "conftest.tmp" "conftest.in"
 
4467
    cp "conftest.in" "conftest.nl"
 
4468
    $as_echo 'GREP' >> "conftest.nl"
 
4469
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4470
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4471
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4472
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4473
      # Best one so far, save it but keep looking for a better one
 
4474
      ac_cv_path_GREP="$ac_path_GREP"
 
4475
      ac_path_GREP_max=$ac_count
 
4476
    fi
 
4477
    # 10*(2^10) chars as input seems more than enough
 
4478
    test $ac_count -gt 10 && break
 
4479
  done
 
4480
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4481
esac
 
4482
 
 
4483
      $ac_path_GREP_found && break 3
 
4484
    done
 
4485
  done
 
4486
  done
 
4487
IFS=$as_save_IFS
 
4488
  if test -z "$ac_cv_path_GREP"; then
 
4489
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4490
  fi
 
4491
else
 
4492
  ac_cv_path_GREP=$GREP
 
4493
fi
 
4494
 
 
4495
fi
 
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4497
$as_echo "$ac_cv_path_GREP" >&6; }
 
4498
 GREP="$ac_cv_path_GREP"
 
4499
 
 
4500
 
 
4501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4502
$as_echo_n "checking for egrep... " >&6; }
 
4503
if ${ac_cv_path_EGREP+:} false; then :
 
4504
  $as_echo_n "(cached) " >&6
 
4505
else
 
4506
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4507
   then ac_cv_path_EGREP="$GREP -E"
 
4508
   else
 
4509
     if test -z "$EGREP"; then
 
4510
  ac_path_EGREP_found=false
 
4511
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4513
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4514
do
 
4515
  IFS=$as_save_IFS
 
4516
  test -z "$as_dir" && as_dir=.
 
4517
    for ac_prog in egrep; do
 
4518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4519
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4520
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4521
# Check for GNU ac_path_EGREP and select it if it is found.
 
4522
  # Check for GNU $ac_path_EGREP
 
4523
case `"$ac_path_EGREP" --version 2>&1` in
 
4524
*GNU*)
 
4525
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4526
*)
 
4527
  ac_count=0
 
4528
  $as_echo_n 0123456789 >"conftest.in"
 
4529
  while :
 
4530
  do
 
4531
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4532
    mv "conftest.tmp" "conftest.in"
 
4533
    cp "conftest.in" "conftest.nl"
 
4534
    $as_echo 'EGREP' >> "conftest.nl"
 
4535
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4536
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4537
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4538
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4539
      # Best one so far, save it but keep looking for a better one
 
4540
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4541
      ac_path_EGREP_max=$ac_count
 
4542
    fi
 
4543
    # 10*(2^10) chars as input seems more than enough
 
4544
    test $ac_count -gt 10 && break
 
4545
  done
 
4546
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4547
esac
 
4548
 
 
4549
      $ac_path_EGREP_found && break 3
 
4550
    done
 
4551
  done
 
4552
  done
 
4553
IFS=$as_save_IFS
 
4554
  if test -z "$ac_cv_path_EGREP"; then
 
4555
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4556
  fi
 
4557
else
 
4558
  ac_cv_path_EGREP=$EGREP
 
4559
fi
 
4560
 
 
4561
   fi
 
4562
fi
 
4563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4564
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4565
 EGREP="$ac_cv_path_EGREP"
 
4566
 
 
4567
 
 
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4569
$as_echo_n "checking for fgrep... " >&6; }
 
4570
if ${ac_cv_path_FGREP+:} false; then :
 
4571
  $as_echo_n "(cached) " >&6
 
4572
else
 
4573
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4574
   then ac_cv_path_FGREP="$GREP -F"
 
4575
   else
 
4576
     if test -z "$FGREP"; then
 
4577
  ac_path_FGREP_found=false
 
4578
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4579
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4580
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4581
do
 
4582
  IFS=$as_save_IFS
 
4583
  test -z "$as_dir" && as_dir=.
 
4584
    for ac_prog in fgrep; do
 
4585
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4586
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4587
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4588
# Check for GNU ac_path_FGREP and select it if it is found.
 
4589
  # Check for GNU $ac_path_FGREP
 
4590
case `"$ac_path_FGREP" --version 2>&1` in
 
4591
*GNU*)
 
4592
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4593
*)
 
4594
  ac_count=0
 
4595
  $as_echo_n 0123456789 >"conftest.in"
 
4596
  while :
 
4597
  do
 
4598
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4599
    mv "conftest.tmp" "conftest.in"
 
4600
    cp "conftest.in" "conftest.nl"
 
4601
    $as_echo 'FGREP' >> "conftest.nl"
 
4602
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4603
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4604
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4605
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4606
      # Best one so far, save it but keep looking for a better one
 
4607
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4608
      ac_path_FGREP_max=$ac_count
 
4609
    fi
 
4610
    # 10*(2^10) chars as input seems more than enough
 
4611
    test $ac_count -gt 10 && break
 
4612
  done
 
4613
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4614
esac
 
4615
 
 
4616
      $ac_path_FGREP_found && break 3
 
4617
    done
 
4618
  done
 
4619
  done
 
4620
IFS=$as_save_IFS
 
4621
  if test -z "$ac_cv_path_FGREP"; then
 
4622
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4623
  fi
 
4624
else
 
4625
  ac_cv_path_FGREP=$FGREP
 
4626
fi
 
4627
 
 
4628
   fi
 
4629
fi
 
4630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4631
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4632
 FGREP="$ac_cv_path_FGREP"
 
4633
 
 
4634
 
 
4635
test -z "$GREP" && GREP=grep
 
4636
 
 
4637
 
 
4638
 
 
4639
 
 
4640
 
 
4641
 
 
4642
 
 
4643
 
 
4644
 
 
4645
 
 
4646
 
 
4647
 
 
4648
 
 
4649
 
 
4650
 
 
4651
 
 
4652
 
 
4653
 
 
4654
 
 
4655
# Check whether --with-gnu-ld was given.
 
4656
if test "${with_gnu_ld+set}" = set; then :
 
4657
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4658
else
 
4659
  with_gnu_ld=no
 
4660
fi
 
4661
 
 
4662
ac_prog=ld
 
4663
if test "$GCC" = yes; then
 
4664
  # Check if gcc -print-prog-name=ld gives a path.
 
4665
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4666
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4667
  case $host in
 
4668
  *-*-mingw*)
 
4669
    # gcc leaves a trailing carriage return which upsets mingw
 
4670
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4671
  *)
 
4672
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4673
  esac
 
4674
  case $ac_prog in
 
4675
    # Accept absolute paths.
 
4676
    [\\/]* | ?:[\\/]*)
 
4677
      re_direlt='/[^/][^/]*/\.\./'
 
4678
      # Canonicalize the pathname of ld
 
4679
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4680
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4681
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4682
      done
 
4683
      test -z "$LD" && LD="$ac_prog"
 
4684
      ;;
 
4685
  "")
 
4686
    # If it fails, then pretend we aren't using GCC.
 
4687
    ac_prog=ld
 
4688
    ;;
 
4689
  *)
 
4690
    # If it is relative, then search for the first ld in PATH.
 
4691
    with_gnu_ld=unknown
 
4692
    ;;
 
4693
  esac
 
4694
elif test "$with_gnu_ld" = yes; then
 
4695
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4696
$as_echo_n "checking for GNU ld... " >&6; }
 
4697
else
 
4698
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4699
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4700
fi
 
4701
if ${lt_cv_path_LD+:} false; then :
 
4702
  $as_echo_n "(cached) " >&6
 
4703
else
 
4704
  if test -z "$LD"; then
 
4705
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4706
  for ac_dir in $PATH; do
 
4707
    IFS="$lt_save_ifs"
 
4708
    test -z "$ac_dir" && ac_dir=.
 
4709
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4710
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4711
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4712
      # but apparently some variants of GNU ld only accept -v.
 
4713
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4714
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4715
      *GNU* | *'with BFD'*)
 
4716
        test "$with_gnu_ld" != no && break
 
4717
        ;;
 
4718
      *)
 
4719
        test "$with_gnu_ld" != yes && break
 
4720
        ;;
 
4721
      esac
 
4722
    fi
 
4723
  done
 
4724
  IFS="$lt_save_ifs"
 
4725
else
 
4726
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4727
fi
 
4728
fi
 
4729
 
 
4730
LD="$lt_cv_path_LD"
 
4731
if test -n "$LD"; then
 
4732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4733
$as_echo "$LD" >&6; }
 
4734
else
 
4735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4736
$as_echo "no" >&6; }
 
4737
fi
 
4738
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4740
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4741
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4742
  $as_echo_n "(cached) " >&6
 
4743
else
 
4744
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4745
case `$LD -v 2>&1 </dev/null` in
 
4746
*GNU* | *'with BFD'*)
 
4747
  lt_cv_prog_gnu_ld=yes
 
4748
  ;;
 
4749
*)
 
4750
  lt_cv_prog_gnu_ld=no
 
4751
  ;;
 
4752
esac
 
4753
fi
 
4754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4755
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4756
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4757
 
 
4758
 
 
4759
 
 
4760
 
 
4761
 
 
4762
 
 
4763
 
 
4764
 
 
4765
 
 
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4767
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4768
if ${lt_cv_path_NM+:} false; then :
 
4769
  $as_echo_n "(cached) " >&6
 
4770
else
 
4771
  if test -n "$NM"; then
 
4772
  # Let the user override the test.
 
4773
  lt_cv_path_NM="$NM"
 
4774
else
 
4775
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4776
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4777
    lt_nm_to_check="$lt_nm_to_check nm"
 
4778
  fi
 
4779
  for lt_tmp_nm in $lt_nm_to_check; do
 
4780
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4781
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4782
      IFS="$lt_save_ifs"
 
4783
      test -z "$ac_dir" && ac_dir=.
 
4784
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4785
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4786
        # Check to see if the nm accepts a BSD-compat flag.
 
4787
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4788
        #   nm: unknown option "B" ignored
 
4789
        # Tru64's nm complains that /dev/null is an invalid object file
 
4790
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4791
        */dev/null* | *'Invalid file or object type'*)
 
4792
          lt_cv_path_NM="$tmp_nm -B"
 
4793
          break
 
4794
          ;;
 
4795
        *)
 
4796
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4797
          */dev/null*)
 
4798
            lt_cv_path_NM="$tmp_nm -p"
 
4799
            break
 
4800
            ;;
 
4801
          *)
 
4802
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4803
            continue # so that we can try to find one that supports BSD flags
 
4804
            ;;
 
4805
          esac
 
4806
          ;;
 
4807
        esac
 
4808
      fi
 
4809
    done
 
4810
    IFS="$lt_save_ifs"
 
4811
  done
 
4812
  : ${lt_cv_path_NM=no}
 
4813
fi
 
4814
fi
 
4815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4816
$as_echo "$lt_cv_path_NM" >&6; }
 
4817
if test "$lt_cv_path_NM" != "no"; then
 
4818
  NM="$lt_cv_path_NM"
 
4819
else
 
4820
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4821
  if test -n "$DUMPBIN"; then :
 
4822
    # Let the user override the test.
 
4823
  else
 
4824
    if test -n "$ac_tool_prefix"; then
 
4825
  for ac_prog in dumpbin "link -dump"
 
4826
  do
 
4827
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4828
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4830
$as_echo_n "checking for $ac_word... " >&6; }
 
4831
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4832
  $as_echo_n "(cached) " >&6
 
4833
else
 
4834
  if test -n "$DUMPBIN"; then
 
4835
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4836
else
 
4837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4838
for as_dir in $PATH
 
4839
do
 
4840
  IFS=$as_save_IFS
 
4841
  test -z "$as_dir" && as_dir=.
 
4842
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4843
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4844
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4845
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4846
    break 2
 
4847
  fi
 
4848
done
 
4849
  done
 
4850
IFS=$as_save_IFS
 
4851
 
 
4852
fi
 
4853
fi
 
4854
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4855
if test -n "$DUMPBIN"; then
 
4856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4857
$as_echo "$DUMPBIN" >&6; }
 
4858
else
 
4859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4860
$as_echo "no" >&6; }
 
4861
fi
 
4862
 
 
4863
 
 
4864
    test -n "$DUMPBIN" && break
 
4865
  done
 
4866
fi
 
4867
if test -z "$DUMPBIN"; then
 
4868
  ac_ct_DUMPBIN=$DUMPBIN
 
4869
  for ac_prog in dumpbin "link -dump"
 
4870
do
 
4871
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4872
set dummy $ac_prog; ac_word=$2
 
4873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4874
$as_echo_n "checking for $ac_word... " >&6; }
 
4875
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4876
  $as_echo_n "(cached) " >&6
 
4877
else
 
4878
  if test -n "$ac_ct_DUMPBIN"; then
 
4879
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4880
else
 
4881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4882
for as_dir in $PATH
 
4883
do
 
4884
  IFS=$as_save_IFS
 
4885
  test -z "$as_dir" && as_dir=.
 
4886
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4887
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4888
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4889
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4890
    break 2
 
4891
  fi
 
4892
done
 
4893
  done
 
4894
IFS=$as_save_IFS
 
4895
 
 
4896
fi
 
4897
fi
 
4898
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4899
if test -n "$ac_ct_DUMPBIN"; then
 
4900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4901
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4902
else
 
4903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4904
$as_echo "no" >&6; }
 
4905
fi
 
4906
 
 
4907
 
 
4908
  test -n "$ac_ct_DUMPBIN" && break
 
4909
done
 
4910
 
 
4911
  if test "x$ac_ct_DUMPBIN" = x; then
 
4912
    DUMPBIN=":"
 
4913
  else
 
4914
    case $cross_compiling:$ac_tool_warned in
 
4915
yes:)
 
4916
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4917
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4918
ac_tool_warned=yes ;;
 
4919
esac
 
4920
    DUMPBIN=$ac_ct_DUMPBIN
 
4921
  fi
 
4922
fi
 
4923
 
 
4924
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4925
    *COFF*)
 
4926
      DUMPBIN="$DUMPBIN -symbols"
 
4927
      ;;
 
4928
    *)
 
4929
      DUMPBIN=:
 
4930
      ;;
 
4931
    esac
 
4932
  fi
 
4933
 
 
4934
  if test "$DUMPBIN" != ":"; then
 
4935
    NM="$DUMPBIN"
 
4936
  fi
 
4937
fi
 
4938
test -z "$NM" && NM=nm
 
4939
 
 
4940
 
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4946
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4947
if ${lt_cv_nm_interface+:} false; then :
 
4948
  $as_echo_n "(cached) " >&6
 
4949
else
 
4950
  lt_cv_nm_interface="BSD nm"
 
4951
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4952
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4953
  (eval "$ac_compile" 2>conftest.err)
 
4954
  cat conftest.err >&5
 
4955
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4956
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4957
  cat conftest.err >&5
 
4958
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4959
  cat conftest.out >&5
 
4960
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4961
    lt_cv_nm_interface="MS dumpbin"
 
4962
  fi
 
4963
  rm -f conftest*
 
4964
fi
 
4965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4966
$as_echo "$lt_cv_nm_interface" >&6; }
 
4967
 
 
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4969
$as_echo_n "checking whether ln -s works... " >&6; }
 
4970
LN_S=$as_ln_s
 
4971
if test "$LN_S" = "ln -s"; then
 
4972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4973
$as_echo "yes" >&6; }
 
4974
else
 
4975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4976
$as_echo "no, using $LN_S" >&6; }
 
4977
fi
 
4978
 
 
4979
# find the maximum length of command line arguments
 
4980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4981
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4982
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4983
  $as_echo_n "(cached) " >&6
 
4984
else
 
4985
    i=0
 
4986
  teststring="ABCD"
 
4987
 
 
4988
  case $build_os in
 
4989
  msdosdjgpp*)
 
4990
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4991
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4992
    # during glob expansion).  Even if it were fixed, the result of this
 
4993
    # check would be larger than it should be.
 
4994
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4995
    ;;
 
4996
 
 
4997
  gnu*)
 
4998
    # Under GNU Hurd, this test is not required because there is
 
4999
    # no limit to the length of command line arguments.
 
5000
    # Libtool will interpret -1 as no limit whatsoever
 
5001
    lt_cv_sys_max_cmd_len=-1;
 
5002
    ;;
 
5003
 
 
5004
  cygwin* | mingw* | cegcc*)
 
5005
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5006
    # about 5 minutes as the teststring grows exponentially.
 
5007
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5008
    # you end up with a "frozen" computer, even though with patience
 
5009
    # the test eventually succeeds (with a max line length of 256k).
 
5010
    # Instead, let's just punt: use the minimum linelength reported by
 
5011
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5012
    lt_cv_sys_max_cmd_len=8192;
 
5013
    ;;
 
5014
 
 
5015
  mint*)
 
5016
    # On MiNT this can take a long time and run out of memory.
 
5017
    lt_cv_sys_max_cmd_len=8192;
 
5018
    ;;
 
5019
 
 
5020
  amigaos*)
 
5021
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5022
    # So we just punt and use a minimum line length of 8192.
 
5023
    lt_cv_sys_max_cmd_len=8192;
 
5024
    ;;
 
5025
 
 
5026
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5027
    # This has been around since 386BSD, at least.  Likely further.
 
5028
    if test -x /sbin/sysctl; then
 
5029
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5030
    elif test -x /usr/sbin/sysctl; then
 
5031
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5032
    else
 
5033
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5034
    fi
 
5035
    # And add a safety zone
 
5036
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5037
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5038
    ;;
 
5039
 
 
5040
  interix*)
 
5041
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5042
    lt_cv_sys_max_cmd_len=196608
 
5043
    ;;
 
5044
 
 
5045
  os2*)
 
5046
    # The test takes a long time on OS/2.
 
5047
    lt_cv_sys_max_cmd_len=8192
 
5048
    ;;
 
5049
 
 
5050
  osf*)
 
5051
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5052
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5053
    # nice to cause kernel panics so lets avoid the loop below.
 
5054
    # First set a reasonable default.
 
5055
    lt_cv_sys_max_cmd_len=16384
 
5056
    #
 
5057
    if test -x /sbin/sysconfig; then
 
5058
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5059
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5060
      esac
 
5061
    fi
 
5062
    ;;
 
5063
  sco3.2v5*)
 
5064
    lt_cv_sys_max_cmd_len=102400
 
5065
    ;;
 
5066
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5067
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5068
    if test -n "$kargmax"; then
 
5069
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5070
    else
 
5071
      lt_cv_sys_max_cmd_len=32768
 
5072
    fi
 
5073
    ;;
 
5074
  *)
 
5075
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5076
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5077
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5078
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5079
    else
 
5080
      # Make teststring a little bigger before we do anything with it.
 
5081
      # a 1K string should be a reasonable start.
 
5082
      for i in 1 2 3 4 5 6 7 8 ; do
 
5083
        teststring=$teststring$teststring
 
5084
      done
 
5085
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5086
      # If test is not a shell built-in, we'll probably end up computing a
 
5087
      # maximum length that is only half of the actual maximum length, but
 
5088
      # we can't tell.
 
5089
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5090
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5091
              test $i != 17 # 1/2 MB should be enough
 
5092
      do
 
5093
        i=`expr $i + 1`
 
5094
        teststring=$teststring$teststring
 
5095
      done
 
5096
      # Only check the string length outside the loop.
 
5097
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5098
      teststring=
 
5099
      # Add a significant safety factor because C++ compilers can tack on
 
5100
      # massive amounts of additional arguments before passing them to the
 
5101
      # linker.  It appears as though 1/2 is a usable value.
 
5102
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5103
    fi
 
5104
    ;;
 
5105
  esac
 
5106
 
 
5107
fi
 
5108
 
 
5109
if test -n $lt_cv_sys_max_cmd_len ; then
 
5110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5111
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5112
else
 
5113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5114
$as_echo "none" >&6; }
 
5115
fi
 
5116
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5117
 
 
5118
 
 
5119
 
 
5120
 
 
5121
 
 
5122
 
 
5123
: ${CP="cp -f"}
 
5124
: ${MV="mv -f"}
 
5125
: ${RM="rm -f"}
 
5126
 
 
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5128
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5129
# Try some XSI features
 
5130
xsi_shell=no
 
5131
( _lt_dummy="a/b/c"
 
5132
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5133
      = c,a/b,b/c, \
 
5134
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5135
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5136
  && xsi_shell=yes
 
5137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5138
$as_echo "$xsi_shell" >&6; }
 
5139
 
 
5140
 
 
5141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5142
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5143
lt_shell_append=no
 
5144
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5145
    >/dev/null 2>&1 \
 
5146
  && lt_shell_append=yes
 
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5148
$as_echo "$lt_shell_append" >&6; }
 
5149
 
 
5150
 
 
5151
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5152
  lt_unset=unset
 
5153
else
 
5154
  lt_unset=false
 
5155
fi
 
5156
 
 
5157
 
 
5158
 
 
5159
 
 
5160
 
 
5161
# test EBCDIC or ASCII
 
5162
case `echo X|tr X '\101'` in
 
5163
 A) # ASCII based system
 
5164
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5165
  lt_SP2NL='tr \040 \012'
 
5166
  lt_NL2SP='tr \015\012 \040\040'
 
5167
  ;;
 
5168
 *) # EBCDIC based system
 
5169
  lt_SP2NL='tr \100 \n'
 
5170
  lt_NL2SP='tr \r\n \100\100'
 
5171
  ;;
 
5172
esac
 
5173
 
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
 
 
5181
 
 
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5183
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5184
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5185
  $as_echo_n "(cached) " >&6
 
5186
else
 
5187
  case $host in
 
5188
  *-*-mingw* )
 
5189
    case $build in
 
5190
      *-*-mingw* ) # actually msys
 
5191
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5192
        ;;
 
5193
      *-*-cygwin* )
 
5194
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5195
        ;;
 
5196
      * ) # otherwise, assume *nix
 
5197
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5198
        ;;
 
5199
    esac
 
5200
    ;;
 
5201
  *-*-cygwin* )
 
5202
    case $build in
 
5203
      *-*-mingw* ) # actually msys
 
5204
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5205
        ;;
 
5206
      *-*-cygwin* )
 
5207
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5208
        ;;
 
5209
      * ) # otherwise, assume *nix
 
5210
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5211
        ;;
 
5212
    esac
 
5213
    ;;
 
5214
  * ) # unhandled hosts (and "normal" native builds)
 
5215
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5216
    ;;
 
5217
esac
 
5218
 
 
5219
fi
 
5220
 
 
5221
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5223
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5224
 
 
5225
 
 
5226
 
 
5227
 
 
5228
 
 
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5230
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5231
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5232
  $as_echo_n "(cached) " >&6
 
5233
else
 
5234
  #assume ordinary cross tools, or native build.
 
5235
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5236
case $host in
 
5237
  *-*-mingw* )
 
5238
    case $build in
 
5239
      *-*-mingw* ) # actually msys
 
5240
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5241
        ;;
 
5242
    esac
 
5243
    ;;
 
5244
esac
 
5245
 
 
5246
fi
 
5247
 
 
5248
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5250
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5251
 
 
5252
 
 
5253
 
 
5254
 
 
5255
 
 
5256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5257
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5258
if ${lt_cv_ld_reload_flag+:} false; then :
 
5259
  $as_echo_n "(cached) " >&6
 
5260
else
 
5261
  lt_cv_ld_reload_flag='-r'
 
5262
fi
 
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5264
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5265
reload_flag=$lt_cv_ld_reload_flag
 
5266
case $reload_flag in
 
5267
"" | " "*) ;;
 
5268
*) reload_flag=" $reload_flag" ;;
 
5269
esac
 
5270
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5271
case $host_os in
 
5272
  cygwin* | mingw* | pw32* | cegcc*)
 
5273
    if test "$GCC" != yes; then
 
5274
      reload_cmds=false
 
5275
    fi
 
5276
    ;;
 
5277
  darwin*)
 
5278
    if test "$GCC" = yes; then
 
5279
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5280
    else
 
5281
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5282
    fi
 
5283
    ;;
 
5284
esac
 
5285
 
 
5286
 
 
5287
 
 
5288
 
 
5289
 
 
5290
 
 
5291
 
 
5292
 
 
5293
 
 
5294
if test -n "$ac_tool_prefix"; then
 
5295
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5296
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5298
$as_echo_n "checking for $ac_word... " >&6; }
 
5299
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5300
  $as_echo_n "(cached) " >&6
 
5301
else
 
5302
  if test -n "$OBJDUMP"; then
 
5303
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5304
else
 
5305
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5306
for as_dir in $PATH
 
5307
do
 
5308
  IFS=$as_save_IFS
 
5309
  test -z "$as_dir" && as_dir=.
 
5310
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5311
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5312
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5313
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5314
    break 2
 
5315
  fi
 
5316
done
 
5317
  done
 
5318
IFS=$as_save_IFS
 
5319
 
 
5320
fi
 
5321
fi
 
5322
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5323
if test -n "$OBJDUMP"; then
 
5324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5325
$as_echo "$OBJDUMP" >&6; }
 
5326
else
 
5327
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5328
$as_echo "no" >&6; }
 
5329
fi
 
5330
 
 
5331
 
 
5332
fi
 
5333
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5334
  ac_ct_OBJDUMP=$OBJDUMP
 
5335
  # Extract the first word of "objdump", so it can be a program name with args.
 
5336
set dummy objdump; ac_word=$2
 
5337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5338
$as_echo_n "checking for $ac_word... " >&6; }
 
5339
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5340
  $as_echo_n "(cached) " >&6
 
5341
else
 
5342
  if test -n "$ac_ct_OBJDUMP"; then
 
5343
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5344
else
 
5345
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5346
for as_dir in $PATH
 
5347
do
 
5348
  IFS=$as_save_IFS
 
5349
  test -z "$as_dir" && as_dir=.
 
5350
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5351
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5352
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5353
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5354
    break 2
 
5355
  fi
 
5356
done
 
5357
  done
 
5358
IFS=$as_save_IFS
 
5359
 
 
5360
fi
 
5361
fi
 
5362
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5363
if test -n "$ac_ct_OBJDUMP"; then
 
5364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5365
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5366
else
 
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5368
$as_echo "no" >&6; }
 
5369
fi
 
5370
 
 
5371
  if test "x$ac_ct_OBJDUMP" = x; then
 
5372
    OBJDUMP="false"
 
5373
  else
 
5374
    case $cross_compiling:$ac_tool_warned in
 
5375
yes:)
 
5376
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5377
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5378
ac_tool_warned=yes ;;
 
5379
esac
 
5380
    OBJDUMP=$ac_ct_OBJDUMP
 
5381
  fi
 
5382
else
 
5383
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5384
fi
 
5385
 
 
5386
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5387
 
 
5388
 
 
5389
 
 
5390
 
 
5391
 
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5397
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5398
if ${lt_cv_deplibs_check_method+:} false; then :
 
5399
  $as_echo_n "(cached) " >&6
 
5400
else
 
5401
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5402
lt_cv_file_magic_test_file=
 
5403
lt_cv_deplibs_check_method='unknown'
 
5404
# Need to set the preceding variable on all platforms that support
 
5405
# interlibrary dependencies.
 
5406
# 'none' -- dependencies not supported.
 
5407
# `unknown' -- same as none, but documents that we really don't know.
 
5408
# 'pass_all' -- all dependencies passed with no checks.
 
5409
# 'test_compile' -- check by making test program.
 
5410
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5411
# which responds to the $file_magic_cmd with a given extended regex.
 
5412
# If you have `file' or equivalent on your system and you're not sure
 
5413
# whether `pass_all' will *always* work, you probably want this one.
 
5414
 
 
5415
case $host_os in
 
5416
aix[4-9]*)
 
5417
  lt_cv_deplibs_check_method=pass_all
 
5418
  ;;
 
5419
 
 
5420
beos*)
 
5421
  lt_cv_deplibs_check_method=pass_all
 
5422
  ;;
 
5423
 
 
5424
bsdi[45]*)
 
5425
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5426
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5427
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5428
  ;;
 
5429
 
 
5430
cygwin*)
 
5431
  # func_win32_libid is a shell function defined in ltmain.sh
 
5432
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5433
  lt_cv_file_magic_cmd='func_win32_libid'
 
5434
  ;;
 
5435
 
 
5436
mingw* | pw32*)
 
5437
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5438
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5439
  # unless we find 'file', for example because we are cross-compiling.
 
5440
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5441
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5442
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5443
    lt_cv_file_magic_cmd='func_win32_libid'
 
5444
  else
 
5445
    # Keep this pattern in sync with the one in func_win32_libid.
 
5446
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5447
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5448
  fi
 
5449
  ;;
 
5450
 
 
5451
cegcc*)
 
5452
  # use the weaker test based on 'objdump'. See mingw*.
 
5453
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5454
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5455
  ;;
 
5456
 
 
5457
darwin* | rhapsody*)
 
5458
  lt_cv_deplibs_check_method=pass_all
 
5459
  ;;
 
5460
 
 
5461
freebsd* | dragonfly*)
 
5462
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5463
    case $host_cpu in
 
5464
    i*86 )
 
5465
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5466
      # Let's accept both of them until this is cleared up.
 
5467
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5468
      lt_cv_file_magic_cmd=/usr/bin/file
 
5469
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5470
      ;;
 
5471
    esac
 
5472
  else
 
5473
    lt_cv_deplibs_check_method=pass_all
 
5474
  fi
 
5475
  ;;
 
5476
 
 
5477
gnu*)
 
5478
  lt_cv_deplibs_check_method=pass_all
 
5479
  ;;
 
5480
 
 
5481
haiku*)
 
5482
  lt_cv_deplibs_check_method=pass_all
 
5483
  ;;
 
5484
 
 
5485
hpux10.20* | hpux11*)
 
5486
  lt_cv_file_magic_cmd=/usr/bin/file
 
5487
  case $host_cpu in
 
5488
  ia64*)
 
5489
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5490
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5491
    ;;
 
5492
  hppa*64*)
 
5493
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5494
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5495
    ;;
 
5496
  *)
 
5497
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5498
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5499
    ;;
 
5500
  esac
 
5501
  ;;
 
5502
 
 
5503
interix[3-9]*)
 
5504
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5505
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5506
  ;;
 
5507
 
 
5508
irix5* | irix6* | nonstopux*)
 
5509
  case $LD in
 
5510
  *-32|*"-32 ") libmagic=32-bit;;
 
5511
  *-n32|*"-n32 ") libmagic=N32;;
 
5512
  *-64|*"-64 ") libmagic=64-bit;;
 
5513
  *) libmagic=never-match;;
 
5514
  esac
 
5515
  lt_cv_deplibs_check_method=pass_all
 
5516
  ;;
 
5517
 
 
5518
# This must be glibc/ELF.
 
5519
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5520
  lt_cv_deplibs_check_method=pass_all
 
5521
  ;;
 
5522
 
 
5523
netbsd* | netbsdelf*-gnu)
 
5524
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5525
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5526
  else
 
5527
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5528
  fi
 
5529
  ;;
 
5530
 
 
5531
newos6*)
 
5532
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5533
  lt_cv_file_magic_cmd=/usr/bin/file
 
5534
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5535
  ;;
 
5536
 
 
5537
*nto* | *qnx*)
 
5538
  lt_cv_deplibs_check_method=pass_all
 
5539
  ;;
 
5540
 
 
5541
openbsd*)
 
5542
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5543
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5544
  else
 
5545
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5546
  fi
 
5547
  ;;
 
5548
 
 
5549
osf3* | osf4* | osf5*)
 
5550
  lt_cv_deplibs_check_method=pass_all
 
5551
  ;;
 
5552
 
 
5553
rdos*)
 
5554
  lt_cv_deplibs_check_method=pass_all
 
5555
  ;;
 
5556
 
 
5557
solaris*)
 
5558
  lt_cv_deplibs_check_method=pass_all
 
5559
  ;;
 
5560
 
 
5561
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5562
  lt_cv_deplibs_check_method=pass_all
 
5563
  ;;
 
5564
 
 
5565
sysv4 | sysv4.3*)
 
5566
  case $host_vendor in
 
5567
  motorola)
 
5568
    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]'
 
5569
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5570
    ;;
 
5571
  ncr)
 
5572
    lt_cv_deplibs_check_method=pass_all
 
5573
    ;;
 
5574
  sequent)
 
5575
    lt_cv_file_magic_cmd='/bin/file'
 
5576
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5577
    ;;
 
5578
  sni)
 
5579
    lt_cv_file_magic_cmd='/bin/file'
 
5580
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5581
    lt_cv_file_magic_test_file=/lib/libc.so
 
5582
    ;;
 
5583
  siemens)
 
5584
    lt_cv_deplibs_check_method=pass_all
 
5585
    ;;
 
5586
  pc)
 
5587
    lt_cv_deplibs_check_method=pass_all
 
5588
    ;;
 
5589
  esac
 
5590
  ;;
 
5591
 
 
5592
tpf*)
 
5593
  lt_cv_deplibs_check_method=pass_all
 
5594
  ;;
 
5595
esac
 
5596
 
 
5597
fi
 
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5599
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5600
 
 
5601
file_magic_glob=
 
5602
want_nocaseglob=no
 
5603
if test "$build" = "$host"; then
 
5604
  case $host_os in
 
5605
  mingw* | pw32*)
 
5606
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5607
      want_nocaseglob=yes
 
5608
    else
 
5609
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5610
    fi
 
5611
    ;;
 
5612
  esac
 
5613
fi
 
5614
 
 
5615
file_magic_cmd=$lt_cv_file_magic_cmd
 
5616
deplibs_check_method=$lt_cv_deplibs_check_method
 
5617
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5618
 
 
5619
 
 
5620
 
 
5621
 
 
5622
 
 
5623
 
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
if test -n "$ac_tool_prefix"; then
 
5641
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5642
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5644
$as_echo_n "checking for $ac_word... " >&6; }
 
5645
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5646
  $as_echo_n "(cached) " >&6
 
5647
else
 
5648
  if test -n "$DLLTOOL"; then
 
5649
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5650
else
 
5651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5652
for as_dir in $PATH
 
5653
do
 
5654
  IFS=$as_save_IFS
 
5655
  test -z "$as_dir" && as_dir=.
 
5656
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5657
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5658
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5659
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5660
    break 2
 
5661
  fi
 
5662
done
 
5663
  done
 
5664
IFS=$as_save_IFS
 
5665
 
 
5666
fi
 
5667
fi
 
5668
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5669
if test -n "$DLLTOOL"; then
 
5670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5671
$as_echo "$DLLTOOL" >&6; }
 
5672
else
 
5673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5674
$as_echo "no" >&6; }
 
5675
fi
 
5676
 
 
5677
 
 
5678
fi
 
5679
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5680
  ac_ct_DLLTOOL=$DLLTOOL
 
5681
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5682
set dummy dlltool; ac_word=$2
 
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5684
$as_echo_n "checking for $ac_word... " >&6; }
 
5685
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5686
  $as_echo_n "(cached) " >&6
 
5687
else
 
5688
  if test -n "$ac_ct_DLLTOOL"; then
 
5689
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5690
else
 
5691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5692
for as_dir in $PATH
 
5693
do
 
5694
  IFS=$as_save_IFS
 
5695
  test -z "$as_dir" && as_dir=.
 
5696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5698
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5700
    break 2
 
5701
  fi
 
5702
done
 
5703
  done
 
5704
IFS=$as_save_IFS
 
5705
 
 
5706
fi
 
5707
fi
 
5708
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5709
if test -n "$ac_ct_DLLTOOL"; then
 
5710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5711
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5712
else
 
5713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5714
$as_echo "no" >&6; }
 
5715
fi
 
5716
 
 
5717
  if test "x$ac_ct_DLLTOOL" = x; then
 
5718
    DLLTOOL="false"
 
5719
  else
 
5720
    case $cross_compiling:$ac_tool_warned in
 
5721
yes:)
 
5722
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5724
ac_tool_warned=yes ;;
 
5725
esac
 
5726
    DLLTOOL=$ac_ct_DLLTOOL
 
5727
  fi
 
5728
else
 
5729
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5730
fi
 
5731
 
 
5732
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5733
 
 
5734
 
 
5735
 
 
5736
 
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5744
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5745
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5746
  $as_echo_n "(cached) " >&6
 
5747
else
 
5748
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5749
 
 
5750
case $host_os in
 
5751
cygwin* | mingw* | pw32* | cegcc*)
 
5752
  # two different shell functions defined in ltmain.sh
 
5753
  # decide which to use based on capabilities of $DLLTOOL
 
5754
  case `$DLLTOOL --help 2>&1` in
 
5755
  *--identify-strict*)
 
5756
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5757
    ;;
 
5758
  *)
 
5759
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5760
    ;;
 
5761
  esac
 
5762
  ;;
 
5763
*)
 
5764
  # fallback: assume linklib IS sharedlib
 
5765
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5766
  ;;
 
5767
esac
 
5768
 
 
5769
fi
 
5770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5771
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5772
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5773
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
if test -n "$ac_tool_prefix"; then
 
5783
  for ac_prog in ar
 
5784
  do
 
5785
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5786
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5788
$as_echo_n "checking for $ac_word... " >&6; }
 
5789
if ${ac_cv_prog_AR+:} false; then :
 
5790
  $as_echo_n "(cached) " >&6
 
5791
else
 
5792
  if test -n "$AR"; then
 
5793
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5794
else
 
5795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5796
for as_dir in $PATH
 
5797
do
 
5798
  IFS=$as_save_IFS
 
5799
  test -z "$as_dir" && as_dir=.
 
5800
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5801
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5802
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5803
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5804
    break 2
 
5805
  fi
 
5806
done
 
5807
  done
 
5808
IFS=$as_save_IFS
 
5809
 
 
5810
fi
 
5811
fi
 
5812
AR=$ac_cv_prog_AR
 
5813
if test -n "$AR"; then
 
5814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5815
$as_echo "$AR" >&6; }
 
5816
else
 
5817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5818
$as_echo "no" >&6; }
 
5819
fi
 
5820
 
 
5821
 
 
5822
    test -n "$AR" && break
 
5823
  done
 
5824
fi
 
5825
if test -z "$AR"; then
 
5826
  ac_ct_AR=$AR
 
5827
  for ac_prog in ar
 
5828
do
 
5829
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5830
set dummy $ac_prog; ac_word=$2
 
5831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5832
$as_echo_n "checking for $ac_word... " >&6; }
 
5833
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5834
  $as_echo_n "(cached) " >&6
 
5835
else
 
5836
  if test -n "$ac_ct_AR"; then
 
5837
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5838
else
 
5839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5840
for as_dir in $PATH
 
5841
do
 
5842
  IFS=$as_save_IFS
 
5843
  test -z "$as_dir" && as_dir=.
 
5844
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5846
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5847
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5848
    break 2
 
5849
  fi
 
5850
done
 
5851
  done
 
5852
IFS=$as_save_IFS
 
5853
 
 
5854
fi
 
5855
fi
 
5856
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5857
if test -n "$ac_ct_AR"; then
 
5858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5859
$as_echo "$ac_ct_AR" >&6; }
 
5860
else
 
5861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5862
$as_echo "no" >&6; }
 
5863
fi
 
5864
 
 
5865
 
 
5866
  test -n "$ac_ct_AR" && break
 
5867
done
 
5868
 
 
5869
  if test "x$ac_ct_AR" = x; then
 
5870
    AR="false"
 
5871
  else
 
5872
    case $cross_compiling:$ac_tool_warned in
 
5873
yes:)
 
5874
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5875
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5876
ac_tool_warned=yes ;;
 
5877
esac
 
5878
    AR=$ac_ct_AR
 
5879
  fi
 
5880
fi
 
5881
 
 
5882
: ${AR=ar}
 
5883
: ${AR_FLAGS=cru}
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
 
 
5895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5896
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5897
if ${lt_cv_ar_at_file+:} false; then :
 
5898
  $as_echo_n "(cached) " >&6
 
5899
else
 
5900
  lt_cv_ar_at_file=no
 
5901
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5902
/* end confdefs.h.  */
 
5903
 
 
5904
int
 
5905
main ()
 
5906
{
 
5907
 
 
5908
  ;
 
5909
  return 0;
 
5910
}
 
5911
_ACEOF
 
5912
if ac_fn_c_try_compile "$LINENO"; then :
 
5913
  echo conftest.$ac_objext > conftest.lst
 
5914
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5915
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5916
  (eval $lt_ar_try) 2>&5
 
5917
  ac_status=$?
 
5918
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5919
  test $ac_status = 0; }
 
5920
      if test "$ac_status" -eq 0; then
 
5921
        # Ensure the archiver fails upon bogus file names.
 
5922
        rm -f conftest.$ac_objext libconftest.a
 
5923
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5924
  (eval $lt_ar_try) 2>&5
 
5925
  ac_status=$?
 
5926
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5927
  test $ac_status = 0; }
 
5928
        if test "$ac_status" -ne 0; then
 
5929
          lt_cv_ar_at_file=@
 
5930
        fi
 
5931
      fi
 
5932
      rm -f conftest.* libconftest.a
 
5933
 
 
5934
fi
 
5935
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5936
 
 
5937
fi
 
5938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5939
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5940
 
 
5941
if test "x$lt_cv_ar_at_file" = xno; then
 
5942
  archiver_list_spec=
 
5943
else
 
5944
  archiver_list_spec=$lt_cv_ar_at_file
 
5945
fi
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
if test -n "$ac_tool_prefix"; then
 
5954
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5955
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5957
$as_echo_n "checking for $ac_word... " >&6; }
 
5958
if ${ac_cv_prog_STRIP+:} false; then :
 
5959
  $as_echo_n "(cached) " >&6
 
5960
else
 
5961
  if test -n "$STRIP"; then
 
5962
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5963
else
 
5964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5965
for as_dir in $PATH
 
5966
do
 
5967
  IFS=$as_save_IFS
 
5968
  test -z "$as_dir" && as_dir=.
 
5969
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5971
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5973
    break 2
 
5974
  fi
 
5975
done
 
5976
  done
 
5977
IFS=$as_save_IFS
 
5978
 
 
5979
fi
 
5980
fi
 
5981
STRIP=$ac_cv_prog_STRIP
 
5982
if test -n "$STRIP"; then
 
5983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5984
$as_echo "$STRIP" >&6; }
 
5985
else
 
5986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5987
$as_echo "no" >&6; }
 
5988
fi
 
5989
 
 
5990
 
 
5991
fi
 
5992
if test -z "$ac_cv_prog_STRIP"; then
 
5993
  ac_ct_STRIP=$STRIP
 
5994
  # Extract the first word of "strip", so it can be a program name with args.
 
5995
set dummy strip; ac_word=$2
 
5996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5997
$as_echo_n "checking for $ac_word... " >&6; }
 
5998
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5999
  $as_echo_n "(cached) " >&6
 
6000
else
 
6001
  if test -n "$ac_ct_STRIP"; then
 
6002
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6003
else
 
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6005
for as_dir in $PATH
 
6006
do
 
6007
  IFS=$as_save_IFS
 
6008
  test -z "$as_dir" && as_dir=.
 
6009
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6010
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6011
    ac_cv_prog_ac_ct_STRIP="strip"
 
6012
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6013
    break 2
 
6014
  fi
 
6015
done
 
6016
  done
 
6017
IFS=$as_save_IFS
 
6018
 
 
6019
fi
 
6020
fi
 
6021
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6022
if test -n "$ac_ct_STRIP"; then
 
6023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6024
$as_echo "$ac_ct_STRIP" >&6; }
 
6025
else
 
6026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6027
$as_echo "no" >&6; }
 
6028
fi
 
6029
 
 
6030
  if test "x$ac_ct_STRIP" = x; then
 
6031
    STRIP=":"
 
6032
  else
 
6033
    case $cross_compiling:$ac_tool_warned in
 
6034
yes:)
 
6035
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6036
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6037
ac_tool_warned=yes ;;
 
6038
esac
 
6039
    STRIP=$ac_ct_STRIP
 
6040
  fi
 
6041
else
 
6042
  STRIP="$ac_cv_prog_STRIP"
 
6043
fi
 
6044
 
 
6045
test -z "$STRIP" && STRIP=:
 
6046
 
 
6047
 
 
6048
 
 
6049
 
 
6050
 
 
6051
 
 
6052
if test -n "$ac_tool_prefix"; then
 
6053
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6054
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6056
$as_echo_n "checking for $ac_word... " >&6; }
 
6057
if ${ac_cv_prog_RANLIB+:} false; then :
 
6058
  $as_echo_n "(cached) " >&6
 
6059
else
 
6060
  if test -n "$RANLIB"; then
 
6061
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6062
else
 
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6064
for as_dir in $PATH
 
6065
do
 
6066
  IFS=$as_save_IFS
 
6067
  test -z "$as_dir" && as_dir=.
 
6068
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6069
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6070
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6071
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6072
    break 2
 
6073
  fi
 
6074
done
 
6075
  done
 
6076
IFS=$as_save_IFS
 
6077
 
 
6078
fi
 
6079
fi
 
6080
RANLIB=$ac_cv_prog_RANLIB
 
6081
if test -n "$RANLIB"; then
 
6082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6083
$as_echo "$RANLIB" >&6; }
 
6084
else
 
6085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6086
$as_echo "no" >&6; }
 
6087
fi
 
6088
 
 
6089
 
 
6090
fi
 
6091
if test -z "$ac_cv_prog_RANLIB"; then
 
6092
  ac_ct_RANLIB=$RANLIB
 
6093
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6094
set dummy ranlib; ac_word=$2
 
6095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6096
$as_echo_n "checking for $ac_word... " >&6; }
 
6097
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6098
  $as_echo_n "(cached) " >&6
 
6099
else
 
6100
  if test -n "$ac_ct_RANLIB"; then
 
6101
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6102
else
 
6103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6104
for as_dir in $PATH
 
6105
do
 
6106
  IFS=$as_save_IFS
 
6107
  test -z "$as_dir" && as_dir=.
 
6108
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6109
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6110
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6111
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6112
    break 2
 
6113
  fi
 
6114
done
 
6115
  done
 
6116
IFS=$as_save_IFS
 
6117
 
 
6118
fi
 
6119
fi
 
6120
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6121
if test -n "$ac_ct_RANLIB"; then
 
6122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6123
$as_echo "$ac_ct_RANLIB" >&6; }
 
6124
else
 
6125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6126
$as_echo "no" >&6; }
 
6127
fi
 
6128
 
 
6129
  if test "x$ac_ct_RANLIB" = x; then
 
6130
    RANLIB=":"
 
6131
  else
 
6132
    case $cross_compiling:$ac_tool_warned in
 
6133
yes:)
 
6134
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6135
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6136
ac_tool_warned=yes ;;
 
6137
esac
 
6138
    RANLIB=$ac_ct_RANLIB
 
6139
  fi
 
6140
else
 
6141
  RANLIB="$ac_cv_prog_RANLIB"
 
6142
fi
 
6143
 
 
6144
test -z "$RANLIB" && RANLIB=:
 
6145
 
 
6146
 
 
6147
 
 
6148
 
 
6149
 
 
6150
 
 
6151
# Determine commands to create old-style static archives.
 
6152
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6153
old_postinstall_cmds='chmod 644 $oldlib'
 
6154
old_postuninstall_cmds=
 
6155
 
 
6156
if test -n "$RANLIB"; then
 
6157
  case $host_os in
 
6158
  openbsd*)
 
6159
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6160
    ;;
 
6161
  *)
 
6162
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6163
    ;;
 
6164
  esac
 
6165
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6166
fi
 
6167
 
 
6168
case $host_os in
 
6169
  darwin*)
 
6170
    lock_old_archive_extraction=yes ;;
 
6171
  *)
 
6172
    lock_old_archive_extraction=no ;;
 
6173
esac
 
6174
 
 
6175
 
 
6176
 
 
6177
 
 
6178
 
 
6179
 
 
6180
 
 
6181
 
 
6182
 
 
6183
 
 
6184
 
 
6185
 
 
6186
 
 
6187
 
 
6188
 
 
6189
 
 
6190
 
 
6191
 
 
6192
 
 
6193
 
 
6194
 
 
6195
 
 
6196
 
 
6197
 
 
6198
 
 
6199
 
 
6200
 
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
 
 
6206
 
 
6207
 
 
6208
 
 
6209
 
 
6210
 
 
6211
 
 
6212
 
 
6213
# If no C compiler was specified, use CC.
 
6214
LTCC=${LTCC-"$CC"}
 
6215
 
 
6216
# If no C compiler flags were specified, use CFLAGS.
 
6217
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6218
 
 
6219
# Allow CC to be a program name with arguments.
 
6220
compiler=$CC
 
6221
 
 
6222
 
 
6223
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6225
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6226
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6227
  $as_echo_n "(cached) " >&6
 
6228
else
 
6229
 
 
6230
# These are sane defaults that work on at least a few old systems.
 
6231
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6232
 
 
6233
# Character class describing NM global symbol codes.
 
6234
symcode='[BCDEGRST]'
 
6235
 
 
6236
# Regexp to match symbols that can be accessed directly from C.
 
6237
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6238
 
 
6239
# Define system-specific variables.
 
6240
case $host_os in
 
6241
aix*)
 
6242
  symcode='[BCDT]'
 
6243
  ;;
 
6244
cygwin* | mingw* | pw32* | cegcc*)
 
6245
  symcode='[ABCDGISTW]'
 
6246
  ;;
 
6247
hpux*)
 
6248
  if test "$host_cpu" = ia64; then
 
6249
    symcode='[ABCDEGRST]'
 
6250
  fi
 
6251
  ;;
 
6252
irix* | nonstopux*)
 
6253
  symcode='[BCDEGRST]'
 
6254
  ;;
 
6255
osf*)
 
6256
  symcode='[BCDEGQRST]'
 
6257
  ;;
 
6258
solaris*)
 
6259
  symcode='[BDRT]'
 
6260
  ;;
 
6261
sco3.2v5*)
 
6262
  symcode='[DT]'
 
6263
  ;;
 
6264
sysv4.2uw2*)
 
6265
  symcode='[DT]'
 
6266
  ;;
 
6267
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6268
  symcode='[ABDT]'
 
6269
  ;;
 
6270
sysv4)
 
6271
  symcode='[DFNSTU]'
 
6272
  ;;
 
6273
esac
 
6274
 
 
6275
# If we're using GNU nm, then use its standard symbol codes.
 
6276
case `$NM -V 2>&1` in
 
6277
*GNU* | *'with BFD'*)
 
6278
  symcode='[ABCDGIRSTW]' ;;
 
6279
esac
 
6280
 
 
6281
# Transform an extracted symbol line into a proper C declaration.
 
6282
# Some systems (esp. on ia64) link data and code symbols differently,
 
6283
# so use this general approach.
 
6284
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6285
 
 
6286
# Transform an extracted symbol line into symbol name and symbol address
 
6287
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6288
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'"
 
6289
 
 
6290
# Handle CRLF in mingw tool chain
 
6291
opt_cr=
 
6292
case $build_os in
 
6293
mingw*)
 
6294
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6295
  ;;
 
6296
esac
 
6297
 
 
6298
# Try without a prefix underscore, then with it.
 
6299
for ac_symprfx in "" "_"; do
 
6300
 
 
6301
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6302
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6303
 
 
6304
  # Write the raw and C identifiers.
 
6305
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6306
    # Fake it for dumpbin and say T for any non-static function
 
6307
    # and D for any global variable.
 
6308
    # Also find C++ and __fastcall symbols from MSVC++,
 
6309
    # which start with @ or ?.
 
6310
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6311
"     {last_section=section; section=\$ 3};"\
 
6312
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6313
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6314
"     \$ 0!~/External *\|/{next};"\
 
6315
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6316
"     {if(hide[section]) next};"\
 
6317
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6318
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6319
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6320
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6321
"     ' prfx=^$ac_symprfx"
 
6322
  else
 
6323
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6324
  fi
 
6325
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6326
 
 
6327
  # Check to see that the pipe works correctly.
 
6328
  pipe_works=no
 
6329
 
 
6330
  rm -f conftest*
 
6331
  cat > conftest.$ac_ext <<_LT_EOF
 
6332
#ifdef __cplusplus
 
6333
extern "C" {
 
6334
#endif
 
6335
char nm_test_var;
 
6336
void nm_test_func(void);
 
6337
void nm_test_func(void){}
 
6338
#ifdef __cplusplus
 
6339
}
 
6340
#endif
 
6341
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6342
_LT_EOF
 
6343
 
 
6344
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6345
  (eval $ac_compile) 2>&5
 
6346
  ac_status=$?
 
6347
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6348
  test $ac_status = 0; }; then
 
6349
    # Now try to grab the symbols.
 
6350
    nlist=conftest.nm
 
6351
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6352
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6353
  ac_status=$?
 
6354
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6355
  test $ac_status = 0; } && test -s "$nlist"; then
 
6356
      # Try sorting and uniquifying the output.
 
6357
      if sort "$nlist" | uniq > "$nlist"T; then
 
6358
        mv -f "$nlist"T "$nlist"
 
6359
      else
 
6360
        rm -f "$nlist"T
 
6361
      fi
 
6362
 
 
6363
      # Make sure that we snagged all the symbols we need.
 
6364
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6365
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6366
          cat <<_LT_EOF > conftest.$ac_ext
 
6367
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6368
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6369
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6370
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6371
# define LT_DLSYM_CONST
 
6372
#elif defined(__osf__)
 
6373
/* This system does not cope well with relocations in const data.  */
 
6374
# define LT_DLSYM_CONST
 
6375
#else
 
6376
# define LT_DLSYM_CONST const
 
6377
#endif
 
6378
 
 
6379
#ifdef __cplusplus
 
6380
extern "C" {
 
6381
#endif
 
6382
 
 
6383
_LT_EOF
 
6384
          # Now generate the symbol file.
 
6385
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6386
 
 
6387
          cat <<_LT_EOF >> conftest.$ac_ext
 
6388
 
 
6389
/* The mapping between symbol names and symbols.  */
 
6390
LT_DLSYM_CONST struct {
 
6391
  const char *name;
 
6392
  void       *address;
 
6393
}
 
6394
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6395
{
 
6396
  { "@PROGRAM@", (void *) 0 },
 
6397
_LT_EOF
 
6398
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6399
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6400
  {0, (void *) 0}
 
6401
};
 
6402
 
 
6403
/* This works around a problem in FreeBSD linker */
 
6404
#ifdef FREEBSD_WORKAROUND
 
6405
static const void *lt_preloaded_setup() {
 
6406
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6407
}
 
6408
#endif
 
6409
 
 
6410
#ifdef __cplusplus
 
6411
}
 
6412
#endif
 
6413
_LT_EOF
 
6414
          # Now try linking the two files.
 
6415
          mv conftest.$ac_objext conftstm.$ac_objext
 
6416
          lt_globsym_save_LIBS=$LIBS
 
6417
          lt_globsym_save_CFLAGS=$CFLAGS
 
6418
          LIBS="conftstm.$ac_objext"
 
6419
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6420
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6421
  (eval $ac_link) 2>&5
 
6422
  ac_status=$?
 
6423
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6424
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6425
            pipe_works=yes
 
6426
          fi
 
6427
          LIBS=$lt_globsym_save_LIBS
 
6428
          CFLAGS=$lt_globsym_save_CFLAGS
 
6429
        else
 
6430
          echo "cannot find nm_test_func in $nlist" >&5
 
6431
        fi
 
6432
      else
 
6433
        echo "cannot find nm_test_var in $nlist" >&5
 
6434
      fi
 
6435
    else
 
6436
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6437
    fi
 
6438
  else
 
6439
    echo "$progname: failed program was:" >&5
 
6440
    cat conftest.$ac_ext >&5
 
6441
  fi
 
6442
  rm -rf conftest* conftst*
 
6443
 
 
6444
  # Do not use the global_symbol_pipe unless it works.
 
6445
  if test "$pipe_works" = yes; then
 
6446
    break
 
6447
  else
 
6448
    lt_cv_sys_global_symbol_pipe=
 
6449
  fi
 
6450
done
 
6451
 
 
6452
fi
 
6453
 
 
6454
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6455
  lt_cv_sys_global_symbol_to_cdecl=
 
6456
fi
 
6457
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6458
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6459
$as_echo "failed" >&6; }
 
6460
else
 
6461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6462
$as_echo "ok" >&6; }
 
6463
fi
 
6464
 
 
6465
# Response file support.
 
6466
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6467
  nm_file_list_spec='@'
 
6468
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6469
  nm_file_list_spec='@'
 
6470
fi
 
6471
 
 
6472
 
 
6473
 
 
6474
 
 
6475
 
 
6476
 
 
6477
 
 
6478
 
 
6479
 
 
6480
 
 
6481
 
 
6482
 
 
6483
 
 
6484
 
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
 
 
6497
 
 
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6499
$as_echo_n "checking for sysroot... " >&6; }
 
6500
 
 
6501
# Check whether --with-sysroot was given.
 
6502
if test "${with_sysroot+set}" = set; then :
 
6503
  withval=$with_sysroot;
 
6504
else
 
6505
  with_sysroot=no
 
6506
fi
 
6507
 
 
6508
 
 
6509
lt_sysroot=
 
6510
case ${with_sysroot} in #(
 
6511
 yes)
 
6512
   if test "$GCC" = yes; then
 
6513
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6514
   fi
 
6515
   ;; #(
 
6516
 /*)
 
6517
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6518
   ;; #(
 
6519
 no|'')
 
6520
   ;; #(
 
6521
 *)
 
6522
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6523
$as_echo "${with_sysroot}" >&6; }
 
6524
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6525
   ;;
 
6526
esac
 
6527
 
 
6528
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6529
$as_echo "${lt_sysroot:-no}" >&6; }
 
6530
 
 
6531
 
 
6532
 
 
6533
 
 
6534
 
 
6535
# Check whether --enable-libtool-lock was given.
 
6536
if test "${enable_libtool_lock+set}" = set; then :
 
6537
  enableval=$enable_libtool_lock;
 
6538
fi
 
6539
 
 
6540
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6541
 
 
6542
# Some flags need to be propagated to the compiler or linker for good
 
6543
# libtool support.
 
6544
case $host in
 
6545
ia64-*-hpux*)
 
6546
  # Find out which ABI we are using.
 
6547
  echo 'int i;' > conftest.$ac_ext
 
6548
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6549
  (eval $ac_compile) 2>&5
 
6550
  ac_status=$?
 
6551
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6552
  test $ac_status = 0; }; then
 
6553
    case `/usr/bin/file conftest.$ac_objext` in
 
6554
      *ELF-32*)
 
6555
        HPUX_IA64_MODE="32"
 
6556
        ;;
 
6557
      *ELF-64*)
 
6558
        HPUX_IA64_MODE="64"
 
6559
        ;;
 
6560
    esac
 
6561
  fi
 
6562
  rm -rf conftest*
 
6563
  ;;
 
6564
*-*-irix6*)
 
6565
  # Find out which ABI we are using.
 
6566
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6567
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6568
  (eval $ac_compile) 2>&5
 
6569
  ac_status=$?
 
6570
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6571
  test $ac_status = 0; }; then
 
6572
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6573
      case `/usr/bin/file conftest.$ac_objext` in
 
6574
        *32-bit*)
 
6575
          LD="${LD-ld} -melf32bsmip"
 
6576
          ;;
 
6577
        *N32*)
 
6578
          LD="${LD-ld} -melf32bmipn32"
 
6579
          ;;
 
6580
        *64-bit*)
 
6581
          LD="${LD-ld} -melf64bmip"
 
6582
        ;;
 
6583
      esac
 
6584
    else
 
6585
      case `/usr/bin/file conftest.$ac_objext` in
 
6586
        *32-bit*)
 
6587
          LD="${LD-ld} -32"
 
6588
          ;;
 
6589
        *N32*)
 
6590
          LD="${LD-ld} -n32"
 
6591
          ;;
 
6592
        *64-bit*)
 
6593
          LD="${LD-ld} -64"
 
6594
          ;;
 
6595
      esac
 
6596
    fi
 
6597
  fi
 
6598
  rm -rf conftest*
 
6599
  ;;
 
6600
 
 
6601
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6602
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6603
  # Find out which ABI we are using.
 
6604
  echo 'int i;' > conftest.$ac_ext
 
6605
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6606
  (eval $ac_compile) 2>&5
 
6607
  ac_status=$?
 
6608
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6609
  test $ac_status = 0; }; then
 
6610
    case `/usr/bin/file conftest.o` in
 
6611
      *32-bit*)
 
6612
        case $host in
 
6613
          x86_64-*kfreebsd*-gnu)
 
6614
            LD="${LD-ld} -m elf_i386_fbsd"
 
6615
            ;;
 
6616
          x86_64-*linux*)
 
6617
            LD="${LD-ld} -m elf_i386"
 
6618
            ;;
 
6619
          ppc64-*linux*|powerpc64-*linux*)
 
6620
            LD="${LD-ld} -m elf32ppclinux"
 
6621
            ;;
 
6622
          s390x-*linux*)
 
6623
            LD="${LD-ld} -m elf_s390"
 
6624
            ;;
 
6625
          sparc64-*linux*)
 
6626
            LD="${LD-ld} -m elf32_sparc"
 
6627
            ;;
 
6628
        esac
 
6629
        ;;
 
6630
      *64-bit*)
 
6631
        case $host in
 
6632
          x86_64-*kfreebsd*-gnu)
 
6633
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6634
            ;;
 
6635
          x86_64-*linux*)
 
6636
            LD="${LD-ld} -m elf_x86_64"
 
6637
            ;;
 
6638
          ppc*-*linux*|powerpc*-*linux*)
 
6639
            LD="${LD-ld} -m elf64ppc"
 
6640
            ;;
 
6641
          s390*-*linux*|s390*-*tpf*)
 
6642
            LD="${LD-ld} -m elf64_s390"
 
6643
            ;;
 
6644
          sparc*-*linux*)
 
6645
            LD="${LD-ld} -m elf64_sparc"
 
6646
            ;;
 
6647
        esac
 
6648
        ;;
 
6649
    esac
 
6650
  fi
 
6651
  rm -rf conftest*
 
6652
  ;;
 
6653
 
 
6654
*-*-sco3.2v5*)
 
6655
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6656
  SAVE_CFLAGS="$CFLAGS"
 
6657
  CFLAGS="$CFLAGS -belf"
 
6658
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6659
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6660
if ${lt_cv_cc_needs_belf+:} false; then :
 
6661
  $as_echo_n "(cached) " >&6
 
6662
else
 
6663
  ac_ext=c
 
6664
ac_cpp='$CPP $CPPFLAGS'
 
6665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6668
 
 
6669
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6670
/* end confdefs.h.  */
 
6671
 
 
6672
int
 
6673
main ()
 
6674
{
 
6675
 
 
6676
  ;
 
6677
  return 0;
 
6678
}
 
6679
_ACEOF
 
6680
if ac_fn_c_try_link "$LINENO"; then :
 
6681
  lt_cv_cc_needs_belf=yes
 
6682
else
 
6683
  lt_cv_cc_needs_belf=no
 
6684
fi
 
6685
rm -f core conftest.err conftest.$ac_objext \
 
6686
    conftest$ac_exeext conftest.$ac_ext
 
6687
     ac_ext=c
 
6688
ac_cpp='$CPP $CPPFLAGS'
 
6689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6692
 
 
6693
fi
 
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6695
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6696
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6697
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6698
    CFLAGS="$SAVE_CFLAGS"
 
6699
  fi
 
6700
  ;;
 
6701
*-*solaris*)
 
6702
  # Find out which ABI we are using.
 
6703
  echo 'int i;' > conftest.$ac_ext
 
6704
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6705
  (eval $ac_compile) 2>&5
 
6706
  ac_status=$?
 
6707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6708
  test $ac_status = 0; }; then
 
6709
    case `/usr/bin/file conftest.o` in
 
6710
    *64-bit*)
 
6711
      case $lt_cv_prog_gnu_ld in
 
6712
      yes*)
 
6713
        case $host in
 
6714
        i?86-*-solaris*)
 
6715
          LD="${LD-ld} -m elf_x86_64"
 
6716
          ;;
 
6717
        sparc*-*-solaris*)
 
6718
          LD="${LD-ld} -m elf64_sparc"
 
6719
          ;;
 
6720
        esac
 
6721
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6722
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6723
          LD="${LD-ld}_sol2"
 
6724
        fi
 
6725
        ;;
 
6726
      *)
 
6727
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6728
          LD="${LD-ld} -64"
 
6729
        fi
 
6730
        ;;
 
6731
      esac
 
6732
      ;;
 
6733
    esac
 
6734
  fi
 
6735
  rm -rf conftest*
 
6736
  ;;
 
6737
esac
 
6738
 
 
6739
need_locks="$enable_libtool_lock"
 
6740
 
 
6741
if test -n "$ac_tool_prefix"; then
 
6742
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6743
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6745
$as_echo_n "checking for $ac_word... " >&6; }
 
6746
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6747
  $as_echo_n "(cached) " >&6
 
6748
else
 
6749
  if test -n "$MANIFEST_TOOL"; then
 
6750
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6751
else
 
6752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6753
for as_dir in $PATH
 
6754
do
 
6755
  IFS=$as_save_IFS
 
6756
  test -z "$as_dir" && as_dir=.
 
6757
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6758
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6759
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6760
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6761
    break 2
 
6762
  fi
 
6763
done
 
6764
  done
 
6765
IFS=$as_save_IFS
 
6766
 
 
6767
fi
 
6768
fi
 
6769
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6770
if test -n "$MANIFEST_TOOL"; then
 
6771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6772
$as_echo "$MANIFEST_TOOL" >&6; }
 
6773
else
 
6774
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6775
$as_echo "no" >&6; }
 
6776
fi
 
6777
 
 
6778
 
 
6779
fi
 
6780
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6781
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6782
  # Extract the first word of "mt", so it can be a program name with args.
 
6783
set dummy mt; ac_word=$2
 
6784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6785
$as_echo_n "checking for $ac_word... " >&6; }
 
6786
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6787
  $as_echo_n "(cached) " >&6
 
6788
else
 
6789
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6790
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6791
else
 
6792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6793
for as_dir in $PATH
 
6794
do
 
6795
  IFS=$as_save_IFS
 
6796
  test -z "$as_dir" && as_dir=.
 
6797
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6798
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6799
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6800
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6801
    break 2
 
6802
  fi
 
6803
done
 
6804
  done
 
6805
IFS=$as_save_IFS
 
6806
 
 
6807
fi
 
6808
fi
 
6809
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6810
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6812
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6813
else
 
6814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6815
$as_echo "no" >&6; }
 
6816
fi
 
6817
 
 
6818
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6819
    MANIFEST_TOOL=":"
 
6820
  else
 
6821
    case $cross_compiling:$ac_tool_warned in
 
6822
yes:)
 
6823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6824
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6825
ac_tool_warned=yes ;;
 
6826
esac
 
6827
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6828
  fi
 
6829
else
 
6830
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6831
fi
 
6832
 
 
6833
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6835
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6836
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6837
  $as_echo_n "(cached) " >&6
 
6838
else
 
6839
  lt_cv_path_mainfest_tool=no
 
6840
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6841
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6842
  cat conftest.err >&5
 
6843
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6844
    lt_cv_path_mainfest_tool=yes
 
6845
  fi
 
6846
  rm -f conftest*
 
6847
fi
 
6848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6849
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6850
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6851
  MANIFEST_TOOL=:
 
6852
fi
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
  case $host_os in
 
6860
    rhapsody* | darwin*)
 
6861
    if test -n "$ac_tool_prefix"; then
 
6862
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6863
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6865
$as_echo_n "checking for $ac_word... " >&6; }
 
6866
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6867
  $as_echo_n "(cached) " >&6
 
6868
else
 
6869
  if test -n "$DSYMUTIL"; then
 
6870
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6871
else
 
6872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6873
for as_dir in $PATH
 
6874
do
 
6875
  IFS=$as_save_IFS
 
6876
  test -z "$as_dir" && as_dir=.
 
6877
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6878
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6879
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6880
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6881
    break 2
 
6882
  fi
 
6883
done
 
6884
  done
 
6885
IFS=$as_save_IFS
 
6886
 
 
6887
fi
 
6888
fi
 
6889
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6890
if test -n "$DSYMUTIL"; then
 
6891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6892
$as_echo "$DSYMUTIL" >&6; }
 
6893
else
 
6894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6895
$as_echo "no" >&6; }
 
6896
fi
 
6897
 
 
6898
 
 
6899
fi
 
6900
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6901
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6902
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6903
set dummy dsymutil; ac_word=$2
 
6904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6905
$as_echo_n "checking for $ac_word... " >&6; }
 
6906
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6907
  $as_echo_n "(cached) " >&6
 
6908
else
 
6909
  if test -n "$ac_ct_DSYMUTIL"; then
 
6910
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6911
else
 
6912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6913
for as_dir in $PATH
 
6914
do
 
6915
  IFS=$as_save_IFS
 
6916
  test -z "$as_dir" && as_dir=.
 
6917
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6919
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6920
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6921
    break 2
 
6922
  fi
 
6923
done
 
6924
  done
 
6925
IFS=$as_save_IFS
 
6926
 
 
6927
fi
 
6928
fi
 
6929
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6930
if test -n "$ac_ct_DSYMUTIL"; then
 
6931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6932
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6933
else
 
6934
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6935
$as_echo "no" >&6; }
 
6936
fi
 
6937
 
 
6938
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6939
    DSYMUTIL=":"
 
6940
  else
 
6941
    case $cross_compiling:$ac_tool_warned in
 
6942
yes:)
 
6943
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6944
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6945
ac_tool_warned=yes ;;
 
6946
esac
 
6947
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6948
  fi
 
6949
else
 
6950
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6951
fi
 
6952
 
 
6953
    if test -n "$ac_tool_prefix"; then
 
6954
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6955
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6957
$as_echo_n "checking for $ac_word... " >&6; }
 
6958
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6959
  $as_echo_n "(cached) " >&6
 
6960
else
 
6961
  if test -n "$NMEDIT"; then
 
6962
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6963
else
 
6964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6965
for as_dir in $PATH
 
6966
do
 
6967
  IFS=$as_save_IFS
 
6968
  test -z "$as_dir" && as_dir=.
 
6969
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6971
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6973
    break 2
 
6974
  fi
 
6975
done
 
6976
  done
 
6977
IFS=$as_save_IFS
 
6978
 
 
6979
fi
 
6980
fi
 
6981
NMEDIT=$ac_cv_prog_NMEDIT
 
6982
if test -n "$NMEDIT"; then
 
6983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6984
$as_echo "$NMEDIT" >&6; }
 
6985
else
 
6986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6987
$as_echo "no" >&6; }
 
6988
fi
 
6989
 
 
6990
 
 
6991
fi
 
6992
if test -z "$ac_cv_prog_NMEDIT"; then
 
6993
  ac_ct_NMEDIT=$NMEDIT
 
6994
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6995
set dummy nmedit; ac_word=$2
 
6996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6997
$as_echo_n "checking for $ac_word... " >&6; }
 
6998
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6999
  $as_echo_n "(cached) " >&6
 
7000
else
 
7001
  if test -n "$ac_ct_NMEDIT"; then
 
7002
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7003
else
 
7004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7005
for as_dir in $PATH
 
7006
do
 
7007
  IFS=$as_save_IFS
 
7008
  test -z "$as_dir" && as_dir=.
 
7009
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7010
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7011
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7012
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7013
    break 2
 
7014
  fi
 
7015
done
 
7016
  done
 
7017
IFS=$as_save_IFS
 
7018
 
 
7019
fi
 
7020
fi
 
7021
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7022
if test -n "$ac_ct_NMEDIT"; then
 
7023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7024
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7025
else
 
7026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7027
$as_echo "no" >&6; }
 
7028
fi
 
7029
 
 
7030
  if test "x$ac_ct_NMEDIT" = x; then
 
7031
    NMEDIT=":"
 
7032
  else
 
7033
    case $cross_compiling:$ac_tool_warned in
 
7034
yes:)
 
7035
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7036
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7037
ac_tool_warned=yes ;;
 
7038
esac
 
7039
    NMEDIT=$ac_ct_NMEDIT
 
7040
  fi
 
7041
else
 
7042
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7043
fi
 
7044
 
 
7045
    if test -n "$ac_tool_prefix"; then
 
7046
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7047
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7049
$as_echo_n "checking for $ac_word... " >&6; }
 
7050
if ${ac_cv_prog_LIPO+:} false; then :
 
7051
  $as_echo_n "(cached) " >&6
 
7052
else
 
7053
  if test -n "$LIPO"; then
 
7054
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7055
else
 
7056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7057
for as_dir in $PATH
 
7058
do
 
7059
  IFS=$as_save_IFS
 
7060
  test -z "$as_dir" && as_dir=.
 
7061
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7062
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7063
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7064
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7065
    break 2
 
7066
  fi
 
7067
done
 
7068
  done
 
7069
IFS=$as_save_IFS
 
7070
 
 
7071
fi
 
7072
fi
 
7073
LIPO=$ac_cv_prog_LIPO
 
7074
if test -n "$LIPO"; then
 
7075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7076
$as_echo "$LIPO" >&6; }
 
7077
else
 
7078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7079
$as_echo "no" >&6; }
 
7080
fi
 
7081
 
 
7082
 
 
7083
fi
 
7084
if test -z "$ac_cv_prog_LIPO"; then
 
7085
  ac_ct_LIPO=$LIPO
 
7086
  # Extract the first word of "lipo", so it can be a program name with args.
 
7087
set dummy lipo; ac_word=$2
 
7088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7089
$as_echo_n "checking for $ac_word... " >&6; }
 
7090
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7091
  $as_echo_n "(cached) " >&6
 
7092
else
 
7093
  if test -n "$ac_ct_LIPO"; then
 
7094
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7095
else
 
7096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7097
for as_dir in $PATH
 
7098
do
 
7099
  IFS=$as_save_IFS
 
7100
  test -z "$as_dir" && as_dir=.
 
7101
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7102
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7103
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7104
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7105
    break 2
 
7106
  fi
 
7107
done
 
7108
  done
 
7109
IFS=$as_save_IFS
 
7110
 
 
7111
fi
 
7112
fi
 
7113
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7114
if test -n "$ac_ct_LIPO"; then
 
7115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7116
$as_echo "$ac_ct_LIPO" >&6; }
 
7117
else
 
7118
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7119
$as_echo "no" >&6; }
 
7120
fi
 
7121
 
 
7122
  if test "x$ac_ct_LIPO" = x; then
 
7123
    LIPO=":"
 
7124
  else
 
7125
    case $cross_compiling:$ac_tool_warned in
 
7126
yes:)
 
7127
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7128
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7129
ac_tool_warned=yes ;;
 
7130
esac
 
7131
    LIPO=$ac_ct_LIPO
 
7132
  fi
 
7133
else
 
7134
  LIPO="$ac_cv_prog_LIPO"
 
7135
fi
 
7136
 
 
7137
    if test -n "$ac_tool_prefix"; then
 
7138
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7139
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7141
$as_echo_n "checking for $ac_word... " >&6; }
 
7142
if ${ac_cv_prog_OTOOL+:} false; then :
 
7143
  $as_echo_n "(cached) " >&6
 
7144
else
 
7145
  if test -n "$OTOOL"; then
 
7146
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7147
else
 
7148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7149
for as_dir in $PATH
 
7150
do
 
7151
  IFS=$as_save_IFS
 
7152
  test -z "$as_dir" && as_dir=.
 
7153
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7155
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7156
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7157
    break 2
 
7158
  fi
 
7159
done
 
7160
  done
 
7161
IFS=$as_save_IFS
 
7162
 
 
7163
fi
 
7164
fi
 
7165
OTOOL=$ac_cv_prog_OTOOL
 
7166
if test -n "$OTOOL"; then
 
7167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7168
$as_echo "$OTOOL" >&6; }
 
7169
else
 
7170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7171
$as_echo "no" >&6; }
 
7172
fi
 
7173
 
 
7174
 
 
7175
fi
 
7176
if test -z "$ac_cv_prog_OTOOL"; then
 
7177
  ac_ct_OTOOL=$OTOOL
 
7178
  # Extract the first word of "otool", so it can be a program name with args.
 
7179
set dummy otool; ac_word=$2
 
7180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7181
$as_echo_n "checking for $ac_word... " >&6; }
 
7182
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7183
  $as_echo_n "(cached) " >&6
 
7184
else
 
7185
  if test -n "$ac_ct_OTOOL"; then
 
7186
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7187
else
 
7188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7189
for as_dir in $PATH
 
7190
do
 
7191
  IFS=$as_save_IFS
 
7192
  test -z "$as_dir" && as_dir=.
 
7193
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7194
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7195
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7196
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7197
    break 2
 
7198
  fi
 
7199
done
 
7200
  done
 
7201
IFS=$as_save_IFS
 
7202
 
 
7203
fi
 
7204
fi
 
7205
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7206
if test -n "$ac_ct_OTOOL"; then
 
7207
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7208
$as_echo "$ac_ct_OTOOL" >&6; }
 
7209
else
 
7210
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7211
$as_echo "no" >&6; }
 
7212
fi
 
7213
 
 
7214
  if test "x$ac_ct_OTOOL" = x; then
 
7215
    OTOOL=":"
 
7216
  else
 
7217
    case $cross_compiling:$ac_tool_warned in
 
7218
yes:)
 
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7220
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7221
ac_tool_warned=yes ;;
 
7222
esac
 
7223
    OTOOL=$ac_ct_OTOOL
 
7224
  fi
 
7225
else
 
7226
  OTOOL="$ac_cv_prog_OTOOL"
 
7227
fi
 
7228
 
 
7229
    if test -n "$ac_tool_prefix"; then
 
7230
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7231
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7233
$as_echo_n "checking for $ac_word... " >&6; }
 
7234
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7235
  $as_echo_n "(cached) " >&6
 
7236
else
 
7237
  if test -n "$OTOOL64"; then
 
7238
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7239
else
 
7240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7241
for as_dir in $PATH
 
7242
do
 
7243
  IFS=$as_save_IFS
 
7244
  test -z "$as_dir" && as_dir=.
 
7245
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7246
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7247
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7249
    break 2
 
7250
  fi
 
7251
done
 
7252
  done
 
7253
IFS=$as_save_IFS
 
7254
 
 
7255
fi
 
7256
fi
 
7257
OTOOL64=$ac_cv_prog_OTOOL64
 
7258
if test -n "$OTOOL64"; then
 
7259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7260
$as_echo "$OTOOL64" >&6; }
 
7261
else
 
7262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7263
$as_echo "no" >&6; }
 
7264
fi
 
7265
 
 
7266
 
 
7267
fi
 
7268
if test -z "$ac_cv_prog_OTOOL64"; then
 
7269
  ac_ct_OTOOL64=$OTOOL64
 
7270
  # Extract the first word of "otool64", so it can be a program name with args.
 
7271
set dummy otool64; ac_word=$2
 
7272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7273
$as_echo_n "checking for $ac_word... " >&6; }
 
7274
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7275
  $as_echo_n "(cached) " >&6
 
7276
else
 
7277
  if test -n "$ac_ct_OTOOL64"; then
 
7278
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7279
else
 
7280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7281
for as_dir in $PATH
 
7282
do
 
7283
  IFS=$as_save_IFS
 
7284
  test -z "$as_dir" && as_dir=.
 
7285
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7286
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7287
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7288
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7289
    break 2
 
7290
  fi
 
7291
done
 
7292
  done
 
7293
IFS=$as_save_IFS
 
7294
 
 
7295
fi
 
7296
fi
 
7297
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7298
if test -n "$ac_ct_OTOOL64"; then
 
7299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7300
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7301
else
 
7302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7303
$as_echo "no" >&6; }
 
7304
fi
 
7305
 
 
7306
  if test "x$ac_ct_OTOOL64" = x; then
 
7307
    OTOOL64=":"
 
7308
  else
 
7309
    case $cross_compiling:$ac_tool_warned in
 
7310
yes:)
 
7311
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7312
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7313
ac_tool_warned=yes ;;
 
7314
esac
 
7315
    OTOOL64=$ac_ct_OTOOL64
 
7316
  fi
 
7317
else
 
7318
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7319
fi
 
7320
 
 
7321
 
 
7322
 
 
7323
 
 
7324
 
 
7325
 
 
7326
 
 
7327
 
 
7328
 
 
7329
 
 
7330
 
 
7331
 
 
7332
 
 
7333
 
 
7334
 
 
7335
 
 
7336
 
 
7337
 
 
7338
 
 
7339
 
 
7340
 
 
7341
 
 
7342
 
 
7343
 
 
7344
 
 
7345
 
 
7346
 
 
7347
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7348
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7349
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7350
  $as_echo_n "(cached) " >&6
 
7351
else
 
7352
  lt_cv_apple_cc_single_mod=no
 
7353
      if test -z "${LT_MULTI_MODULE}"; then
 
7354
        # By default we will add the -single_module flag. You can override
 
7355
        # by either setting the environment variable LT_MULTI_MODULE
 
7356
        # non-empty at configure time, or by adding -multi_module to the
 
7357
        # link flags.
 
7358
        rm -rf libconftest.dylib*
 
7359
        echo "int foo(void){return 1;}" > conftest.c
 
7360
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7361
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7362
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7363
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7364
        _lt_result=$?
 
7365
        # If there is a non-empty error log, and "single_module"
 
7366
        # appears in it, assume the flag caused a linker warning
 
7367
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7368
          cat conftest.err >&5
 
7369
        # Otherwise, if the output was created with a 0 exit code from
 
7370
        # the compiler, it worked.
 
7371
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7372
          lt_cv_apple_cc_single_mod=yes
 
7373
        else
 
7374
          cat conftest.err >&5
 
7375
        fi
 
7376
        rm -rf libconftest.dylib*
 
7377
        rm -f conftest.*
 
7378
      fi
 
7379
fi
 
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7381
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7382
 
 
7383
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7384
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7385
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7386
  $as_echo_n "(cached) " >&6
 
7387
else
 
7388
  lt_cv_ld_exported_symbols_list=no
 
7389
      save_LDFLAGS=$LDFLAGS
 
7390
      echo "_main" > conftest.sym
 
7391
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7392
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7393
/* end confdefs.h.  */
 
7394
 
 
7395
int
 
7396
main ()
 
7397
{
 
7398
 
 
7399
  ;
 
7400
  return 0;
 
7401
}
 
7402
_ACEOF
 
7403
if ac_fn_c_try_link "$LINENO"; then :
 
7404
  lt_cv_ld_exported_symbols_list=yes
 
7405
else
 
7406
  lt_cv_ld_exported_symbols_list=no
 
7407
fi
 
7408
rm -f core conftest.err conftest.$ac_objext \
 
7409
    conftest$ac_exeext conftest.$ac_ext
 
7410
        LDFLAGS="$save_LDFLAGS"
 
7411
 
 
7412
fi
 
7413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7414
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7415
 
 
7416
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7417
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7418
if ${lt_cv_ld_force_load+:} false; then :
 
7419
  $as_echo_n "(cached) " >&6
 
7420
else
 
7421
  lt_cv_ld_force_load=no
 
7422
      cat > conftest.c << _LT_EOF
 
7423
int forced_loaded() { return 2;}
 
7424
_LT_EOF
 
7425
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7426
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7427
      echo "$AR cru libconftest.a conftest.o" >&5
 
7428
      $AR cru libconftest.a conftest.o 2>&5
 
7429
      echo "$RANLIB libconftest.a" >&5
 
7430
      $RANLIB libconftest.a 2>&5
 
7431
      cat > conftest.c << _LT_EOF
 
7432
int main() { return 0;}
 
7433
_LT_EOF
 
7434
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7435
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7436
      _lt_result=$?
 
7437
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7438
        cat conftest.err >&5
 
7439
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7440
        lt_cv_ld_force_load=yes
 
7441
      else
 
7442
        cat conftest.err >&5
 
7443
      fi
 
7444
        rm -f conftest.err libconftest.a conftest conftest.c
 
7445
        rm -rf conftest.dSYM
 
7446
 
 
7447
fi
 
7448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7449
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7450
    case $host_os in
 
7451
    rhapsody* | darwin1.[012])
 
7452
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7453
    darwin1.*)
 
7454
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7455
    darwin*) # darwin 5.x on
 
7456
      # if running on 10.5 or later, the deployment target defaults
 
7457
      # to the OS version, if on x86, and 10.4, the deployment
 
7458
      # target defaults to 10.4. Don't you love it?
 
7459
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7460
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7461
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7462
        10.[012]*)
 
7463
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7464
        10.*)
 
7465
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7466
      esac
 
7467
    ;;
 
7468
  esac
 
7469
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7470
      _lt_dar_single_mod='$single_module'
 
7471
    fi
 
7472
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7473
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7474
    else
 
7475
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7476
    fi
 
7477
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7478
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7479
    else
 
7480
      _lt_dsymutil=
 
7481
    fi
 
7482
    ;;
 
7483
  esac
 
7484
 
 
7485
ac_ext=c
 
7486
ac_cpp='$CPP $CPPFLAGS'
 
7487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7491
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7492
# On Suns, sometimes $CPP names a directory.
 
7493
if test -n "$CPP" && test -d "$CPP"; then
 
7494
  CPP=
 
7495
fi
 
7496
if test -z "$CPP"; then
 
7497
  if ${ac_cv_prog_CPP+:} false; then :
 
7498
  $as_echo_n "(cached) " >&6
 
7499
else
 
7500
      # Double quotes because CPP needs to be expanded
 
7501
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7502
    do
 
7503
      ac_preproc_ok=false
 
7504
for ac_c_preproc_warn_flag in '' yes
 
7505
do
 
7506
  # Use a header file that comes with gcc, so configuring glibc
 
7507
  # with a fresh cross-compiler works.
 
7508
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7509
  # <limits.h> exists even on freestanding compilers.
 
7510
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7511
  # not just through cpp. "Syntax error" is here to catch this case.
 
7512
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7513
/* end confdefs.h.  */
 
7514
#ifdef __STDC__
 
7515
# include <limits.h>
 
7516
#else
 
7517
# include <assert.h>
 
7518
#endif
 
7519
                     Syntax error
 
7520
_ACEOF
 
7521
if ac_fn_c_try_cpp "$LINENO"; then :
 
7522
 
 
7523
else
 
7524
  # Broken: fails on valid input.
 
7525
continue
 
7526
fi
 
7527
rm -f conftest.err conftest.i conftest.$ac_ext
 
7528
 
 
7529
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7530
  # can be detected and how.
 
7531
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7532
/* end confdefs.h.  */
 
7533
#include <ac_nonexistent.h>
 
7534
_ACEOF
 
7535
if ac_fn_c_try_cpp "$LINENO"; then :
 
7536
  # Broken: success on invalid input.
 
7537
continue
 
7538
else
 
7539
  # Passes both tests.
 
7540
ac_preproc_ok=:
 
7541
break
 
7542
fi
 
7543
rm -f conftest.err conftest.i conftest.$ac_ext
 
7544
 
 
7545
done
 
7546
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7547
rm -f conftest.i conftest.err conftest.$ac_ext
 
7548
if $ac_preproc_ok; then :
 
7549
  break
 
7550
fi
 
7551
 
 
7552
    done
 
7553
    ac_cv_prog_CPP=$CPP
 
7554
 
 
7555
fi
 
7556
  CPP=$ac_cv_prog_CPP
 
7557
else
 
7558
  ac_cv_prog_CPP=$CPP
 
7559
fi
 
7560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7561
$as_echo "$CPP" >&6; }
 
7562
ac_preproc_ok=false
 
7563
for ac_c_preproc_warn_flag in '' yes
 
7564
do
 
7565
  # Use a header file that comes with gcc, so configuring glibc
 
7566
  # with a fresh cross-compiler works.
 
7567
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7568
  # <limits.h> exists even on freestanding compilers.
 
7569
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7570
  # not just through cpp. "Syntax error" is here to catch this case.
 
7571
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7572
/* end confdefs.h.  */
 
7573
#ifdef __STDC__
 
7574
# include <limits.h>
 
7575
#else
 
7576
# include <assert.h>
 
7577
#endif
 
7578
                     Syntax error
 
7579
_ACEOF
 
7580
if ac_fn_c_try_cpp "$LINENO"; then :
 
7581
 
 
7582
else
 
7583
  # Broken: fails on valid input.
 
7584
continue
 
7585
fi
 
7586
rm -f conftest.err conftest.i conftest.$ac_ext
 
7587
 
 
7588
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7589
  # can be detected and how.
 
7590
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7591
/* end confdefs.h.  */
 
7592
#include <ac_nonexistent.h>
 
7593
_ACEOF
 
7594
if ac_fn_c_try_cpp "$LINENO"; then :
 
7595
  # Broken: success on invalid input.
 
7596
continue
 
7597
else
 
7598
  # Passes both tests.
 
7599
ac_preproc_ok=:
 
7600
break
 
7601
fi
 
7602
rm -f conftest.err conftest.i conftest.$ac_ext
 
7603
 
 
7604
done
 
7605
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7606
rm -f conftest.i conftest.err conftest.$ac_ext
 
7607
if $ac_preproc_ok; then :
 
7608
 
 
7609
else
 
7610
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7611
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7612
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7613
See \`config.log' for more details" "$LINENO" 5; }
 
7614
fi
 
7615
 
 
7616
ac_ext=c
 
7617
ac_cpp='$CPP $CPPFLAGS'
 
7618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7621
 
 
7622
 
 
7623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7624
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7625
if ${ac_cv_header_stdc+:} false; then :
 
7626
  $as_echo_n "(cached) " >&6
 
7627
else
 
7628
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7629
/* end confdefs.h.  */
 
7630
#include <stdlib.h>
 
7631
#include <stdarg.h>
 
7632
#include <string.h>
 
7633
#include <float.h>
 
7634
 
 
7635
int
 
7636
main ()
 
7637
{
 
7638
 
 
7639
  ;
 
7640
  return 0;
 
7641
}
 
7642
_ACEOF
 
7643
if ac_fn_c_try_compile "$LINENO"; then :
 
7644
  ac_cv_header_stdc=yes
 
7645
else
 
7646
  ac_cv_header_stdc=no
 
7647
fi
 
7648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7649
 
 
7650
if test $ac_cv_header_stdc = yes; then
 
7651
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7652
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7653
/* end confdefs.h.  */
 
7654
#include <string.h>
 
7655
 
 
7656
_ACEOF
 
7657
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7658
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7659
 
 
7660
else
 
7661
  ac_cv_header_stdc=no
 
7662
fi
 
7663
rm -f conftest*
 
7664
 
 
7665
fi
 
7666
 
 
7667
if test $ac_cv_header_stdc = yes; then
 
7668
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7669
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7670
/* end confdefs.h.  */
 
7671
#include <stdlib.h>
 
7672
 
 
7673
_ACEOF
 
7674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7675
  $EGREP "free" >/dev/null 2>&1; then :
 
7676
 
 
7677
else
 
7678
  ac_cv_header_stdc=no
 
7679
fi
 
7680
rm -f conftest*
 
7681
 
 
7682
fi
 
7683
 
 
7684
if test $ac_cv_header_stdc = yes; then
 
7685
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7686
  if test "$cross_compiling" = yes; then :
 
7687
  :
 
7688
else
 
7689
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7690
/* end confdefs.h.  */
 
7691
#include <ctype.h>
 
7692
#include <stdlib.h>
 
7693
#if ((' ' & 0x0FF) == 0x020)
 
7694
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7695
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7696
#else
 
7697
# define ISLOWER(c) \
 
7698
                   (('a' <= (c) && (c) <= 'i') \
 
7699
                     || ('j' <= (c) && (c) <= 'r') \
 
7700
                     || ('s' <= (c) && (c) <= 'z'))
 
7701
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7702
#endif
 
7703
 
 
7704
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7705
int
 
7706
main ()
 
7707
{
 
7708
  int i;
 
7709
  for (i = 0; i < 256; i++)
 
7710
    if (XOR (islower (i), ISLOWER (i))
 
7711
        || toupper (i) != TOUPPER (i))
 
7712
      return 2;
 
7713
  return 0;
 
7714
}
 
7715
_ACEOF
 
7716
if ac_fn_c_try_run "$LINENO"; then :
 
7717
 
 
7718
else
 
7719
  ac_cv_header_stdc=no
 
7720
fi
 
7721
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7722
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7723
fi
 
7724
 
 
7725
fi
 
7726
fi
 
7727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7728
$as_echo "$ac_cv_header_stdc" >&6; }
 
7729
if test $ac_cv_header_stdc = yes; then
 
7730
 
 
7731
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7732
 
 
7733
fi
 
7734
 
 
7735
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7736
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7737
                  inttypes.h stdint.h unistd.h
 
7738
do :
 
7739
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7740
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7741
"
 
7742
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7743
  cat >>confdefs.h <<_ACEOF
 
7744
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7745
_ACEOF
 
7746
 
 
7747
fi
 
7748
 
 
7749
done
 
7750
 
 
7751
 
 
7752
for ac_header in dlfcn.h
 
7753
do :
 
7754
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7755
"
 
7756
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7757
  cat >>confdefs.h <<_ACEOF
 
7758
#define HAVE_DLFCN_H 1
 
7759
_ACEOF
 
7760
 
 
7761
fi
 
7762
 
 
7763
done
 
7764
 
 
7765
 
 
7766
 
 
7767
 
 
7768
func_stripname_cnf ()
 
7769
{
 
7770
  case ${2} in
 
7771
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7772
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7773
  esac
 
7774
} # func_stripname_cnf
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
 
7780
# Set options
 
7781
 
 
7782
 
 
7783
 
 
7784
        enable_dlopen=no
 
7785
 
 
7786
 
 
7787
  enable_win32_dll=no
 
7788
 
 
7789
 
 
7790
            # Check whether --enable-shared was given.
 
7791
if test "${enable_shared+set}" = set; then :
 
7792
  enableval=$enable_shared; p=${PACKAGE-default}
 
7793
    case $enableval in
 
7794
    yes) enable_shared=yes ;;
 
7795
    no) enable_shared=no ;;
 
7796
    *)
 
7797
      enable_shared=no
 
7798
      # Look at the argument we got.  We use all the common list separators.
 
7799
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7800
      for pkg in $enableval; do
 
7801
        IFS="$lt_save_ifs"
 
7802
        if test "X$pkg" = "X$p"; then
 
7803
          enable_shared=yes
 
7804
        fi
 
7805
      done
 
7806
      IFS="$lt_save_ifs"
 
7807
      ;;
 
7808
    esac
 
7809
else
 
7810
  enable_shared=yes
 
7811
fi
 
7812
 
 
7813
 
 
7814
 
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
 
 
7820
 
 
7821
  # Check whether --enable-static was given.
 
7822
if test "${enable_static+set}" = set; then :
 
7823
  enableval=$enable_static; p=${PACKAGE-default}
 
7824
    case $enableval in
 
7825
    yes) enable_static=yes ;;
 
7826
    no) enable_static=no ;;
 
7827
    *)
 
7828
     enable_static=no
 
7829
      # Look at the argument we got.  We use all the common list separators.
 
7830
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7831
      for pkg in $enableval; do
 
7832
        IFS="$lt_save_ifs"
 
7833
        if test "X$pkg" = "X$p"; then
 
7834
          enable_static=yes
 
7835
        fi
 
7836
      done
 
7837
      IFS="$lt_save_ifs"
 
7838
      ;;
 
7839
    esac
 
7840
else
 
7841
  enable_static=yes
 
7842
fi
 
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
# Check whether --with-pic was given.
 
7854
if test "${with_pic+set}" = set; then :
 
7855
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7856
    case $withval in
 
7857
    yes|no) pic_mode=$withval ;;
 
7858
    *)
 
7859
      pic_mode=default
 
7860
      # Look at the argument we got.  We use all the common list separators.
 
7861
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7862
      for lt_pkg in $withval; do
 
7863
        IFS="$lt_save_ifs"
 
7864
        if test "X$lt_pkg" = "X$lt_p"; then
 
7865
          pic_mode=yes
 
7866
        fi
 
7867
      done
 
7868
      IFS="$lt_save_ifs"
 
7869
      ;;
 
7870
    esac
 
7871
else
 
7872
  pic_mode=default
 
7873
fi
 
7874
 
 
7875
 
 
7876
test -z "$pic_mode" && pic_mode=default
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
  # Check whether --enable-fast-install was given.
 
7885
if test "${enable_fast_install+set}" = set; then :
 
7886
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7887
    case $enableval in
 
7888
    yes) enable_fast_install=yes ;;
 
7889
    no) enable_fast_install=no ;;
 
7890
    *)
 
7891
      enable_fast_install=no
 
7892
      # Look at the argument we got.  We use all the common list separators.
 
7893
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7894
      for pkg in $enableval; do
 
7895
        IFS="$lt_save_ifs"
 
7896
        if test "X$pkg" = "X$p"; then
 
7897
          enable_fast_install=yes
 
7898
        fi
 
7899
      done
 
7900
      IFS="$lt_save_ifs"
 
7901
      ;;
 
7902
    esac
 
7903
else
 
7904
  enable_fast_install=yes
 
7905
fi
 
7906
 
 
7907
 
 
7908
 
 
7909
 
 
7910
 
 
7911
 
 
7912
 
 
7913
 
 
7914
 
 
7915
 
 
7916
 
 
7917
# This can be used to rebuild libtool when needed
 
7918
LIBTOOL_DEPS="$ltmain"
 
7919
 
 
7920
# Always use our own libtool.
 
7921
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7922
 
 
7923
 
 
7924
 
 
7925
 
 
7926
 
 
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
 
 
7948
 
 
7949
 
 
7950
 
 
7951
 
 
7952
test -z "$LN_S" && LN_S="ln -s"
 
7953
 
 
7954
 
 
7955
 
 
7956
 
 
7957
 
 
7958
 
 
7959
 
 
7960
 
 
7961
 
 
7962
 
 
7963
 
 
7964
 
 
7965
 
 
7966
 
 
7967
if test -n "${ZSH_VERSION+set}" ; then
 
7968
   setopt NO_GLOB_SUBST
 
7969
fi
 
7970
 
 
7971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7972
$as_echo_n "checking for objdir... " >&6; }
 
7973
if ${lt_cv_objdir+:} false; then :
 
7974
  $as_echo_n "(cached) " >&6
 
7975
else
 
7976
  rm -f .libs 2>/dev/null
 
7977
mkdir .libs 2>/dev/null
 
7978
if test -d .libs; then
 
7979
  lt_cv_objdir=.libs
 
7980
else
 
7981
  # MS-DOS does not allow filenames that begin with a dot.
 
7982
  lt_cv_objdir=_libs
 
7983
fi
 
7984
rmdir .libs 2>/dev/null
 
7985
fi
 
7986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7987
$as_echo "$lt_cv_objdir" >&6; }
 
7988
objdir=$lt_cv_objdir
 
7989
 
 
7990
 
 
7991
 
 
7992
 
 
7993
 
 
7994
cat >>confdefs.h <<_ACEOF
 
7995
#define LT_OBJDIR "$lt_cv_objdir/"
 
7996
_ACEOF
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
case $host_os in
 
8002
aix3*)
 
8003
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8004
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8005
  # vanish in a puff of smoke.
 
8006
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8007
    COLLECT_NAMES=
 
8008
    export COLLECT_NAMES
 
8009
  fi
 
8010
  ;;
 
8011
esac
 
8012
 
 
8013
# Global variables:
 
8014
ofile=libtool
 
8015
can_build_shared=yes
 
8016
 
 
8017
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8018
# which needs '.lib').
 
8019
libext=a
 
8020
 
 
8021
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8022
 
 
8023
old_CC="$CC"
 
8024
old_CFLAGS="$CFLAGS"
 
8025
 
 
8026
# Set sane defaults for various variables
 
8027
test -z "$CC" && CC=cc
 
8028
test -z "$LTCC" && LTCC=$CC
 
8029
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8030
test -z "$LD" && LD=ld
 
8031
test -z "$ac_objext" && ac_objext=o
 
8032
 
 
8033
for cc_temp in $compiler""; do
 
8034
  case $cc_temp in
 
8035
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8036
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8037
    \-*) ;;
 
8038
    *) break;;
 
8039
  esac
 
8040
done
 
8041
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8042
 
 
8043
 
 
8044
# Only perform the check for file, if the check method requires it
 
8045
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8046
case $deplibs_check_method in
 
8047
file_magic*)
 
8048
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8049
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8050
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8051
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8052
  $as_echo_n "(cached) " >&6
 
8053
else
 
8054
  case $MAGIC_CMD in
 
8055
[\\/*] |  ?:[\\/]*)
 
8056
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8057
  ;;
 
8058
*)
 
8059
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8060
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8061
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8062
  for ac_dir in $ac_dummy; do
 
8063
    IFS="$lt_save_ifs"
 
8064
    test -z "$ac_dir" && ac_dir=.
 
8065
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8066
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8067
      if test -n "$file_magic_test_file"; then
 
8068
        case $deplibs_check_method in
 
8069
        "file_magic "*)
 
8070
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8071
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8072
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8073
            $EGREP "$file_magic_regex" > /dev/null; then
 
8074
            :
 
8075
          else
 
8076
            cat <<_LT_EOF 1>&2
 
8077
 
 
8078
*** Warning: the command libtool uses to detect shared libraries,
 
8079
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8080
*** The result is that libtool may fail to recognize shared libraries
 
8081
*** as such.  This will affect the creation of libtool libraries that
 
8082
*** depend on shared libraries, but programs linked with such libtool
 
8083
*** libraries will work regardless of this problem.  Nevertheless, you
 
8084
*** may want to report the problem to your system manager and/or to
 
8085
*** bug-libtool@gnu.org
 
8086
 
 
8087
_LT_EOF
 
8088
          fi ;;
 
8089
        esac
 
8090
      fi
 
8091
      break
 
8092
    fi
 
8093
  done
 
8094
  IFS="$lt_save_ifs"
 
8095
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8096
  ;;
 
8097
esac
 
8098
fi
 
8099
 
 
8100
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8101
if test -n "$MAGIC_CMD"; then
 
8102
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8103
$as_echo "$MAGIC_CMD" >&6; }
 
8104
else
 
8105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8106
$as_echo "no" >&6; }
 
8107
fi
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
 
 
8113
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8114
  if test -n "$ac_tool_prefix"; then
 
8115
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8116
$as_echo_n "checking for file... " >&6; }
 
8117
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8118
  $as_echo_n "(cached) " >&6
 
8119
else
 
8120
  case $MAGIC_CMD in
 
8121
[\\/*] |  ?:[\\/]*)
 
8122
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8123
  ;;
 
8124
*)
 
8125
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8126
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8127
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8128
  for ac_dir in $ac_dummy; do
 
8129
    IFS="$lt_save_ifs"
 
8130
    test -z "$ac_dir" && ac_dir=.
 
8131
    if test -f $ac_dir/file; then
 
8132
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8133
      if test -n "$file_magic_test_file"; then
 
8134
        case $deplibs_check_method in
 
8135
        "file_magic "*)
 
8136
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8137
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8138
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8139
            $EGREP "$file_magic_regex" > /dev/null; then
 
8140
            :
 
8141
          else
 
8142
            cat <<_LT_EOF 1>&2
 
8143
 
 
8144
*** Warning: the command libtool uses to detect shared libraries,
 
8145
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8146
*** The result is that libtool may fail to recognize shared libraries
 
8147
*** as such.  This will affect the creation of libtool libraries that
 
8148
*** depend on shared libraries, but programs linked with such libtool
 
8149
*** libraries will work regardless of this problem.  Nevertheless, you
 
8150
*** may want to report the problem to your system manager and/or to
 
8151
*** bug-libtool@gnu.org
 
8152
 
 
8153
_LT_EOF
 
8154
          fi ;;
 
8155
        esac
 
8156
      fi
 
8157
      break
 
8158
    fi
 
8159
  done
 
8160
  IFS="$lt_save_ifs"
 
8161
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8162
  ;;
 
8163
esac
 
8164
fi
 
8165
 
 
8166
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8167
if test -n "$MAGIC_CMD"; then
 
8168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8169
$as_echo "$MAGIC_CMD" >&6; }
 
8170
else
 
8171
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8172
$as_echo "no" >&6; }
 
8173
fi
 
8174
 
 
8175
 
 
8176
  else
 
8177
    MAGIC_CMD=:
 
8178
  fi
 
8179
fi
 
8180
 
 
8181
  fi
 
8182
  ;;
 
8183
esac
 
8184
 
 
8185
# Use C for the default configuration in the libtool script
 
8186
 
 
8187
lt_save_CC="$CC"
 
8188
ac_ext=c
 
8189
ac_cpp='$CPP $CPPFLAGS'
 
8190
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8191
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8192
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8193
 
 
8194
 
 
8195
# Source file extension for C test sources.
 
8196
ac_ext=c
 
8197
 
 
8198
# Object file extension for compiled C test sources.
 
8199
objext=o
 
8200
objext=$objext
 
8201
 
 
8202
# Code to be used in simple compile tests
 
8203
lt_simple_compile_test_code="int some_variable = 0;"
 
8204
 
 
8205
# Code to be used in simple link tests
 
8206
lt_simple_link_test_code='int main(){return(0);}'
 
8207
 
 
8208
 
 
8209
 
 
8210
 
 
8211
 
 
8212
 
 
8213
 
 
8214
# If no C compiler was specified, use CC.
 
8215
LTCC=${LTCC-"$CC"}
 
8216
 
 
8217
# If no C compiler flags were specified, use CFLAGS.
 
8218
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8219
 
 
8220
# Allow CC to be a program name with arguments.
 
8221
compiler=$CC
 
8222
 
 
8223
# Save the default compiler, since it gets overwritten when the other
 
8224
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8225
compiler_DEFAULT=$CC
 
8226
 
 
8227
# save warnings/boilerplate of simple test code
 
8228
ac_outfile=conftest.$ac_objext
 
8229
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8230
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8231
_lt_compiler_boilerplate=`cat conftest.err`
 
8232
$RM conftest*
 
8233
 
 
8234
ac_outfile=conftest.$ac_objext
 
8235
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8236
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8237
_lt_linker_boilerplate=`cat conftest.err`
 
8238
$RM -r conftest*
 
8239
 
 
8240
 
 
8241
## CAVEAT EMPTOR:
 
8242
## There is no encapsulation within the following macros, do not change
 
8243
## the running order or otherwise move them around unless you know exactly
 
8244
## what you are doing...
 
8245
if test -n "$compiler"; then
 
8246
 
 
8247
lt_prog_compiler_no_builtin_flag=
 
8248
 
 
8249
if test "$GCC" = yes; then
 
8250
  case $cc_basename in
 
8251
  nvcc*)
 
8252
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8253
  *)
 
8254
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8255
  esac
 
8256
 
 
8257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8258
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8259
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8260
  $as_echo_n "(cached) " >&6
 
8261
else
 
8262
  lt_cv_prog_compiler_rtti_exceptions=no
 
8263
   ac_outfile=conftest.$ac_objext
 
8264
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8265
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8266
   # Insert the option either (1) after the last *FLAGS variable, or
 
8267
   # (2) before a word containing "conftest.", or (3) at the end.
 
8268
   # Note that $ac_compile itself does not contain backslashes and begins
 
8269
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8270
   # The option is referenced via a variable to avoid confusing sed.
 
8271
   lt_compile=`echo "$ac_compile" | $SED \
 
8272
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8273
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8274
   -e 's:$: $lt_compiler_flag:'`
 
8275
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8276
   (eval "$lt_compile" 2>conftest.err)
 
8277
   ac_status=$?
 
8278
   cat conftest.err >&5
 
8279
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8280
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8281
     # The compiler can only warn and ignore the option if not recognized
 
8282
     # So say no if there are warnings other than the usual output.
 
8283
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8284
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8285
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8286
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8287
     fi
 
8288
   fi
 
8289
   $RM conftest*
 
8290
 
 
8291
fi
 
8292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8293
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8294
 
 
8295
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8296
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8297
else
 
8298
    :
 
8299
fi
 
8300
 
 
8301
fi
 
8302
 
 
8303
 
 
8304
 
 
8305
 
 
8306
 
 
8307
 
 
8308
  lt_prog_compiler_wl=
 
8309
lt_prog_compiler_pic=
 
8310
lt_prog_compiler_static=
 
8311
 
 
8312
 
 
8313
  if test "$GCC" = yes; then
 
8314
    lt_prog_compiler_wl='-Wl,'
 
8315
    lt_prog_compiler_static='-static'
 
8316
 
 
8317
    case $host_os in
 
8318
      aix*)
 
8319
      # All AIX code is PIC.
 
8320
      if test "$host_cpu" = ia64; then
 
8321
        # AIX 5 now supports IA64 processor
 
8322
        lt_prog_compiler_static='-Bstatic'
 
8323
      fi
 
8324
      ;;
 
8325
 
 
8326
    amigaos*)
 
8327
      case $host_cpu in
 
8328
      powerpc)
 
8329
            # see comment about AmigaOS4 .so support
 
8330
            lt_prog_compiler_pic='-fPIC'
 
8331
        ;;
 
8332
      m68k)
 
8333
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8334
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8335
            # like `-m68040'.
 
8336
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8337
        ;;
 
8338
      esac
 
8339
      ;;
 
8340
 
 
8341
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8342
      # PIC is the default for these OSes.
 
8343
      ;;
 
8344
 
 
8345
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8346
      # This hack is so that the source file can tell whether it is being
 
8347
      # built for inclusion in a dll (and should export symbols for example).
 
8348
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8349
      # (--disable-auto-import) libraries
 
8350
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8351
      ;;
 
8352
 
 
8353
    darwin* | rhapsody*)
 
8354
      # PIC is the default on this platform
 
8355
      # Common symbols not allowed in MH_DYLIB files
 
8356
      lt_prog_compiler_pic='-fno-common'
 
8357
      ;;
 
8358
 
 
8359
    haiku*)
 
8360
      # PIC is the default for Haiku.
 
8361
      # The "-static" flag exists, but is broken.
 
8362
      lt_prog_compiler_static=
 
8363
      ;;
 
8364
 
 
8365
    hpux*)
 
8366
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8367
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8368
      # sets the default TLS model and affects inlining.
 
8369
      case $host_cpu in
 
8370
      hppa*64*)
 
8371
        # +Z the default
 
8372
        ;;
 
8373
      *)
 
8374
        lt_prog_compiler_pic='-fPIC'
 
8375
        ;;
 
8376
      esac
 
8377
      ;;
 
8378
 
 
8379
    interix[3-9]*)
 
8380
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8381
      # Instead, we relocate shared libraries at runtime.
 
8382
      ;;
 
8383
 
 
8384
    msdosdjgpp*)
 
8385
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8386
      # on systems that don't support them.
 
8387
      lt_prog_compiler_can_build_shared=no
 
8388
      enable_shared=no
 
8389
      ;;
 
8390
 
 
8391
    *nto* | *qnx*)
 
8392
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8393
      # it will coredump.
 
8394
      lt_prog_compiler_pic='-fPIC -shared'
 
8395
      ;;
 
8396
 
 
8397
    sysv4*MP*)
 
8398
      if test -d /usr/nec; then
 
8399
        lt_prog_compiler_pic=-Kconform_pic
 
8400
      fi
 
8401
      ;;
 
8402
 
 
8403
    *)
 
8404
      lt_prog_compiler_pic='-fPIC'
 
8405
      ;;
 
8406
    esac
 
8407
 
 
8408
    case $cc_basename in
 
8409
    nvcc*) # Cuda Compiler Driver 2.2
 
8410
      lt_prog_compiler_wl='-Xlinker '
 
8411
      if test -n "$lt_prog_compiler_pic"; then
 
8412
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8413
      fi
 
8414
      ;;
 
8415
    esac
 
8416
  else
 
8417
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8418
    case $host_os in
 
8419
    aix*)
 
8420
      lt_prog_compiler_wl='-Wl,'
 
8421
      if test "$host_cpu" = ia64; then
 
8422
        # AIX 5 now supports IA64 processor
 
8423
        lt_prog_compiler_static='-Bstatic'
 
8424
      else
 
8425
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8426
      fi
 
8427
      ;;
 
8428
 
 
8429
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8430
      # This hack is so that the source file can tell whether it is being
 
8431
      # built for inclusion in a dll (and should export symbols for example).
 
8432
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8433
      ;;
 
8434
 
 
8435
    hpux9* | hpux10* | hpux11*)
 
8436
      lt_prog_compiler_wl='-Wl,'
 
8437
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8438
      # not for PA HP-UX.
 
8439
      case $host_cpu in
 
8440
      hppa*64*|ia64*)
 
8441
        # +Z the default
 
8442
        ;;
 
8443
      *)
 
8444
        lt_prog_compiler_pic='+Z'
 
8445
        ;;
 
8446
      esac
 
8447
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8448
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8449
      ;;
 
8450
 
 
8451
    irix5* | irix6* | nonstopux*)
 
8452
      lt_prog_compiler_wl='-Wl,'
 
8453
      # PIC (with -KPIC) is the default.
 
8454
      lt_prog_compiler_static='-non_shared'
 
8455
      ;;
 
8456
 
 
8457
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8458
      case $cc_basename in
 
8459
      # old Intel for x86_64 which still supported -KPIC.
 
8460
      ecc*)
 
8461
        lt_prog_compiler_wl='-Wl,'
 
8462
        lt_prog_compiler_pic='-KPIC'
 
8463
        lt_prog_compiler_static='-static'
 
8464
        ;;
 
8465
      # icc used to be incompatible with GCC.
 
8466
      # ICC 10 doesn't accept -KPIC any more.
 
8467
      icc* | ifort*)
 
8468
        lt_prog_compiler_wl='-Wl,'
 
8469
        lt_prog_compiler_pic='-fPIC'
 
8470
        lt_prog_compiler_static='-static'
 
8471
        ;;
 
8472
      # Lahey Fortran 8.1.
 
8473
      lf95*)
 
8474
        lt_prog_compiler_wl='-Wl,'
 
8475
        lt_prog_compiler_pic='--shared'
 
8476
        lt_prog_compiler_static='--static'
 
8477
        ;;
 
8478
      nagfor*)
 
8479
        # NAG Fortran compiler
 
8480
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8481
        lt_prog_compiler_pic='-PIC'
 
8482
        lt_prog_compiler_static='-Bstatic'
 
8483
        ;;
 
8484
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8485
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8486
        # which looks to be a dead project)
 
8487
        lt_prog_compiler_wl='-Wl,'
 
8488
        lt_prog_compiler_pic='-fpic'
 
8489
        lt_prog_compiler_static='-Bstatic'
 
8490
        ;;
 
8491
      ccc*)
 
8492
        lt_prog_compiler_wl='-Wl,'
 
8493
        # All Alpha code is PIC.
 
8494
        lt_prog_compiler_static='-non_shared'
 
8495
        ;;
 
8496
      xl* | bgxl* | bgf* | mpixl*)
 
8497
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8498
        lt_prog_compiler_wl='-Wl,'
 
8499
        lt_prog_compiler_pic='-qpic'
 
8500
        lt_prog_compiler_static='-qstaticlink'
 
8501
        ;;
 
8502
      *)
 
8503
        case `$CC -V 2>&1 | sed 5q` in
 
8504
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8505
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8506
          lt_prog_compiler_pic='-KPIC'
 
8507
          lt_prog_compiler_static='-Bstatic'
 
8508
          lt_prog_compiler_wl=''
 
8509
          ;;
 
8510
        *Sun\ F* | *Sun*Fortran*)
 
8511
          lt_prog_compiler_pic='-KPIC'
 
8512
          lt_prog_compiler_static='-Bstatic'
 
8513
          lt_prog_compiler_wl='-Qoption ld '
 
8514
          ;;
 
8515
        *Sun\ C*)
 
8516
          # Sun C 5.9
 
8517
          lt_prog_compiler_pic='-KPIC'
 
8518
          lt_prog_compiler_static='-Bstatic'
 
8519
          lt_prog_compiler_wl='-Wl,'
 
8520
          ;;
 
8521
        *Intel*\ [CF]*Compiler*)
 
8522
          lt_prog_compiler_wl='-Wl,'
 
8523
          lt_prog_compiler_pic='-fPIC'
 
8524
          lt_prog_compiler_static='-static'
 
8525
          ;;
 
8526
        *Portland\ Group*)
 
8527
          lt_prog_compiler_wl='-Wl,'
 
8528
          lt_prog_compiler_pic='-fpic'
 
8529
          lt_prog_compiler_static='-Bstatic'
 
8530
          ;;
 
8531
        esac
 
8532
        ;;
 
8533
      esac
 
8534
      ;;
 
8535
 
 
8536
    newsos6)
 
8537
      lt_prog_compiler_pic='-KPIC'
 
8538
      lt_prog_compiler_static='-Bstatic'
 
8539
      ;;
 
8540
 
 
8541
    *nto* | *qnx*)
 
8542
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8543
      # it will coredump.
 
8544
      lt_prog_compiler_pic='-fPIC -shared'
 
8545
      ;;
 
8546
 
 
8547
    osf3* | osf4* | osf5*)
 
8548
      lt_prog_compiler_wl='-Wl,'
 
8549
      # All OSF/1 code is PIC.
 
8550
      lt_prog_compiler_static='-non_shared'
 
8551
      ;;
 
8552
 
 
8553
    rdos*)
 
8554
      lt_prog_compiler_static='-non_shared'
 
8555
      ;;
 
8556
 
 
8557
    solaris*)
 
8558
      lt_prog_compiler_pic='-KPIC'
 
8559
      lt_prog_compiler_static='-Bstatic'
 
8560
      case $cc_basename in
 
8561
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8562
        lt_prog_compiler_wl='-Qoption ld ';;
 
8563
      *)
 
8564
        lt_prog_compiler_wl='-Wl,';;
 
8565
      esac
 
8566
      ;;
 
8567
 
 
8568
    sunos4*)
 
8569
      lt_prog_compiler_wl='-Qoption ld '
 
8570
      lt_prog_compiler_pic='-PIC'
 
8571
      lt_prog_compiler_static='-Bstatic'
 
8572
      ;;
 
8573
 
 
8574
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8575
      lt_prog_compiler_wl='-Wl,'
 
8576
      lt_prog_compiler_pic='-KPIC'
 
8577
      lt_prog_compiler_static='-Bstatic'
 
8578
      ;;
 
8579
 
 
8580
    sysv4*MP*)
 
8581
      if test -d /usr/nec ;then
 
8582
        lt_prog_compiler_pic='-Kconform_pic'
 
8583
        lt_prog_compiler_static='-Bstatic'
 
8584
      fi
 
8585
      ;;
 
8586
 
 
8587
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8588
      lt_prog_compiler_wl='-Wl,'
 
8589
      lt_prog_compiler_pic='-KPIC'
 
8590
      lt_prog_compiler_static='-Bstatic'
 
8591
      ;;
 
8592
 
 
8593
    unicos*)
 
8594
      lt_prog_compiler_wl='-Wl,'
 
8595
      lt_prog_compiler_can_build_shared=no
 
8596
      ;;
 
8597
 
 
8598
    uts4*)
 
8599
      lt_prog_compiler_pic='-pic'
 
8600
      lt_prog_compiler_static='-Bstatic'
 
8601
      ;;
 
8602
 
 
8603
    *)
 
8604
      lt_prog_compiler_can_build_shared=no
 
8605
      ;;
 
8606
    esac
 
8607
  fi
 
8608
 
 
8609
case $host_os in
 
8610
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8611
  *djgpp*)
 
8612
    lt_prog_compiler_pic=
 
8613
    ;;
 
8614
  *)
 
8615
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8616
    ;;
 
8617
esac
 
8618
 
 
8619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8620
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8621
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8622
  $as_echo_n "(cached) " >&6
 
8623
else
 
8624
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8625
fi
 
8626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8627
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8628
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8629
 
 
8630
#
 
8631
# Check to make sure the PIC flag actually works.
 
8632
#
 
8633
if test -n "$lt_prog_compiler_pic"; then
 
8634
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8635
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8636
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8637
  $as_echo_n "(cached) " >&6
 
8638
else
 
8639
  lt_cv_prog_compiler_pic_works=no
 
8640
   ac_outfile=conftest.$ac_objext
 
8641
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8642
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8643
   # Insert the option either (1) after the last *FLAGS variable, or
 
8644
   # (2) before a word containing "conftest.", or (3) at the end.
 
8645
   # Note that $ac_compile itself does not contain backslashes and begins
 
8646
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8647
   # The option is referenced via a variable to avoid confusing sed.
 
8648
   lt_compile=`echo "$ac_compile" | $SED \
 
8649
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8650
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8651
   -e 's:$: $lt_compiler_flag:'`
 
8652
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8653
   (eval "$lt_compile" 2>conftest.err)
 
8654
   ac_status=$?
 
8655
   cat conftest.err >&5
 
8656
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8657
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8658
     # The compiler can only warn and ignore the option if not recognized
 
8659
     # So say no if there are warnings other than the usual output.
 
8660
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8661
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8662
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8663
       lt_cv_prog_compiler_pic_works=yes
 
8664
     fi
 
8665
   fi
 
8666
   $RM conftest*
 
8667
 
 
8668
fi
 
8669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8670
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8671
 
 
8672
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8673
    case $lt_prog_compiler_pic in
 
8674
     "" | " "*) ;;
 
8675
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8676
     esac
 
8677
else
 
8678
    lt_prog_compiler_pic=
 
8679
     lt_prog_compiler_can_build_shared=no
 
8680
fi
 
8681
 
 
8682
fi
 
8683
 
 
8684
 
 
8685
 
 
8686
 
 
8687
 
 
8688
 
 
8689
 
 
8690
 
 
8691
 
 
8692
 
 
8693
 
 
8694
#
 
8695
# Check to make sure the static flag actually works.
 
8696
#
 
8697
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8699
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8700
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8701
  $as_echo_n "(cached) " >&6
 
8702
else
 
8703
  lt_cv_prog_compiler_static_works=no
 
8704
   save_LDFLAGS="$LDFLAGS"
 
8705
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8706
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8707
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8708
     # The linker can only warn and ignore the option if not recognized
 
8709
     # So say no if there are warnings
 
8710
     if test -s conftest.err; then
 
8711
       # Append any errors to the config.log.
 
8712
       cat conftest.err 1>&5
 
8713
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8714
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8715
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8716
         lt_cv_prog_compiler_static_works=yes
 
8717
       fi
 
8718
     else
 
8719
       lt_cv_prog_compiler_static_works=yes
 
8720
     fi
 
8721
   fi
 
8722
   $RM -r conftest*
 
8723
   LDFLAGS="$save_LDFLAGS"
 
8724
 
 
8725
fi
 
8726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8727
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8728
 
 
8729
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8730
    :
 
8731
else
 
8732
    lt_prog_compiler_static=
 
8733
fi
 
8734
 
 
8735
 
 
8736
 
 
8737
 
 
8738
 
 
8739
 
 
8740
 
 
8741
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8742
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8743
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8744
  $as_echo_n "(cached) " >&6
 
8745
else
 
8746
  lt_cv_prog_compiler_c_o=no
 
8747
   $RM -r conftest 2>/dev/null
 
8748
   mkdir conftest
 
8749
   cd conftest
 
8750
   mkdir out
 
8751
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8752
 
 
8753
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8754
   # Insert the option either (1) after the last *FLAGS variable, or
 
8755
   # (2) before a word containing "conftest.", or (3) at the end.
 
8756
   # Note that $ac_compile itself does not contain backslashes and begins
 
8757
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8758
   lt_compile=`echo "$ac_compile" | $SED \
 
8759
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8760
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8761
   -e 's:$: $lt_compiler_flag:'`
 
8762
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8763
   (eval "$lt_compile" 2>out/conftest.err)
 
8764
   ac_status=$?
 
8765
   cat out/conftest.err >&5
 
8766
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8767
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8768
   then
 
8769
     # The compiler can only warn and ignore the option if not recognized
 
8770
     # So say no if there are warnings
 
8771
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8772
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8773
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8774
       lt_cv_prog_compiler_c_o=yes
 
8775
     fi
 
8776
   fi
 
8777
   chmod u+w . 2>&5
 
8778
   $RM conftest*
 
8779
   # SGI C++ compiler will create directory out/ii_files/ for
 
8780
   # template instantiation
 
8781
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8782
   $RM out/* && rmdir out
 
8783
   cd ..
 
8784
   $RM -r conftest
 
8785
   $RM conftest*
 
8786
 
 
8787
fi
 
8788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8789
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8797
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8798
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8799
  $as_echo_n "(cached) " >&6
 
8800
else
 
8801
  lt_cv_prog_compiler_c_o=no
 
8802
   $RM -r conftest 2>/dev/null
 
8803
   mkdir conftest
 
8804
   cd conftest
 
8805
   mkdir out
 
8806
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8807
 
 
8808
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8809
   # Insert the option either (1) after the last *FLAGS variable, or
 
8810
   # (2) before a word containing "conftest.", or (3) at the end.
 
8811
   # Note that $ac_compile itself does not contain backslashes and begins
 
8812
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8813
   lt_compile=`echo "$ac_compile" | $SED \
 
8814
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8815
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8816
   -e 's:$: $lt_compiler_flag:'`
 
8817
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8818
   (eval "$lt_compile" 2>out/conftest.err)
 
8819
   ac_status=$?
 
8820
   cat out/conftest.err >&5
 
8821
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8822
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8823
   then
 
8824
     # The compiler can only warn and ignore the option if not recognized
 
8825
     # So say no if there are warnings
 
8826
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8827
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8828
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8829
       lt_cv_prog_compiler_c_o=yes
 
8830
     fi
 
8831
   fi
 
8832
   chmod u+w . 2>&5
 
8833
   $RM conftest*
 
8834
   # SGI C++ compiler will create directory out/ii_files/ for
 
8835
   # template instantiation
 
8836
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8837
   $RM out/* && rmdir out
 
8838
   cd ..
 
8839
   $RM -r conftest
 
8840
   $RM conftest*
 
8841
 
 
8842
fi
 
8843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8844
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8845
 
 
8846
 
 
8847
 
 
8848
 
 
8849
hard_links="nottested"
 
8850
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8851
  # do not overwrite the value of need_locks provided by the user
 
8852
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8853
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8854
  hard_links=yes
 
8855
  $RM conftest*
 
8856
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8857
  touch conftest.a
 
8858
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8859
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8861
$as_echo "$hard_links" >&6; }
 
8862
  if test "$hard_links" = no; then
 
8863
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8864
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8865
    need_locks=warn
 
8866
  fi
 
8867
else
 
8868
  need_locks=no
 
8869
fi
 
8870
 
 
8871
 
 
8872
 
 
8873
 
 
8874
 
 
8875
 
 
8876
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8877
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8878
 
 
8879
  runpath_var=
 
8880
  allow_undefined_flag=
 
8881
  always_export_symbols=no
 
8882
  archive_cmds=
 
8883
  archive_expsym_cmds=
 
8884
  compiler_needs_object=no
 
8885
  enable_shared_with_static_runtimes=no
 
8886
  export_dynamic_flag_spec=
 
8887
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8888
  hardcode_automatic=no
 
8889
  hardcode_direct=no
 
8890
  hardcode_direct_absolute=no
 
8891
  hardcode_libdir_flag_spec=
 
8892
  hardcode_libdir_separator=
 
8893
  hardcode_minus_L=no
 
8894
  hardcode_shlibpath_var=unsupported
 
8895
  inherit_rpath=no
 
8896
  link_all_deplibs=unknown
 
8897
  module_cmds=
 
8898
  module_expsym_cmds=
 
8899
  old_archive_from_new_cmds=
 
8900
  old_archive_from_expsyms_cmds=
 
8901
  thread_safe_flag_spec=
 
8902
  whole_archive_flag_spec=
 
8903
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8904
  # included in the symbol list
 
8905
  include_expsyms=
 
8906
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8907
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8908
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8909
  # as well as any symbol that contains `d'.
 
8910
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8911
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8912
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8913
  # the symbol is explicitly referenced.  Since portable code cannot
 
8914
  # rely on this symbol name, it's probably fine to never include it in
 
8915
  # preloaded symbol tables.
 
8916
  # Exclude shared library initialization/finalization symbols.
 
8917
  extract_expsyms_cmds=
 
8918
 
 
8919
  case $host_os in
 
8920
  cygwin* | mingw* | pw32* | cegcc*)
 
8921
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8922
    # When not using gcc, we currently assume that we are using
 
8923
    # Microsoft Visual C++.
 
8924
    if test "$GCC" != yes; then
 
8925
      with_gnu_ld=no
 
8926
    fi
 
8927
    ;;
 
8928
  interix*)
 
8929
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8930
    with_gnu_ld=yes
 
8931
    ;;
 
8932
  openbsd*)
 
8933
    with_gnu_ld=no
 
8934
    ;;
 
8935
  linux* | k*bsd*-gnu | gnu*)
 
8936
    link_all_deplibs=no
 
8937
    ;;
 
8938
  esac
 
8939
 
 
8940
  ld_shlibs=yes
 
8941
 
 
8942
  # On some targets, GNU ld is compatible enough with the native linker
 
8943
  # that we're better off using the native interface for both.
 
8944
  lt_use_gnu_ld_interface=no
 
8945
  if test "$with_gnu_ld" = yes; then
 
8946
    case $host_os in
 
8947
      aix*)
 
8948
        # The AIX port of GNU ld has always aspired to compatibility
 
8949
        # with the native linker.  However, as the warning in the GNU ld
 
8950
        # block says, versions before 2.19.5* couldn't really create working
 
8951
        # shared libraries, regardless of the interface used.
 
8952
        case `$LD -v 2>&1` in
 
8953
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8954
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8955
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8956
          *)
 
8957
            lt_use_gnu_ld_interface=yes
 
8958
            ;;
 
8959
        esac
 
8960
        ;;
 
8961
      *)
 
8962
        lt_use_gnu_ld_interface=yes
 
8963
        ;;
 
8964
    esac
 
8965
  fi
 
8966
 
 
8967
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8968
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8969
    wlarc='${wl}'
 
8970
 
 
8971
    # Set some defaults for GNU ld with shared library support. These
 
8972
    # are reset later if shared libraries are not supported. Putting them
 
8973
    # here allows them to be overridden if necessary.
 
8974
    runpath_var=LD_RUN_PATH
 
8975
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8976
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8977
    # ancient GNU ld didn't support --whole-archive et. al.
 
8978
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8979
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8980
    else
 
8981
      whole_archive_flag_spec=
 
8982
    fi
 
8983
    supports_anon_versioning=no
 
8984
    case `$LD -v 2>&1` in
 
8985
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8986
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8987
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8988
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8989
      *\ 2.11.*) ;; # other 2.11 versions
 
8990
      *) supports_anon_versioning=yes ;;
 
8991
    esac
 
8992
 
 
8993
    # See if GNU ld supports shared libraries.
 
8994
    case $host_os in
 
8995
    aix[3-9]*)
 
8996
      # On AIX/PPC, the GNU linker is very broken
 
8997
      if test "$host_cpu" != ia64; then
 
8998
        ld_shlibs=no
 
8999
        cat <<_LT_EOF 1>&2
 
9000
 
 
9001
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9002
*** to be unable to reliably create shared libraries on AIX.
 
9003
*** Therefore, libtool is disabling shared libraries support.  If you
 
9004
*** really care for shared libraries, you may want to install binutils
 
9005
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9006
*** You will then need to restart the configuration process.
 
9007
 
 
9008
_LT_EOF
 
9009
      fi
 
9010
      ;;
 
9011
 
 
9012
    amigaos*)
 
9013
      case $host_cpu in
 
9014
      powerpc)
 
9015
            # see comment about AmigaOS4 .so support
 
9016
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9017
            archive_expsym_cmds=''
 
9018
        ;;
 
9019
      m68k)
 
9020
            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)'
 
9021
            hardcode_libdir_flag_spec='-L$libdir'
 
9022
            hardcode_minus_L=yes
 
9023
        ;;
 
9024
      esac
 
9025
      ;;
 
9026
 
 
9027
    beos*)
 
9028
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9029
        allow_undefined_flag=unsupported
 
9030
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9031
        # support --undefined.  This deserves some investigation.  FIXME
 
9032
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9033
      else
 
9034
        ld_shlibs=no
 
9035
      fi
 
9036
      ;;
 
9037
 
 
9038
    cygwin* | mingw* | pw32* | cegcc*)
 
9039
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9040
      # as there is no search path for DLLs.
 
9041
      hardcode_libdir_flag_spec='-L$libdir'
 
9042
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9043
      allow_undefined_flag=unsupported
 
9044
      always_export_symbols=no
 
9045
      enable_shared_with_static_runtimes=yes
 
9046
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9047
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9048
 
 
9049
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9050
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9051
        # If the export-symbols file already is a .def file (1st line
 
9052
        # is EXPORTS), use it as is; otherwise, prepend...
 
9053
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9054
          cp $export_symbols $output_objdir/$soname.def;
 
9055
        else
 
9056
          echo EXPORTS > $output_objdir/$soname.def;
 
9057
          cat $export_symbols >> $output_objdir/$soname.def;
 
9058
        fi~
 
9059
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9060
      else
 
9061
        ld_shlibs=no
 
9062
      fi
 
9063
      ;;
 
9064
 
 
9065
    haiku*)
 
9066
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9067
      link_all_deplibs=yes
 
9068
      ;;
 
9069
 
 
9070
    interix[3-9]*)
 
9071
      hardcode_direct=no
 
9072
      hardcode_shlibpath_var=no
 
9073
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9074
      export_dynamic_flag_spec='${wl}-E'
 
9075
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9076
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9077
      # default) and relocated if they conflict, which is a slow very memory
 
9078
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9079
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9080
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9081
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9082
      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'
 
9083
      ;;
 
9084
 
 
9085
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9086
      tmp_diet=no
 
9087
      if test "$host_os" = linux-dietlibc; then
 
9088
        case $cc_basename in
 
9089
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9090
        esac
 
9091
      fi
 
9092
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9093
         && test "$tmp_diet" = no
 
9094
      then
 
9095
        tmp_addflag=' $pic_flag'
 
9096
        tmp_sharedflag='-shared'
 
9097
        case $cc_basename,$host_cpu in
 
9098
        pgcc*)                          # Portland Group C compiler
 
9099
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9100
          tmp_addflag=' $pic_flag'
 
9101
          ;;
 
9102
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9103
                                        # Portland Group f77 and f90 compilers
 
9104
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9105
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9106
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9107
          tmp_addflag=' -i_dynamic' ;;
 
9108
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9109
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9110
        ifc* | ifort*)                  # Intel Fortran compiler
 
9111
          tmp_addflag=' -nofor_main' ;;
 
9112
        lf95*)                          # Lahey Fortran 8.1
 
9113
          whole_archive_flag_spec=
 
9114
          tmp_sharedflag='--shared' ;;
 
9115
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9116
          tmp_sharedflag='-qmkshrobj'
 
9117
          tmp_addflag= ;;
 
9118
        nvcc*)  # Cuda Compiler Driver 2.2
 
9119
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9120
          compiler_needs_object=yes
 
9121
          ;;
 
9122
        esac
 
9123
        case `$CC -V 2>&1 | sed 5q` in
 
9124
        *Sun\ C*)                       # Sun C 5.9
 
9125
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9126
          compiler_needs_object=yes
 
9127
          tmp_sharedflag='-G' ;;
 
9128
        *Sun\ F*)                       # Sun Fortran 8.3
 
9129
          tmp_sharedflag='-G' ;;
 
9130
        esac
 
9131
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9132
 
 
9133
        if test "x$supports_anon_versioning" = xyes; then
 
9134
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9135
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9136
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9137
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9138
        fi
 
9139
 
 
9140
        case $cc_basename in
 
9141
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9142
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9143
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9144
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9145
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9146
          if test "x$supports_anon_versioning" = xyes; then
 
9147
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9148
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9149
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9150
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9151
          fi
 
9152
          ;;
 
9153
        esac
 
9154
      else
 
9155
        ld_shlibs=no
 
9156
      fi
 
9157
      ;;
 
9158
 
 
9159
    netbsd* | netbsdelf*-gnu)
 
9160
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9161
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9162
        wlarc=
 
9163
      else
 
9164
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9165
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9166
      fi
 
9167
      ;;
 
9168
 
 
9169
    solaris*)
 
9170
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9171
        ld_shlibs=no
 
9172
        cat <<_LT_EOF 1>&2
 
9173
 
 
9174
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9175
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9176
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9177
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9178
*** your PATH or compiler configuration so that the native linker is
 
9179
*** used, and then restart.
 
9180
 
 
9181
_LT_EOF
 
9182
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9183
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9184
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9185
      else
 
9186
        ld_shlibs=no
 
9187
      fi
 
9188
      ;;
 
9189
 
 
9190
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9191
      case `$LD -v 2>&1` in
 
9192
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9193
        ld_shlibs=no
 
9194
        cat <<_LT_EOF 1>&2
 
9195
 
 
9196
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9197
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9198
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9199
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9200
*** your PATH or compiler configuration so that the native linker is
 
9201
*** used, and then restart.
 
9202
 
 
9203
_LT_EOF
 
9204
        ;;
 
9205
        *)
 
9206
          # For security reasons, it is highly recommended that you always
 
9207
          # use absolute paths for naming shared libraries, and exclude the
 
9208
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9209
          # requires that you compile everything twice, which is a pain.
 
9210
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9211
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9212
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9213
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9214
          else
 
9215
            ld_shlibs=no
 
9216
          fi
 
9217
        ;;
 
9218
      esac
 
9219
      ;;
 
9220
 
 
9221
    sunos4*)
 
9222
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9223
      wlarc=
 
9224
      hardcode_direct=yes
 
9225
      hardcode_shlibpath_var=no
 
9226
      ;;
 
9227
 
 
9228
    *)
 
9229
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9230
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9231
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9232
      else
 
9233
        ld_shlibs=no
 
9234
      fi
 
9235
      ;;
 
9236
    esac
 
9237
 
 
9238
    if test "$ld_shlibs" = no; then
 
9239
      runpath_var=
 
9240
      hardcode_libdir_flag_spec=
 
9241
      export_dynamic_flag_spec=
 
9242
      whole_archive_flag_spec=
 
9243
    fi
 
9244
  else
 
9245
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9246
    case $host_os in
 
9247
    aix3*)
 
9248
      allow_undefined_flag=unsupported
 
9249
      always_export_symbols=yes
 
9250
      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'
 
9251
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9252
      # are no directories specified by -L.
 
9253
      hardcode_minus_L=yes
 
9254
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9255
        # Neither direct hardcoding nor static linking is supported with a
 
9256
        # broken collect2.
 
9257
        hardcode_direct=unsupported
 
9258
      fi
 
9259
      ;;
 
9260
 
 
9261
    aix[4-9]*)
 
9262
      if test "$host_cpu" = ia64; then
 
9263
        # On IA64, the linker does run time linking by default, so we don't
 
9264
        # have to do anything special.
 
9265
        aix_use_runtimelinking=no
 
9266
        exp_sym_flag='-Bexport'
 
9267
        no_entry_flag=""
 
9268
      else
 
9269
        # If we're using GNU nm, then we don't want the "-C" option.
 
9270
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9271
        # Also, AIX nm treats weak defined symbols like other global
 
9272
        # defined symbols, whereas GNU nm marks them as "W".
 
9273
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9274
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9275
        else
 
9276
          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'
 
9277
        fi
 
9278
        aix_use_runtimelinking=no
 
9279
 
 
9280
        # Test if we are trying to use run time linking or normal
 
9281
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9282
        # need to do runtime linking.
 
9283
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9284
          for ld_flag in $LDFLAGS; do
 
9285
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9286
            aix_use_runtimelinking=yes
 
9287
            break
 
9288
          fi
 
9289
          done
 
9290
          ;;
 
9291
        esac
 
9292
 
 
9293
        exp_sym_flag='-bexport'
 
9294
        no_entry_flag='-bnoentry'
 
9295
      fi
 
9296
 
 
9297
      # When large executables or shared objects are built, AIX ld can
 
9298
      # have problems creating the table of contents.  If linking a library
 
9299
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9300
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9301
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9302
 
 
9303
      archive_cmds=''
 
9304
      hardcode_direct=yes
 
9305
      hardcode_direct_absolute=yes
 
9306
      hardcode_libdir_separator=':'
 
9307
      link_all_deplibs=yes
 
9308
      file_list_spec='${wl}-f,'
 
9309
 
 
9310
      if test "$GCC" = yes; then
 
9311
        case $host_os in aix4.[012]|aix4.[012].*)
 
9312
        # We only want to do this on AIX 4.2 and lower, the check
 
9313
        # below for broken collect2 doesn't work under 4.3+
 
9314
          collect2name=`${CC} -print-prog-name=collect2`
 
9315
          if test -f "$collect2name" &&
 
9316
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9317
          then
 
9318
          # We have reworked collect2
 
9319
          :
 
9320
          else
 
9321
          # We have old collect2
 
9322
          hardcode_direct=unsupported
 
9323
          # It fails to find uninstalled libraries when the uninstalled
 
9324
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9325
          # to unsupported forces relinking
 
9326
          hardcode_minus_L=yes
 
9327
          hardcode_libdir_flag_spec='-L$libdir'
 
9328
          hardcode_libdir_separator=
 
9329
          fi
 
9330
          ;;
 
9331
        esac
 
9332
        shared_flag='-shared'
 
9333
        if test "$aix_use_runtimelinking" = yes; then
 
9334
          shared_flag="$shared_flag "'${wl}-G'
 
9335
        fi
 
9336
        link_all_deplibs=no
 
9337
      else
 
9338
        # not using gcc
 
9339
        if test "$host_cpu" = ia64; then
 
9340
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9341
        # chokes on -Wl,-G. The following line is correct:
 
9342
          shared_flag='-G'
 
9343
        else
 
9344
          if test "$aix_use_runtimelinking" = yes; then
 
9345
            shared_flag='${wl}-G'
 
9346
          else
 
9347
            shared_flag='${wl}-bM:SRE'
 
9348
          fi
 
9349
        fi
 
9350
      fi
 
9351
 
 
9352
      export_dynamic_flag_spec='${wl}-bexpall'
 
9353
      # It seems that -bexpall does not export symbols beginning with
 
9354
      # underscore (_), so it is better to generate a list of symbols to export.
 
9355
      always_export_symbols=yes
 
9356
      if test "$aix_use_runtimelinking" = yes; then
 
9357
        # Warning - without using the other runtime loading flags (-brtl),
 
9358
        # -berok will link without error, but may produce a broken library.
 
9359
        allow_undefined_flag='-berok'
 
9360
        # Determine the default libpath from the value encoded in an
 
9361
        # empty executable.
 
9362
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9363
  aix_libpath=$lt_cv_aix_libpath
 
9364
else
 
9365
  if ${lt_cv_aix_libpath_+:} false; then :
 
9366
  $as_echo_n "(cached) " >&6
 
9367
else
 
9368
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9369
/* end confdefs.h.  */
 
9370
 
 
9371
int
 
9372
main ()
 
9373
{
 
9374
 
 
9375
  ;
 
9376
  return 0;
 
9377
}
 
9378
_ACEOF
 
9379
if ac_fn_c_try_link "$LINENO"; then :
 
9380
 
 
9381
  lt_aix_libpath_sed='
 
9382
      /Import File Strings/,/^$/ {
 
9383
          /^0/ {
 
9384
              s/^0  *\([^ ]*\) *$/\1/
 
9385
              p
 
9386
          }
 
9387
      }'
 
9388
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9389
  # Check for a 64-bit object if we didn't find anything.
 
9390
  if test -z "$lt_cv_aix_libpath_"; then
 
9391
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9392
  fi
 
9393
fi
 
9394
rm -f core conftest.err conftest.$ac_objext \
 
9395
    conftest$ac_exeext conftest.$ac_ext
 
9396
  if test -z "$lt_cv_aix_libpath_"; then
 
9397
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9398
  fi
 
9399
 
 
9400
fi
 
9401
 
 
9402
  aix_libpath=$lt_cv_aix_libpath_
 
9403
fi
 
9404
 
 
9405
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9406
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9407
      else
 
9408
        if test "$host_cpu" = ia64; then
 
9409
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9410
          allow_undefined_flag="-z nodefs"
 
9411
          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"
 
9412
        else
 
9413
         # Determine the default libpath from the value encoded in an
 
9414
         # empty executable.
 
9415
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9416
  aix_libpath=$lt_cv_aix_libpath
 
9417
else
 
9418
  if ${lt_cv_aix_libpath_+:} false; then :
 
9419
  $as_echo_n "(cached) " >&6
 
9420
else
 
9421
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9422
/* end confdefs.h.  */
 
9423
 
 
9424
int
 
9425
main ()
 
9426
{
 
9427
 
 
9428
  ;
 
9429
  return 0;
 
9430
}
 
9431
_ACEOF
 
9432
if ac_fn_c_try_link "$LINENO"; then :
 
9433
 
 
9434
  lt_aix_libpath_sed='
 
9435
      /Import File Strings/,/^$/ {
 
9436
          /^0/ {
 
9437
              s/^0  *\([^ ]*\) *$/\1/
 
9438
              p
 
9439
          }
 
9440
      }'
 
9441
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9442
  # Check for a 64-bit object if we didn't find anything.
 
9443
  if test -z "$lt_cv_aix_libpath_"; then
 
9444
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9445
  fi
 
9446
fi
 
9447
rm -f core conftest.err conftest.$ac_objext \
 
9448
    conftest$ac_exeext conftest.$ac_ext
 
9449
  if test -z "$lt_cv_aix_libpath_"; then
 
9450
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9451
  fi
 
9452
 
 
9453
fi
 
9454
 
 
9455
  aix_libpath=$lt_cv_aix_libpath_
 
9456
fi
 
9457
 
 
9458
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9459
          # Warning - without using the other run time loading flags,
 
9460
          # -berok will link without error, but may produce a broken library.
 
9461
          no_undefined_flag=' ${wl}-bernotok'
 
9462
          allow_undefined_flag=' ${wl}-berok'
 
9463
          if test "$with_gnu_ld" = yes; then
 
9464
            # We only use this code for GNU lds that support --whole-archive.
 
9465
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9466
          else
 
9467
            # Exported symbols can be pulled into shared objects from archives
 
9468
            whole_archive_flag_spec='$convenience'
 
9469
          fi
 
9470
          archive_cmds_need_lc=yes
 
9471
          # This is similar to how AIX traditionally builds its shared libraries.
 
9472
          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'
 
9473
        fi
 
9474
      fi
 
9475
      ;;
 
9476
 
 
9477
    amigaos*)
 
9478
      case $host_cpu in
 
9479
      powerpc)
 
9480
            # see comment about AmigaOS4 .so support
 
9481
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9482
            archive_expsym_cmds=''
 
9483
        ;;
 
9484
      m68k)
 
9485
            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)'
 
9486
            hardcode_libdir_flag_spec='-L$libdir'
 
9487
            hardcode_minus_L=yes
 
9488
        ;;
 
9489
      esac
 
9490
      ;;
 
9491
 
 
9492
    bsdi[45]*)
 
9493
      export_dynamic_flag_spec=-rdynamic
 
9494
      ;;
 
9495
 
 
9496
    cygwin* | mingw* | pw32* | cegcc*)
 
9497
      # When not using gcc, we currently assume that we are using
 
9498
      # Microsoft Visual C++.
 
9499
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9500
      # no search path for DLLs.
 
9501
      case $cc_basename in
 
9502
      cl*)
 
9503
        # Native MSVC
 
9504
        hardcode_libdir_flag_spec=' '
 
9505
        allow_undefined_flag=unsupported
 
9506
        always_export_symbols=yes
 
9507
        file_list_spec='@'
 
9508
        # Tell ltmain to make .lib files, not .a files.
 
9509
        libext=lib
 
9510
        # Tell ltmain to make .dll files, not .so files.
 
9511
        shrext_cmds=".dll"
 
9512
        # FIXME: Setting linknames here is a bad hack.
 
9513
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9514
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9515
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9516
          else
 
9517
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9518
          fi~
 
9519
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9520
          linknames='
 
9521
        # The linker will not automatically build a static lib if we build a DLL.
 
9522
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9523
        enable_shared_with_static_runtimes=yes
 
9524
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9525
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9526
        # Don't use ranlib
 
9527
        old_postinstall_cmds='chmod 644 $oldlib'
 
9528
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9529
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9530
          case $lt_outputfile in
 
9531
            *.exe|*.EXE) ;;
 
9532
            *)
 
9533
              lt_outputfile="$lt_outputfile.exe"
 
9534
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9535
              ;;
 
9536
          esac~
 
9537
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9538
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9539
            $RM "$lt_outputfile.manifest";
 
9540
          fi'
 
9541
        ;;
 
9542
      *)
 
9543
        # Assume MSVC wrapper
 
9544
        hardcode_libdir_flag_spec=' '
 
9545
        allow_undefined_flag=unsupported
 
9546
        # Tell ltmain to make .lib files, not .a files.
 
9547
        libext=lib
 
9548
        # Tell ltmain to make .dll files, not .so files.
 
9549
        shrext_cmds=".dll"
 
9550
        # FIXME: Setting linknames here is a bad hack.
 
9551
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9552
        # The linker will automatically build a .lib file if we build a DLL.
 
9553
        old_archive_from_new_cmds='true'
 
9554
        # FIXME: Should let the user specify the lib program.
 
9555
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9556
        enable_shared_with_static_runtimes=yes
 
9557
        ;;
 
9558
      esac
 
9559
      ;;
 
9560
 
 
9561
    darwin* | rhapsody*)
 
9562
 
 
9563
 
 
9564
  archive_cmds_need_lc=no
 
9565
  hardcode_direct=no
 
9566
  hardcode_automatic=yes
 
9567
  hardcode_shlibpath_var=unsupported
 
9568
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9569
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9570
 
 
9571
  else
 
9572
    whole_archive_flag_spec=''
 
9573
  fi
 
9574
  link_all_deplibs=yes
 
9575
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9576
  case $cc_basename in
 
9577
     ifort*) _lt_dar_can_shared=yes ;;
 
9578
     *) _lt_dar_can_shared=$GCC ;;
 
9579
  esac
 
9580
  if test "$_lt_dar_can_shared" = "yes"; then
 
9581
    output_verbose_link_cmd=func_echo_all
 
9582
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9583
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9584
    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}"
 
9585
    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}"
 
9586
 
 
9587
  else
 
9588
  ld_shlibs=no
 
9589
  fi
 
9590
 
 
9591
      ;;
 
9592
 
 
9593
    dgux*)
 
9594
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9595
      hardcode_libdir_flag_spec='-L$libdir'
 
9596
      hardcode_shlibpath_var=no
 
9597
      ;;
 
9598
 
 
9599
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9600
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9601
    # does not break anything, and helps significantly (at the cost of a little
 
9602
    # extra space).
 
9603
    freebsd2.2*)
 
9604
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9605
      hardcode_libdir_flag_spec='-R$libdir'
 
9606
      hardcode_direct=yes
 
9607
      hardcode_shlibpath_var=no
 
9608
      ;;
 
9609
 
 
9610
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9611
    freebsd2.*)
 
9612
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9613
      hardcode_direct=yes
 
9614
      hardcode_minus_L=yes
 
9615
      hardcode_shlibpath_var=no
 
9616
      ;;
 
9617
 
 
9618
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9619
    freebsd* | dragonfly*)
 
9620
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9621
      hardcode_libdir_flag_spec='-R$libdir'
 
9622
      hardcode_direct=yes
 
9623
      hardcode_shlibpath_var=no
 
9624
      ;;
 
9625
 
 
9626
    hpux9*)
 
9627
      if test "$GCC" = yes; then
 
9628
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9629
      else
 
9630
        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'
 
9631
      fi
 
9632
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9633
      hardcode_libdir_separator=:
 
9634
      hardcode_direct=yes
 
9635
 
 
9636
      # hardcode_minus_L: Not really in the search PATH,
 
9637
      # but as the default location of the library.
 
9638
      hardcode_minus_L=yes
 
9639
      export_dynamic_flag_spec='${wl}-E'
 
9640
      ;;
 
9641
 
 
9642
    hpux10*)
 
9643
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9644
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9645
      else
 
9646
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9647
      fi
 
9648
      if test "$with_gnu_ld" = no; then
 
9649
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9650
        hardcode_libdir_separator=:
 
9651
        hardcode_direct=yes
 
9652
        hardcode_direct_absolute=yes
 
9653
        export_dynamic_flag_spec='${wl}-E'
 
9654
        # hardcode_minus_L: Not really in the search PATH,
 
9655
        # but as the default location of the library.
 
9656
        hardcode_minus_L=yes
 
9657
      fi
 
9658
      ;;
 
9659
 
 
9660
    hpux11*)
 
9661
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9662
        case $host_cpu in
 
9663
        hppa*64*)
 
9664
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9665
          ;;
 
9666
        ia64*)
 
9667
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9668
          ;;
 
9669
        *)
 
9670
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9671
          ;;
 
9672
        esac
 
9673
      else
 
9674
        case $host_cpu in
 
9675
        hppa*64*)
 
9676
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9677
          ;;
 
9678
        ia64*)
 
9679
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9680
          ;;
 
9681
        *)
 
9682
 
 
9683
          # Older versions of the 11.00 compiler do not understand -b yet
 
9684
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9685
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9686
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9687
if ${lt_cv_prog_compiler__b+:} false; then :
 
9688
  $as_echo_n "(cached) " >&6
 
9689
else
 
9690
  lt_cv_prog_compiler__b=no
 
9691
   save_LDFLAGS="$LDFLAGS"
 
9692
   LDFLAGS="$LDFLAGS -b"
 
9693
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9694
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9695
     # The linker can only warn and ignore the option if not recognized
 
9696
     # So say no if there are warnings
 
9697
     if test -s conftest.err; then
 
9698
       # Append any errors to the config.log.
 
9699
       cat conftest.err 1>&5
 
9700
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9701
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9702
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9703
         lt_cv_prog_compiler__b=yes
 
9704
       fi
 
9705
     else
 
9706
       lt_cv_prog_compiler__b=yes
 
9707
     fi
 
9708
   fi
 
9709
   $RM -r conftest*
 
9710
   LDFLAGS="$save_LDFLAGS"
 
9711
 
 
9712
fi
 
9713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9714
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9715
 
 
9716
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9717
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9718
else
 
9719
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9720
fi
 
9721
 
 
9722
          ;;
 
9723
        esac
 
9724
      fi
 
9725
      if test "$with_gnu_ld" = no; then
 
9726
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9727
        hardcode_libdir_separator=:
 
9728
 
 
9729
        case $host_cpu in
 
9730
        hppa*64*|ia64*)
 
9731
          hardcode_direct=no
 
9732
          hardcode_shlibpath_var=no
 
9733
          ;;
 
9734
        *)
 
9735
          hardcode_direct=yes
 
9736
          hardcode_direct_absolute=yes
 
9737
          export_dynamic_flag_spec='${wl}-E'
 
9738
 
 
9739
          # hardcode_minus_L: Not really in the search PATH,
 
9740
          # but as the default location of the library.
 
9741
          hardcode_minus_L=yes
 
9742
          ;;
 
9743
        esac
 
9744
      fi
 
9745
      ;;
 
9746
 
 
9747
    irix5* | irix6* | nonstopux*)
 
9748
      if test "$GCC" = yes; then
 
9749
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9750
        # Try to use the -exported_symbol ld option, if it does not
 
9751
        # work, assume that -exports_file does not work either and
 
9752
        # implicitly export all symbols.
 
9753
        # This should be the same for all languages, so no per-tag cache variable.
 
9754
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9755
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9756
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9757
  $as_echo_n "(cached) " >&6
 
9758
else
 
9759
  save_LDFLAGS="$LDFLAGS"
 
9760
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9761
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9762
/* end confdefs.h.  */
 
9763
int foo (void) { return 0; }
 
9764
_ACEOF
 
9765
if ac_fn_c_try_link "$LINENO"; then :
 
9766
  lt_cv_irix_exported_symbol=yes
 
9767
else
 
9768
  lt_cv_irix_exported_symbol=no
 
9769
fi
 
9770
rm -f core conftest.err conftest.$ac_objext \
 
9771
    conftest$ac_exeext conftest.$ac_ext
 
9772
           LDFLAGS="$save_LDFLAGS"
 
9773
fi
 
9774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9775
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9776
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9777
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9778
        fi
 
9779
      else
 
9780
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9781
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9782
      fi
 
9783
      archive_cmds_need_lc='no'
 
9784
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9785
      hardcode_libdir_separator=:
 
9786
      inherit_rpath=yes
 
9787
      link_all_deplibs=yes
 
9788
      ;;
 
9789
 
 
9790
    netbsd* | netbsdelf*-gnu)
 
9791
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9792
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9793
      else
 
9794
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9795
      fi
 
9796
      hardcode_libdir_flag_spec='-R$libdir'
 
9797
      hardcode_direct=yes
 
9798
      hardcode_shlibpath_var=no
 
9799
      ;;
 
9800
 
 
9801
    newsos6)
 
9802
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9803
      hardcode_direct=yes
 
9804
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9805
      hardcode_libdir_separator=:
 
9806
      hardcode_shlibpath_var=no
 
9807
      ;;
 
9808
 
 
9809
    *nto* | *qnx*)
 
9810
      ;;
 
9811
 
 
9812
    openbsd*)
 
9813
      if test -f /usr/libexec/ld.so; then
 
9814
        hardcode_direct=yes
 
9815
        hardcode_shlibpath_var=no
 
9816
        hardcode_direct_absolute=yes
 
9817
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9818
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9819
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9820
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9821
          export_dynamic_flag_spec='${wl}-E'
 
9822
        else
 
9823
          case $host_os in
 
9824
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9825
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9826
             hardcode_libdir_flag_spec='-R$libdir'
 
9827
             ;;
 
9828
           *)
 
9829
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9830
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9831
             ;;
 
9832
          esac
 
9833
        fi
 
9834
      else
 
9835
        ld_shlibs=no
 
9836
      fi
 
9837
      ;;
 
9838
 
 
9839
    os2*)
 
9840
      hardcode_libdir_flag_spec='-L$libdir'
 
9841
      hardcode_minus_L=yes
 
9842
      allow_undefined_flag=unsupported
 
9843
      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'
 
9844
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9845
      ;;
 
9846
 
 
9847
    osf3*)
 
9848
      if test "$GCC" = yes; then
 
9849
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9850
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9851
      else
 
9852
        allow_undefined_flag=' -expect_unresolved \*'
 
9853
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9854
      fi
 
9855
      archive_cmds_need_lc='no'
 
9856
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9857
      hardcode_libdir_separator=:
 
9858
      ;;
 
9859
 
 
9860
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9861
      if test "$GCC" = yes; then
 
9862
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9863
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9864
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9865
      else
 
9866
        allow_undefined_flag=' -expect_unresolved \*'
 
9867
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9868
        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~
 
9869
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9870
 
 
9871
        # Both c and cxx compiler support -rpath directly
 
9872
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9873
      fi
 
9874
      archive_cmds_need_lc='no'
 
9875
      hardcode_libdir_separator=:
 
9876
      ;;
 
9877
 
 
9878
    solaris*)
 
9879
      no_undefined_flag=' -z defs'
 
9880
      if test "$GCC" = yes; then
 
9881
        wlarc='${wl}'
 
9882
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9883
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9884
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9885
      else
 
9886
        case `$CC -V 2>&1` in
 
9887
        *"Compilers 5.0"*)
 
9888
          wlarc=''
 
9889
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9890
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9891
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9892
          ;;
 
9893
        *)
 
9894
          wlarc='${wl}'
 
9895
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9896
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9897
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9898
          ;;
 
9899
        esac
 
9900
      fi
 
9901
      hardcode_libdir_flag_spec='-R$libdir'
 
9902
      hardcode_shlibpath_var=no
 
9903
      case $host_os in
 
9904
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9905
      *)
 
9906
        # The compiler driver will combine and reorder linker options,
 
9907
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9908
        # but is careful enough not to reorder.
 
9909
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9910
        if test "$GCC" = yes; then
 
9911
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9912
        else
 
9913
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9914
        fi
 
9915
        ;;
 
9916
      esac
 
9917
      link_all_deplibs=yes
 
9918
      ;;
 
9919
 
 
9920
    sunos4*)
 
9921
      if test "x$host_vendor" = xsequent; then
 
9922
        # Use $CC to link under sequent, because it throws in some extra .o
 
9923
        # files that make .init and .fini sections work.
 
9924
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9925
      else
 
9926
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9927
      fi
 
9928
      hardcode_libdir_flag_spec='-L$libdir'
 
9929
      hardcode_direct=yes
 
9930
      hardcode_minus_L=yes
 
9931
      hardcode_shlibpath_var=no
 
9932
      ;;
 
9933
 
 
9934
    sysv4)
 
9935
      case $host_vendor in
 
9936
        sni)
 
9937
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9938
          hardcode_direct=yes # is this really true???
 
9939
        ;;
 
9940
        siemens)
 
9941
          ## LD is ld it makes a PLAMLIB
 
9942
          ## CC just makes a GrossModule.
 
9943
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9944
          reload_cmds='$CC -r -o $output$reload_objs'
 
9945
          hardcode_direct=no
 
9946
        ;;
 
9947
        motorola)
 
9948
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9949
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9950
        ;;
 
9951
      esac
 
9952
      runpath_var='LD_RUN_PATH'
 
9953
      hardcode_shlibpath_var=no
 
9954
      ;;
 
9955
 
 
9956
    sysv4.3*)
 
9957
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9958
      hardcode_shlibpath_var=no
 
9959
      export_dynamic_flag_spec='-Bexport'
 
9960
      ;;
 
9961
 
 
9962
    sysv4*MP*)
 
9963
      if test -d /usr/nec; then
 
9964
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9965
        hardcode_shlibpath_var=no
 
9966
        runpath_var=LD_RUN_PATH
 
9967
        hardcode_runpath_var=yes
 
9968
        ld_shlibs=yes
 
9969
      fi
 
9970
      ;;
 
9971
 
 
9972
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9973
      no_undefined_flag='${wl}-z,text'
 
9974
      archive_cmds_need_lc=no
 
9975
      hardcode_shlibpath_var=no
 
9976
      runpath_var='LD_RUN_PATH'
 
9977
 
 
9978
      if test "$GCC" = yes; then
 
9979
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9980
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9981
      else
 
9982
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9983
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9984
      fi
 
9985
      ;;
 
9986
 
 
9987
    sysv5* | sco3.2v5* | sco5v6*)
 
9988
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9989
      # link with -lc, and that would cause any symbols used from libc to
 
9990
      # always be unresolved, which means just about no library would
 
9991
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9992
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9993
      # as -z defs.
 
9994
      no_undefined_flag='${wl}-z,text'
 
9995
      allow_undefined_flag='${wl}-z,nodefs'
 
9996
      archive_cmds_need_lc=no
 
9997
      hardcode_shlibpath_var=no
 
9998
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9999
      hardcode_libdir_separator=':'
 
10000
      link_all_deplibs=yes
 
10001
      export_dynamic_flag_spec='${wl}-Bexport'
 
10002
      runpath_var='LD_RUN_PATH'
 
10003
 
 
10004
      if test "$GCC" = yes; then
 
10005
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10006
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10007
      else
 
10008
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10009
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10010
      fi
 
10011
      ;;
 
10012
 
 
10013
    uts4*)
 
10014
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10015
      hardcode_libdir_flag_spec='-L$libdir'
 
10016
      hardcode_shlibpath_var=no
 
10017
      ;;
 
10018
 
 
10019
    *)
 
10020
      ld_shlibs=no
 
10021
      ;;
 
10022
    esac
 
10023
 
 
10024
    if test x$host_vendor = xsni; then
 
10025
      case $host in
 
10026
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10027
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10028
        ;;
 
10029
      esac
 
10030
    fi
 
10031
  fi
 
10032
 
 
10033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10034
$as_echo "$ld_shlibs" >&6; }
 
10035
test "$ld_shlibs" = no && can_build_shared=no
 
10036
 
 
10037
with_gnu_ld=$with_gnu_ld
 
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
 
 
10049
 
 
10050
 
 
10051
 
 
10052
 
 
10053
#
 
10054
# Do we need to explicitly link libc?
 
10055
#
 
10056
case "x$archive_cmds_need_lc" in
 
10057
x|xyes)
 
10058
  # Assume -lc should be added
 
10059
  archive_cmds_need_lc=yes
 
10060
 
 
10061
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10062
    case $archive_cmds in
 
10063
    *'~'*)
 
10064
      # FIXME: we may have to deal with multi-command sequences.
 
10065
      ;;
 
10066
    '$CC '*)
 
10067
      # Test whether the compiler implicitly links with -lc since on some
 
10068
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10069
      # to ld, don't add -lc before -lgcc.
 
10070
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10071
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10072
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10073
  $as_echo_n "(cached) " >&6
 
10074
else
 
10075
  $RM conftest*
 
10076
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10077
 
 
10078
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10079
  (eval $ac_compile) 2>&5
 
10080
  ac_status=$?
 
10081
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10082
  test $ac_status = 0; } 2>conftest.err; then
 
10083
          soname=conftest
 
10084
          lib=conftest
 
10085
          libobjs=conftest.$ac_objext
 
10086
          deplibs=
 
10087
          wl=$lt_prog_compiler_wl
 
10088
          pic_flag=$lt_prog_compiler_pic
 
10089
          compiler_flags=-v
 
10090
          linker_flags=-v
 
10091
          verstring=
 
10092
          output_objdir=.
 
10093
          libname=conftest
 
10094
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10095
          allow_undefined_flag=
 
10096
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10097
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10098
  ac_status=$?
 
10099
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10100
  test $ac_status = 0; }
 
10101
          then
 
10102
            lt_cv_archive_cmds_need_lc=no
 
10103
          else
 
10104
            lt_cv_archive_cmds_need_lc=yes
 
10105
          fi
 
10106
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10107
        else
 
10108
          cat conftest.err 1>&5
 
10109
        fi
 
10110
        $RM conftest*
 
10111
 
 
10112
fi
 
10113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10114
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10115
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10116
      ;;
 
10117
    esac
 
10118
  fi
 
10119
  ;;
 
10120
esac
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
 
10126
 
 
10127
 
 
10128
 
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
 
 
10150
 
 
10151
 
 
10152
 
 
10153
 
 
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
 
 
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
 
 
10214
 
 
10215
 
 
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
 
10222
 
 
10223
 
 
10224
 
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
 
 
10230
 
 
10231
 
 
10232
 
 
10233
 
 
10234
 
 
10235
 
 
10236
 
 
10237
 
 
10238
 
 
10239
 
 
10240
 
 
10241
 
 
10242
 
 
10243
 
 
10244
 
 
10245
 
 
10246
 
 
10247
 
 
10248
 
 
10249
 
 
10250
 
 
10251
 
 
10252
 
 
10253
 
 
10254
 
 
10255
 
 
10256
 
 
10257
 
 
10258
 
 
10259
 
 
10260
 
 
10261
 
 
10262
 
 
10263
 
 
10264
 
 
10265
 
 
10266
 
 
10267
 
 
10268
 
 
10269
 
 
10270
 
 
10271
 
 
10272
 
 
10273
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10274
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10275
 
 
10276
if test "$GCC" = yes; then
 
10277
  case $host_os in
 
10278
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10279
    *) lt_awk_arg="/^libraries:/" ;;
 
10280
  esac
 
10281
  case $host_os in
 
10282
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10283
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10284
  esac
 
10285
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10286
  case $lt_search_path_spec in
 
10287
  *\;*)
 
10288
    # if the path contains ";" then we assume it to be the separator
 
10289
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10290
    # assumed that no part of a normal pathname contains ";" but that should
 
10291
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10292
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10293
    ;;
 
10294
  *)
 
10295
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10296
    ;;
 
10297
  esac
 
10298
  # Ok, now we have the path, separated by spaces, we can step through it
 
10299
  # and add multilib dir if necessary.
 
10300
  lt_tmp_lt_search_path_spec=
 
10301
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10302
  for lt_sys_path in $lt_search_path_spec; do
 
10303
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10304
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10305
    else
 
10306
      test -d "$lt_sys_path" && \
 
10307
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10308
    fi
 
10309
  done
 
10310
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10311
BEGIN {RS=" "; FS="/|\n";} {
 
10312
  lt_foo="";
 
10313
  lt_count=0;
 
10314
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10315
    if ($lt_i != "" && $lt_i != ".") {
 
10316
      if ($lt_i == "..") {
 
10317
        lt_count++;
 
10318
      } else {
 
10319
        if (lt_count == 0) {
 
10320
          lt_foo="/" $lt_i lt_foo;
 
10321
        } else {
 
10322
          lt_count--;
 
10323
        }
 
10324
      }
 
10325
    }
 
10326
  }
 
10327
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10328
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10329
}'`
 
10330
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10331
  # for these hosts.
 
10332
  case $host_os in
 
10333
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10334
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10335
  esac
 
10336
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10337
else
 
10338
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10339
fi
 
10340
library_names_spec=
 
10341
libname_spec='lib$name'
 
10342
soname_spec=
 
10343
shrext_cmds=".so"
 
10344
postinstall_cmds=
 
10345
postuninstall_cmds=
 
10346
finish_cmds=
 
10347
finish_eval=
 
10348
shlibpath_var=
 
10349
shlibpath_overrides_runpath=unknown
 
10350
version_type=none
 
10351
dynamic_linker="$host_os ld.so"
 
10352
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10353
need_lib_prefix=unknown
 
10354
hardcode_into_libs=no
 
10355
 
 
10356
# when you set need_version to no, make sure it does not cause -set_version
 
10357
# flags to be left without arguments
 
10358
need_version=unknown
 
10359
 
 
10360
case $host_os in
 
10361
aix3*)
 
10362
  version_type=linux # correct to gnu/linux during the next big refactor
 
10363
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10364
  shlibpath_var=LIBPATH
 
10365
 
 
10366
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10367
  soname_spec='${libname}${release}${shared_ext}$major'
 
10368
  ;;
 
10369
 
 
10370
aix[4-9]*)
 
10371
  version_type=linux # correct to gnu/linux during the next big refactor
 
10372
  need_lib_prefix=no
 
10373
  need_version=no
 
10374
  hardcode_into_libs=yes
 
10375
  if test "$host_cpu" = ia64; then
 
10376
    # AIX 5 supports IA64
 
10377
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10378
    shlibpath_var=LD_LIBRARY_PATH
 
10379
  else
 
10380
    # With GCC up to 2.95.x, collect2 would create an import file
 
10381
    # for dependence libraries.  The import file would start with
 
10382
    # the line `#! .'.  This would cause the generated library to
 
10383
    # depend on `.', always an invalid library.  This was fixed in
 
10384
    # development snapshots of GCC prior to 3.0.
 
10385
    case $host_os in
 
10386
      aix4 | aix4.[01] | aix4.[01].*)
 
10387
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10388
           echo ' yes '
 
10389
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10390
        :
 
10391
      else
 
10392
        can_build_shared=no
 
10393
      fi
 
10394
      ;;
 
10395
    esac
 
10396
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10397
    # soname into executable. Probably we can add versioning support to
 
10398
    # collect2, so additional links can be useful in future.
 
10399
    if test "$aix_use_runtimelinking" = yes; then
 
10400
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10401
      # instead of lib<name>.a to let people know that these are not
 
10402
      # typical AIX shared libraries.
 
10403
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10404
    else
 
10405
      # We preserve .a as extension for shared libraries through AIX4.2
 
10406
      # and later when we are not doing run time linking.
 
10407
      library_names_spec='${libname}${release}.a $libname.a'
 
10408
      soname_spec='${libname}${release}${shared_ext}$major'
 
10409
    fi
 
10410
    shlibpath_var=LIBPATH
 
10411
  fi
 
10412
  ;;
 
10413
 
 
10414
amigaos*)
 
10415
  case $host_cpu in
 
10416
  powerpc)
 
10417
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10418
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10419
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10420
    ;;
 
10421
  m68k)
 
10422
    library_names_spec='$libname.ixlibrary $libname.a'
 
10423
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10424
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10425
    ;;
 
10426
  esac
 
10427
  ;;
 
10428
 
 
10429
beos*)
 
10430
  library_names_spec='${libname}${shared_ext}'
 
10431
  dynamic_linker="$host_os ld.so"
 
10432
  shlibpath_var=LIBRARY_PATH
 
10433
  ;;
 
10434
 
 
10435
bsdi[45]*)
 
10436
  version_type=linux # correct to gnu/linux during the next big refactor
 
10437
  need_version=no
 
10438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10439
  soname_spec='${libname}${release}${shared_ext}$major'
 
10440
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10441
  shlibpath_var=LD_LIBRARY_PATH
 
10442
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10443
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10444
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10445
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10446
  # libtool to hard-code these into programs
 
10447
  ;;
 
10448
 
 
10449
cygwin* | mingw* | pw32* | cegcc*)
 
10450
  version_type=windows
 
10451
  shrext_cmds=".dll"
 
10452
  need_version=no
 
10453
  need_lib_prefix=no
 
10454
 
 
10455
  case $GCC,$cc_basename in
 
10456
  yes,*)
 
10457
    # gcc
 
10458
    library_names_spec='$libname.dll.a'
 
10459
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10460
    postinstall_cmds='base_file=`basename \${file}`~
 
10461
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10462
      dldir=$destdir/`dirname \$dlpath`~
 
10463
      test -d \$dldir || mkdir -p \$dldir~
 
10464
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10465
      chmod a+x \$dldir/$dlname~
 
10466
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10467
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10468
      fi'
 
10469
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10470
      dlpath=$dir/\$dldll~
 
10471
       $RM \$dlpath'
 
10472
    shlibpath_overrides_runpath=yes
 
10473
 
 
10474
    case $host_os in
 
10475
    cygwin*)
 
10476
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10477
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10478
 
 
10479
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10480
      ;;
 
10481
    mingw* | cegcc*)
 
10482
      # MinGW DLLs use traditional 'lib' prefix
 
10483
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10484
      ;;
 
10485
    pw32*)
 
10486
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10487
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10488
      ;;
 
10489
    esac
 
10490
    dynamic_linker='Win32 ld.exe'
 
10491
    ;;
 
10492
 
 
10493
  *,cl*)
 
10494
    # Native MSVC
 
10495
    libname_spec='$name'
 
10496
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10497
    library_names_spec='${libname}.dll.lib'
 
10498
 
 
10499
    case $build_os in
 
10500
    mingw*)
 
10501
      sys_lib_search_path_spec=
 
10502
      lt_save_ifs=$IFS
 
10503
      IFS=';'
 
10504
      for lt_path in $LIB
 
10505
      do
 
10506
        IFS=$lt_save_ifs
 
10507
        # Let DOS variable expansion print the short 8.3 style file name.
 
10508
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10509
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10510
      done
 
10511
      IFS=$lt_save_ifs
 
10512
      # Convert to MSYS style.
 
10513
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10514
      ;;
 
10515
    cygwin*)
 
10516
      # Convert to unix form, then to dos form, then back to unix form
 
10517
      # but this time dos style (no spaces!) so that the unix form looks
 
10518
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10519
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10520
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10521
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10522
      ;;
 
10523
    *)
 
10524
      sys_lib_search_path_spec="$LIB"
 
10525
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10526
        # It is most probably a Windows format PATH.
 
10527
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10528
      else
 
10529
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10530
      fi
 
10531
      # FIXME: find the short name or the path components, as spaces are
 
10532
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10533
      ;;
 
10534
    esac
 
10535
 
 
10536
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10537
    postinstall_cmds='base_file=`basename \${file}`~
 
10538
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10539
      dldir=$destdir/`dirname \$dlpath`~
 
10540
      test -d \$dldir || mkdir -p \$dldir~
 
10541
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10542
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10543
      dlpath=$dir/\$dldll~
 
10544
       $RM \$dlpath'
 
10545
    shlibpath_overrides_runpath=yes
 
10546
    dynamic_linker='Win32 link.exe'
 
10547
    ;;
 
10548
 
 
10549
  *)
 
10550
    # Assume MSVC wrapper
 
10551
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10552
    dynamic_linker='Win32 ld.exe'
 
10553
    ;;
 
10554
  esac
 
10555
  # FIXME: first we should search . and the directory the executable is in
 
10556
  shlibpath_var=PATH
 
10557
  ;;
 
10558
 
 
10559
darwin* | rhapsody*)
 
10560
  dynamic_linker="$host_os dyld"
 
10561
  version_type=darwin
 
10562
  need_lib_prefix=no
 
10563
  need_version=no
 
10564
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10565
  soname_spec='${libname}${release}${major}$shared_ext'
 
10566
  shlibpath_overrides_runpath=yes
 
10567
  shlibpath_var=DYLD_LIBRARY_PATH
 
10568
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10569
 
 
10570
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10571
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10572
  ;;
 
10573
 
 
10574
dgux*)
 
10575
  version_type=linux # correct to gnu/linux during the next big refactor
 
10576
  need_lib_prefix=no
 
10577
  need_version=no
 
10578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10579
  soname_spec='${libname}${release}${shared_ext}$major'
 
10580
  shlibpath_var=LD_LIBRARY_PATH
 
10581
  ;;
 
10582
 
 
10583
freebsd* | dragonfly*)
 
10584
  # DragonFly does not have aout.  When/if they implement a new
 
10585
  # versioning mechanism, adjust this.
 
10586
  if test -x /usr/bin/objformat; then
 
10587
    objformat=`/usr/bin/objformat`
 
10588
  else
 
10589
    case $host_os in
 
10590
    freebsd[23].*) objformat=aout ;;
 
10591
    *) objformat=elf ;;
 
10592
    esac
 
10593
  fi
 
10594
  version_type=freebsd-$objformat
 
10595
  case $version_type in
 
10596
    freebsd-elf*)
 
10597
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10598
      need_version=no
 
10599
      need_lib_prefix=no
 
10600
      ;;
 
10601
    freebsd-*)
 
10602
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10603
      need_version=yes
 
10604
      ;;
 
10605
  esac
 
10606
  shlibpath_var=LD_LIBRARY_PATH
 
10607
  case $host_os in
 
10608
  freebsd2.*)
 
10609
    shlibpath_overrides_runpath=yes
 
10610
    ;;
 
10611
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10612
    shlibpath_overrides_runpath=yes
 
10613
    hardcode_into_libs=yes
 
10614
    ;;
 
10615
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10616
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10617
    shlibpath_overrides_runpath=no
 
10618
    hardcode_into_libs=yes
 
10619
    ;;
 
10620
  *) # from 4.6 on, and DragonFly
 
10621
    shlibpath_overrides_runpath=yes
 
10622
    hardcode_into_libs=yes
 
10623
    ;;
 
10624
  esac
 
10625
  ;;
 
10626
 
 
10627
gnu*)
 
10628
  version_type=linux # correct to gnu/linux during the next big refactor
 
10629
  need_lib_prefix=no
 
10630
  need_version=no
 
10631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10632
  soname_spec='${libname}${release}${shared_ext}$major'
 
10633
  shlibpath_var=LD_LIBRARY_PATH
 
10634
  shlibpath_overrides_runpath=no
 
10635
  hardcode_into_libs=yes
 
10636
  ;;
 
10637
 
 
10638
haiku*)
 
10639
  version_type=linux # correct to gnu/linux during the next big refactor
 
10640
  need_lib_prefix=no
 
10641
  need_version=no
 
10642
  dynamic_linker="$host_os runtime_loader"
 
10643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10644
  soname_spec='${libname}${release}${shared_ext}$major'
 
10645
  shlibpath_var=LIBRARY_PATH
 
10646
  shlibpath_overrides_runpath=yes
 
10647
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10648
  hardcode_into_libs=yes
 
10649
  ;;
 
10650
 
 
10651
hpux9* | hpux10* | hpux11*)
 
10652
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10653
  # link against other versions.
 
10654
  version_type=sunos
 
10655
  need_lib_prefix=no
 
10656
  need_version=no
 
10657
  case $host_cpu in
 
10658
  ia64*)
 
10659
    shrext_cmds='.so'
 
10660
    hardcode_into_libs=yes
 
10661
    dynamic_linker="$host_os dld.so"
 
10662
    shlibpath_var=LD_LIBRARY_PATH
 
10663
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10664
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10665
    soname_spec='${libname}${release}${shared_ext}$major'
 
10666
    if test "X$HPUX_IA64_MODE" = X32; then
 
10667
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10668
    else
 
10669
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10670
    fi
 
10671
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10672
    ;;
 
10673
  hppa*64*)
 
10674
    shrext_cmds='.sl'
 
10675
    hardcode_into_libs=yes
 
10676
    dynamic_linker="$host_os dld.sl"
 
10677
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10678
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10679
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10680
    soname_spec='${libname}${release}${shared_ext}$major'
 
10681
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10682
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10683
    ;;
 
10684
  *)
 
10685
    shrext_cmds='.sl'
 
10686
    dynamic_linker="$host_os dld.sl"
 
10687
    shlibpath_var=SHLIB_PATH
 
10688
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10689
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10690
    soname_spec='${libname}${release}${shared_ext}$major'
 
10691
    ;;
 
10692
  esac
 
10693
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10694
  postinstall_cmds='chmod 555 $lib'
 
10695
  # or fails outright, so override atomically:
 
10696
  install_override_mode=555
 
10697
  ;;
 
10698
 
 
10699
interix[3-9]*)
 
10700
  version_type=linux # correct to gnu/linux during the next big refactor
 
10701
  need_lib_prefix=no
 
10702
  need_version=no
 
10703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10704
  soname_spec='${libname}${release}${shared_ext}$major'
 
10705
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10706
  shlibpath_var=LD_LIBRARY_PATH
 
10707
  shlibpath_overrides_runpath=no
 
10708
  hardcode_into_libs=yes
 
10709
  ;;
 
10710
 
 
10711
irix5* | irix6* | nonstopux*)
 
10712
  case $host_os in
 
10713
    nonstopux*) version_type=nonstopux ;;
 
10714
    *)
 
10715
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10716
                version_type=linux # correct to gnu/linux during the next big refactor
 
10717
        else
 
10718
                version_type=irix
 
10719
        fi ;;
 
10720
  esac
 
10721
  need_lib_prefix=no
 
10722
  need_version=no
 
10723
  soname_spec='${libname}${release}${shared_ext}$major'
 
10724
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10725
  case $host_os in
 
10726
  irix5* | nonstopux*)
 
10727
    libsuff= shlibsuff=
 
10728
    ;;
 
10729
  *)
 
10730
    case $LD in # libtool.m4 will add one of these switches to LD
 
10731
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10732
      libsuff= shlibsuff= libmagic=32-bit;;
 
10733
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10734
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10735
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10736
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10737
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10738
    esac
 
10739
    ;;
 
10740
  esac
 
10741
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10742
  shlibpath_overrides_runpath=no
 
10743
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10744
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10745
  hardcode_into_libs=yes
 
10746
  ;;
 
10747
 
 
10748
# No shared lib support for Linux oldld, aout, or coff.
 
10749
linux*oldld* | linux*aout* | linux*coff*)
 
10750
  dynamic_linker=no
 
10751
  ;;
 
10752
 
 
10753
# This must be glibc/ELF.
 
10754
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10755
  version_type=linux # correct to gnu/linux during the next big refactor
 
10756
  need_lib_prefix=no
 
10757
  need_version=no
 
10758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10759
  soname_spec='${libname}${release}${shared_ext}$major'
 
10760
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10761
  shlibpath_var=LD_LIBRARY_PATH
 
10762
  shlibpath_overrides_runpath=no
 
10763
 
 
10764
  # Some binutils ld are patched to set DT_RUNPATH
 
10765
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10766
  $as_echo_n "(cached) " >&6
 
10767
else
 
10768
  lt_cv_shlibpath_overrides_runpath=no
 
10769
    save_LDFLAGS=$LDFLAGS
 
10770
    save_libdir=$libdir
 
10771
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10772
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10773
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10774
/* end confdefs.h.  */
 
10775
 
 
10776
int
 
10777
main ()
 
10778
{
 
10779
 
 
10780
  ;
 
10781
  return 0;
 
10782
}
 
10783
_ACEOF
 
10784
if ac_fn_c_try_link "$LINENO"; then :
 
10785
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10786
  lt_cv_shlibpath_overrides_runpath=yes
 
10787
fi
 
10788
fi
 
10789
rm -f core conftest.err conftest.$ac_objext \
 
10790
    conftest$ac_exeext conftest.$ac_ext
 
10791
    LDFLAGS=$save_LDFLAGS
 
10792
    libdir=$save_libdir
 
10793
 
 
10794
fi
 
10795
 
 
10796
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10797
 
 
10798
  # This implies no fast_install, which is unacceptable.
 
10799
  # Some rework will be needed to allow for fast_install
 
10800
  # before this can be enabled.
 
10801
  hardcode_into_libs=yes
 
10802
 
 
10803
  # Append ld.so.conf contents to the search path
 
10804
  if test -f /etc/ld.so.conf; then
 
10805
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
10806
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10807
  fi
 
10808
 
 
10809
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10810
  # powerpc, because MkLinux only supported shared libraries with the
 
10811
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10812
  # most powerpc-linux boxes support dynamic linking these days and
 
10813
  # people can always --disable-shared, the test was removed, and we
 
10814
  # assume the GNU/Linux dynamic linker is in use.
 
10815
  dynamic_linker='GNU/Linux ld.so'
 
10816
  ;;
 
10817
 
 
10818
netbsdelf*-gnu)
 
10819
  version_type=linux
 
10820
  need_lib_prefix=no
 
10821
  need_version=no
 
10822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10823
  soname_spec='${libname}${release}${shared_ext}$major'
 
10824
  shlibpath_var=LD_LIBRARY_PATH
 
10825
  shlibpath_overrides_runpath=no
 
10826
  hardcode_into_libs=yes
 
10827
  dynamic_linker='NetBSD ld.elf_so'
 
10828
  ;;
 
10829
 
 
10830
netbsd*)
 
10831
  version_type=sunos
 
10832
  need_lib_prefix=no
 
10833
  need_version=no
 
10834
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10835
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10836
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10837
    dynamic_linker='NetBSD (a.out) ld.so'
 
10838
  else
 
10839
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10840
    soname_spec='${libname}${release}${shared_ext}$major'
 
10841
    dynamic_linker='NetBSD ld.elf_so'
 
10842
  fi
 
10843
  shlibpath_var=LD_LIBRARY_PATH
 
10844
  shlibpath_overrides_runpath=yes
 
10845
  hardcode_into_libs=yes
 
10846
  ;;
 
10847
 
 
10848
newsos6)
 
10849
  version_type=linux # correct to gnu/linux during the next big refactor
 
10850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10851
  shlibpath_var=LD_LIBRARY_PATH
 
10852
  shlibpath_overrides_runpath=yes
 
10853
  ;;
 
10854
 
 
10855
*nto* | *qnx*)
 
10856
  version_type=qnx
 
10857
  need_lib_prefix=no
 
10858
  need_version=no
 
10859
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10860
  soname_spec='${libname}${release}${shared_ext}$major'
 
10861
  shlibpath_var=LD_LIBRARY_PATH
 
10862
  shlibpath_overrides_runpath=no
 
10863
  hardcode_into_libs=yes
 
10864
  dynamic_linker='ldqnx.so'
 
10865
  ;;
 
10866
 
 
10867
openbsd*)
 
10868
  version_type=sunos
 
10869
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10870
  need_lib_prefix=no
 
10871
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10872
  case $host_os in
 
10873
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10874
    *)                          need_version=no  ;;
 
10875
  esac
 
10876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10877
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10878
  shlibpath_var=LD_LIBRARY_PATH
 
10879
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10880
    case $host_os in
 
10881
      openbsd2.[89] | openbsd2.[89].*)
 
10882
        shlibpath_overrides_runpath=no
 
10883
        ;;
 
10884
      *)
 
10885
        shlibpath_overrides_runpath=yes
 
10886
        ;;
 
10887
      esac
 
10888
  else
 
10889
    shlibpath_overrides_runpath=yes
 
10890
  fi
 
10891
  ;;
 
10892
 
 
10893
os2*)
 
10894
  libname_spec='$name'
 
10895
  shrext_cmds=".dll"
 
10896
  need_lib_prefix=no
 
10897
  library_names_spec='$libname${shared_ext} $libname.a'
 
10898
  dynamic_linker='OS/2 ld.exe'
 
10899
  shlibpath_var=LIBPATH
 
10900
  ;;
 
10901
 
 
10902
osf3* | osf4* | osf5*)
 
10903
  version_type=osf
 
10904
  need_lib_prefix=no
 
10905
  need_version=no
 
10906
  soname_spec='${libname}${release}${shared_ext}$major'
 
10907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10908
  shlibpath_var=LD_LIBRARY_PATH
 
10909
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10910
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10911
  ;;
 
10912
 
 
10913
rdos*)
 
10914
  dynamic_linker=no
 
10915
  ;;
 
10916
 
 
10917
solaris*)
 
10918
  version_type=linux # correct to gnu/linux during the next big refactor
 
10919
  need_lib_prefix=no
 
10920
  need_version=no
 
10921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10922
  soname_spec='${libname}${release}${shared_ext}$major'
 
10923
  shlibpath_var=LD_LIBRARY_PATH
 
10924
  shlibpath_overrides_runpath=yes
 
10925
  hardcode_into_libs=yes
 
10926
  # ldd complains unless libraries are executable
 
10927
  postinstall_cmds='chmod +x $lib'
 
10928
  ;;
 
10929
 
 
10930
sunos4*)
 
10931
  version_type=sunos
 
10932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10933
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10934
  shlibpath_var=LD_LIBRARY_PATH
 
10935
  shlibpath_overrides_runpath=yes
 
10936
  if test "$with_gnu_ld" = yes; then
 
10937
    need_lib_prefix=no
 
10938
  fi
 
10939
  need_version=yes
 
10940
  ;;
 
10941
 
 
10942
sysv4 | sysv4.3*)
 
10943
  version_type=linux # correct to gnu/linux during the next big refactor
 
10944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10945
  soname_spec='${libname}${release}${shared_ext}$major'
 
10946
  shlibpath_var=LD_LIBRARY_PATH
 
10947
  case $host_vendor in
 
10948
    sni)
 
10949
      shlibpath_overrides_runpath=no
 
10950
      need_lib_prefix=no
 
10951
      runpath_var=LD_RUN_PATH
 
10952
      ;;
 
10953
    siemens)
 
10954
      need_lib_prefix=no
 
10955
      ;;
 
10956
    motorola)
 
10957
      need_lib_prefix=no
 
10958
      need_version=no
 
10959
      shlibpath_overrides_runpath=no
 
10960
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10961
      ;;
 
10962
  esac
 
10963
  ;;
 
10964
 
 
10965
sysv4*MP*)
 
10966
  if test -d /usr/nec ;then
 
10967
    version_type=linux # correct to gnu/linux during the next big refactor
 
10968
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10969
    soname_spec='$libname${shared_ext}.$major'
 
10970
    shlibpath_var=LD_LIBRARY_PATH
 
10971
  fi
 
10972
  ;;
 
10973
 
 
10974
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10975
  version_type=freebsd-elf
 
10976
  need_lib_prefix=no
 
10977
  need_version=no
 
10978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10979
  soname_spec='${libname}${release}${shared_ext}$major'
 
10980
  shlibpath_var=LD_LIBRARY_PATH
 
10981
  shlibpath_overrides_runpath=yes
 
10982
  hardcode_into_libs=yes
 
10983
  if test "$with_gnu_ld" = yes; then
 
10984
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10985
  else
 
10986
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10987
    case $host_os in
 
10988
      sco3.2v5*)
 
10989
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10990
        ;;
 
10991
    esac
 
10992
  fi
 
10993
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10994
  ;;
 
10995
 
 
10996
tpf*)
 
10997
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10998
  version_type=linux # correct to gnu/linux during the next big refactor
 
10999
  need_lib_prefix=no
 
11000
  need_version=no
 
11001
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11002
  shlibpath_var=LD_LIBRARY_PATH
 
11003
  shlibpath_overrides_runpath=no
 
11004
  hardcode_into_libs=yes
 
11005
  ;;
 
11006
 
 
11007
uts4*)
 
11008
  version_type=linux # correct to gnu/linux during the next big refactor
 
11009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11010
  soname_spec='${libname}${release}${shared_ext}$major'
 
11011
  shlibpath_var=LD_LIBRARY_PATH
 
11012
  ;;
 
11013
 
 
11014
*)
 
11015
  dynamic_linker=no
 
11016
  ;;
 
11017
esac
 
11018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11019
$as_echo "$dynamic_linker" >&6; }
 
11020
test "$dynamic_linker" = no && can_build_shared=no
 
11021
 
 
11022
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11023
if test "$GCC" = yes; then
 
11024
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11025
fi
 
11026
 
 
11027
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11028
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11029
fi
 
11030
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11031
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11032
fi
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
 
 
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
 
 
11110
 
 
11111
 
 
11112
 
 
11113
 
 
11114
 
 
11115
 
 
11116
 
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11126
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11127
hardcode_action=
 
11128
if test -n "$hardcode_libdir_flag_spec" ||
 
11129
   test -n "$runpath_var" ||
 
11130
   test "X$hardcode_automatic" = "Xyes" ; then
 
11131
 
 
11132
  # We can hardcode non-existent directories.
 
11133
  if test "$hardcode_direct" != no &&
 
11134
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11135
     # have to relink, otherwise we might link with an installed library
 
11136
     # when we should be linking with a yet-to-be-installed one
 
11137
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11138
     test "$hardcode_minus_L" != no; then
 
11139
    # Linking always hardcodes the temporary library directory.
 
11140
    hardcode_action=relink
 
11141
  else
 
11142
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11143
    hardcode_action=immediate
 
11144
  fi
 
11145
else
 
11146
  # We cannot hardcode anything, or else we can only hardcode existing
 
11147
  # directories.
 
11148
  hardcode_action=unsupported
 
11149
fi
 
11150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11151
$as_echo "$hardcode_action" >&6; }
 
11152
 
 
11153
if test "$hardcode_action" = relink ||
 
11154
   test "$inherit_rpath" = yes; then
 
11155
  # Fast installation is not supported
 
11156
  enable_fast_install=no
 
11157
elif test "$shlibpath_overrides_runpath" = yes ||
 
11158
     test "$enable_shared" = no; then
 
11159
  # Fast installation is not necessary
 
11160
  enable_fast_install=needless
 
11161
fi
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
  if test "x$enable_dlopen" != xyes; then
 
11169
  enable_dlopen=unknown
 
11170
  enable_dlopen_self=unknown
 
11171
  enable_dlopen_self_static=unknown
 
11172
else
 
11173
  lt_cv_dlopen=no
 
11174
  lt_cv_dlopen_libs=
 
11175
 
 
11176
  case $host_os in
 
11177
  beos*)
 
11178
    lt_cv_dlopen="load_add_on"
 
11179
    lt_cv_dlopen_libs=
 
11180
    lt_cv_dlopen_self=yes
 
11181
    ;;
 
11182
 
 
11183
  mingw* | pw32* | cegcc*)
 
11184
    lt_cv_dlopen="LoadLibrary"
 
11185
    lt_cv_dlopen_libs=
 
11186
    ;;
 
11187
 
 
11188
  cygwin*)
 
11189
    lt_cv_dlopen="dlopen"
 
11190
    lt_cv_dlopen_libs=
 
11191
    ;;
 
11192
 
 
11193
  darwin*)
 
11194
  # if libdl is installed we need to link against it
 
11195
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11196
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11197
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11198
  $as_echo_n "(cached) " >&6
 
11199
else
 
11200
  ac_check_lib_save_LIBS=$LIBS
 
11201
LIBS="-ldl  $LIBS"
 
11202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11203
/* end confdefs.h.  */
 
11204
 
 
11205
/* Override any GCC internal prototype to avoid an error.
 
11206
   Use char because int might match the return type of a GCC
 
11207
   builtin and then its argument prototype would still apply.  */
 
11208
#ifdef __cplusplus
 
11209
extern "C"
 
11210
#endif
 
11211
char dlopen ();
 
11212
int
 
11213
main ()
 
11214
{
 
11215
return dlopen ();
 
11216
  ;
 
11217
  return 0;
 
11218
}
 
11219
_ACEOF
 
11220
if ac_fn_c_try_link "$LINENO"; then :
 
11221
  ac_cv_lib_dl_dlopen=yes
 
11222
else
 
11223
  ac_cv_lib_dl_dlopen=no
 
11224
fi
 
11225
rm -f core conftest.err conftest.$ac_objext \
 
11226
    conftest$ac_exeext conftest.$ac_ext
 
11227
LIBS=$ac_check_lib_save_LIBS
 
11228
fi
 
11229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11230
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11231
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11232
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11233
else
 
11234
 
 
11235
    lt_cv_dlopen="dyld"
 
11236
    lt_cv_dlopen_libs=
 
11237
    lt_cv_dlopen_self=yes
 
11238
 
 
11239
fi
 
11240
 
 
11241
    ;;
 
11242
 
 
11243
  *)
 
11244
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11245
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11246
  lt_cv_dlopen="shl_load"
 
11247
else
 
11248
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11249
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11250
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11251
  $as_echo_n "(cached) " >&6
 
11252
else
 
11253
  ac_check_lib_save_LIBS=$LIBS
 
11254
LIBS="-ldld  $LIBS"
 
11255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11256
/* end confdefs.h.  */
 
11257
 
 
11258
/* Override any GCC internal prototype to avoid an error.
 
11259
   Use char because int might match the return type of a GCC
 
11260
   builtin and then its argument prototype would still apply.  */
 
11261
#ifdef __cplusplus
 
11262
extern "C"
 
11263
#endif
 
11264
char shl_load ();
 
11265
int
 
11266
main ()
 
11267
{
 
11268
return shl_load ();
 
11269
  ;
 
11270
  return 0;
 
11271
}
 
11272
_ACEOF
 
11273
if ac_fn_c_try_link "$LINENO"; then :
 
11274
  ac_cv_lib_dld_shl_load=yes
 
11275
else
 
11276
  ac_cv_lib_dld_shl_load=no
 
11277
fi
 
11278
rm -f core conftest.err conftest.$ac_objext \
 
11279
    conftest$ac_exeext conftest.$ac_ext
 
11280
LIBS=$ac_check_lib_save_LIBS
 
11281
fi
 
11282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11283
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11284
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11285
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11286
else
 
11287
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11288
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11289
  lt_cv_dlopen="dlopen"
 
11290
else
 
11291
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11292
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11293
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11294
  $as_echo_n "(cached) " >&6
 
11295
else
 
11296
  ac_check_lib_save_LIBS=$LIBS
 
11297
LIBS="-ldl  $LIBS"
 
11298
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11299
/* end confdefs.h.  */
 
11300
 
 
11301
/* Override any GCC internal prototype to avoid an error.
 
11302
   Use char because int might match the return type of a GCC
 
11303
   builtin and then its argument prototype would still apply.  */
 
11304
#ifdef __cplusplus
 
11305
extern "C"
 
11306
#endif
 
11307
char dlopen ();
 
11308
int
 
11309
main ()
 
11310
{
 
11311
return dlopen ();
 
11312
  ;
 
11313
  return 0;
 
11314
}
 
11315
_ACEOF
 
11316
if ac_fn_c_try_link "$LINENO"; then :
 
11317
  ac_cv_lib_dl_dlopen=yes
 
11318
else
 
11319
  ac_cv_lib_dl_dlopen=no
 
11320
fi
 
11321
rm -f core conftest.err conftest.$ac_objext \
 
11322
    conftest$ac_exeext conftest.$ac_ext
 
11323
LIBS=$ac_check_lib_save_LIBS
 
11324
fi
 
11325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11326
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11327
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11328
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11329
else
 
11330
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11331
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11332
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11333
  $as_echo_n "(cached) " >&6
 
11334
else
 
11335
  ac_check_lib_save_LIBS=$LIBS
 
11336
LIBS="-lsvld  $LIBS"
 
11337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11338
/* end confdefs.h.  */
 
11339
 
 
11340
/* Override any GCC internal prototype to avoid an error.
 
11341
   Use char because int might match the return type of a GCC
 
11342
   builtin and then its argument prototype would still apply.  */
 
11343
#ifdef __cplusplus
 
11344
extern "C"
 
11345
#endif
 
11346
char dlopen ();
 
11347
int
 
11348
main ()
 
11349
{
 
11350
return dlopen ();
 
11351
  ;
 
11352
  return 0;
 
11353
}
 
11354
_ACEOF
 
11355
if ac_fn_c_try_link "$LINENO"; then :
 
11356
  ac_cv_lib_svld_dlopen=yes
 
11357
else
 
11358
  ac_cv_lib_svld_dlopen=no
 
11359
fi
 
11360
rm -f core conftest.err conftest.$ac_objext \
 
11361
    conftest$ac_exeext conftest.$ac_ext
 
11362
LIBS=$ac_check_lib_save_LIBS
 
11363
fi
 
11364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11365
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11366
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11367
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11368
else
 
11369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11370
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11371
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11372
  $as_echo_n "(cached) " >&6
 
11373
else
 
11374
  ac_check_lib_save_LIBS=$LIBS
 
11375
LIBS="-ldld  $LIBS"
 
11376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11377
/* end confdefs.h.  */
 
11378
 
 
11379
/* Override any GCC internal prototype to avoid an error.
 
11380
   Use char because int might match the return type of a GCC
 
11381
   builtin and then its argument prototype would still apply.  */
 
11382
#ifdef __cplusplus
 
11383
extern "C"
 
11384
#endif
 
11385
char dld_link ();
 
11386
int
 
11387
main ()
 
11388
{
 
11389
return dld_link ();
 
11390
  ;
 
11391
  return 0;
 
11392
}
 
11393
_ACEOF
 
11394
if ac_fn_c_try_link "$LINENO"; then :
 
11395
  ac_cv_lib_dld_dld_link=yes
 
11396
else
 
11397
  ac_cv_lib_dld_dld_link=no
 
11398
fi
 
11399
rm -f core conftest.err conftest.$ac_objext \
 
11400
    conftest$ac_exeext conftest.$ac_ext
 
11401
LIBS=$ac_check_lib_save_LIBS
 
11402
fi
 
11403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11404
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11405
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11406
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11407
fi
 
11408
 
 
11409
 
 
11410
fi
 
11411
 
 
11412
 
 
11413
fi
 
11414
 
 
11415
 
 
11416
fi
 
11417
 
 
11418
 
 
11419
fi
 
11420
 
 
11421
 
 
11422
fi
 
11423
 
 
11424
    ;;
 
11425
  esac
 
11426
 
 
11427
  if test "x$lt_cv_dlopen" != xno; then
 
11428
    enable_dlopen=yes
 
11429
  else
 
11430
    enable_dlopen=no
 
11431
  fi
 
11432
 
 
11433
  case $lt_cv_dlopen in
 
11434
  dlopen)
 
11435
    save_CPPFLAGS="$CPPFLAGS"
 
11436
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11437
 
 
11438
    save_LDFLAGS="$LDFLAGS"
 
11439
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11440
 
 
11441
    save_LIBS="$LIBS"
 
11442
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11443
 
 
11444
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11445
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11446
if ${lt_cv_dlopen_self+:} false; then :
 
11447
  $as_echo_n "(cached) " >&6
 
11448
else
 
11449
          if test "$cross_compiling" = yes; then :
 
11450
  lt_cv_dlopen_self=cross
 
11451
else
 
11452
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11453
  lt_status=$lt_dlunknown
 
11454
  cat > conftest.$ac_ext <<_LT_EOF
 
11455
#line $LINENO "configure"
 
11456
#include "confdefs.h"
 
11457
 
 
11458
#if HAVE_DLFCN_H
 
11459
#include <dlfcn.h>
 
11460
#endif
 
11461
 
 
11462
#include <stdio.h>
 
11463
 
 
11464
#ifdef RTLD_GLOBAL
 
11465
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11466
#else
 
11467
#  ifdef DL_GLOBAL
 
11468
#    define LT_DLGLOBAL         DL_GLOBAL
 
11469
#  else
 
11470
#    define LT_DLGLOBAL         0
 
11471
#  endif
 
11472
#endif
 
11473
 
 
11474
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11475
   find out it does not work in some platform. */
 
11476
#ifndef LT_DLLAZY_OR_NOW
 
11477
#  ifdef RTLD_LAZY
 
11478
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11479
#  else
 
11480
#    ifdef DL_LAZY
 
11481
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11482
#    else
 
11483
#      ifdef RTLD_NOW
 
11484
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11485
#      else
 
11486
#        ifdef DL_NOW
 
11487
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11488
#        else
 
11489
#          define LT_DLLAZY_OR_NOW      0
 
11490
#        endif
 
11491
#      endif
 
11492
#    endif
 
11493
#  endif
 
11494
#endif
 
11495
 
 
11496
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11497
   correspondingly for the symbols needed.  */
 
11498
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11499
int fnord () __attribute__((visibility("default")));
 
11500
#endif
 
11501
 
 
11502
int fnord () { return 42; }
 
11503
int main ()
 
11504
{
 
11505
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11506
  int status = $lt_dlunknown;
 
11507
 
 
11508
  if (self)
 
11509
    {
 
11510
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11511
      else
 
11512
        {
 
11513
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11514
          else puts (dlerror ());
 
11515
        }
 
11516
      /* dlclose (self); */
 
11517
    }
 
11518
  else
 
11519
    puts (dlerror ());
 
11520
 
 
11521
  return status;
 
11522
}
 
11523
_LT_EOF
 
11524
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11525
  (eval $ac_link) 2>&5
 
11526
  ac_status=$?
 
11527
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11528
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11529
    (./conftest; exit; ) >&5 2>/dev/null
 
11530
    lt_status=$?
 
11531
    case x$lt_status in
 
11532
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11533
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11534
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11535
    esac
 
11536
  else :
 
11537
    # compilation failed
 
11538
    lt_cv_dlopen_self=no
 
11539
  fi
 
11540
fi
 
11541
rm -fr conftest*
 
11542
 
 
11543
 
 
11544
fi
 
11545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11546
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11547
 
 
11548
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11549
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11550
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11551
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11552
if ${lt_cv_dlopen_self_static+:} false; then :
 
11553
  $as_echo_n "(cached) " >&6
 
11554
else
 
11555
          if test "$cross_compiling" = yes; then :
 
11556
  lt_cv_dlopen_self_static=cross
 
11557
else
 
11558
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11559
  lt_status=$lt_dlunknown
 
11560
  cat > conftest.$ac_ext <<_LT_EOF
 
11561
#line $LINENO "configure"
 
11562
#include "confdefs.h"
 
11563
 
 
11564
#if HAVE_DLFCN_H
 
11565
#include <dlfcn.h>
 
11566
#endif
 
11567
 
 
11568
#include <stdio.h>
 
11569
 
 
11570
#ifdef RTLD_GLOBAL
 
11571
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11572
#else
 
11573
#  ifdef DL_GLOBAL
 
11574
#    define LT_DLGLOBAL         DL_GLOBAL
 
11575
#  else
 
11576
#    define LT_DLGLOBAL         0
 
11577
#  endif
 
11578
#endif
 
11579
 
 
11580
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11581
   find out it does not work in some platform. */
 
11582
#ifndef LT_DLLAZY_OR_NOW
 
11583
#  ifdef RTLD_LAZY
 
11584
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11585
#  else
 
11586
#    ifdef DL_LAZY
 
11587
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11588
#    else
 
11589
#      ifdef RTLD_NOW
 
11590
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11591
#      else
 
11592
#        ifdef DL_NOW
 
11593
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11594
#        else
 
11595
#          define LT_DLLAZY_OR_NOW      0
 
11596
#        endif
 
11597
#      endif
 
11598
#    endif
 
11599
#  endif
 
11600
#endif
 
11601
 
 
11602
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11603
   correspondingly for the symbols needed.  */
 
11604
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11605
int fnord () __attribute__((visibility("default")));
 
11606
#endif
 
11607
 
 
11608
int fnord () { return 42; }
 
11609
int main ()
 
11610
{
 
11611
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11612
  int status = $lt_dlunknown;
 
11613
 
 
11614
  if (self)
 
11615
    {
 
11616
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11617
      else
 
11618
        {
 
11619
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11620
          else puts (dlerror ());
 
11621
        }
 
11622
      /* dlclose (self); */
 
11623
    }
 
11624
  else
 
11625
    puts (dlerror ());
 
11626
 
 
11627
  return status;
 
11628
}
 
11629
_LT_EOF
 
11630
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11631
  (eval $ac_link) 2>&5
 
11632
  ac_status=$?
 
11633
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11634
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11635
    (./conftest; exit; ) >&5 2>/dev/null
 
11636
    lt_status=$?
 
11637
    case x$lt_status in
 
11638
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11639
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11640
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11641
    esac
 
11642
  else :
 
11643
    # compilation failed
 
11644
    lt_cv_dlopen_self_static=no
 
11645
  fi
 
11646
fi
 
11647
rm -fr conftest*
 
11648
 
 
11649
 
 
11650
fi
 
11651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11652
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11653
    fi
 
11654
 
 
11655
    CPPFLAGS="$save_CPPFLAGS"
 
11656
    LDFLAGS="$save_LDFLAGS"
 
11657
    LIBS="$save_LIBS"
 
11658
    ;;
 
11659
  esac
 
11660
 
 
11661
  case $lt_cv_dlopen_self in
 
11662
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11663
  *) enable_dlopen_self=unknown ;;
 
11664
  esac
 
11665
 
 
11666
  case $lt_cv_dlopen_self_static in
 
11667
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11668
  *) enable_dlopen_self_static=unknown ;;
 
11669
  esac
 
11670
fi
 
11671
 
 
11672
 
 
11673
 
 
11674
 
 
11675
 
 
11676
 
 
11677
 
 
11678
 
 
11679
 
 
11680
 
 
11681
 
 
11682
 
 
11683
 
 
11684
 
 
11685
 
 
11686
 
 
11687
 
 
11688
striplib=
 
11689
old_striplib=
 
11690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11691
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11692
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11693
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11694
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11696
$as_echo "yes" >&6; }
 
11697
else
 
11698
# FIXME - insert some real tests, host_os isn't really good enough
 
11699
  case $host_os in
 
11700
  darwin*)
 
11701
    if test -n "$STRIP" ; then
 
11702
      striplib="$STRIP -x"
 
11703
      old_striplib="$STRIP -S"
 
11704
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11705
$as_echo "yes" >&6; }
 
11706
    else
 
11707
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11708
$as_echo "no" >&6; }
 
11709
    fi
 
11710
    ;;
 
11711
  *)
 
11712
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11713
$as_echo "no" >&6; }
 
11714
    ;;
 
11715
  esac
 
11716
fi
 
11717
 
 
11718
 
 
11719
 
 
11720
 
 
11721
 
 
11722
 
 
11723
 
 
11724
 
 
11725
 
 
11726
 
 
11727
 
 
11728
 
 
11729
  # Report which library types will actually be built
 
11730
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11731
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11733
$as_echo "$can_build_shared" >&6; }
 
11734
 
 
11735
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11736
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11737
  test "$can_build_shared" = "no" && enable_shared=no
 
11738
 
 
11739
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11740
  # are all built from PIC.
 
11741
  case $host_os in
 
11742
  aix3*)
 
11743
    test "$enable_shared" = yes && enable_static=no
 
11744
    if test -n "$RANLIB"; then
 
11745
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11746
      postinstall_cmds='$RANLIB $lib'
 
11747
    fi
 
11748
    ;;
 
11749
 
 
11750
  aix[4-9]*)
 
11751
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11752
      test "$enable_shared" = yes && enable_static=no
 
11753
    fi
 
11754
    ;;
 
11755
  esac
 
11756
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11757
$as_echo "$enable_shared" >&6; }
 
11758
 
 
11759
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11760
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11761
  # Make sure either enable_shared or enable_static is yes.
 
11762
  test "$enable_shared" = yes || enable_static=yes
 
11763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11764
$as_echo "$enable_static" >&6; }
 
11765
 
 
11766
 
 
11767
 
 
11768
 
 
11769
fi
 
11770
ac_ext=c
 
11771
ac_cpp='$CPP $CPPFLAGS'
 
11772
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11773
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11774
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11775
 
 
11776
CC="$lt_save_CC"
 
11777
 
 
11778
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11779
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11780
    (test "X$CXX" != "Xg++"))) ; then
 
11781
  ac_ext=cpp
 
11782
ac_cpp='$CXXCPP $CPPFLAGS'
 
11783
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11784
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11785
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
11787
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
11788
if test -z "$CXXCPP"; then
 
11789
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
11790
  $as_echo_n "(cached) " >&6
 
11791
else
 
11792
      # Double quotes because CXXCPP needs to be expanded
 
11793
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
11794
    do
 
11795
      ac_preproc_ok=false
 
11796
for ac_cxx_preproc_warn_flag in '' yes
 
11797
do
 
11798
  # Use a header file that comes with gcc, so configuring glibc
 
11799
  # with a fresh cross-compiler works.
 
11800
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11801
  # <limits.h> exists even on freestanding compilers.
 
11802
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
11803
  # not just through cpp. "Syntax error" is here to catch this case.
 
11804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11805
/* end confdefs.h.  */
 
11806
#ifdef __STDC__
 
11807
# include <limits.h>
 
11808
#else
 
11809
# include <assert.h>
 
11810
#endif
 
11811
                     Syntax error
 
11812
_ACEOF
 
11813
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11814
 
 
11815
else
 
11816
  # Broken: fails on valid input.
 
11817
continue
 
11818
fi
 
11819
rm -f conftest.err conftest.i conftest.$ac_ext
 
11820
 
 
11821
  # OK, works on sane cases.  Now check whether nonexistent headers
 
11822
  # can be detected and how.
 
11823
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11824
/* end confdefs.h.  */
 
11825
#include <ac_nonexistent.h>
 
11826
_ACEOF
 
11827
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11828
  # Broken: success on invalid input.
 
11829
continue
 
11830
else
 
11831
  # Passes both tests.
 
11832
ac_preproc_ok=:
 
11833
break
 
11834
fi
 
11835
rm -f conftest.err conftest.i conftest.$ac_ext
 
11836
 
 
11837
done
 
11838
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
11839
rm -f conftest.i conftest.err conftest.$ac_ext
 
11840
if $ac_preproc_ok; then :
 
11841
  break
 
11842
fi
 
11843
 
 
11844
    done
 
11845
    ac_cv_prog_CXXCPP=$CXXCPP
 
11846
 
 
11847
fi
 
11848
  CXXCPP=$ac_cv_prog_CXXCPP
 
11849
else
 
11850
  ac_cv_prog_CXXCPP=$CXXCPP
 
11851
fi
 
11852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
11853
$as_echo "$CXXCPP" >&6; }
 
11854
ac_preproc_ok=false
 
11855
for ac_cxx_preproc_warn_flag in '' yes
 
11856
do
 
11857
  # Use a header file that comes with gcc, so configuring glibc
 
11858
  # with a fresh cross-compiler works.
 
11859
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11860
  # <limits.h> exists even on freestanding compilers.
 
11861
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
11862
  # not just through cpp. "Syntax error" is here to catch this case.
 
11863
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11864
/* end confdefs.h.  */
 
11865
#ifdef __STDC__
 
11866
# include <limits.h>
 
11867
#else
 
11868
# include <assert.h>
 
11869
#endif
 
11870
                     Syntax error
 
11871
_ACEOF
 
11872
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11873
 
 
11874
else
 
11875
  # Broken: fails on valid input.
 
11876
continue
 
11877
fi
 
11878
rm -f conftest.err conftest.i conftest.$ac_ext
 
11879
 
 
11880
  # OK, works on sane cases.  Now check whether nonexistent headers
 
11881
  # can be detected and how.
 
11882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11883
/* end confdefs.h.  */
 
11884
#include <ac_nonexistent.h>
 
11885
_ACEOF
 
11886
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11887
  # Broken: success on invalid input.
 
11888
continue
 
11889
else
 
11890
  # Passes both tests.
 
11891
ac_preproc_ok=:
 
11892
break
 
11893
fi
 
11894
rm -f conftest.err conftest.i conftest.$ac_ext
 
11895
 
 
11896
done
 
11897
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
11898
rm -f conftest.i conftest.err conftest.$ac_ext
 
11899
if $ac_preproc_ok; then :
 
11900
 
 
11901
else
 
11902
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11903
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11904
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
11905
See \`config.log' for more details" "$LINENO" 5; }
 
11906
fi
 
11907
 
 
11908
ac_ext=c
 
11909
ac_cpp='$CPP $CPPFLAGS'
 
11910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11913
 
 
11914
else
 
11915
  _lt_caught_CXX_error=yes
 
11916
fi
 
11917
 
 
11918
ac_ext=cpp
 
11919
ac_cpp='$CXXCPP $CPPFLAGS'
 
11920
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11921
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11922
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11923
 
 
11924
archive_cmds_need_lc_CXX=no
 
11925
allow_undefined_flag_CXX=
 
11926
always_export_symbols_CXX=no
 
11927
archive_expsym_cmds_CXX=
 
11928
compiler_needs_object_CXX=no
 
11929
export_dynamic_flag_spec_CXX=
 
11930
hardcode_direct_CXX=no
 
11931
hardcode_direct_absolute_CXX=no
 
11932
hardcode_libdir_flag_spec_CXX=
 
11933
hardcode_libdir_separator_CXX=
 
11934
hardcode_minus_L_CXX=no
 
11935
hardcode_shlibpath_var_CXX=unsupported
 
11936
hardcode_automatic_CXX=no
 
11937
inherit_rpath_CXX=no
 
11938
module_cmds_CXX=
 
11939
module_expsym_cmds_CXX=
 
11940
link_all_deplibs_CXX=unknown
 
11941
old_archive_cmds_CXX=$old_archive_cmds
 
11942
reload_flag_CXX=$reload_flag
 
11943
reload_cmds_CXX=$reload_cmds
 
11944
no_undefined_flag_CXX=
 
11945
whole_archive_flag_spec_CXX=
 
11946
enable_shared_with_static_runtimes_CXX=no
 
11947
 
 
11948
# Source file extension for C++ test sources.
 
11949
ac_ext=cpp
 
11950
 
 
11951
# Object file extension for compiled C++ test sources.
 
11952
objext=o
 
11953
objext_CXX=$objext
 
11954
 
 
11955
# No sense in running all these tests if we already determined that
 
11956
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
11957
# are currently assumed to apply to all compilers on this platform,
 
11958
# and will be corrupted by setting them based on a non-working compiler.
 
11959
if test "$_lt_caught_CXX_error" != yes; then
 
11960
  # Code to be used in simple compile tests
 
11961
  lt_simple_compile_test_code="int some_variable = 0;"
 
11962
 
 
11963
  # Code to be used in simple link tests
 
11964
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11965
 
 
11966
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11967
 
 
11968
 
 
11969
 
 
11970
 
 
11971
 
 
11972
 
 
11973
# If no C compiler was specified, use CC.
 
11974
LTCC=${LTCC-"$CC"}
 
11975
 
 
11976
# If no C compiler flags were specified, use CFLAGS.
 
11977
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11978
 
 
11979
# Allow CC to be a program name with arguments.
 
11980
compiler=$CC
 
11981
 
 
11982
 
 
11983
  # save warnings/boilerplate of simple test code
 
11984
  ac_outfile=conftest.$ac_objext
 
11985
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11986
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11987
_lt_compiler_boilerplate=`cat conftest.err`
 
11988
$RM conftest*
 
11989
 
 
11990
  ac_outfile=conftest.$ac_objext
 
11991
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11992
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11993
_lt_linker_boilerplate=`cat conftest.err`
 
11994
$RM -r conftest*
 
11995
 
 
11996
 
 
11997
  # Allow CC to be a program name with arguments.
 
11998
  lt_save_CC=$CC
 
11999
  lt_save_CFLAGS=$CFLAGS
 
12000
  lt_save_LD=$LD
 
12001
  lt_save_GCC=$GCC
 
12002
  GCC=$GXX
 
12003
  lt_save_with_gnu_ld=$with_gnu_ld
 
12004
  lt_save_path_LD=$lt_cv_path_LD
 
12005
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12006
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12007
  else
 
12008
    $as_unset lt_cv_prog_gnu_ld
 
12009
  fi
 
12010
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12011
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12012
  else
 
12013
    $as_unset lt_cv_path_LD
 
12014
  fi
 
12015
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12016
  CC=${CXX-"c++"}
 
12017
  CFLAGS=$CXXFLAGS
 
12018
  compiler=$CC
 
12019
  compiler_CXX=$CC
 
12020
  for cc_temp in $compiler""; do
 
12021
  case $cc_temp in
 
12022
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12023
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12024
    \-*) ;;
 
12025
    *) break;;
 
12026
  esac
 
12027
done
 
12028
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12029
 
 
12030
 
 
12031
  if test -n "$compiler"; then
 
12032
    # We don't want -fno-exception when compiling C++ code, so set the
 
12033
    # no_builtin_flag separately
 
12034
    if test "$GXX" = yes; then
 
12035
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12036
    else
 
12037
      lt_prog_compiler_no_builtin_flag_CXX=
 
12038
    fi
 
12039
 
 
12040
    if test "$GXX" = yes; then
 
12041
      # Set up default GNU C++ configuration
 
12042
 
 
12043
 
 
12044
 
 
12045
# Check whether --with-gnu-ld was given.
 
12046
if test "${with_gnu_ld+set}" = set; then :
 
12047
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12048
else
 
12049
  with_gnu_ld=no
 
12050
fi
 
12051
 
 
12052
ac_prog=ld
 
12053
if test "$GCC" = yes; then
 
12054
  # Check if gcc -print-prog-name=ld gives a path.
 
12055
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12056
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12057
  case $host in
 
12058
  *-*-mingw*)
 
12059
    # gcc leaves a trailing carriage return which upsets mingw
 
12060
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12061
  *)
 
12062
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12063
  esac
 
12064
  case $ac_prog in
 
12065
    # Accept absolute paths.
 
12066
    [\\/]* | ?:[\\/]*)
 
12067
      re_direlt='/[^/][^/]*/\.\./'
 
12068
      # Canonicalize the pathname of ld
 
12069
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12070
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12071
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12072
      done
 
12073
      test -z "$LD" && LD="$ac_prog"
 
12074
      ;;
 
12075
  "")
 
12076
    # If it fails, then pretend we aren't using GCC.
 
12077
    ac_prog=ld
 
12078
    ;;
 
12079
  *)
 
12080
    # If it is relative, then search for the first ld in PATH.
 
12081
    with_gnu_ld=unknown
 
12082
    ;;
 
12083
  esac
 
12084
elif test "$with_gnu_ld" = yes; then
 
12085
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12086
$as_echo_n "checking for GNU ld... " >&6; }
 
12087
else
 
12088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12089
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12090
fi
 
12091
if ${lt_cv_path_LD+:} false; then :
 
12092
  $as_echo_n "(cached) " >&6
 
12093
else
 
12094
  if test -z "$LD"; then
 
12095
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12096
  for ac_dir in $PATH; do
 
12097
    IFS="$lt_save_ifs"
 
12098
    test -z "$ac_dir" && ac_dir=.
 
12099
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12100
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12101
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12102
      # but apparently some variants of GNU ld only accept -v.
 
12103
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12104
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12105
      *GNU* | *'with BFD'*)
 
12106
        test "$with_gnu_ld" != no && break
 
12107
        ;;
 
12108
      *)
 
12109
        test "$with_gnu_ld" != yes && break
 
12110
        ;;
 
12111
      esac
 
12112
    fi
 
12113
  done
 
12114
  IFS="$lt_save_ifs"
 
12115
else
 
12116
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12117
fi
 
12118
fi
 
12119
 
 
12120
LD="$lt_cv_path_LD"
 
12121
if test -n "$LD"; then
 
12122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12123
$as_echo "$LD" >&6; }
 
12124
else
 
12125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12126
$as_echo "no" >&6; }
 
12127
fi
 
12128
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12130
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12131
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12132
  $as_echo_n "(cached) " >&6
 
12133
else
 
12134
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12135
case `$LD -v 2>&1 </dev/null` in
 
12136
*GNU* | *'with BFD'*)
 
12137
  lt_cv_prog_gnu_ld=yes
 
12138
  ;;
 
12139
*)
 
12140
  lt_cv_prog_gnu_ld=no
 
12141
  ;;
 
12142
esac
 
12143
fi
 
12144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12145
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12146
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12147
 
 
12148
 
 
12149
 
 
12150
 
 
12151
 
 
12152
 
 
12153
 
 
12154
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12155
      # archiving commands below assume that GNU ld is being used.
 
12156
      if test "$with_gnu_ld" = yes; then
 
12157
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12158
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12159
 
 
12160
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12161
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12162
 
 
12163
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12164
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12165
        #     investigate it a little bit more. (MM)
 
12166
        wlarc='${wl}'
 
12167
 
 
12168
        # ancient GNU ld didn't support --whole-archive et. al.
 
12169
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12170
          $GREP 'no-whole-archive' > /dev/null; then
 
12171
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12172
        else
 
12173
          whole_archive_flag_spec_CXX=
 
12174
        fi
 
12175
      else
 
12176
        with_gnu_ld=no
 
12177
        wlarc=
 
12178
 
 
12179
        # A generic and very simple default shared library creation
 
12180
        # command for GNU C++ for the case where it uses the native
 
12181
        # linker, instead of GNU ld.  If possible, this setting should
 
12182
        # overridden to take advantage of the native linker features on
 
12183
        # the platform it is being used on.
 
12184
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12185
      fi
 
12186
 
 
12187
      # Commands to make compiler produce verbose output that lists
 
12188
      # what "hidden" libraries, object files and flags are used when
 
12189
      # linking a shared library.
 
12190
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12191
 
 
12192
    else
 
12193
      GXX=no
 
12194
      with_gnu_ld=no
 
12195
      wlarc=
 
12196
    fi
 
12197
 
 
12198
    # PORTME: fill in a description of your system's C++ link characteristics
 
12199
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12200
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12201
    ld_shlibs_CXX=yes
 
12202
    case $host_os in
 
12203
      aix3*)
 
12204
        # FIXME: insert proper C++ library support
 
12205
        ld_shlibs_CXX=no
 
12206
        ;;
 
12207
      aix[4-9]*)
 
12208
        if test "$host_cpu" = ia64; then
 
12209
          # On IA64, the linker does run time linking by default, so we don't
 
12210
          # have to do anything special.
 
12211
          aix_use_runtimelinking=no
 
12212
          exp_sym_flag='-Bexport'
 
12213
          no_entry_flag=""
 
12214
        else
 
12215
          aix_use_runtimelinking=no
 
12216
 
 
12217
          # Test if we are trying to use run time linking or normal
 
12218
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12219
          # need to do runtime linking.
 
12220
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12221
            for ld_flag in $LDFLAGS; do
 
12222
              case $ld_flag in
 
12223
              *-brtl*)
 
12224
                aix_use_runtimelinking=yes
 
12225
                break
 
12226
                ;;
 
12227
              esac
 
12228
            done
 
12229
            ;;
 
12230
          esac
 
12231
 
 
12232
          exp_sym_flag='-bexport'
 
12233
          no_entry_flag='-bnoentry'
 
12234
        fi
 
12235
 
 
12236
        # When large executables or shared objects are built, AIX ld can
 
12237
        # have problems creating the table of contents.  If linking a library
 
12238
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12239
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12240
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12241
 
 
12242
        archive_cmds_CXX=''
 
12243
        hardcode_direct_CXX=yes
 
12244
        hardcode_direct_absolute_CXX=yes
 
12245
        hardcode_libdir_separator_CXX=':'
 
12246
        link_all_deplibs_CXX=yes
 
12247
        file_list_spec_CXX='${wl}-f,'
 
12248
 
 
12249
        if test "$GXX" = yes; then
 
12250
          case $host_os in aix4.[012]|aix4.[012].*)
 
12251
          # We only want to do this on AIX 4.2 and lower, the check
 
12252
          # below for broken collect2 doesn't work under 4.3+
 
12253
          collect2name=`${CC} -print-prog-name=collect2`
 
12254
          if test -f "$collect2name" &&
 
12255
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12256
          then
 
12257
            # We have reworked collect2
 
12258
            :
 
12259
          else
 
12260
            # We have old collect2
 
12261
            hardcode_direct_CXX=unsupported
 
12262
            # It fails to find uninstalled libraries when the uninstalled
 
12263
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12264
            # to unsupported forces relinking
 
12265
            hardcode_minus_L_CXX=yes
 
12266
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12267
            hardcode_libdir_separator_CXX=
 
12268
          fi
 
12269
          esac
 
12270
          shared_flag='-shared'
 
12271
          if test "$aix_use_runtimelinking" = yes; then
 
12272
            shared_flag="$shared_flag "'${wl}-G'
 
12273
          fi
 
12274
        else
 
12275
          # not using gcc
 
12276
          if test "$host_cpu" = ia64; then
 
12277
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12278
          # chokes on -Wl,-G. The following line is correct:
 
12279
          shared_flag='-G'
 
12280
          else
 
12281
            if test "$aix_use_runtimelinking" = yes; then
 
12282
              shared_flag='${wl}-G'
 
12283
            else
 
12284
              shared_flag='${wl}-bM:SRE'
 
12285
            fi
 
12286
          fi
 
12287
        fi
 
12288
 
 
12289
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12290
        # It seems that -bexpall does not export symbols beginning with
 
12291
        # underscore (_), so it is better to generate a list of symbols to
 
12292
        # export.
 
12293
        always_export_symbols_CXX=yes
 
12294
        if test "$aix_use_runtimelinking" = yes; then
 
12295
          # Warning - without using the other runtime loading flags (-brtl),
 
12296
          # -berok will link without error, but may produce a broken library.
 
12297
          allow_undefined_flag_CXX='-berok'
 
12298
          # Determine the default libpath from the value encoded in an empty
 
12299
          # executable.
 
12300
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12301
  aix_libpath=$lt_cv_aix_libpath
 
12302
else
 
12303
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12304
  $as_echo_n "(cached) " >&6
 
12305
else
 
12306
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12307
/* end confdefs.h.  */
 
12308
 
 
12309
int
 
12310
main ()
 
12311
{
 
12312
 
 
12313
  ;
 
12314
  return 0;
 
12315
}
 
12316
_ACEOF
 
12317
if ac_fn_cxx_try_link "$LINENO"; then :
 
12318
 
 
12319
  lt_aix_libpath_sed='
 
12320
      /Import File Strings/,/^$/ {
 
12321
          /^0/ {
 
12322
              s/^0  *\([^ ]*\) *$/\1/
 
12323
              p
 
12324
          }
 
12325
      }'
 
12326
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12327
  # Check for a 64-bit object if we didn't find anything.
 
12328
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12329
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12330
  fi
 
12331
fi
 
12332
rm -f core conftest.err conftest.$ac_objext \
 
12333
    conftest$ac_exeext conftest.$ac_ext
 
12334
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12335
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12336
  fi
 
12337
 
 
12338
fi
 
12339
 
 
12340
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12341
fi
 
12342
 
 
12343
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12344
 
 
12345
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12346
        else
 
12347
          if test "$host_cpu" = ia64; then
 
12348
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12349
            allow_undefined_flag_CXX="-z nodefs"
 
12350
            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"
 
12351
          else
 
12352
            # Determine the default libpath from the value encoded in an
 
12353
            # empty executable.
 
12354
            if test "${lt_cv_aix_libpath+set}" = set; then
 
12355
  aix_libpath=$lt_cv_aix_libpath
 
12356
else
 
12357
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12358
  $as_echo_n "(cached) " >&6
 
12359
else
 
12360
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12361
/* end confdefs.h.  */
 
12362
 
 
12363
int
 
12364
main ()
 
12365
{
 
12366
 
 
12367
  ;
 
12368
  return 0;
 
12369
}
 
12370
_ACEOF
 
12371
if ac_fn_cxx_try_link "$LINENO"; then :
 
12372
 
 
12373
  lt_aix_libpath_sed='
 
12374
      /Import File Strings/,/^$/ {
 
12375
          /^0/ {
 
12376
              s/^0  *\([^ ]*\) *$/\1/
 
12377
              p
 
12378
          }
 
12379
      }'
 
12380
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12381
  # Check for a 64-bit object if we didn't find anything.
 
12382
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12383
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12384
  fi
 
12385
fi
 
12386
rm -f core conftest.err conftest.$ac_objext \
 
12387
    conftest$ac_exeext conftest.$ac_ext
 
12388
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12389
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12390
  fi
 
12391
 
 
12392
fi
 
12393
 
 
12394
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12395
fi
 
12396
 
 
12397
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12398
            # Warning - without using the other run time loading flags,
 
12399
            # -berok will link without error, but may produce a broken library.
 
12400
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12401
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12402
            if test "$with_gnu_ld" = yes; then
 
12403
              # We only use this code for GNU lds that support --whole-archive.
 
12404
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12405
            else
 
12406
              # Exported symbols can be pulled into shared objects from archives
 
12407
              whole_archive_flag_spec_CXX='$convenience'
 
12408
            fi
 
12409
            archive_cmds_need_lc_CXX=yes
 
12410
            # This is similar to how AIX traditionally builds its shared
 
12411
            # libraries.
 
12412
            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'
 
12413
          fi
 
12414
        fi
 
12415
        ;;
 
12416
 
 
12417
      beos*)
 
12418
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12419
          allow_undefined_flag_CXX=unsupported
 
12420
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12421
          # support --undefined.  This deserves some investigation.  FIXME
 
12422
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12423
        else
 
12424
          ld_shlibs_CXX=no
 
12425
        fi
 
12426
        ;;
 
12427
 
 
12428
      chorus*)
 
12429
        case $cc_basename in
 
12430
          *)
 
12431
          # FIXME: insert proper C++ library support
 
12432
          ld_shlibs_CXX=no
 
12433
          ;;
 
12434
        esac
 
12435
        ;;
 
12436
 
 
12437
      cygwin* | mingw* | pw32* | cegcc*)
 
12438
        case $GXX,$cc_basename in
 
12439
        ,cl* | no,cl*)
 
12440
          # Native MSVC
 
12441
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
12442
          # no search path for DLLs.
 
12443
          hardcode_libdir_flag_spec_CXX=' '
 
12444
          allow_undefined_flag_CXX=unsupported
 
12445
          always_export_symbols_CXX=yes
 
12446
          file_list_spec_CXX='@'
 
12447
          # Tell ltmain to make .lib files, not .a files.
 
12448
          libext=lib
 
12449
          # Tell ltmain to make .dll files, not .so files.
 
12450
          shrext_cmds=".dll"
 
12451
          # FIXME: Setting linknames here is a bad hack.
 
12452
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
12453
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12454
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
12455
            else
 
12456
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
12457
            fi~
 
12458
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
12459
            linknames='
 
12460
          # The linker will not automatically build a static lib if we build a DLL.
 
12461
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
12462
          enable_shared_with_static_runtimes_CXX=yes
 
12463
          # Don't use ranlib
 
12464
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
12465
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
12466
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
12467
            case $lt_outputfile in
 
12468
              *.exe|*.EXE) ;;
 
12469
              *)
 
12470
                lt_outputfile="$lt_outputfile.exe"
 
12471
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
12472
                ;;
 
12473
            esac~
 
12474
            func_to_tool_file "$lt_outputfile"~
 
12475
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
12476
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
12477
              $RM "$lt_outputfile.manifest";
 
12478
            fi'
 
12479
          ;;
 
12480
        *)
 
12481
          # g++
 
12482
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12483
          # as there is no search path for DLLs.
 
12484
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12485
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
12486
          allow_undefined_flag_CXX=unsupported
 
12487
          always_export_symbols_CXX=no
 
12488
          enable_shared_with_static_runtimes_CXX=yes
 
12489
 
 
12490
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12491
            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'
 
12492
            # If the export-symbols file already is a .def file (1st line
 
12493
            # is EXPORTS), use it as is; otherwise, prepend...
 
12494
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12495
              cp $export_symbols $output_objdir/$soname.def;
 
12496
            else
 
12497
              echo EXPORTS > $output_objdir/$soname.def;
 
12498
              cat $export_symbols >> $output_objdir/$soname.def;
 
12499
            fi~
 
12500
            $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'
 
12501
          else
 
12502
            ld_shlibs_CXX=no
 
12503
          fi
 
12504
          ;;
 
12505
        esac
 
12506
        ;;
 
12507
      darwin* | rhapsody*)
 
12508
 
 
12509
 
 
12510
  archive_cmds_need_lc_CXX=no
 
12511
  hardcode_direct_CXX=no
 
12512
  hardcode_automatic_CXX=yes
 
12513
  hardcode_shlibpath_var_CXX=unsupported
 
12514
  if test "$lt_cv_ld_force_load" = "yes"; then
 
12515
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
12516
 
 
12517
  else
 
12518
    whole_archive_flag_spec_CXX=''
 
12519
  fi
 
12520
  link_all_deplibs_CXX=yes
 
12521
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12522
  case $cc_basename in
 
12523
     ifort*) _lt_dar_can_shared=yes ;;
 
12524
     *) _lt_dar_can_shared=$GCC ;;
 
12525
  esac
 
12526
  if test "$_lt_dar_can_shared" = "yes"; then
 
12527
    output_verbose_link_cmd=func_echo_all
 
12528
    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}"
 
12529
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12530
    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}"
 
12531
    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}"
 
12532
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12533
      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}"
 
12534
      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}"
 
12535
    fi
 
12536
 
 
12537
  else
 
12538
  ld_shlibs_CXX=no
 
12539
  fi
 
12540
 
 
12541
        ;;
 
12542
 
 
12543
      dgux*)
 
12544
        case $cc_basename in
 
12545
          ec++*)
 
12546
            # FIXME: insert proper C++ library support
 
12547
            ld_shlibs_CXX=no
 
12548
            ;;
 
12549
          ghcx*)
 
12550
            # Green Hills C++ Compiler
 
12551
            # FIXME: insert proper C++ library support
 
12552
            ld_shlibs_CXX=no
 
12553
            ;;
 
12554
          *)
 
12555
            # FIXME: insert proper C++ library support
 
12556
            ld_shlibs_CXX=no
 
12557
            ;;
 
12558
        esac
 
12559
        ;;
 
12560
 
 
12561
      freebsd2.*)
 
12562
        # C++ shared libraries reported to be fairly broken before
 
12563
        # switch to ELF
 
12564
        ld_shlibs_CXX=no
 
12565
        ;;
 
12566
 
 
12567
      freebsd-elf*)
 
12568
        archive_cmds_need_lc_CXX=no
 
12569
        ;;
 
12570
 
 
12571
      freebsd* | dragonfly*)
 
12572
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12573
        # conventions
 
12574
        ld_shlibs_CXX=yes
 
12575
        ;;
 
12576
 
 
12577
      gnu*)
 
12578
        ;;
 
12579
 
 
12580
      haiku*)
 
12581
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12582
        link_all_deplibs_CXX=yes
 
12583
        ;;
 
12584
 
 
12585
      hpux9*)
 
12586
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12587
        hardcode_libdir_separator_CXX=:
 
12588
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12589
        hardcode_direct_CXX=yes
 
12590
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12591
                                             # but as the default
 
12592
                                             # location of the library.
 
12593
 
 
12594
        case $cc_basename in
 
12595
          CC*)
 
12596
            # FIXME: insert proper C++ library support
 
12597
            ld_shlibs_CXX=no
 
12598
            ;;
 
12599
          aCC*)
 
12600
            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'
 
12601
            # Commands to make compiler produce verbose output that lists
 
12602
            # what "hidden" libraries, object files and flags are used when
 
12603
            # linking a shared library.
 
12604
            #
 
12605
            # There doesn't appear to be a way to prevent this compiler from
 
12606
            # explicitly linking system object files so we need to strip them
 
12607
            # from the output so that they don't get included in the library
 
12608
            # dependencies.
 
12609
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12610
            ;;
 
12611
          *)
 
12612
            if test "$GXX" = yes; then
 
12613
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
 
12614
            else
 
12615
              # FIXME: insert proper C++ library support
 
12616
              ld_shlibs_CXX=no
 
12617
            fi
 
12618
            ;;
 
12619
        esac
 
12620
        ;;
 
12621
 
 
12622
      hpux10*|hpux11*)
 
12623
        if test $with_gnu_ld = no; then
 
12624
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12625
          hardcode_libdir_separator_CXX=:
 
12626
 
 
12627
          case $host_cpu in
 
12628
            hppa*64*|ia64*)
 
12629
              ;;
 
12630
            *)
 
12631
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12632
              ;;
 
12633
          esac
 
12634
        fi
 
12635
        case $host_cpu in
 
12636
          hppa*64*|ia64*)
 
12637
            hardcode_direct_CXX=no
 
12638
            hardcode_shlibpath_var_CXX=no
 
12639
            ;;
 
12640
          *)
 
12641
            hardcode_direct_CXX=yes
 
12642
            hardcode_direct_absolute_CXX=yes
 
12643
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12644
                                                 # but as the default
 
12645
                                                 # location of the library.
 
12646
            ;;
 
12647
        esac
 
12648
 
 
12649
        case $cc_basename in
 
12650
          CC*)
 
12651
            # FIXME: insert proper C++ library support
 
12652
            ld_shlibs_CXX=no
 
12653
            ;;
 
12654
          aCC*)
 
12655
            case $host_cpu in
 
12656
              hppa*64*)
 
12657
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12658
                ;;
 
12659
              ia64*)
 
12660
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12661
                ;;
 
12662
              *)
 
12663
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12664
                ;;
 
12665
            esac
 
12666
            # Commands to make compiler produce verbose output that lists
 
12667
            # what "hidden" libraries, object files and flags are used when
 
12668
            # linking a shared library.
 
12669
            #
 
12670
            # There doesn't appear to be a way to prevent this compiler from
 
12671
            # explicitly linking system object files so we need to strip them
 
12672
            # from the output so that they don't get included in the library
 
12673
            # dependencies.
 
12674
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12675
            ;;
 
12676
          *)
 
12677
            if test "$GXX" = yes; then
 
12678
              if test $with_gnu_ld = no; then
 
12679
                case $host_cpu in
 
12680
                  hppa*64*)
 
12681
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12682
                    ;;
 
12683
                  ia64*)
 
12684
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12685
                    ;;
 
12686
                  *)
 
12687
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12688
                    ;;
 
12689
                esac
 
12690
              fi
 
12691
            else
 
12692
              # FIXME: insert proper C++ library support
 
12693
              ld_shlibs_CXX=no
 
12694
            fi
 
12695
            ;;
 
12696
        esac
 
12697
        ;;
 
12698
 
 
12699
      interix[3-9]*)
 
12700
        hardcode_direct_CXX=no
 
12701
        hardcode_shlibpath_var_CXX=no
 
12702
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12703
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12704
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12705
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12706
        # default) and relocated if they conflict, which is a slow very memory
 
12707
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12708
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12709
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12710
        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'
 
12711
        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'
 
12712
        ;;
 
12713
      irix5* | irix6*)
 
12714
        case $cc_basename in
 
12715
          CC*)
 
12716
            # SGI C++
 
12717
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
12718
 
 
12719
            # Archives containing C++ object files must be created using
 
12720
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12721
            # necessary to make sure instantiated templates are included
 
12722
            # in the archive.
 
12723
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12724
            ;;
 
12725
          *)
 
12726
            if test "$GXX" = yes; then
 
12727
              if test "$with_gnu_ld" = no; then
 
12728
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12729
              else
 
12730
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
12731
              fi
 
12732
            fi
 
12733
            link_all_deplibs_CXX=yes
 
12734
            ;;
 
12735
        esac
 
12736
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12737
        hardcode_libdir_separator_CXX=:
 
12738
        inherit_rpath_CXX=yes
 
12739
        ;;
 
12740
 
 
12741
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
12742
        case $cc_basename in
 
12743
          KCC*)
 
12744
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12745
 
 
12746
            # KCC will only create a shared library if the output file
 
12747
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12748
            # to its proper name (with version) after linking.
 
12749
            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'
 
12750
            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'
 
12751
            # Commands to make compiler produce verbose output that lists
 
12752
            # what "hidden" libraries, object files and flags are used when
 
12753
            # linking a shared library.
 
12754
            #
 
12755
            # There doesn't appear to be a way to prevent this compiler from
 
12756
            # explicitly linking system object files so we need to strip them
 
12757
            # from the output so that they don't get included in the library
 
12758
            # dependencies.
 
12759
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12760
 
 
12761
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12762
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12763
 
 
12764
            # Archives containing C++ object files must be created using
 
12765
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12766
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12767
            ;;
 
12768
          icpc* | ecpc* )
 
12769
            # Intel C++
 
12770
            with_gnu_ld=yes
 
12771
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12772
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12773
            # earlier do not add the objects themselves.
 
12774
            case `$CC -V 2>&1` in
 
12775
              *"Version 7."*)
 
12776
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12777
                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'
 
12778
                ;;
 
12779
              *)  # Version 8.0 or newer
 
12780
                tmp_idyn=
 
12781
                case $host_cpu in
 
12782
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12783
                esac
 
12784
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12785
                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'
 
12786
                ;;
 
12787
            esac
 
12788
            archive_cmds_need_lc_CXX=no
 
12789
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12790
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12791
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12792
            ;;
 
12793
          pgCC* | pgcpp*)
 
12794
            # Portland Group C++ compiler
 
12795
            case `$CC -V` in
 
12796
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
12797
              prelink_cmds_CXX='tpldir=Template.dir~
 
12798
                rm -rf $tpldir~
 
12799
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12800
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
12801
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12802
                rm -rf $tpldir~
 
12803
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12804
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
12805
                $RANLIB $oldlib'
 
12806
              archive_cmds_CXX='tpldir=Template.dir~
 
12807
                rm -rf $tpldir~
 
12808
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12809
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12810
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12811
                rm -rf $tpldir~
 
12812
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12813
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12814
              ;;
 
12815
            *) # Version 6 and above use weak symbols
 
12816
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12817
              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'
 
12818
              ;;
 
12819
            esac
 
12820
 
 
12821
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12822
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12823
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
12824
            ;;
 
12825
          cxx*)
 
12826
            # Compaq C++
 
12827
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12828
            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'
 
12829
 
 
12830
            runpath_var=LD_RUN_PATH
 
12831
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12832
            hardcode_libdir_separator_CXX=:
 
12833
 
 
12834
            # Commands to make compiler produce verbose output that lists
 
12835
            # what "hidden" libraries, object files and flags are used when
 
12836
            # linking a shared library.
 
12837
            #
 
12838
            # There doesn't appear to be a way to prevent this compiler from
 
12839
            # explicitly linking system object files so we need to strip them
 
12840
            # from the output so that they don't get included in the library
 
12841
            # dependencies.
 
12842
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
12843
            ;;
 
12844
          xl* | mpixl* | bgxl*)
 
12845
            # IBM XL 8.0 on PPC, with GNU ld
 
12846
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12847
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12848
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12849
            if test "x$supports_anon_versioning" = xyes; then
 
12850
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12851
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12852
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12853
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12854
            fi
 
12855
            ;;
 
12856
          *)
 
12857
            case `$CC -V 2>&1 | sed 5q` in
 
12858
            *Sun\ C*)
 
12859
              # Sun C++ 5.9
 
12860
              no_undefined_flag_CXX=' -zdefs'
 
12861
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12862
              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'
 
12863
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12864
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
12865
              compiler_needs_object_CXX=yes
 
12866
 
 
12867
              # Not sure whether something based on
 
12868
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12869
              # would be better.
 
12870
              output_verbose_link_cmd='func_echo_all'
 
12871
 
 
12872
              # Archives containing C++ object files must be created using
 
12873
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12874
              # necessary to make sure instantiated templates are included
 
12875
              # in the archive.
 
12876
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12877
              ;;
 
12878
            esac
 
12879
            ;;
 
12880
        esac
 
12881
        ;;
 
12882
 
 
12883
      lynxos*)
 
12884
        # FIXME: insert proper C++ library support
 
12885
        ld_shlibs_CXX=no
 
12886
        ;;
 
12887
 
 
12888
      m88k*)
 
12889
        # FIXME: insert proper C++ library support
 
12890
        ld_shlibs_CXX=no
 
12891
        ;;
 
12892
 
 
12893
      mvs*)
 
12894
        case $cc_basename in
 
12895
          cxx*)
 
12896
            # FIXME: insert proper C++ library support
 
12897
            ld_shlibs_CXX=no
 
12898
            ;;
 
12899
          *)
 
12900
            # FIXME: insert proper C++ library support
 
12901
            ld_shlibs_CXX=no
 
12902
            ;;
 
12903
        esac
 
12904
        ;;
 
12905
 
 
12906
      netbsd*)
 
12907
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12908
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12909
          wlarc=
 
12910
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12911
          hardcode_direct_CXX=yes
 
12912
          hardcode_shlibpath_var_CXX=no
 
12913
        fi
 
12914
        # Workaround some broken pre-1.5 toolchains
 
12915
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12916
        ;;
 
12917
 
 
12918
      *nto* | *qnx*)
 
12919
        ld_shlibs_CXX=yes
 
12920
        ;;
 
12921
 
 
12922
      openbsd2*)
 
12923
        # C++ shared libraries are fairly broken
 
12924
        ld_shlibs_CXX=no
 
12925
        ;;
 
12926
 
 
12927
      openbsd*)
 
12928
        if test -f /usr/libexec/ld.so; then
 
12929
          hardcode_direct_CXX=yes
 
12930
          hardcode_shlibpath_var_CXX=no
 
12931
          hardcode_direct_absolute_CXX=yes
 
12932
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12933
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12934
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12935
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12936
            export_dynamic_flag_spec_CXX='${wl}-E'
 
12937
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12938
          fi
 
12939
          output_verbose_link_cmd=func_echo_all
 
12940
        else
 
12941
          ld_shlibs_CXX=no
 
12942
        fi
 
12943
        ;;
 
12944
 
 
12945
      osf3* | osf4* | osf5*)
 
12946
        case $cc_basename in
 
12947
          KCC*)
 
12948
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12949
 
 
12950
            # KCC will only create a shared library if the output file
 
12951
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12952
            # to its proper name (with version) after linking.
 
12953
            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'
 
12954
 
 
12955
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12956
            hardcode_libdir_separator_CXX=:
 
12957
 
 
12958
            # Archives containing C++ object files must be created using
 
12959
            # the KAI C++ compiler.
 
12960
            case $host in
 
12961
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
12962
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
12963
            esac
 
12964
            ;;
 
12965
          RCC*)
 
12966
            # Rational C++ 2.4.1
 
12967
            # FIXME: insert proper C++ library support
 
12968
            ld_shlibs_CXX=no
 
12969
            ;;
 
12970
          cxx*)
 
12971
            case $host in
 
12972
              osf3*)
 
12973
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12974
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
12975
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12976
                ;;
 
12977
              *)
 
12978
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12979
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
12980
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12981
                  echo "-hidden">> $lib.exp~
 
12982
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
 
12983
                  $RM $lib.exp'
 
12984
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12985
                ;;
 
12986
            esac
 
12987
 
 
12988
            hardcode_libdir_separator_CXX=:
 
12989
 
 
12990
            # Commands to make compiler produce verbose output that lists
 
12991
            # what "hidden" libraries, object files and flags are used when
 
12992
            # linking a shared library.
 
12993
            #
 
12994
            # There doesn't appear to be a way to prevent this compiler from
 
12995
            # explicitly linking system object files so we need to strip them
 
12996
            # from the output so that they don't get included in the library
 
12997
            # dependencies.
 
12998
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12999
            ;;
 
13000
          *)
 
13001
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13002
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13003
              case $host in
 
13004
                osf3*)
 
13005
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13006
                  ;;
 
13007
                *)
 
13008
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13009
                  ;;
 
13010
              esac
 
13011
 
 
13012
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13013
              hardcode_libdir_separator_CXX=:
 
13014
 
 
13015
              # Commands to make compiler produce verbose output that lists
 
13016
              # what "hidden" libraries, object files and flags are used when
 
13017
              # linking a shared library.
 
13018
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13019
 
 
13020
            else
 
13021
              # FIXME: insert proper C++ library support
 
13022
              ld_shlibs_CXX=no
 
13023
            fi
 
13024
            ;;
 
13025
        esac
 
13026
        ;;
 
13027
 
 
13028
      psos*)
 
13029
        # FIXME: insert proper C++ library support
 
13030
        ld_shlibs_CXX=no
 
13031
        ;;
 
13032
 
 
13033
      sunos4*)
 
13034
        case $cc_basename in
 
13035
          CC*)
 
13036
            # Sun C++ 4.x
 
13037
            # FIXME: insert proper C++ library support
 
13038
            ld_shlibs_CXX=no
 
13039
            ;;
 
13040
          lcc*)
 
13041
            # Lucid
 
13042
            # FIXME: insert proper C++ library support
 
13043
            ld_shlibs_CXX=no
 
13044
            ;;
 
13045
          *)
 
13046
            # FIXME: insert proper C++ library support
 
13047
            ld_shlibs_CXX=no
 
13048
            ;;
 
13049
        esac
 
13050
        ;;
 
13051
 
 
13052
      solaris*)
 
13053
        case $cc_basename in
 
13054
          CC* | sunCC*)
 
13055
            # Sun C++ 4.2, 5.x and Centerline C++
 
13056
            archive_cmds_need_lc_CXX=yes
 
13057
            no_undefined_flag_CXX=' -zdefs'
 
13058
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13059
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13060
              $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'
 
13061
 
 
13062
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13063
            hardcode_shlibpath_var_CXX=no
 
13064
            case $host_os in
 
13065
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13066
              *)
 
13067
                # The compiler driver will combine and reorder linker options,
 
13068
                # but understands `-z linker_flag'.
 
13069
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13070
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13071
                ;;
 
13072
            esac
 
13073
            link_all_deplibs_CXX=yes
 
13074
 
 
13075
            output_verbose_link_cmd='func_echo_all'
 
13076
 
 
13077
            # Archives containing C++ object files must be created using
 
13078
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13079
            # necessary to make sure instantiated templates are included
 
13080
            # in the archive.
 
13081
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13082
            ;;
 
13083
          gcx*)
 
13084
            # Green Hills C++ Compiler
 
13085
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13086
 
 
13087
            # The C++ compiler must be used to create the archive.
 
13088
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13089
            ;;
 
13090
          *)
 
13091
            # GNU C++ compiler with Solaris linker
 
13092
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13093
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13094
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13095
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13096
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13097
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13098
 
 
13099
                # Commands to make compiler produce verbose output that lists
 
13100
                # what "hidden" libraries, object files and flags are used when
 
13101
                # linking a shared library.
 
13102
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13103
              else
 
13104
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13105
                # platform.
 
13106
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13107
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13108
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13109
 
 
13110
                # Commands to make compiler produce verbose output that lists
 
13111
                # what "hidden" libraries, object files and flags are used when
 
13112
                # linking a shared library.
 
13113
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13114
              fi
 
13115
 
 
13116
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13117
              case $host_os in
 
13118
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13119
                *)
 
13120
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13121
                  ;;
 
13122
              esac
 
13123
            fi
 
13124
            ;;
 
13125
        esac
 
13126
        ;;
 
13127
 
 
13128
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13129
      no_undefined_flag_CXX='${wl}-z,text'
 
13130
      archive_cmds_need_lc_CXX=no
 
13131
      hardcode_shlibpath_var_CXX=no
 
13132
      runpath_var='LD_RUN_PATH'
 
13133
 
 
13134
      case $cc_basename in
 
13135
        CC*)
 
13136
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13137
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13138
          ;;
 
13139
        *)
 
13140
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13141
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13142
          ;;
 
13143
      esac
 
13144
      ;;
 
13145
 
 
13146
      sysv5* | sco3.2v5* | sco5v6*)
 
13147
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13148
        # link with -lc, and that would cause any symbols used from libc to
 
13149
        # always be unresolved, which means just about no library would
 
13150
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13151
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13152
        # as -z defs.
 
13153
        no_undefined_flag_CXX='${wl}-z,text'
 
13154
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13155
        archive_cmds_need_lc_CXX=no
 
13156
        hardcode_shlibpath_var_CXX=no
 
13157
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13158
        hardcode_libdir_separator_CXX=':'
 
13159
        link_all_deplibs_CXX=yes
 
13160
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13161
        runpath_var='LD_RUN_PATH'
 
13162
 
 
13163
        case $cc_basename in
 
13164
          CC*)
 
13165
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13166
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13167
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13168
              '"$old_archive_cmds_CXX"
 
13169
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13170
              '"$reload_cmds_CXX"
 
13171
            ;;
 
13172
          *)
 
13173
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13174
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13175
            ;;
 
13176
        esac
 
13177
      ;;
 
13178
 
 
13179
      tandem*)
 
13180
        case $cc_basename in
 
13181
          NCC*)
 
13182
            # NonStop-UX NCC 3.20
 
13183
            # FIXME: insert proper C++ library support
 
13184
            ld_shlibs_CXX=no
 
13185
            ;;
 
13186
          *)
 
13187
            # FIXME: insert proper C++ library support
 
13188
            ld_shlibs_CXX=no
 
13189
            ;;
 
13190
        esac
 
13191
        ;;
 
13192
 
 
13193
      vxworks*)
 
13194
        # FIXME: insert proper C++ library support
 
13195
        ld_shlibs_CXX=no
 
13196
        ;;
 
13197
 
 
13198
      *)
 
13199
        # FIXME: insert proper C++ library support
 
13200
        ld_shlibs_CXX=no
 
13201
        ;;
 
13202
    esac
 
13203
 
 
13204
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13205
$as_echo "$ld_shlibs_CXX" >&6; }
 
13206
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13207
 
 
13208
    GCC_CXX="$GXX"
 
13209
    LD_CXX="$LD"
 
13210
 
 
13211
    ## CAVEAT EMPTOR:
 
13212
    ## There is no encapsulation within the following macros, do not change
 
13213
    ## the running order or otherwise move them around unless you know exactly
 
13214
    ## what you are doing...
 
13215
    # Dependencies to place before and after the object being linked:
 
13216
predep_objects_CXX=
 
13217
postdep_objects_CXX=
 
13218
predeps_CXX=
 
13219
postdeps_CXX=
 
13220
compiler_lib_search_path_CXX=
 
13221
 
 
13222
cat > conftest.$ac_ext <<_LT_EOF
 
13223
class Foo
 
13224
{
 
13225
public:
 
13226
  Foo (void) { a = 0; }
 
13227
private:
 
13228
  int a;
 
13229
};
 
13230
_LT_EOF
 
13231
 
 
13232
 
 
13233
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13234
case "$CC $CFLAGS " in #(
 
13235
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13236
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13237
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
13238
esac
 
13239
 
 
13240
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13241
  (eval $ac_compile) 2>&5
 
13242
  ac_status=$?
 
13243
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13244
  test $ac_status = 0; }; then
 
13245
  # Parse the compiler output and extract the necessary
 
13246
  # objects, libraries and library flags.
 
13247
 
 
13248
  # Sentinel used to keep track of whether or not we are before
 
13249
  # the conftest object file.
 
13250
  pre_test_object_deps_done=no
 
13251
 
 
13252
  for p in `eval "$output_verbose_link_cmd"`; do
 
13253
    case ${prev}${p} in
 
13254
 
 
13255
    -L* | -R* | -l*)
 
13256
       # Some compilers place space between "-{L,R}" and the path.
 
13257
       # Remove the space.
 
13258
       if test $p = "-L" ||
 
13259
          test $p = "-R"; then
 
13260
         prev=$p
 
13261
         continue
 
13262
       fi
 
13263
 
 
13264
       # Expand the sysroot to ease extracting the directories later.
 
13265
       if test -z "$prev"; then
 
13266
         case $p in
 
13267
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13268
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13269
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13270
         esac
 
13271
       fi
 
13272
       case $p in
 
13273
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13274
       esac
 
13275
       if test "$pre_test_object_deps_done" = no; then
 
13276
         case ${prev} in
 
13277
         -L | -R)
 
13278
           # Internal compiler library paths should come after those
 
13279
           # provided the user.  The postdeps already come after the
 
13280
           # user supplied libs so there is no need to process them.
 
13281
           if test -z "$compiler_lib_search_path_CXX"; then
 
13282
             compiler_lib_search_path_CXX="${prev}${p}"
 
13283
           else
 
13284
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13285
           fi
 
13286
           ;;
 
13287
         # The "-l" case would never come before the object being
 
13288
         # linked, so don't bother handling this case.
 
13289
         esac
 
13290
       else
 
13291
         if test -z "$postdeps_CXX"; then
 
13292
           postdeps_CXX="${prev}${p}"
 
13293
         else
 
13294
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13295
         fi
 
13296
       fi
 
13297
       prev=
 
13298
       ;;
 
13299
 
 
13300
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
13301
    *.$objext)
 
13302
       # This assumes that the test object file only shows up
 
13303
       # once in the compiler output.
 
13304
       if test "$p" = "conftest.$objext"; then
 
13305
         pre_test_object_deps_done=yes
 
13306
         continue
 
13307
       fi
 
13308
 
 
13309
       if test "$pre_test_object_deps_done" = no; then
 
13310
         if test -z "$predep_objects_CXX"; then
 
13311
           predep_objects_CXX="$p"
 
13312
         else
 
13313
           predep_objects_CXX="$predep_objects_CXX $p"
 
13314
         fi
 
13315
       else
 
13316
         if test -z "$postdep_objects_CXX"; then
 
13317
           postdep_objects_CXX="$p"
 
13318
         else
 
13319
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13320
         fi
 
13321
       fi
 
13322
       ;;
 
13323
 
 
13324
    *) ;; # Ignore the rest.
 
13325
 
 
13326
    esac
 
13327
  done
 
13328
 
 
13329
  # Clean up.
 
13330
  rm -f a.out a.exe
 
13331
else
 
13332
  echo "libtool.m4: error: problem compiling CXX test program"
 
13333
fi
 
13334
 
 
13335
$RM -f confest.$objext
 
13336
CFLAGS=$_lt_libdeps_save_CFLAGS
 
13337
 
 
13338
# PORTME: override above test on systems where it is broken
 
13339
case $host_os in
 
13340
interix[3-9]*)
 
13341
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
13342
  # hack all around it, let's just trust "g++" to DTRT.
 
13343
  predep_objects_CXX=
 
13344
  postdep_objects_CXX=
 
13345
  postdeps_CXX=
 
13346
  ;;
 
13347
 
 
13348
linux*)
 
13349
  case `$CC -V 2>&1 | sed 5q` in
 
13350
  *Sun\ C*)
 
13351
    # Sun C++ 5.9
 
13352
 
 
13353
    # The more standards-conforming stlport4 library is
 
13354
    # incompatible with the Cstd library. Avoid specifying
 
13355
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13356
    # -library=stlport4 depends on it.
 
13357
    case " $CXX $CXXFLAGS " in
 
13358
    *" -library=stlport4 "*)
 
13359
      solaris_use_stlport4=yes
 
13360
      ;;
 
13361
    esac
 
13362
 
 
13363
    if test "$solaris_use_stlport4" != yes; then
 
13364
      postdeps_CXX='-library=Cstd -library=Crun'
 
13365
    fi
 
13366
    ;;
 
13367
  esac
 
13368
  ;;
 
13369
 
 
13370
solaris*)
 
13371
  case $cc_basename in
 
13372
  CC* | sunCC*)
 
13373
    # The more standards-conforming stlport4 library is
 
13374
    # incompatible with the Cstd library. Avoid specifying
 
13375
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13376
    # -library=stlport4 depends on it.
 
13377
    case " $CXX $CXXFLAGS " in
 
13378
    *" -library=stlport4 "*)
 
13379
      solaris_use_stlport4=yes
 
13380
      ;;
 
13381
    esac
 
13382
 
 
13383
    # Adding this requires a known-good setup of shared libraries for
 
13384
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13385
    # archive will be linked into the output, leading to subtle bugs.
 
13386
    if test "$solaris_use_stlport4" != yes; then
 
13387
      postdeps_CXX='-library=Cstd -library=Crun'
 
13388
    fi
 
13389
    ;;
 
13390
  esac
 
13391
  ;;
 
13392
esac
 
13393
 
 
13394
 
 
13395
case " $postdeps_CXX " in
 
13396
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13397
esac
 
13398
 compiler_lib_search_dirs_CXX=
 
13399
if test -n "${compiler_lib_search_path_CXX}"; then
 
13400
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13401
fi
 
13402
 
 
13403
 
 
13404
 
 
13405
 
 
13406
 
 
13407
 
 
13408
 
 
13409
 
 
13410
 
 
13411
 
 
13412
 
 
13413
 
 
13414
 
 
13415
 
 
13416
 
 
13417
 
 
13418
 
 
13419
 
 
13420
 
 
13421
 
 
13422
 
 
13423
 
 
13424
 
 
13425
 
 
13426
 
 
13427
 
 
13428
 
 
13429
 
 
13430
 
 
13431
 
 
13432
 
 
13433
    lt_prog_compiler_wl_CXX=
 
13434
lt_prog_compiler_pic_CXX=
 
13435
lt_prog_compiler_static_CXX=
 
13436
 
 
13437
 
 
13438
  # C++ specific cases for pic, static, wl, etc.
 
13439
  if test "$GXX" = yes; then
 
13440
    lt_prog_compiler_wl_CXX='-Wl,'
 
13441
    lt_prog_compiler_static_CXX='-static'
 
13442
 
 
13443
    case $host_os in
 
13444
    aix*)
 
13445
      # All AIX code is PIC.
 
13446
      if test "$host_cpu" = ia64; then
 
13447
        # AIX 5 now supports IA64 processor
 
13448
        lt_prog_compiler_static_CXX='-Bstatic'
 
13449
      fi
 
13450
      ;;
 
13451
 
 
13452
    amigaos*)
 
13453
      case $host_cpu in
 
13454
      powerpc)
 
13455
            # see comment about AmigaOS4 .so support
 
13456
            lt_prog_compiler_pic_CXX='-fPIC'
 
13457
        ;;
 
13458
      m68k)
 
13459
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13460
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13461
            # like `-m68040'.
 
13462
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13463
        ;;
 
13464
      esac
 
13465
      ;;
 
13466
 
 
13467
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13468
      # PIC is the default for these OSes.
 
13469
      ;;
 
13470
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13471
      # This hack is so that the source file can tell whether it is being
 
13472
      # built for inclusion in a dll (and should export symbols for example).
 
13473
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13474
      # (--disable-auto-import) libraries
 
13475
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13476
      ;;
 
13477
    darwin* | rhapsody*)
 
13478
      # PIC is the default on this platform
 
13479
      # Common symbols not allowed in MH_DYLIB files
 
13480
      lt_prog_compiler_pic_CXX='-fno-common'
 
13481
      ;;
 
13482
    *djgpp*)
 
13483
      # DJGPP does not support shared libraries at all
 
13484
      lt_prog_compiler_pic_CXX=
 
13485
      ;;
 
13486
    haiku*)
 
13487
      # PIC is the default for Haiku.
 
13488
      # The "-static" flag exists, but is broken.
 
13489
      lt_prog_compiler_static_CXX=
 
13490
      ;;
 
13491
    interix[3-9]*)
 
13492
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13493
      # Instead, we relocate shared libraries at runtime.
 
13494
      ;;
 
13495
    sysv4*MP*)
 
13496
      if test -d /usr/nec; then
 
13497
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13498
      fi
 
13499
      ;;
 
13500
    hpux*)
 
13501
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13502
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13503
      # sets the default TLS model and affects inlining.
 
13504
      case $host_cpu in
 
13505
      hppa*64*)
 
13506
        ;;
 
13507
      *)
 
13508
        lt_prog_compiler_pic_CXX='-fPIC'
 
13509
        ;;
 
13510
      esac
 
13511
      ;;
 
13512
    *qnx* | *nto*)
 
13513
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13514
      # it will coredump.
 
13515
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13516
      ;;
 
13517
    *)
 
13518
      lt_prog_compiler_pic_CXX='-fPIC'
 
13519
      ;;
 
13520
    esac
 
13521
  else
 
13522
    case $host_os in
 
13523
      aix[4-9]*)
 
13524
        # All AIX code is PIC.
 
13525
        if test "$host_cpu" = ia64; then
 
13526
          # AIX 5 now supports IA64 processor
 
13527
          lt_prog_compiler_static_CXX='-Bstatic'
 
13528
        else
 
13529
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13530
        fi
 
13531
        ;;
 
13532
      chorus*)
 
13533
        case $cc_basename in
 
13534
        cxch68*)
 
13535
          # Green Hills C++ Compiler
 
13536
          # _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"
 
13537
          ;;
 
13538
        esac
 
13539
        ;;
 
13540
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13541
        # This hack is so that the source file can tell whether it is being
 
13542
        # built for inclusion in a dll (and should export symbols for example).
 
13543
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13544
        ;;
 
13545
      dgux*)
 
13546
        case $cc_basename in
 
13547
          ec++*)
 
13548
            lt_prog_compiler_pic_CXX='-KPIC'
 
13549
            ;;
 
13550
          ghcx*)
 
13551
            # Green Hills C++ Compiler
 
13552
            lt_prog_compiler_pic_CXX='-pic'
 
13553
            ;;
 
13554
          *)
 
13555
            ;;
 
13556
        esac
 
13557
        ;;
 
13558
      freebsd* | dragonfly*)
 
13559
        # FreeBSD uses GNU C++
 
13560
        ;;
 
13561
      hpux9* | hpux10* | hpux11*)
 
13562
        case $cc_basename in
 
13563
          CC*)
 
13564
            lt_prog_compiler_wl_CXX='-Wl,'
 
13565
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13566
            if test "$host_cpu" != ia64; then
 
13567
              lt_prog_compiler_pic_CXX='+Z'
 
13568
            fi
 
13569
            ;;
 
13570
          aCC*)
 
13571
            lt_prog_compiler_wl_CXX='-Wl,'
 
13572
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13573
            case $host_cpu in
 
13574
            hppa*64*|ia64*)
 
13575
              # +Z the default
 
13576
              ;;
 
13577
            *)
 
13578
              lt_prog_compiler_pic_CXX='+Z'
 
13579
              ;;
 
13580
            esac
 
13581
            ;;
 
13582
          *)
 
13583
            ;;
 
13584
        esac
 
13585
        ;;
 
13586
      interix*)
 
13587
        # This is c89, which is MS Visual C++ (no shared libs)
 
13588
        # Anyone wants to do a port?
 
13589
        ;;
 
13590
      irix5* | irix6* | nonstopux*)
 
13591
        case $cc_basename in
 
13592
          CC*)
 
13593
            lt_prog_compiler_wl_CXX='-Wl,'
 
13594
            lt_prog_compiler_static_CXX='-non_shared'
 
13595
            # CC pic flag -KPIC is the default.
 
13596
            ;;
 
13597
          *)
 
13598
            ;;
 
13599
        esac
 
13600
        ;;
 
13601
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13602
        case $cc_basename in
 
13603
          KCC*)
 
13604
            # KAI C++ Compiler
 
13605
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13606
            lt_prog_compiler_pic_CXX='-fPIC'
 
13607
            ;;
 
13608
          ecpc* )
 
13609
            # old Intel C++ for x86_64 which still supported -KPIC.
 
13610
            lt_prog_compiler_wl_CXX='-Wl,'
 
13611
            lt_prog_compiler_pic_CXX='-KPIC'
 
13612
            lt_prog_compiler_static_CXX='-static'
 
13613
            ;;
 
13614
          icpc* )
 
13615
            # Intel C++, used to be incompatible with GCC.
 
13616
            # ICC 10 doesn't accept -KPIC any more.
 
13617
            lt_prog_compiler_wl_CXX='-Wl,'
 
13618
            lt_prog_compiler_pic_CXX='-fPIC'
 
13619
            lt_prog_compiler_static_CXX='-static'
 
13620
            ;;
 
13621
          pgCC* | pgcpp*)
 
13622
            # Portland Group C++ compiler
 
13623
            lt_prog_compiler_wl_CXX='-Wl,'
 
13624
            lt_prog_compiler_pic_CXX='-fpic'
 
13625
            lt_prog_compiler_static_CXX='-Bstatic'
 
13626
            ;;
 
13627
          cxx*)
 
13628
            # Compaq C++
 
13629
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13630
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13631
            lt_prog_compiler_pic_CXX=
 
13632
            lt_prog_compiler_static_CXX='-non_shared'
 
13633
            ;;
 
13634
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
13635
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
13636
            lt_prog_compiler_wl_CXX='-Wl,'
 
13637
            lt_prog_compiler_pic_CXX='-qpic'
 
13638
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13639
            ;;
 
13640
          *)
 
13641
            case `$CC -V 2>&1 | sed 5q` in
 
13642
            *Sun\ C*)
 
13643
              # Sun C++ 5.9
 
13644
              lt_prog_compiler_pic_CXX='-KPIC'
 
13645
              lt_prog_compiler_static_CXX='-Bstatic'
 
13646
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13647
              ;;
 
13648
            esac
 
13649
            ;;
 
13650
        esac
 
13651
        ;;
 
13652
      lynxos*)
 
13653
        ;;
 
13654
      m88k*)
 
13655
        ;;
 
13656
      mvs*)
 
13657
        case $cc_basename in
 
13658
          cxx*)
 
13659
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13660
            ;;
 
13661
          *)
 
13662
            ;;
 
13663
        esac
 
13664
        ;;
 
13665
      netbsd* | netbsdelf*-gnu)
 
13666
        ;;
 
13667
      *qnx* | *nto*)
 
13668
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13669
        # it will coredump.
 
13670
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13671
        ;;
 
13672
      osf3* | osf4* | osf5*)
 
13673
        case $cc_basename in
 
13674
          KCC*)
 
13675
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13676
            ;;
 
13677
          RCC*)
 
13678
            # Rational C++ 2.4.1
 
13679
            lt_prog_compiler_pic_CXX='-pic'
 
13680
            ;;
 
13681
          cxx*)
 
13682
            # Digital/Compaq C++
 
13683
            lt_prog_compiler_wl_CXX='-Wl,'
 
13684
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13685
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13686
            lt_prog_compiler_pic_CXX=
 
13687
            lt_prog_compiler_static_CXX='-non_shared'
 
13688
            ;;
 
13689
          *)
 
13690
            ;;
 
13691
        esac
 
13692
        ;;
 
13693
      psos*)
 
13694
        ;;
 
13695
      solaris*)
 
13696
        case $cc_basename in
 
13697
          CC* | sunCC*)
 
13698
            # Sun C++ 4.2, 5.x and Centerline C++
 
13699
            lt_prog_compiler_pic_CXX='-KPIC'
 
13700
            lt_prog_compiler_static_CXX='-Bstatic'
 
13701
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13702
            ;;
 
13703
          gcx*)
 
13704
            # Green Hills C++ Compiler
 
13705
            lt_prog_compiler_pic_CXX='-PIC'
 
13706
            ;;
 
13707
          *)
 
13708
            ;;
 
13709
        esac
 
13710
        ;;
 
13711
      sunos4*)
 
13712
        case $cc_basename in
 
13713
          CC*)
 
13714
            # Sun C++ 4.x
 
13715
            lt_prog_compiler_pic_CXX='-pic'
 
13716
            lt_prog_compiler_static_CXX='-Bstatic'
 
13717
            ;;
 
13718
          lcc*)
 
13719
            # Lucid
 
13720
            lt_prog_compiler_pic_CXX='-pic'
 
13721
            ;;
 
13722
          *)
 
13723
            ;;
 
13724
        esac
 
13725
        ;;
 
13726
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13727
        case $cc_basename in
 
13728
          CC*)
 
13729
            lt_prog_compiler_wl_CXX='-Wl,'
 
13730
            lt_prog_compiler_pic_CXX='-KPIC'
 
13731
            lt_prog_compiler_static_CXX='-Bstatic'
 
13732
            ;;
 
13733
        esac
 
13734
        ;;
 
13735
      tandem*)
 
13736
        case $cc_basename in
 
13737
          NCC*)
 
13738
            # NonStop-UX NCC 3.20
 
13739
            lt_prog_compiler_pic_CXX='-KPIC'
 
13740
            ;;
 
13741
          *)
 
13742
            ;;
 
13743
        esac
 
13744
        ;;
 
13745
      vxworks*)
 
13746
        ;;
 
13747
      *)
 
13748
        lt_prog_compiler_can_build_shared_CXX=no
 
13749
        ;;
 
13750
    esac
 
13751
  fi
 
13752
 
 
13753
case $host_os in
 
13754
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13755
  *djgpp*)
 
13756
    lt_prog_compiler_pic_CXX=
 
13757
    ;;
 
13758
  *)
 
13759
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13760
    ;;
 
13761
esac
 
13762
 
 
13763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
13764
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13765
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
13766
  $as_echo_n "(cached) " >&6
 
13767
else
 
13768
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
13769
fi
 
13770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
13771
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
13772
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
13773
 
 
13774
#
 
13775
# Check to make sure the PIC flag actually works.
 
13776
#
 
13777
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13778
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13779
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13780
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
13781
  $as_echo_n "(cached) " >&6
 
13782
else
 
13783
  lt_cv_prog_compiler_pic_works_CXX=no
 
13784
   ac_outfile=conftest.$ac_objext
 
13785
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13786
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13787
   # Insert the option either (1) after the last *FLAGS variable, or
 
13788
   # (2) before a word containing "conftest.", or (3) at the end.
 
13789
   # Note that $ac_compile itself does not contain backslashes and begins
 
13790
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13791
   # The option is referenced via a variable to avoid confusing sed.
 
13792
   lt_compile=`echo "$ac_compile" | $SED \
 
13793
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13794
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13795
   -e 's:$: $lt_compiler_flag:'`
 
13796
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
13797
   (eval "$lt_compile" 2>conftest.err)
 
13798
   ac_status=$?
 
13799
   cat conftest.err >&5
 
13800
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13801
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13802
     # The compiler can only warn and ignore the option if not recognized
 
13803
     # So say no if there are warnings other than the usual output.
 
13804
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
13805
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13806
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13807
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13808
     fi
 
13809
   fi
 
13810
   $RM conftest*
 
13811
 
 
13812
fi
 
13813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13814
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13815
 
 
13816
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13817
    case $lt_prog_compiler_pic_CXX in
 
13818
     "" | " "*) ;;
 
13819
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13820
     esac
 
13821
else
 
13822
    lt_prog_compiler_pic_CXX=
 
13823
     lt_prog_compiler_can_build_shared_CXX=no
 
13824
fi
 
13825
 
 
13826
fi
 
13827
 
 
13828
 
 
13829
 
 
13830
 
 
13831
 
 
13832
#
 
13833
# Check to make sure the static flag actually works.
 
13834
#
 
13835
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13837
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13838
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
13839
  $as_echo_n "(cached) " >&6
 
13840
else
 
13841
  lt_cv_prog_compiler_static_works_CXX=no
 
13842
   save_LDFLAGS="$LDFLAGS"
 
13843
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13844
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13845
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13846
     # The linker can only warn and ignore the option if not recognized
 
13847
     # So say no if there are warnings
 
13848
     if test -s conftest.err; then
 
13849
       # Append any errors to the config.log.
 
13850
       cat conftest.err 1>&5
 
13851
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
13852
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13853
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13854
         lt_cv_prog_compiler_static_works_CXX=yes
 
13855
       fi
 
13856
     else
 
13857
       lt_cv_prog_compiler_static_works_CXX=yes
 
13858
     fi
 
13859
   fi
 
13860
   $RM -r conftest*
 
13861
   LDFLAGS="$save_LDFLAGS"
 
13862
 
 
13863
fi
 
13864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13865
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13866
 
 
13867
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13868
    :
 
13869
else
 
13870
    lt_prog_compiler_static_CXX=
 
13871
fi
 
13872
 
 
13873
 
 
13874
 
 
13875
 
 
13876
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13877
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13878
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
13879
  $as_echo_n "(cached) " >&6
 
13880
else
 
13881
  lt_cv_prog_compiler_c_o_CXX=no
 
13882
   $RM -r conftest 2>/dev/null
 
13883
   mkdir conftest
 
13884
   cd conftest
 
13885
   mkdir out
 
13886
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13887
 
 
13888
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13889
   # Insert the option either (1) after the last *FLAGS variable, or
 
13890
   # (2) before a word containing "conftest.", or (3) at the end.
 
13891
   # Note that $ac_compile itself does not contain backslashes and begins
 
13892
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13893
   lt_compile=`echo "$ac_compile" | $SED \
 
13894
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13895
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13896
   -e 's:$: $lt_compiler_flag:'`
 
13897
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
13898
   (eval "$lt_compile" 2>out/conftest.err)
 
13899
   ac_status=$?
 
13900
   cat out/conftest.err >&5
 
13901
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13902
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13903
   then
 
13904
     # The compiler can only warn and ignore the option if not recognized
 
13905
     # So say no if there are warnings
 
13906
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
13907
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13908
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13909
       lt_cv_prog_compiler_c_o_CXX=yes
 
13910
     fi
 
13911
   fi
 
13912
   chmod u+w . 2>&5
 
13913
   $RM conftest*
 
13914
   # SGI C++ compiler will create directory out/ii_files/ for
 
13915
   # template instantiation
 
13916
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13917
   $RM out/* && rmdir out
 
13918
   cd ..
 
13919
   $RM -r conftest
 
13920
   $RM conftest*
 
13921
 
 
13922
fi
 
13923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13924
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13925
 
 
13926
 
 
13927
 
 
13928
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13929
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13930
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
13931
  $as_echo_n "(cached) " >&6
 
13932
else
 
13933
  lt_cv_prog_compiler_c_o_CXX=no
 
13934
   $RM -r conftest 2>/dev/null
 
13935
   mkdir conftest
 
13936
   cd conftest
 
13937
   mkdir out
 
13938
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13939
 
 
13940
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13941
   # Insert the option either (1) after the last *FLAGS variable, or
 
13942
   # (2) before a word containing "conftest.", or (3) at the end.
 
13943
   # Note that $ac_compile itself does not contain backslashes and begins
 
13944
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13945
   lt_compile=`echo "$ac_compile" | $SED \
 
13946
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13947
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13948
   -e 's:$: $lt_compiler_flag:'`
 
13949
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
13950
   (eval "$lt_compile" 2>out/conftest.err)
 
13951
   ac_status=$?
 
13952
   cat out/conftest.err >&5
 
13953
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13954
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13955
   then
 
13956
     # The compiler can only warn and ignore the option if not recognized
 
13957
     # So say no if there are warnings
 
13958
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
13959
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13960
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13961
       lt_cv_prog_compiler_c_o_CXX=yes
 
13962
     fi
 
13963
   fi
 
13964
   chmod u+w . 2>&5
 
13965
   $RM conftest*
 
13966
   # SGI C++ compiler will create directory out/ii_files/ for
 
13967
   # template instantiation
 
13968
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13969
   $RM out/* && rmdir out
 
13970
   cd ..
 
13971
   $RM -r conftest
 
13972
   $RM conftest*
 
13973
 
 
13974
fi
 
13975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13976
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13977
 
 
13978
 
 
13979
 
 
13980
 
 
13981
hard_links="nottested"
 
13982
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13983
  # do not overwrite the value of need_locks provided by the user
 
13984
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
13985
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13986
  hard_links=yes
 
13987
  $RM conftest*
 
13988
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13989
  touch conftest.a
 
13990
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13991
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13992
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
13993
$as_echo "$hard_links" >&6; }
 
13994
  if test "$hard_links" = no; then
 
13995
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13996
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13997
    need_locks=warn
 
13998
  fi
 
13999
else
 
14000
  need_locks=no
 
14001
fi
 
14002
 
 
14003
 
 
14004
 
 
14005
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14006
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14007
 
 
14008
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14009
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14010
  case $host_os in
 
14011
  aix[4-9]*)
 
14012
    # If we're using GNU nm, then we don't want the "-C" option.
 
14013
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14014
    # Also, AIX nm treats weak defined symbols like other global defined
 
14015
    # symbols, whereas GNU nm marks them as "W".
 
14016
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14017
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14018
    else
 
14019
      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'
 
14020
    fi
 
14021
    ;;
 
14022
  pw32*)
 
14023
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14024
    ;;
 
14025
  cygwin* | mingw* | cegcc*)
 
14026
    case $cc_basename in
 
14027
    cl*)
 
14028
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14029
      ;;
 
14030
    *)
 
14031
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14032
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14033
      ;;
 
14034
    esac
 
14035
    ;;
 
14036
  linux* | k*bsd*-gnu | gnu*)
 
14037
    link_all_deplibs_CXX=no
 
14038
    ;;
 
14039
  *)
 
14040
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14041
    ;;
 
14042
  esac
 
14043
 
 
14044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14045
$as_echo "$ld_shlibs_CXX" >&6; }
 
14046
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14047
 
 
14048
with_gnu_ld_CXX=$with_gnu_ld
 
14049
 
 
14050
 
 
14051
 
 
14052
 
 
14053
 
 
14054
 
 
14055
#
 
14056
# Do we need to explicitly link libc?
 
14057
#
 
14058
case "x$archive_cmds_need_lc_CXX" in
 
14059
x|xyes)
 
14060
  # Assume -lc should be added
 
14061
  archive_cmds_need_lc_CXX=yes
 
14062
 
 
14063
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14064
    case $archive_cmds_CXX in
 
14065
    *'~'*)
 
14066
      # FIXME: we may have to deal with multi-command sequences.
 
14067
      ;;
 
14068
    '$CC '*)
 
14069
      # Test whether the compiler implicitly links with -lc since on some
 
14070
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14071
      # to ld, don't add -lc before -lgcc.
 
14072
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14073
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14074
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14075
  $as_echo_n "(cached) " >&6
 
14076
else
 
14077
  $RM conftest*
 
14078
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14079
 
 
14080
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14081
  (eval $ac_compile) 2>&5
 
14082
  ac_status=$?
 
14083
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14084
  test $ac_status = 0; } 2>conftest.err; then
 
14085
          soname=conftest
 
14086
          lib=conftest
 
14087
          libobjs=conftest.$ac_objext
 
14088
          deplibs=
 
14089
          wl=$lt_prog_compiler_wl_CXX
 
14090
          pic_flag=$lt_prog_compiler_pic_CXX
 
14091
          compiler_flags=-v
 
14092
          linker_flags=-v
 
14093
          verstring=
 
14094
          output_objdir=.
 
14095
          libname=conftest
 
14096
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14097
          allow_undefined_flag_CXX=
 
14098
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14099
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14100
  ac_status=$?
 
14101
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14102
  test $ac_status = 0; }
 
14103
          then
 
14104
            lt_cv_archive_cmds_need_lc_CXX=no
 
14105
          else
 
14106
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14107
          fi
 
14108
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14109
        else
 
14110
          cat conftest.err 1>&5
 
14111
        fi
 
14112
        $RM conftest*
 
14113
 
 
14114
fi
 
14115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14116
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14117
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14118
      ;;
 
14119
    esac
 
14120
  fi
 
14121
  ;;
 
14122
esac
 
14123
 
 
14124
 
 
14125
 
 
14126
 
 
14127
 
 
14128
 
 
14129
 
 
14130
 
 
14131
 
 
14132
 
 
14133
 
 
14134
 
 
14135
 
 
14136
 
 
14137
 
 
14138
 
 
14139
 
 
14140
 
 
14141
 
 
14142
 
 
14143
 
 
14144
 
 
14145
 
 
14146
 
 
14147
 
 
14148
 
 
14149
 
 
14150
 
 
14151
 
 
14152
 
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
 
 
14160
 
 
14161
 
 
14162
 
 
14163
 
 
14164
 
 
14165
 
 
14166
 
 
14167
 
 
14168
 
 
14169
 
 
14170
 
 
14171
 
 
14172
 
 
14173
 
 
14174
 
 
14175
 
 
14176
 
 
14177
 
 
14178
 
 
14179
 
 
14180
 
 
14181
 
 
14182
 
 
14183
 
 
14184
 
 
14185
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14186
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14187
 
 
14188
library_names_spec=
 
14189
libname_spec='lib$name'
 
14190
soname_spec=
 
14191
shrext_cmds=".so"
 
14192
postinstall_cmds=
 
14193
postuninstall_cmds=
 
14194
finish_cmds=
 
14195
finish_eval=
 
14196
shlibpath_var=
 
14197
shlibpath_overrides_runpath=unknown
 
14198
version_type=none
 
14199
dynamic_linker="$host_os ld.so"
 
14200
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14201
need_lib_prefix=unknown
 
14202
hardcode_into_libs=no
 
14203
 
 
14204
# when you set need_version to no, make sure it does not cause -set_version
 
14205
# flags to be left without arguments
 
14206
need_version=unknown
 
14207
 
 
14208
case $host_os in
 
14209
aix3*)
 
14210
  version_type=linux # correct to gnu/linux during the next big refactor
 
14211
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14212
  shlibpath_var=LIBPATH
 
14213
 
 
14214
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14215
  soname_spec='${libname}${release}${shared_ext}$major'
 
14216
  ;;
 
14217
 
 
14218
aix[4-9]*)
 
14219
  version_type=linux # correct to gnu/linux during the next big refactor
 
14220
  need_lib_prefix=no
 
14221
  need_version=no
 
14222
  hardcode_into_libs=yes
 
14223
  if test "$host_cpu" = ia64; then
 
14224
    # AIX 5 supports IA64
 
14225
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14226
    shlibpath_var=LD_LIBRARY_PATH
 
14227
  else
 
14228
    # With GCC up to 2.95.x, collect2 would create an import file
 
14229
    # for dependence libraries.  The import file would start with
 
14230
    # the line `#! .'.  This would cause the generated library to
 
14231
    # depend on `.', always an invalid library.  This was fixed in
 
14232
    # development snapshots of GCC prior to 3.0.
 
14233
    case $host_os in
 
14234
      aix4 | aix4.[01] | aix4.[01].*)
 
14235
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14236
           echo ' yes '
 
14237
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14238
        :
 
14239
      else
 
14240
        can_build_shared=no
 
14241
      fi
 
14242
      ;;
 
14243
    esac
 
14244
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14245
    # soname into executable. Probably we can add versioning support to
 
14246
    # collect2, so additional links can be useful in future.
 
14247
    if test "$aix_use_runtimelinking" = yes; then
 
14248
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14249
      # instead of lib<name>.a to let people know that these are not
 
14250
      # typical AIX shared libraries.
 
14251
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14252
    else
 
14253
      # We preserve .a as extension for shared libraries through AIX4.2
 
14254
      # and later when we are not doing run time linking.
 
14255
      library_names_spec='${libname}${release}.a $libname.a'
 
14256
      soname_spec='${libname}${release}${shared_ext}$major'
 
14257
    fi
 
14258
    shlibpath_var=LIBPATH
 
14259
  fi
 
14260
  ;;
 
14261
 
 
14262
amigaos*)
 
14263
  case $host_cpu in
 
14264
  powerpc)
 
14265
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14266
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14267
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14268
    ;;
 
14269
  m68k)
 
14270
    library_names_spec='$libname.ixlibrary $libname.a'
 
14271
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14272
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14273
    ;;
 
14274
  esac
 
14275
  ;;
 
14276
 
 
14277
beos*)
 
14278
  library_names_spec='${libname}${shared_ext}'
 
14279
  dynamic_linker="$host_os ld.so"
 
14280
  shlibpath_var=LIBRARY_PATH
 
14281
  ;;
 
14282
 
 
14283
bsdi[45]*)
 
14284
  version_type=linux # correct to gnu/linux during the next big refactor
 
14285
  need_version=no
 
14286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14287
  soname_spec='${libname}${release}${shared_ext}$major'
 
14288
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14289
  shlibpath_var=LD_LIBRARY_PATH
 
14290
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14291
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14292
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14293
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14294
  # libtool to hard-code these into programs
 
14295
  ;;
 
14296
 
 
14297
cygwin* | mingw* | pw32* | cegcc*)
 
14298
  version_type=windows
 
14299
  shrext_cmds=".dll"
 
14300
  need_version=no
 
14301
  need_lib_prefix=no
 
14302
 
 
14303
  case $GCC,$cc_basename in
 
14304
  yes,*)
 
14305
    # gcc
 
14306
    library_names_spec='$libname.dll.a'
 
14307
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14308
    postinstall_cmds='base_file=`basename \${file}`~
 
14309
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14310
      dldir=$destdir/`dirname \$dlpath`~
 
14311
      test -d \$dldir || mkdir -p \$dldir~
 
14312
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14313
      chmod a+x \$dldir/$dlname~
 
14314
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14315
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14316
      fi'
 
14317
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14318
      dlpath=$dir/\$dldll~
 
14319
       $RM \$dlpath'
 
14320
    shlibpath_overrides_runpath=yes
 
14321
 
 
14322
    case $host_os in
 
14323
    cygwin*)
 
14324
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14325
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14326
 
 
14327
      ;;
 
14328
    mingw* | cegcc*)
 
14329
      # MinGW DLLs use traditional 'lib' prefix
 
14330
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14331
      ;;
 
14332
    pw32*)
 
14333
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14334
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14335
      ;;
 
14336
    esac
 
14337
    dynamic_linker='Win32 ld.exe'
 
14338
    ;;
 
14339
 
 
14340
  *,cl*)
 
14341
    # Native MSVC
 
14342
    libname_spec='$name'
 
14343
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14344
    library_names_spec='${libname}.dll.lib'
 
14345
 
 
14346
    case $build_os in
 
14347
    mingw*)
 
14348
      sys_lib_search_path_spec=
 
14349
      lt_save_ifs=$IFS
 
14350
      IFS=';'
 
14351
      for lt_path in $LIB
 
14352
      do
 
14353
        IFS=$lt_save_ifs
 
14354
        # Let DOS variable expansion print the short 8.3 style file name.
 
14355
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
14356
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
14357
      done
 
14358
      IFS=$lt_save_ifs
 
14359
      # Convert to MSYS style.
 
14360
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
14361
      ;;
 
14362
    cygwin*)
 
14363
      # Convert to unix form, then to dos form, then back to unix form
 
14364
      # but this time dos style (no spaces!) so that the unix form looks
 
14365
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
14366
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
14367
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
14368
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14369
      ;;
 
14370
    *)
 
14371
      sys_lib_search_path_spec="$LIB"
 
14372
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
14373
        # It is most probably a Windows format PATH.
 
14374
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14375
      else
 
14376
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14377
      fi
 
14378
      # FIXME: find the short name or the path components, as spaces are
 
14379
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
14380
      ;;
 
14381
    esac
 
14382
 
 
14383
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14384
    postinstall_cmds='base_file=`basename \${file}`~
 
14385
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14386
      dldir=$destdir/`dirname \$dlpath`~
 
14387
      test -d \$dldir || mkdir -p \$dldir~
 
14388
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14389
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14390
      dlpath=$dir/\$dldll~
 
14391
       $RM \$dlpath'
 
14392
    shlibpath_overrides_runpath=yes
 
14393
    dynamic_linker='Win32 link.exe'
 
14394
    ;;
 
14395
 
 
14396
  *)
 
14397
    # Assume MSVC wrapper
 
14398
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14399
    dynamic_linker='Win32 ld.exe'
 
14400
    ;;
 
14401
  esac
 
14402
  # FIXME: first we should search . and the directory the executable is in
 
14403
  shlibpath_var=PATH
 
14404
  ;;
 
14405
 
 
14406
darwin* | rhapsody*)
 
14407
  dynamic_linker="$host_os dyld"
 
14408
  version_type=darwin
 
14409
  need_lib_prefix=no
 
14410
  need_version=no
 
14411
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14412
  soname_spec='${libname}${release}${major}$shared_ext'
 
14413
  shlibpath_overrides_runpath=yes
 
14414
  shlibpath_var=DYLD_LIBRARY_PATH
 
14415
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14416
 
 
14417
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14418
  ;;
 
14419
 
 
14420
dgux*)
 
14421
  version_type=linux # correct to gnu/linux during the next big refactor
 
14422
  need_lib_prefix=no
 
14423
  need_version=no
 
14424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14425
  soname_spec='${libname}${release}${shared_ext}$major'
 
14426
  shlibpath_var=LD_LIBRARY_PATH
 
14427
  ;;
 
14428
 
 
14429
freebsd* | dragonfly*)
 
14430
  # DragonFly does not have aout.  When/if they implement a new
 
14431
  # versioning mechanism, adjust this.
 
14432
  if test -x /usr/bin/objformat; then
 
14433
    objformat=`/usr/bin/objformat`
 
14434
  else
 
14435
    case $host_os in
 
14436
    freebsd[23].*) objformat=aout ;;
 
14437
    *) objformat=elf ;;
 
14438
    esac
 
14439
  fi
 
14440
  version_type=freebsd-$objformat
 
14441
  case $version_type in
 
14442
    freebsd-elf*)
 
14443
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14444
      need_version=no
 
14445
      need_lib_prefix=no
 
14446
      ;;
 
14447
    freebsd-*)
 
14448
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14449
      need_version=yes
 
14450
      ;;
 
14451
  esac
 
14452
  shlibpath_var=LD_LIBRARY_PATH
 
14453
  case $host_os in
 
14454
  freebsd2.*)
 
14455
    shlibpath_overrides_runpath=yes
 
14456
    ;;
 
14457
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14458
    shlibpath_overrides_runpath=yes
 
14459
    hardcode_into_libs=yes
 
14460
    ;;
 
14461
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14462
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14463
    shlibpath_overrides_runpath=no
 
14464
    hardcode_into_libs=yes
 
14465
    ;;
 
14466
  *) # from 4.6 on, and DragonFly
 
14467
    shlibpath_overrides_runpath=yes
 
14468
    hardcode_into_libs=yes
 
14469
    ;;
 
14470
  esac
 
14471
  ;;
 
14472
 
 
14473
gnu*)
 
14474
  version_type=linux # correct to gnu/linux during the next big refactor
 
14475
  need_lib_prefix=no
 
14476
  need_version=no
 
14477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14478
  soname_spec='${libname}${release}${shared_ext}$major'
 
14479
  shlibpath_var=LD_LIBRARY_PATH
 
14480
  shlibpath_overrides_runpath=no
 
14481
  hardcode_into_libs=yes
 
14482
  ;;
 
14483
 
 
14484
haiku*)
 
14485
  version_type=linux # correct to gnu/linux during the next big refactor
 
14486
  need_lib_prefix=no
 
14487
  need_version=no
 
14488
  dynamic_linker="$host_os runtime_loader"
 
14489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14490
  soname_spec='${libname}${release}${shared_ext}$major'
 
14491
  shlibpath_var=LIBRARY_PATH
 
14492
  shlibpath_overrides_runpath=yes
 
14493
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
14494
  hardcode_into_libs=yes
 
14495
  ;;
 
14496
 
 
14497
hpux9* | hpux10* | hpux11*)
 
14498
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14499
  # link against other versions.
 
14500
  version_type=sunos
 
14501
  need_lib_prefix=no
 
14502
  need_version=no
 
14503
  case $host_cpu in
 
14504
  ia64*)
 
14505
    shrext_cmds='.so'
 
14506
    hardcode_into_libs=yes
 
14507
    dynamic_linker="$host_os dld.so"
 
14508
    shlibpath_var=LD_LIBRARY_PATH
 
14509
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14510
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14511
    soname_spec='${libname}${release}${shared_ext}$major'
 
14512
    if test "X$HPUX_IA64_MODE" = X32; then
 
14513
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14514
    else
 
14515
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14516
    fi
 
14517
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14518
    ;;
 
14519
  hppa*64*)
 
14520
    shrext_cmds='.sl'
 
14521
    hardcode_into_libs=yes
 
14522
    dynamic_linker="$host_os dld.sl"
 
14523
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14524
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14525
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14526
    soname_spec='${libname}${release}${shared_ext}$major'
 
14527
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14528
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14529
    ;;
 
14530
  *)
 
14531
    shrext_cmds='.sl'
 
14532
    dynamic_linker="$host_os dld.sl"
 
14533
    shlibpath_var=SHLIB_PATH
 
14534
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14535
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14536
    soname_spec='${libname}${release}${shared_ext}$major'
 
14537
    ;;
 
14538
  esac
 
14539
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
14540
  postinstall_cmds='chmod 555 $lib'
 
14541
  # or fails outright, so override atomically:
 
14542
  install_override_mode=555
 
14543
  ;;
 
14544
 
 
14545
interix[3-9]*)
 
14546
  version_type=linux # correct to gnu/linux during the next big refactor
 
14547
  need_lib_prefix=no
 
14548
  need_version=no
 
14549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14550
  soname_spec='${libname}${release}${shared_ext}$major'
 
14551
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14552
  shlibpath_var=LD_LIBRARY_PATH
 
14553
  shlibpath_overrides_runpath=no
 
14554
  hardcode_into_libs=yes
 
14555
  ;;
 
14556
 
 
14557
irix5* | irix6* | nonstopux*)
 
14558
  case $host_os in
 
14559
    nonstopux*) version_type=nonstopux ;;
 
14560
    *)
 
14561
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14562
                version_type=linux # correct to gnu/linux during the next big refactor
 
14563
        else
 
14564
                version_type=irix
 
14565
        fi ;;
 
14566
  esac
 
14567
  need_lib_prefix=no
 
14568
  need_version=no
 
14569
  soname_spec='${libname}${release}${shared_ext}$major'
 
14570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14571
  case $host_os in
 
14572
  irix5* | nonstopux*)
 
14573
    libsuff= shlibsuff=
 
14574
    ;;
 
14575
  *)
 
14576
    case $LD in # libtool.m4 will add one of these switches to LD
 
14577
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14578
      libsuff= shlibsuff= libmagic=32-bit;;
 
14579
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14580
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14581
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14582
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14583
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14584
    esac
 
14585
    ;;
 
14586
  esac
 
14587
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14588
  shlibpath_overrides_runpath=no
 
14589
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14590
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14591
  hardcode_into_libs=yes
 
14592
  ;;
 
14593
 
 
14594
# No shared lib support for Linux oldld, aout, or coff.
 
14595
linux*oldld* | linux*aout* | linux*coff*)
 
14596
  dynamic_linker=no
 
14597
  ;;
 
14598
 
 
14599
# This must be glibc/ELF.
 
14600
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14601
  version_type=linux # correct to gnu/linux during the next big refactor
 
14602
  need_lib_prefix=no
 
14603
  need_version=no
 
14604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14605
  soname_spec='${libname}${release}${shared_ext}$major'
 
14606
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14607
  shlibpath_var=LD_LIBRARY_PATH
 
14608
  shlibpath_overrides_runpath=no
 
14609
 
 
14610
  # Some binutils ld are patched to set DT_RUNPATH
 
14611
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
14612
  $as_echo_n "(cached) " >&6
 
14613
else
 
14614
  lt_cv_shlibpath_overrides_runpath=no
 
14615
    save_LDFLAGS=$LDFLAGS
 
14616
    save_libdir=$libdir
 
14617
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14618
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14619
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14620
/* end confdefs.h.  */
 
14621
 
 
14622
int
 
14623
main ()
 
14624
{
 
14625
 
 
14626
  ;
 
14627
  return 0;
 
14628
}
 
14629
_ACEOF
 
14630
if ac_fn_cxx_try_link "$LINENO"; then :
 
14631
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
14632
  lt_cv_shlibpath_overrides_runpath=yes
 
14633
fi
 
14634
fi
 
14635
rm -f core conftest.err conftest.$ac_objext \
 
14636
    conftest$ac_exeext conftest.$ac_ext
 
14637
    LDFLAGS=$save_LDFLAGS
 
14638
    libdir=$save_libdir
 
14639
 
 
14640
fi
 
14641
 
 
14642
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
14643
 
 
14644
  # This implies no fast_install, which is unacceptable.
 
14645
  # Some rework will be needed to allow for fast_install
 
14646
  # before this can be enabled.
 
14647
  hardcode_into_libs=yes
 
14648
 
 
14649
  # Append ld.so.conf contents to the search path
 
14650
  if test -f /etc/ld.so.conf; then
 
14651
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
14652
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14653
  fi
 
14654
 
 
14655
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14656
  # powerpc, because MkLinux only supported shared libraries with the
 
14657
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14658
  # most powerpc-linux boxes support dynamic linking these days and
 
14659
  # people can always --disable-shared, the test was removed, and we
 
14660
  # assume the GNU/Linux dynamic linker is in use.
 
14661
  dynamic_linker='GNU/Linux ld.so'
 
14662
  ;;
 
14663
 
 
14664
netbsdelf*-gnu)
 
14665
  version_type=linux
 
14666
  need_lib_prefix=no
 
14667
  need_version=no
 
14668
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14669
  soname_spec='${libname}${release}${shared_ext}$major'
 
14670
  shlibpath_var=LD_LIBRARY_PATH
 
14671
  shlibpath_overrides_runpath=no
 
14672
  hardcode_into_libs=yes
 
14673
  dynamic_linker='NetBSD ld.elf_so'
 
14674
  ;;
 
14675
 
 
14676
netbsd*)
 
14677
  version_type=sunos
 
14678
  need_lib_prefix=no
 
14679
  need_version=no
 
14680
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14681
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14682
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14683
    dynamic_linker='NetBSD (a.out) ld.so'
 
14684
  else
 
14685
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14686
    soname_spec='${libname}${release}${shared_ext}$major'
 
14687
    dynamic_linker='NetBSD ld.elf_so'
 
14688
  fi
 
14689
  shlibpath_var=LD_LIBRARY_PATH
 
14690
  shlibpath_overrides_runpath=yes
 
14691
  hardcode_into_libs=yes
 
14692
  ;;
 
14693
 
 
14694
newsos6)
 
14695
  version_type=linux # correct to gnu/linux during the next big refactor
 
14696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14697
  shlibpath_var=LD_LIBRARY_PATH
 
14698
  shlibpath_overrides_runpath=yes
 
14699
  ;;
 
14700
 
 
14701
*nto* | *qnx*)
 
14702
  version_type=qnx
 
14703
  need_lib_prefix=no
 
14704
  need_version=no
 
14705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14706
  soname_spec='${libname}${release}${shared_ext}$major'
 
14707
  shlibpath_var=LD_LIBRARY_PATH
 
14708
  shlibpath_overrides_runpath=no
 
14709
  hardcode_into_libs=yes
 
14710
  dynamic_linker='ldqnx.so'
 
14711
  ;;
 
14712
 
 
14713
openbsd*)
 
14714
  version_type=sunos
 
14715
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14716
  need_lib_prefix=no
 
14717
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14718
  case $host_os in
 
14719
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14720
    *)                          need_version=no  ;;
 
14721
  esac
 
14722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14723
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14724
  shlibpath_var=LD_LIBRARY_PATH
 
14725
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14726
    case $host_os in
 
14727
      openbsd2.[89] | openbsd2.[89].*)
 
14728
        shlibpath_overrides_runpath=no
 
14729
        ;;
 
14730
      *)
 
14731
        shlibpath_overrides_runpath=yes
 
14732
        ;;
 
14733
      esac
 
14734
  else
 
14735
    shlibpath_overrides_runpath=yes
 
14736
  fi
 
14737
  ;;
 
14738
 
 
14739
os2*)
 
14740
  libname_spec='$name'
 
14741
  shrext_cmds=".dll"
 
14742
  need_lib_prefix=no
 
14743
  library_names_spec='$libname${shared_ext} $libname.a'
 
14744
  dynamic_linker='OS/2 ld.exe'
 
14745
  shlibpath_var=LIBPATH
 
14746
  ;;
 
14747
 
 
14748
osf3* | osf4* | osf5*)
 
14749
  version_type=osf
 
14750
  need_lib_prefix=no
 
14751
  need_version=no
 
14752
  soname_spec='${libname}${release}${shared_ext}$major'
 
14753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14754
  shlibpath_var=LD_LIBRARY_PATH
 
14755
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14756
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14757
  ;;
 
14758
 
 
14759
rdos*)
 
14760
  dynamic_linker=no
 
14761
  ;;
 
14762
 
 
14763
solaris*)
 
14764
  version_type=linux # correct to gnu/linux during the next big refactor
 
14765
  need_lib_prefix=no
 
14766
  need_version=no
 
14767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14768
  soname_spec='${libname}${release}${shared_ext}$major'
 
14769
  shlibpath_var=LD_LIBRARY_PATH
 
14770
  shlibpath_overrides_runpath=yes
 
14771
  hardcode_into_libs=yes
 
14772
  # ldd complains unless libraries are executable
 
14773
  postinstall_cmds='chmod +x $lib'
 
14774
  ;;
 
14775
 
 
14776
sunos4*)
 
14777
  version_type=sunos
 
14778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14779
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14780
  shlibpath_var=LD_LIBRARY_PATH
 
14781
  shlibpath_overrides_runpath=yes
 
14782
  if test "$with_gnu_ld" = yes; then
 
14783
    need_lib_prefix=no
 
14784
  fi
 
14785
  need_version=yes
 
14786
  ;;
 
14787
 
 
14788
sysv4 | sysv4.3*)
 
14789
  version_type=linux # correct to gnu/linux during the next big refactor
 
14790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14791
  soname_spec='${libname}${release}${shared_ext}$major'
 
14792
  shlibpath_var=LD_LIBRARY_PATH
 
14793
  case $host_vendor in
 
14794
    sni)
 
14795
      shlibpath_overrides_runpath=no
 
14796
      need_lib_prefix=no
 
14797
      runpath_var=LD_RUN_PATH
 
14798
      ;;
 
14799
    siemens)
 
14800
      need_lib_prefix=no
 
14801
      ;;
 
14802
    motorola)
 
14803
      need_lib_prefix=no
 
14804
      need_version=no
 
14805
      shlibpath_overrides_runpath=no
 
14806
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14807
      ;;
 
14808
  esac
 
14809
  ;;
 
14810
 
 
14811
sysv4*MP*)
 
14812
  if test -d /usr/nec ;then
 
14813
    version_type=linux # correct to gnu/linux during the next big refactor
 
14814
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14815
    soname_spec='$libname${shared_ext}.$major'
 
14816
    shlibpath_var=LD_LIBRARY_PATH
 
14817
  fi
 
14818
  ;;
 
14819
 
 
14820
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14821
  version_type=freebsd-elf
 
14822
  need_lib_prefix=no
 
14823
  need_version=no
 
14824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14825
  soname_spec='${libname}${release}${shared_ext}$major'
 
14826
  shlibpath_var=LD_LIBRARY_PATH
 
14827
  shlibpath_overrides_runpath=yes
 
14828
  hardcode_into_libs=yes
 
14829
  if test "$with_gnu_ld" = yes; then
 
14830
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14831
  else
 
14832
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14833
    case $host_os in
 
14834
      sco3.2v5*)
 
14835
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14836
        ;;
 
14837
    esac
 
14838
  fi
 
14839
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14840
  ;;
 
14841
 
 
14842
tpf*)
 
14843
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14844
  version_type=linux # correct to gnu/linux during the next big refactor
 
14845
  need_lib_prefix=no
 
14846
  need_version=no
 
14847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14848
  shlibpath_var=LD_LIBRARY_PATH
 
14849
  shlibpath_overrides_runpath=no
 
14850
  hardcode_into_libs=yes
 
14851
  ;;
 
14852
 
 
14853
uts4*)
 
14854
  version_type=linux # correct to gnu/linux during the next big refactor
 
14855
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14856
  soname_spec='${libname}${release}${shared_ext}$major'
 
14857
  shlibpath_var=LD_LIBRARY_PATH
 
14858
  ;;
 
14859
 
 
14860
*)
 
14861
  dynamic_linker=no
 
14862
  ;;
 
14863
esac
 
14864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
14865
$as_echo "$dynamic_linker" >&6; }
 
14866
test "$dynamic_linker" = no && can_build_shared=no
 
14867
 
 
14868
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14869
if test "$GCC" = yes; then
 
14870
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14871
fi
 
14872
 
 
14873
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14874
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14875
fi
 
14876
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14877
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14878
fi
 
14879
 
 
14880
 
 
14881
 
 
14882
 
 
14883
 
 
14884
 
 
14885
 
 
14886
 
 
14887
 
 
14888
 
 
14889
 
 
14890
 
 
14891
 
 
14892
 
 
14893
 
 
14894
 
 
14895
 
 
14896
 
 
14897
 
 
14898
 
 
14899
 
 
14900
 
 
14901
 
 
14902
 
 
14903
 
 
14904
 
 
14905
 
 
14906
 
 
14907
 
 
14908
 
 
14909
 
 
14910
 
 
14911
 
 
14912
 
 
14913
 
 
14914
 
 
14915
 
 
14916
 
 
14917
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
14918
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14919
hardcode_action_CXX=
 
14920
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
14921
   test -n "$runpath_var_CXX" ||
 
14922
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14923
 
 
14924
  # We can hardcode non-existent directories.
 
14925
  if test "$hardcode_direct_CXX" != no &&
 
14926
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14927
     # have to relink, otherwise we might link with an installed library
 
14928
     # when we should be linking with a yet-to-be-installed one
 
14929
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14930
     test "$hardcode_minus_L_CXX" != no; then
 
14931
    # Linking always hardcodes the temporary library directory.
 
14932
    hardcode_action_CXX=relink
 
14933
  else
 
14934
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14935
    hardcode_action_CXX=immediate
 
14936
  fi
 
14937
else
 
14938
  # We cannot hardcode anything, or else we can only hardcode existing
 
14939
  # directories.
 
14940
  hardcode_action_CXX=unsupported
 
14941
fi
 
14942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
14943
$as_echo "$hardcode_action_CXX" >&6; }
 
14944
 
 
14945
if test "$hardcode_action_CXX" = relink ||
 
14946
   test "$inherit_rpath_CXX" = yes; then
 
14947
  # Fast installation is not supported
 
14948
  enable_fast_install=no
 
14949
elif test "$shlibpath_overrides_runpath" = yes ||
 
14950
     test "$enable_shared" = no; then
 
14951
  # Fast installation is not necessary
 
14952
  enable_fast_install=needless
 
14953
fi
 
14954
 
 
14955
 
 
14956
 
 
14957
 
 
14958
 
 
14959
 
 
14960
 
 
14961
  fi # test -n "$compiler"
 
14962
 
 
14963
  CC=$lt_save_CC
 
14964
  CFLAGS=$lt_save_CFLAGS
 
14965
  LDCXX=$LD
 
14966
  LD=$lt_save_LD
 
14967
  GCC=$lt_save_GCC
 
14968
  with_gnu_ld=$lt_save_with_gnu_ld
 
14969
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
14970
  lt_cv_path_LD=$lt_save_path_LD
 
14971
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14972
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14973
fi # test "$_lt_caught_CXX_error" != yes
 
14974
 
 
14975
ac_ext=c
 
14976
ac_cpp='$CPP $CPPFLAGS'
 
14977
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14978
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14979
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14980
 
 
14981
 
 
14982
 
 
14983
 
 
14984
 
 
14985
 
 
14986
 
 
14987
 
 
14988
 
 
14989
 
 
14990
 
 
14991
 
 
14992
 
 
14993
 
 
14994
 
 
14995
        ac_config_commands="$ac_config_commands libtool"
 
14996
 
 
14997
 
 
14998
 
 
14999
 
 
15000
# Only expand once:
 
15001
 
 
15002
 
 
15003
 
 
15004
# checks for libraries.
 
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-mt" >&5
 
15006
$as_echo_n "checking for main in -lboost_filesystem-mt... " >&6; }
 
15007
if ${ac_cv_lib_boost_filesystem_mt_main+:} false; then :
 
15008
  $as_echo_n "(cached) " >&6
 
15009
else
 
15010
  ac_check_lib_save_LIBS=$LIBS
 
15011
LIBS="-lboost_filesystem-mt  $LIBS"
 
15012
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15013
/* end confdefs.h.  */
 
15014
 
 
15015
 
 
15016
int
 
15017
main ()
 
15018
{
 
15019
return main ();
 
15020
  ;
 
15021
  return 0;
 
15022
}
 
15023
_ACEOF
 
15024
if ac_fn_c_try_link "$LINENO"; then :
 
15025
  ac_cv_lib_boost_filesystem_mt_main=yes
 
15026
else
 
15027
  ac_cv_lib_boost_filesystem_mt_main=no
 
15028
fi
 
15029
rm -f core conftest.err conftest.$ac_objext \
 
15030
    conftest$ac_exeext conftest.$ac_ext
 
15031
LIBS=$ac_check_lib_save_LIBS
 
15032
fi
 
15033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_mt_main" >&5
 
15034
$as_echo "$ac_cv_lib_boost_filesystem_mt_main" >&6; }
 
15035
if test "x$ac_cv_lib_boost_filesystem_mt_main" = xyes; then :
 
15036
  cat >>confdefs.h <<_ACEOF
 
15037
#define HAVE_LIBBOOST_FILESYSTEM_MT 1
 
15038
_ACEOF
 
15039
 
 
15040
  LIBS="-lboost_filesystem-mt $LIBS"
 
15041
 
 
15042
else
 
15043
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&5
 
15044
$as_echo "$as_me: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&2;}
 
15045
fi
 
15046
 
 
15047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-mt" >&5
 
15048
$as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
 
15049
if ${ac_cv_lib_boost_thread_mt_main+:} false; then :
 
15050
  $as_echo_n "(cached) " >&6
 
15051
else
 
15052
  ac_check_lib_save_LIBS=$LIBS
 
15053
LIBS="-lboost_thread-mt  $LIBS"
 
15054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15055
/* end confdefs.h.  */
 
15056
 
 
15057
 
 
15058
int
 
15059
main ()
 
15060
{
 
15061
return main ();
 
15062
  ;
 
15063
  return 0;
 
15064
}
 
15065
_ACEOF
 
15066
if ac_fn_c_try_link "$LINENO"; then :
 
15067
  ac_cv_lib_boost_thread_mt_main=yes
 
15068
else
 
15069
  ac_cv_lib_boost_thread_mt_main=no
 
15070
fi
 
15071
rm -f core conftest.err conftest.$ac_objext \
 
15072
    conftest$ac_exeext conftest.$ac_ext
 
15073
LIBS=$ac_check_lib_save_LIBS
 
15074
fi
 
15075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_mt_main" >&5
 
15076
$as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
 
15077
if test "x$ac_cv_lib_boost_thread_mt_main" = xyes; then :
 
15078
  cat >>confdefs.h <<_ACEOF
 
15079
#define HAVE_LIBBOOST_THREAD_MT 1
 
15080
_ACEOF
 
15081
 
 
15082
  LIBS="-lboost_thread-mt $LIBS"
 
15083
 
 
15084
else
 
15085
  as_fn_error $? "Unable to find Boost Thread library" "$LINENO" 5
 
15086
fi
 
15087
 
 
15088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
 
15089
$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
 
15090
if ${ac_cv_lib_sqlite3_sqlite3_initialize+:} false; then :
 
15091
  $as_echo_n "(cached) " >&6
 
15092
else
 
15093
  ac_check_lib_save_LIBS=$LIBS
 
15094
LIBS="-lsqlite3  $LIBS"
 
15095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15096
/* end confdefs.h.  */
 
15097
 
 
15098
/* Override any GCC internal prototype to avoid an error.
 
15099
   Use char because int might match the return type of a GCC
 
15100
   builtin and then its argument prototype would still apply.  */
 
15101
#ifdef __cplusplus
 
15102
extern "C"
 
15103
#endif
 
15104
char sqlite3_initialize ();
 
15105
int
 
15106
main ()
 
15107
{
 
15108
return sqlite3_initialize ();
 
15109
  ;
 
15110
  return 0;
 
15111
}
 
15112
_ACEOF
 
15113
if ac_fn_c_try_link "$LINENO"; then :
 
15114
  ac_cv_lib_sqlite3_sqlite3_initialize=yes
 
15115
else
 
15116
  ac_cv_lib_sqlite3_sqlite3_initialize=no
 
15117
fi
 
15118
rm -f core conftest.err conftest.$ac_objext \
 
15119
    conftest$ac_exeext conftest.$ac_ext
 
15120
LIBS=$ac_check_lib_save_LIBS
 
15121
fi
 
15122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
 
15123
$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
 
15124
if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes; then :
 
15125
  cat >>confdefs.h <<_ACEOF
 
15126
#define HAVE_LIBSQLITE3 1
 
15127
_ACEOF
 
15128
 
 
15129
  LIBS="-lsqlite3 $LIBS"
 
15130
 
 
15131
else
 
15132
  as_fn_error $? "Unable to find SQLite3 library" "$LINENO" 5
 
15133
fi
 
15134
 
 
15135
 
 
15136
# checks for header files.
 
15137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
15138
$as_echo_n "checking for ANSI C header files... " >&6; }
 
15139
if ${ac_cv_header_stdc+:} false; then :
 
15140
  $as_echo_n "(cached) " >&6
 
15141
else
 
15142
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15143
/* end confdefs.h.  */
 
15144
#include <stdlib.h>
 
15145
#include <stdarg.h>
 
15146
#include <string.h>
 
15147
#include <float.h>
 
15148
 
 
15149
int
 
15150
main ()
 
15151
{
 
15152
 
 
15153
  ;
 
15154
  return 0;
 
15155
}
 
15156
_ACEOF
 
15157
if ac_fn_c_try_compile "$LINENO"; then :
 
15158
  ac_cv_header_stdc=yes
 
15159
else
 
15160
  ac_cv_header_stdc=no
 
15161
fi
 
15162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15163
 
 
15164
if test $ac_cv_header_stdc = yes; then
 
15165
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
15166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15167
/* end confdefs.h.  */
 
15168
#include <string.h>
 
15169
 
 
15170
_ACEOF
 
15171
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15172
  $EGREP "memchr" >/dev/null 2>&1; then :
 
15173
 
 
15174
else
 
15175
  ac_cv_header_stdc=no
 
15176
fi
 
15177
rm -f conftest*
 
15178
 
 
15179
fi
 
15180
 
 
15181
if test $ac_cv_header_stdc = yes; then
 
15182
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
15183
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15184
/* end confdefs.h.  */
 
15185
#include <stdlib.h>
 
15186
 
 
15187
_ACEOF
 
15188
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
15189
  $EGREP "free" >/dev/null 2>&1; then :
 
15190
 
 
15191
else
 
15192
  ac_cv_header_stdc=no
 
15193
fi
 
15194
rm -f conftest*
 
15195
 
 
15196
fi
 
15197
 
 
15198
if test $ac_cv_header_stdc = yes; then
 
15199
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
15200
  if test "$cross_compiling" = yes; then :
 
15201
  :
 
15202
else
 
15203
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15204
/* end confdefs.h.  */
 
15205
#include <ctype.h>
 
15206
#include <stdlib.h>
 
15207
#if ((' ' & 0x0FF) == 0x020)
 
15208
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
15209
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
15210
#else
 
15211
# define ISLOWER(c) \
 
15212
                   (('a' <= (c) && (c) <= 'i') \
 
15213
                     || ('j' <= (c) && (c) <= 'r') \
 
15214
                     || ('s' <= (c) && (c) <= 'z'))
 
15215
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
15216
#endif
 
15217
 
 
15218
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
15219
int
 
15220
main ()
 
15221
{
 
15222
  int i;
 
15223
  for (i = 0; i < 256; i++)
 
15224
    if (XOR (islower (i), ISLOWER (i))
 
15225
        || toupper (i) != TOUPPER (i))
 
15226
      return 2;
 
15227
  return 0;
 
15228
}
 
15229
_ACEOF
 
15230
if ac_fn_c_try_run "$LINENO"; then :
 
15231
 
 
15232
else
 
15233
  ac_cv_header_stdc=no
 
15234
fi
 
15235
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
15236
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
15237
fi
 
15238
 
 
15239
fi
 
15240
fi
 
15241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
15242
$as_echo "$ac_cv_header_stdc" >&6; }
 
15243
if test $ac_cv_header_stdc = yes; then
 
15244
 
 
15245
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
15246
 
 
15247
fi
 
15248
 
 
15249
for ac_header in string.h
 
15250
do :
 
15251
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
15252
if test "x$ac_cv_header_string_h" = xyes; then :
 
15253
  cat >>confdefs.h <<_ACEOF
 
15254
#define HAVE_STRING_H 1
 
15255
_ACEOF
 
15256
 
 
15257
fi
 
15258
 
 
15259
done
 
15260
 
 
15261
 
 
15262
# checks for typedefs, structures, and compiler characteristics.
 
15263
 
 
15264
# checks for library functions.
 
15265
 
 
15266
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
 
15267
 
 
15268
cat >confcache <<\_ACEOF
 
15269
# This file is a shell script that caches the results of configure
 
15270
# tests run on this system so they can be shared between configure
 
15271
# scripts and configure runs, see configure's option --config-cache.
 
15272
# It is not useful on other systems.  If it contains results you don't
 
15273
# want to keep, you may remove or edit it.
 
15274
#
 
15275
# config.status only pays attention to the cache file if you give it
 
15276
# the --recheck option to rerun configure.
 
15277
#
 
15278
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
15279
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
15280
# following values.
 
15281
 
 
15282
_ACEOF
 
15283
 
 
15284
# The following way of writing the cache mishandles newlines in values,
 
15285
# but we know of no workaround that is simple, portable, and efficient.
 
15286
# So, we kill variables containing newlines.
 
15287
# Ultrix sh set writes to stderr and can't be redirected directly,
 
15288
# and sets the high bit in the cache file unless we assign to the vars.
 
15289
(
 
15290
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
15291
    eval ac_val=\$$ac_var
 
15292
    case $ac_val in #(
 
15293
    *${as_nl}*)
 
15294
      case $ac_var in #(
 
15295
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
15296
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
15297
      esac
 
15298
      case $ac_var in #(
 
15299
      _ | IFS | as_nl) ;; #(
 
15300
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
15301
      *) { eval $ac_var=; unset $ac_var;} ;;
 
15302
      esac ;;
 
15303
    esac
 
15304
  done
 
15305
 
 
15306
  (set) 2>&1 |
 
15307
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
15308
    *${as_nl}ac_space=\ *)
 
15309
      # `set' does not quote correctly, so add quotes: double-quote
 
15310
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
15311
      sed -n \
 
15312
        "s/'/'\\\\''/g;
 
15313
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
15314
      ;; #(
 
15315
    *)
 
15316
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
15317
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
15318
      ;;
 
15319
    esac |
 
15320
    sort
 
15321
) |
 
15322
  sed '
 
15323
     /^ac_cv_env_/b end
 
15324
     t clear
 
15325
     :clear
 
15326
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
15327
     t end
 
15328
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
15329
     :end' >>confcache
 
15330
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
15331
  if test -w "$cache_file"; then
 
15332
    if test "x$cache_file" != "x/dev/null"; then
 
15333
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
15334
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
15335
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
15336
        cat confcache >"$cache_file"
 
15337
      else
 
15338
        case $cache_file in #(
 
15339
        */* | ?:*)
 
15340
          mv -f confcache "$cache_file"$$ &&
 
15341
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
15342
        *)
 
15343
          mv -f confcache "$cache_file" ;;
 
15344
        esac
 
15345
      fi
 
15346
    fi
 
15347
  else
 
15348
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
15349
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
15350
  fi
 
15351
fi
 
15352
rm -f confcache
 
15353
 
 
15354
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
15355
# Let make expand exec_prefix.
 
15356
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15357
 
 
15358
DEFS=-DHAVE_CONFIG_H
 
15359
 
 
15360
ac_libobjs=
 
15361
ac_ltlibobjs=
 
15362
U=
 
15363
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
15364
  # 1. Remove the extension, and $U if already installed.
 
15365
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
15366
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
15367
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
15368
  #    will be set to the directory where LIBOBJS objects are built.
 
15369
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
15370
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
15371
done
 
15372
LIBOBJS=$ac_libobjs
 
15373
 
 
15374
LTLIBOBJS=$ac_ltlibobjs
 
15375
 
 
15376
 
 
15377
 if test -n "$EXEEXT"; then
 
15378
  am__EXEEXT_TRUE=
 
15379
  am__EXEEXT_FALSE='#'
 
15380
else
 
15381
  am__EXEEXT_TRUE='#'
 
15382
  am__EXEEXT_FALSE=
 
15383
fi
 
15384
 
 
15385
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
15386
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
15387
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15388
fi
 
15389
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
15390
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
15391
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15392
fi
 
15393
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
15394
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
15395
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15396
fi
 
15397
 
 
15398
: "${CONFIG_STATUS=./config.status}"
 
15399
ac_write_fail=0
 
15400
ac_clean_files_save=$ac_clean_files
 
15401
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
15402
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
15403
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
15404
as_write_fail=0
 
15405
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
15406
#! $SHELL
 
15407
# Generated by $as_me.
 
15408
# Run this file to recreate the current configuration.
 
15409
# Compiler output produced by configure, useful for debugging
 
15410
# configure, is in config.log if it exists.
 
15411
 
 
15412
debug=false
 
15413
ac_cs_recheck=false
 
15414
ac_cs_silent=false
 
15415
 
 
15416
SHELL=\${CONFIG_SHELL-$SHELL}
 
15417
export SHELL
 
15418
_ASEOF
 
15419
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
15420
## -------------------- ##
 
15421
## M4sh Initialization. ##
 
15422
## -------------------- ##
 
15423
 
 
15424
# Be more Bourne compatible
 
15425
DUALCASE=1; export DUALCASE # for MKS sh
 
15426
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
15427
  emulate sh
 
15428
  NULLCMD=:
 
15429
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
15430
  # is contrary to our usage.  Disable this feature.
 
15431
  alias -g '${1+"$@"}'='"$@"'
 
15432
  setopt NO_GLOB_SUBST
 
15433
else
 
15434
  case `(set -o) 2>/dev/null` in #(
 
15435
  *posix*) :
 
15436
    set -o posix ;; #(
 
15437
  *) :
 
15438
     ;;
 
15439
esac
 
15440
fi
 
15441
 
 
15442
 
 
15443
as_nl='
 
15444
'
 
15445
export as_nl
 
15446
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
15447
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
15448
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
15449
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
15450
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
15451
# but without wasting forks for bash or zsh.
 
15452
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
15453
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15454
  as_echo='print -r --'
 
15455
  as_echo_n='print -rn --'
 
15456
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15457
  as_echo='printf %s\n'
 
15458
  as_echo_n='printf %s'
 
15459
else
 
15460
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
15461
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
15462
    as_echo_n='/usr/ucb/echo -n'
 
15463
  else
 
15464
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
15465
    as_echo_n_body='eval
 
15466
      arg=$1;
 
15467
      case $arg in #(
 
15468
      *"$as_nl"*)
 
15469
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
15470
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
15471
      esac;
 
15472
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
15473
    '
 
15474
    export as_echo_n_body
 
15475
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
15476
  fi
 
15477
  export as_echo_body
 
15478
  as_echo='sh -c $as_echo_body as_echo'
 
15479
fi
 
15480
 
 
15481
# The user is always right.
 
15482
if test "${PATH_SEPARATOR+set}" != set; then
 
15483
  PATH_SEPARATOR=:
 
15484
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
15485
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
15486
      PATH_SEPARATOR=';'
 
15487
  }
 
15488
fi
 
15489
 
 
15490
 
 
15491
# IFS
 
15492
# We need space, tab and new line, in precisely that order.  Quoting is
 
15493
# there to prevent editors from complaining about space-tab.
 
15494
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
15495
# splitting by setting IFS to empty value.)
 
15496
IFS=" ""        $as_nl"
 
15497
 
 
15498
# Find who we are.  Look in the path if we contain no directory separator.
 
15499
as_myself=
 
15500
case $0 in #((
 
15501
  *[\\/]* ) as_myself=$0 ;;
 
15502
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15503
for as_dir in $PATH
 
15504
do
 
15505
  IFS=$as_save_IFS
 
15506
  test -z "$as_dir" && as_dir=.
 
15507
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
15508
  done
 
15509
IFS=$as_save_IFS
 
15510
 
 
15511
     ;;
 
15512
esac
 
15513
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
15514
# in which case we are not to be found in the path.
 
15515
if test "x$as_myself" = x; then
 
15516
  as_myself=$0
 
15517
fi
 
15518
if test ! -f "$as_myself"; then
 
15519
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
15520
  exit 1
 
15521
fi
 
15522
 
 
15523
# Unset variables that we do not need and which cause bugs (e.g. in
 
15524
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
15525
# suppresses any "Segmentation fault" message there.  '((' could
 
15526
# trigger a bug in pdksh 5.2.14.
 
15527
for as_var in BASH_ENV ENV MAIL MAILPATH
 
15528
do eval test x\${$as_var+set} = xset \
 
15529
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
15530
done
 
15531
PS1='$ '
 
15532
PS2='> '
 
15533
PS4='+ '
 
15534
 
 
15535
# NLS nuisances.
 
15536
LC_ALL=C
 
15537
export LC_ALL
 
15538
LANGUAGE=C
 
15539
export LANGUAGE
 
15540
 
 
15541
# CDPATH.
 
15542
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15543
 
 
15544
 
 
15545
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
15546
# ----------------------------------------
 
15547
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
15548
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
15549
# script with STATUS, using 1 if that was 0.
 
15550
as_fn_error ()
 
15551
{
 
15552
  as_status=$1; test $as_status -eq 0 && as_status=1
 
15553
  if test "$4"; then
 
15554
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
15555
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
15556
  fi
 
15557
  $as_echo "$as_me: error: $2" >&2
 
15558
  as_fn_exit $as_status
 
15559
} # as_fn_error
 
15560
 
 
15561
 
 
15562
# as_fn_set_status STATUS
 
15563
# -----------------------
 
15564
# Set $? to STATUS, without forking.
 
15565
as_fn_set_status ()
 
15566
{
 
15567
  return $1
 
15568
} # as_fn_set_status
 
15569
 
 
15570
# as_fn_exit STATUS
 
15571
# -----------------
 
15572
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
15573
as_fn_exit ()
 
15574
{
 
15575
  set +e
 
15576
  as_fn_set_status $1
 
15577
  exit $1
 
15578
} # as_fn_exit
 
15579
 
 
15580
# as_fn_unset VAR
 
15581
# ---------------
 
15582
# Portably unset VAR.
 
15583
as_fn_unset ()
 
15584
{
 
15585
  { eval $1=; unset $1;}
 
15586
}
 
15587
as_unset=as_fn_unset
 
15588
# as_fn_append VAR VALUE
 
15589
# ----------------------
 
15590
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
15591
# advantage of any shell optimizations that allow amortized linear growth over
 
15592
# repeated appends, instead of the typical quadratic growth present in naive
 
15593
# implementations.
 
15594
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
15595
  eval 'as_fn_append ()
 
15596
  {
 
15597
    eval $1+=\$2
 
15598
  }'
 
15599
else
 
15600
  as_fn_append ()
 
15601
  {
 
15602
    eval $1=\$$1\$2
 
15603
  }
 
15604
fi # as_fn_append
 
15605
 
 
15606
# as_fn_arith ARG...
 
15607
# ------------------
 
15608
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
15609
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
15610
# must be portable across $(()) and expr.
 
15611
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
15612
  eval 'as_fn_arith ()
 
15613
  {
 
15614
    as_val=$(( $* ))
 
15615
  }'
 
15616
else
 
15617
  as_fn_arith ()
 
15618
  {
 
15619
    as_val=`expr "$@" || test $? -eq 1`
 
15620
  }
 
15621
fi # as_fn_arith
 
15622
 
 
15623
 
 
15624
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
15625
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
15626
  as_expr=expr
 
15627
else
 
15628
  as_expr=false
 
15629
fi
 
15630
 
 
15631
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
15632
  as_basename=basename
 
15633
else
 
15634
  as_basename=false
 
15635
fi
 
15636
 
 
15637
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
15638
  as_dirname=dirname
 
15639
else
 
15640
  as_dirname=false
 
15641
fi
 
15642
 
 
15643
as_me=`$as_basename -- "$0" ||
 
15644
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
15645
         X"$0" : 'X\(//\)$' \| \
 
15646
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
15647
$as_echo X/"$0" |
 
15648
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
15649
            s//\1/
 
15650
            q
 
15651
          }
 
15652
          /^X\/\(\/\/\)$/{
 
15653
            s//\1/
 
15654
            q
 
15655
          }
 
15656
          /^X\/\(\/\).*/{
 
15657
            s//\1/
 
15658
            q
 
15659
          }
 
15660
          s/.*/./; q'`
 
15661
 
 
15662
# Avoid depending upon Character Ranges.
 
15663
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
15664
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
15665
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
15666
as_cr_digits='0123456789'
 
15667
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
15668
 
 
15669
ECHO_C= ECHO_N= ECHO_T=
 
15670
case `echo -n x` in #(((((
 
15671
-n*)
 
15672
  case `echo 'xy\c'` in
 
15673
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
15674
  xy)  ECHO_C='\c';;
 
15675
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
15676
       ECHO_T=' ';;
 
15677
  esac;;
 
15678
*)
 
15679
  ECHO_N='-n';;
 
15680
esac
 
15681
 
 
15682
rm -f conf$$ conf$$.exe conf$$.file
 
15683
if test -d conf$$.dir; then
 
15684
  rm -f conf$$.dir/conf$$.file
 
15685
else
 
15686
  rm -f conf$$.dir
 
15687
  mkdir conf$$.dir 2>/dev/null
 
15688
fi
 
15689
if (echo >conf$$.file) 2>/dev/null; then
 
15690
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
15691
    as_ln_s='ln -s'
 
15692
    # ... but there are two gotchas:
 
15693
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
15694
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
15695
    # In both cases, we have to default to `cp -p'.
 
15696
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
15697
      as_ln_s='cp -p'
 
15698
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
15699
    as_ln_s=ln
 
15700
  else
 
15701
    as_ln_s='cp -p'
 
15702
  fi
 
15703
else
 
15704
  as_ln_s='cp -p'
 
15705
fi
 
15706
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
15707
rmdir conf$$.dir 2>/dev/null
 
15708
 
 
15709
 
 
15710
# as_fn_mkdir_p
 
15711
# -------------
 
15712
# Create "$as_dir" as a directory, including parents if necessary.
 
15713
as_fn_mkdir_p ()
 
15714
{
 
15715
 
 
15716
  case $as_dir in #(
 
15717
  -*) as_dir=./$as_dir;;
 
15718
  esac
 
15719
  test -d "$as_dir" || eval $as_mkdir_p || {
 
15720
    as_dirs=
 
15721
    while :; do
 
15722
      case $as_dir in #(
 
15723
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
15724
      *) as_qdir=$as_dir;;
 
15725
      esac
 
15726
      as_dirs="'$as_qdir' $as_dirs"
 
15727
      as_dir=`$as_dirname -- "$as_dir" ||
 
15728
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15729
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
15730
         X"$as_dir" : 'X\(//\)$' \| \
 
15731
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
15732
$as_echo X"$as_dir" |
 
15733
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15734
            s//\1/
 
15735
            q
 
15736
          }
 
15737
          /^X\(\/\/\)[^/].*/{
 
15738
            s//\1/
 
15739
            q
 
15740
          }
 
15741
          /^X\(\/\/\)$/{
 
15742
            s//\1/
 
15743
            q
 
15744
          }
 
15745
          /^X\(\/\).*/{
 
15746
            s//\1/
 
15747
            q
 
15748
          }
 
15749
          s/.*/./; q'`
 
15750
      test -d "$as_dir" && break
 
15751
    done
 
15752
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
15753
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
15754
 
 
15755
 
 
15756
} # as_fn_mkdir_p
 
15757
if mkdir -p . 2>/dev/null; then
 
15758
  as_mkdir_p='mkdir -p "$as_dir"'
 
15759
else
 
15760
  test -d ./-p && rmdir ./-p
 
15761
  as_mkdir_p=false
 
15762
fi
 
15763
 
 
15764
if test -x / >/dev/null 2>&1; then
 
15765
  as_test_x='test -x'
 
15766
else
 
15767
  if ls -dL / >/dev/null 2>&1; then
 
15768
    as_ls_L_option=L
 
15769
  else
 
15770
    as_ls_L_option=
 
15771
  fi
 
15772
  as_test_x='
 
15773
    eval sh -c '\''
 
15774
      if test -d "$1"; then
 
15775
        test -d "$1/.";
 
15776
      else
 
15777
        case $1 in #(
 
15778
        -*)set "./$1";;
 
15779
        esac;
 
15780
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
15781
        ???[sx]*):;;*)false;;esac;fi
 
15782
    '\'' sh
 
15783
  '
 
15784
fi
 
15785
as_executable_p=$as_test_x
 
15786
 
 
15787
# Sed expression to map a string onto a valid CPP name.
 
15788
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
15789
 
 
15790
# Sed expression to map a string onto a valid variable name.
 
15791
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
15792
 
 
15793
 
 
15794
exec 6>&1
 
15795
## ----------------------------------- ##
 
15796
## Main body of $CONFIG_STATUS script. ##
 
15797
## ----------------------------------- ##
 
15798
_ASEOF
 
15799
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
15800
 
 
15801
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15802
# Save the log message, to keep $0 and so on meaningful, and to
 
15803
# report actual input values of CONFIG_FILES etc. instead of their
 
15804
# values after options handling.
 
15805
ac_log="
 
15806
This file was extended by sqlite3cc $as_me 0.1, which was
 
15807
generated by GNU Autoconf 2.68.  Invocation command line was
 
15808
 
 
15809
  CONFIG_FILES    = $CONFIG_FILES
 
15810
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
15811
  CONFIG_LINKS    = $CONFIG_LINKS
 
15812
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
15813
  $ $0 $@
 
15814
 
 
15815
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
15816
"
 
15817
 
 
15818
_ACEOF
 
15819
 
 
15820
case $ac_config_files in *"
 
15821
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
15822
esac
 
15823
 
 
15824
case $ac_config_headers in *"
 
15825
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
15826
esac
 
15827
 
 
15828
 
 
15829
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15830
# Files that config.status was made for.
 
15831
config_files="$ac_config_files"
 
15832
config_headers="$ac_config_headers"
 
15833
config_commands="$ac_config_commands"
 
15834
 
 
15835
_ACEOF
 
15836
 
 
15837
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15838
ac_cs_usage="\
 
15839
\`$as_me' instantiates files and other configuration actions
 
15840
from templates according to the current configuration.  Unless the files
 
15841
and actions are specified as TAGs, all are instantiated by default.
 
15842
 
 
15843
Usage: $0 [OPTION]... [TAG]...
 
15844
 
 
15845
  -h, --help       print this help, then exit
 
15846
  -V, --version    print version number and configuration settings, then exit
 
15847
      --config     print configuration, then exit
 
15848
  -q, --quiet, --silent
 
15849
                   do not print progress messages
 
15850
  -d, --debug      don't remove temporary files
 
15851
      --recheck    update $as_me by reconfiguring in the same conditions
 
15852
      --file=FILE[:TEMPLATE]
 
15853
                   instantiate the configuration file FILE
 
15854
      --header=FILE[:TEMPLATE]
 
15855
                   instantiate the configuration header FILE
 
15856
 
 
15857
Configuration files:
 
15858
$config_files
 
15859
 
 
15860
Configuration headers:
 
15861
$config_headers
 
15862
 
 
15863
Configuration commands:
 
15864
$config_commands
 
15865
 
 
15866
Report bugs to <tim@ed.am>.
 
15867
sqlite3cc home page: <http://ed.am/dev/sqlite3cc>."
 
15868
 
 
15869
_ACEOF
 
15870
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15871
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
15872
ac_cs_version="\\
 
15873
sqlite3cc config.status 0.1
 
15874
configured by $0, generated by GNU Autoconf 2.68,
 
15875
  with options \\"\$ac_cs_config\\"
 
15876
 
 
15877
Copyright (C) 2010 Free Software Foundation, Inc.
 
15878
This config.status script is free software; the Free Software Foundation
 
15879
gives unlimited permission to copy, distribute and modify it."
 
15880
 
 
15881
ac_pwd='$ac_pwd'
 
15882
srcdir='$srcdir'
 
15883
INSTALL='$INSTALL'
 
15884
MKDIR_P='$MKDIR_P'
 
15885
AWK='$AWK'
 
15886
test -n "\$AWK" || AWK=awk
 
15887
_ACEOF
 
15888
 
 
15889
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15890
# The default lists apply if the user does not specify any file.
 
15891
ac_need_defaults=:
 
15892
while test $# != 0
 
15893
do
 
15894
  case $1 in
 
15895
  --*=?*)
 
15896
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15897
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
15898
    ac_shift=:
 
15899
    ;;
 
15900
  --*=)
 
15901
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15902
    ac_optarg=
 
15903
    ac_shift=:
 
15904
    ;;
 
15905
  *)
 
15906
    ac_option=$1
 
15907
    ac_optarg=$2
 
15908
    ac_shift=shift
 
15909
    ;;
 
15910
  esac
 
15911
 
 
15912
  case $ac_option in
 
15913
  # Handling of the options.
 
15914
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
15915
    ac_cs_recheck=: ;;
 
15916
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
15917
    $as_echo "$ac_cs_version"; exit ;;
 
15918
  --config | --confi | --conf | --con | --co | --c )
 
15919
    $as_echo "$ac_cs_config"; exit ;;
 
15920
  --debug | --debu | --deb | --de | --d | -d )
 
15921
    debug=: ;;
 
15922
  --file | --fil | --fi | --f )
 
15923
    $ac_shift
 
15924
    case $ac_optarg in
 
15925
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15926
    '') as_fn_error $? "missing file argument" ;;
 
15927
    esac
 
15928
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
15929
    ac_need_defaults=false;;
 
15930
  --header | --heade | --head | --hea )
 
15931
    $ac_shift
 
15932
    case $ac_optarg in
 
15933
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15934
    esac
 
15935
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
15936
    ac_need_defaults=false;;
 
15937
  --he | --h)
 
15938
    # Conflict between --help and --header
 
15939
    as_fn_error $? "ambiguous option: \`$1'
 
15940
Try \`$0 --help' for more information.";;
 
15941
  --help | --hel | -h )
 
15942
    $as_echo "$ac_cs_usage"; exit ;;
 
15943
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
15944
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
15945
    ac_cs_silent=: ;;
 
15946
 
 
15947
  # This is an error.
 
15948
  -*) as_fn_error $? "unrecognized option: \`$1'
 
15949
Try \`$0 --help' for more information." ;;
 
15950
 
 
15951
  *) as_fn_append ac_config_targets " $1"
 
15952
     ac_need_defaults=false ;;
 
15953
 
 
15954
  esac
 
15955
  shift
 
15956
done
 
15957
 
 
15958
ac_configure_extra_args=
 
15959
 
 
15960
if $ac_cs_silent; then
 
15961
  exec 6>/dev/null
 
15962
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
15963
fi
 
15964
 
 
15965
_ACEOF
 
15966
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15967
if \$ac_cs_recheck; then
 
15968
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15969
  shift
 
15970
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
15971
  CONFIG_SHELL='$SHELL'
 
15972
  export CONFIG_SHELL
 
15973
  exec "\$@"
 
15974
fi
 
15975
 
 
15976
_ACEOF
 
15977
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15978
exec 5>>config.log
 
15979
{
 
15980
  echo
 
15981
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15982
## Running $as_me. ##
 
15983
_ASBOX
 
15984
  $as_echo "$ac_log"
 
15985
} >&5
 
15986
 
 
15987
_ACEOF
 
15988
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15989
#
 
15990
# INIT-COMMANDS
 
15991
#
 
15992
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
15993
 
 
15994
 
 
15995
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
15996
# if CDPATH is set.
 
15997
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15998
 
 
15999
sed_quote_subst='$sed_quote_subst'
 
16000
double_quote_subst='$double_quote_subst'
 
16001
delay_variable_subst='$delay_variable_subst'
 
16002
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
16003
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
16004
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
16005
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
16006
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
16007
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
16008
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
16009
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
16010
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
16011
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
16012
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
16013
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
16014
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
16015
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
16016
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
16017
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
16018
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
16019
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
16020
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
16021
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
16022
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
16023
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
16024
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
16025
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
16026
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
16027
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
16028
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
16029
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
16030
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
16031
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16032
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
16033
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
16034
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
16035
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
16036
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
16037
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
16038
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
16039
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
16040
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
16041
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
16042
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
16043
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
16044
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
16045
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
16046
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
16047
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16048
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16049
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16050
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
16051
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
16052
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
16053
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
16054
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
16055
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
16056
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
16057
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
16058
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
16059
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
16060
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
16061
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
16062
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
16063
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
16064
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
16065
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
16066
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
16067
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
16068
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
16069
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
16070
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
16071
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
16072
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
16073
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
16074
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
16075
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
16076
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
16077
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
16078
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
16079
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
16080
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16081
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16082
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
16083
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
16084
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
16085
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
16086
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
16087
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
16088
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
16089
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
16090
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
16091
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
16092
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
16093
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
16094
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
16095
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
16096
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
16097
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
16098
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
16099
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
16100
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
16101
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
16102
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
16103
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
16104
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
16105
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
16106
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
16107
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
16108
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
16109
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
16110
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
16111
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
16112
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
16113
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
16114
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
16115
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
16116
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
16117
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
16118
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
16119
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16120
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
16121
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
16122
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
16123
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
16124
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
16125
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
16126
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
16127
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
16128
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
16129
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
16130
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
16131
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
16132
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
16133
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
16134
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
16135
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
16136
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
16137
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
16138
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
16139
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16140
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16141
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16142
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
16143
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
16144
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16145
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
16146
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
16147
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
16148
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
16149
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
16150
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
16151
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16152
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16153
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
16154
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16155
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16156
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16157
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16158
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16159
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16160
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
16161
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16162
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16163
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16164
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
16165
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
16166
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
16167
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
16168
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
16169
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
16170
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
16171
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
16172
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
16173
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16174
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
16175
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
16176
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16177
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16178
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16179
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
16180
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
16181
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
16182
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
16183
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
16184
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
16185
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
16186
 
 
16187
LTCC='$LTCC'
 
16188
LTCFLAGS='$LTCFLAGS'
 
16189
compiler='$compiler_DEFAULT'
 
16190
 
 
16191
# A function that is used when there is no print builtin or printf.
 
16192
func_fallback_echo ()
 
16193
{
 
16194
  eval 'cat <<_LTECHO_EOF
 
16195
\$1
 
16196
_LTECHO_EOF'
 
16197
}
 
16198
 
 
16199
# Quote evaled strings.
 
16200
for var in SHELL \
 
16201
ECHO \
 
16202
PATH_SEPARATOR \
 
16203
SED \
 
16204
GREP \
 
16205
EGREP \
 
16206
FGREP \
 
16207
LD \
 
16208
NM \
 
16209
LN_S \
 
16210
lt_SP2NL \
 
16211
lt_NL2SP \
 
16212
reload_flag \
 
16213
OBJDUMP \
 
16214
deplibs_check_method \
 
16215
file_magic_cmd \
 
16216
file_magic_glob \
 
16217
want_nocaseglob \
 
16218
DLLTOOL \
 
16219
sharedlib_from_linklib_cmd \
 
16220
AR \
 
16221
AR_FLAGS \
 
16222
archiver_list_spec \
 
16223
STRIP \
 
16224
RANLIB \
 
16225
CC \
 
16226
CFLAGS \
 
16227
compiler \
 
16228
lt_cv_sys_global_symbol_pipe \
 
16229
lt_cv_sys_global_symbol_to_cdecl \
 
16230
lt_cv_sys_global_symbol_to_c_name_address \
 
16231
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
16232
nm_file_list_spec \
 
16233
lt_prog_compiler_no_builtin_flag \
 
16234
lt_prog_compiler_pic \
 
16235
lt_prog_compiler_wl \
 
16236
lt_prog_compiler_static \
 
16237
lt_cv_prog_compiler_c_o \
 
16238
need_locks \
 
16239
MANIFEST_TOOL \
 
16240
DSYMUTIL \
 
16241
NMEDIT \
 
16242
LIPO \
 
16243
OTOOL \
 
16244
OTOOL64 \
 
16245
shrext_cmds \
 
16246
export_dynamic_flag_spec \
 
16247
whole_archive_flag_spec \
 
16248
compiler_needs_object \
 
16249
with_gnu_ld \
 
16250
allow_undefined_flag \
 
16251
no_undefined_flag \
 
16252
hardcode_libdir_flag_spec \
 
16253
hardcode_libdir_separator \
 
16254
exclude_expsyms \
 
16255
include_expsyms \
 
16256
file_list_spec \
 
16257
variables_saved_for_relink \
 
16258
libname_spec \
 
16259
library_names_spec \
 
16260
soname_spec \
 
16261
install_override_mode \
 
16262
finish_eval \
 
16263
old_striplib \
 
16264
striplib \
 
16265
compiler_lib_search_dirs \
 
16266
predep_objects \
 
16267
postdep_objects \
 
16268
predeps \
 
16269
postdeps \
 
16270
compiler_lib_search_path \
 
16271
LD_CXX \
 
16272
reload_flag_CXX \
 
16273
compiler_CXX \
 
16274
lt_prog_compiler_no_builtin_flag_CXX \
 
16275
lt_prog_compiler_pic_CXX \
 
16276
lt_prog_compiler_wl_CXX \
 
16277
lt_prog_compiler_static_CXX \
 
16278
lt_cv_prog_compiler_c_o_CXX \
 
16279
export_dynamic_flag_spec_CXX \
 
16280
whole_archive_flag_spec_CXX \
 
16281
compiler_needs_object_CXX \
 
16282
with_gnu_ld_CXX \
 
16283
allow_undefined_flag_CXX \
 
16284
no_undefined_flag_CXX \
 
16285
hardcode_libdir_flag_spec_CXX \
 
16286
hardcode_libdir_separator_CXX \
 
16287
exclude_expsyms_CXX \
 
16288
include_expsyms_CXX \
 
16289
file_list_spec_CXX \
 
16290
compiler_lib_search_dirs_CXX \
 
16291
predep_objects_CXX \
 
16292
postdep_objects_CXX \
 
16293
predeps_CXX \
 
16294
postdeps_CXX \
 
16295
compiler_lib_search_path_CXX; do
 
16296
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
16297
    *[\\\\\\\`\\"\\\$]*)
 
16298
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
16299
      ;;
 
16300
    *)
 
16301
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16302
      ;;
 
16303
    esac
 
16304
done
 
16305
 
 
16306
# Double-quote double-evaled strings.
 
16307
for var in reload_cmds \
 
16308
old_postinstall_cmds \
 
16309
old_postuninstall_cmds \
 
16310
old_archive_cmds \
 
16311
extract_expsyms_cmds \
 
16312
old_archive_from_new_cmds \
 
16313
old_archive_from_expsyms_cmds \
 
16314
archive_cmds \
 
16315
archive_expsym_cmds \
 
16316
module_cmds \
 
16317
module_expsym_cmds \
 
16318
export_symbols_cmds \
 
16319
prelink_cmds \
 
16320
postlink_cmds \
 
16321
postinstall_cmds \
 
16322
postuninstall_cmds \
 
16323
finish_cmds \
 
16324
sys_lib_search_path_spec \
 
16325
sys_lib_dlsearch_path_spec \
 
16326
reload_cmds_CXX \
 
16327
old_archive_cmds_CXX \
 
16328
old_archive_from_new_cmds_CXX \
 
16329
old_archive_from_expsyms_cmds_CXX \
 
16330
archive_cmds_CXX \
 
16331
archive_expsym_cmds_CXX \
 
16332
module_cmds_CXX \
 
16333
module_expsym_cmds_CXX \
 
16334
export_symbols_cmds_CXX \
 
16335
prelink_cmds_CXX \
 
16336
postlink_cmds_CXX; do
 
16337
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
16338
    *[\\\\\\\`\\"\\\$]*)
 
16339
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
16340
      ;;
 
16341
    *)
 
16342
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
16343
      ;;
 
16344
    esac
 
16345
done
 
16346
 
 
16347
ac_aux_dir='$ac_aux_dir'
 
16348
xsi_shell='$xsi_shell'
 
16349
lt_shell_append='$lt_shell_append'
 
16350
 
 
16351
# See if we are running on zsh, and set the options which allow our
 
16352
# commands through without removal of \ escapes INIT.
 
16353
if test -n "\${ZSH_VERSION+set}" ; then
 
16354
   setopt NO_GLOB_SUBST
 
16355
fi
 
16356
 
 
16357
 
 
16358
    PACKAGE='$PACKAGE'
 
16359
    VERSION='$VERSION'
 
16360
    TIMESTAMP='$TIMESTAMP'
 
16361
    RM='$RM'
 
16362
    ofile='$ofile'
 
16363
 
 
16364
 
 
16365
 
 
16366
 
 
16367
 
 
16368
 
 
16369
_ACEOF
 
16370
 
 
16371
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16372
 
 
16373
# Handling of arguments.
 
16374
for ac_config_target in $ac_config_targets
 
16375
do
 
16376
  case $ac_config_target in
 
16377
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
16378
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
16379
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
16380
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
16381
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
16382
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
16383
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
16384
 
 
16385
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
16386
  esac
 
16387
done
 
16388
 
 
16389
 
 
16390
# If the user did not use the arguments to specify the items to instantiate,
 
16391
# then the envvar interface is used.  Set only those that are not.
 
16392
# We use the long form for the default assignment because of an extremely
 
16393
# bizarre bug on SunOS 4.1.3.
 
16394
if $ac_need_defaults; then
 
16395
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
16396
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
16397
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
16398
fi
 
16399
 
 
16400
# Have a temporary directory for convenience.  Make it in the build tree
 
16401
# simply because there is no reason against having it here, and in addition,
 
16402
# creating and moving files from /tmp can sometimes cause problems.
 
16403
# Hook for its removal unless debugging.
 
16404
# Note that there is a small window in which the directory will not be cleaned:
 
16405
# after its creation but before its name has been assigned to `$tmp'.
 
16406
$debug ||
 
16407
{
 
16408
  tmp= ac_tmp=
 
16409
  trap 'exit_status=$?
 
16410
  : "${ac_tmp:=$tmp}"
 
16411
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
16412
' 0
 
16413
  trap 'as_fn_exit 1' 1 2 13 15
 
16414
}
 
16415
# Create a (secure) tmp directory for tmp files.
 
16416
 
 
16417
{
 
16418
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
16419
  test -d "$tmp"
 
16420
}  ||
 
16421
{
 
16422
  tmp=./conf$$-$RANDOM
 
16423
  (umask 077 && mkdir "$tmp")
 
16424
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
16425
ac_tmp=$tmp
 
16426
 
 
16427
# Set up the scripts for CONFIG_FILES section.
 
16428
# No need to generate them if there are no CONFIG_FILES.
 
16429
# This happens for instance with `./config.status config.h'.
 
16430
if test -n "$CONFIG_FILES"; then
 
16431
 
 
16432
 
 
16433
ac_cr=`echo X | tr X '\015'`
 
16434
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
16435
# But we know of no other shell where ac_cr would be empty at this
 
16436
# point, so we can use a bashism as a fallback.
 
16437
if test "x$ac_cr" = x; then
 
16438
  eval ac_cr=\$\'\\r\'
 
16439
fi
 
16440
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
16441
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
16442
  ac_cs_awk_cr='\\r'
 
16443
else
 
16444
  ac_cs_awk_cr=$ac_cr
 
16445
fi
 
16446
 
 
16447
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
16448
_ACEOF
 
16449
 
 
16450
 
 
16451
{
 
16452
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
16453
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
16454
  echo "_ACEOF"
 
16455
} >conf$$subs.sh ||
 
16456
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
16457
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
16458
ac_delim='%!_!# '
 
16459
for ac_last_try in false false false false false :; do
 
16460
  . ./conf$$subs.sh ||
 
16461
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
16462
 
 
16463
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
16464
  if test $ac_delim_n = $ac_delim_num; then
 
16465
    break
 
16466
  elif $ac_last_try; then
 
16467
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
16468
  else
 
16469
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16470
  fi
 
16471
done
 
16472
rm -f conf$$subs.sh
 
16473
 
 
16474
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16475
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
16476
_ACEOF
 
16477
sed -n '
 
16478
h
 
16479
s/^/S["/; s/!.*/"]=/
 
16480
p
 
16481
g
 
16482
s/^[^!]*!//
 
16483
:repl
 
16484
t repl
 
16485
s/'"$ac_delim"'$//
 
16486
t delim
 
16487
:nl
 
16488
h
 
16489
s/\(.\{148\}\)..*/\1/
 
16490
t more1
 
16491
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
16492
p
 
16493
n
 
16494
b repl
 
16495
:more1
 
16496
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16497
p
 
16498
g
 
16499
s/.\{148\}//
 
16500
t nl
 
16501
:delim
 
16502
h
 
16503
s/\(.\{148\}\)..*/\1/
 
16504
t more2
 
16505
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
16506
p
 
16507
b
 
16508
:more2
 
16509
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16510
p
 
16511
g
 
16512
s/.\{148\}//
 
16513
t delim
 
16514
' <conf$$subs.awk | sed '
 
16515
/^[^""]/{
 
16516
  N
 
16517
  s/\n//
 
16518
}
 
16519
' >>$CONFIG_STATUS || ac_write_fail=1
 
16520
rm -f conf$$subs.awk
 
16521
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16522
_ACAWK
 
16523
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
16524
  for (key in S) S_is_set[key] = 1
 
16525
  FS = ""
 
16526
 
 
16527
}
 
16528
{
 
16529
  line = $ 0
 
16530
  nfields = split(line, field, "@")
 
16531
  substed = 0
 
16532
  len = length(field[1])
 
16533
  for (i = 2; i < nfields; i++) {
 
16534
    key = field[i]
 
16535
    keylen = length(key)
 
16536
    if (S_is_set[key]) {
 
16537
      value = S[key]
 
16538
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
16539
      len += length(value) + length(field[++i])
 
16540
      substed = 1
 
16541
    } else
 
16542
      len += 1 + keylen
 
16543
  }
 
16544
 
 
16545
  print line
 
16546
}
 
16547
 
 
16548
_ACAWK
 
16549
_ACEOF
 
16550
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16551
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
16552
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
16553
else
 
16554
  cat
 
16555
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
16556
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
16557
_ACEOF
 
16558
 
 
16559
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
16560
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
16561
# trailing colons and then remove the whole line if VPATH becomes empty
 
16562
# (actually we leave an empty line to preserve line numbers).
 
16563
if test "x$srcdir" = x.; then
 
16564
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
16565
h
 
16566
s///
 
16567
s/^/:/
 
16568
s/[      ]*$/:/
 
16569
s/:\$(srcdir):/:/g
 
16570
s/:\${srcdir}:/:/g
 
16571
s/:@srcdir@:/:/g
 
16572
s/^:*//
 
16573
s/:*$//
 
16574
x
 
16575
s/\(=[   ]*\).*/\1/
 
16576
G
 
16577
s/\n//
 
16578
s/^[^=]*=[       ]*$//
 
16579
}'
 
16580
fi
 
16581
 
 
16582
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16583
fi # test -n "$CONFIG_FILES"
 
16584
 
 
16585
# Set up the scripts for CONFIG_HEADERS section.
 
16586
# No need to generate them if there are no CONFIG_HEADERS.
 
16587
# This happens for instance with `./config.status Makefile'.
 
16588
if test -n "$CONFIG_HEADERS"; then
 
16589
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
16590
BEGIN {
 
16591
_ACEOF
 
16592
 
 
16593
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
16594
# here-document in config.status, that substitutes the proper values into
 
16595
# config.h.in to produce config.h.
 
16596
 
 
16597
# Create a delimiter string that does not exist in confdefs.h, to ease
 
16598
# handling of long lines.
 
16599
ac_delim='%!_!# '
 
16600
for ac_last_try in false false :; do
 
16601
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
16602
  if test -z "$ac_tt"; then
 
16603
    break
 
16604
  elif $ac_last_try; then
 
16605
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
16606
  else
 
16607
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16608
  fi
 
16609
done
 
16610
 
 
16611
# For the awk script, D is an array of macro values keyed by name,
 
16612
# likewise P contains macro parameters if any.  Preserve backslash
 
16613
# newline sequences.
 
16614
 
 
16615
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
16616
sed -n '
 
16617
s/.\{148\}/&'"$ac_delim"'/g
 
16618
t rset
 
16619
:rset
 
16620
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
16621
t def
 
16622
d
 
16623
:def
 
16624
s/\\$//
 
16625
t bsnl
 
16626
s/["\\]/\\&/g
 
16627
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16628
D["\1"]=" \3"/p
 
16629
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
16630
d
 
16631
:bsnl
 
16632
s/["\\]/\\&/g
 
16633
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16634
D["\1"]=" \3\\\\\\n"\\/p
 
16635
t cont
 
16636
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
16637
t cont
 
16638
d
 
16639
:cont
 
16640
n
 
16641
s/.\{148\}/&'"$ac_delim"'/g
 
16642
t clear
 
16643
:clear
 
16644
s/\\$//
 
16645
t bsnlc
 
16646
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
16647
d
 
16648
:bsnlc
 
16649
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
16650
b cont
 
16651
' <confdefs.h | sed '
 
16652
s/'"$ac_delim"'/"\\\
 
16653
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
16654
 
 
16655
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16656
  for (key in D) D_is_set[key] = 1
 
16657
  FS = ""
 
16658
}
 
16659
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
16660
  line = \$ 0
 
16661
  split(line, arg, " ")
 
16662
  if (arg[1] == "#") {
 
16663
    defundef = arg[2]
 
16664
    mac1 = arg[3]
 
16665
  } else {
 
16666
    defundef = substr(arg[1], 2)
 
16667
    mac1 = arg[2]
 
16668
  }
 
16669
  split(mac1, mac2, "(") #)
 
16670
  macro = mac2[1]
 
16671
  prefix = substr(line, 1, index(line, defundef) - 1)
 
16672
  if (D_is_set[macro]) {
 
16673
    # Preserve the white space surrounding the "#".
 
16674
    print prefix "define", macro P[macro] D[macro]
 
16675
    next
 
16676
  } else {
 
16677
    # Replace #undef with comments.  This is necessary, for example,
 
16678
    # in the case of _POSIX_SOURCE, which is predefined and required
 
16679
    # on some systems where configure will not decide to define it.
 
16680
    if (defundef == "undef") {
 
16681
      print "/*", prefix defundef, macro, "*/"
 
16682
      next
 
16683
    }
 
16684
  }
 
16685
}
 
16686
{ print }
 
16687
_ACAWK
 
16688
_ACEOF
 
16689
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16690
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
16691
fi # test -n "$CONFIG_HEADERS"
 
16692
 
 
16693
 
 
16694
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
16695
shift
 
16696
for ac_tag
 
16697
do
 
16698
  case $ac_tag in
 
16699
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
16700
  esac
 
16701
  case $ac_mode$ac_tag in
 
16702
  :[FHL]*:*);;
 
16703
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
16704
  :[FH]-) ac_tag=-:-;;
 
16705
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
16706
  esac
 
16707
  ac_save_IFS=$IFS
 
16708
  IFS=:
 
16709
  set x $ac_tag
 
16710
  IFS=$ac_save_IFS
 
16711
  shift
 
16712
  ac_file=$1
 
16713
  shift
 
16714
 
 
16715
  case $ac_mode in
 
16716
  :L) ac_source=$1;;
 
16717
  :[FH])
 
16718
    ac_file_inputs=
 
16719
    for ac_f
 
16720
    do
 
16721
      case $ac_f in
 
16722
      -) ac_f="$ac_tmp/stdin";;
 
16723
      *) # Look for the file first in the build tree, then in the source tree
 
16724
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
16725
         # because $ac_f cannot contain `:'.
 
16726
         test -f "$ac_f" ||
 
16727
           case $ac_f in
 
16728
           [\\/$]*) false;;
 
16729
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
16730
           esac ||
 
16731
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
16732
      esac
 
16733
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
16734
      as_fn_append ac_file_inputs " '$ac_f'"
 
16735
    done
 
16736
 
 
16737
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16738
    # use $as_me), people would be surprised to read:
 
16739
    #    /* config.h.  Generated by config.status.  */
 
16740
    configure_input='Generated from '`
 
16741
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
16742
        `' by configure.'
 
16743
    if test x"$ac_file" != x-; then
 
16744
      configure_input="$ac_file.  $configure_input"
 
16745
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
16746
$as_echo "$as_me: creating $ac_file" >&6;}
 
16747
    fi
 
16748
    # Neutralize special characters interpreted by sed in replacement strings.
 
16749
    case $configure_input in #(
 
16750
    *\&* | *\|* | *\\* )
 
16751
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
16752
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
16753
    *) ac_sed_conf_input=$configure_input;;
 
16754
    esac
 
16755
 
 
16756
    case $ac_tag in
 
16757
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
16758
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
16759
    esac
 
16760
    ;;
 
16761
  esac
 
16762
 
 
16763
  ac_dir=`$as_dirname -- "$ac_file" ||
 
16764
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16765
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16766
         X"$ac_file" : 'X\(//\)$' \| \
 
16767
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
16768
$as_echo X"$ac_file" |
 
16769
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16770
            s//\1/
 
16771
            q
 
16772
          }
 
16773
          /^X\(\/\/\)[^/].*/{
 
16774
            s//\1/
 
16775
            q
 
16776
          }
 
16777
          /^X\(\/\/\)$/{
 
16778
            s//\1/
 
16779
            q
 
16780
          }
 
16781
          /^X\(\/\).*/{
 
16782
            s//\1/
 
16783
            q
 
16784
          }
 
16785
          s/.*/./; q'`
 
16786
  as_dir="$ac_dir"; as_fn_mkdir_p
 
16787
  ac_builddir=.
 
16788
 
 
16789
case "$ac_dir" in
 
16790
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16791
*)
 
16792
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
16793
  # A ".." for each directory in $ac_dir_suffix.
 
16794
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
16795
  case $ac_top_builddir_sub in
 
16796
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16797
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
16798
  esac ;;
 
16799
esac
 
16800
ac_abs_top_builddir=$ac_pwd
 
16801
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
16802
# for backward compatibility:
 
16803
ac_top_builddir=$ac_top_build_prefix
 
16804
 
 
16805
case $srcdir in
 
16806
  .)  # We are building in place.
 
16807
    ac_srcdir=.
 
16808
    ac_top_srcdir=$ac_top_builddir_sub
 
16809
    ac_abs_top_srcdir=$ac_pwd ;;
 
16810
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
16811
    ac_srcdir=$srcdir$ac_dir_suffix;
 
16812
    ac_top_srcdir=$srcdir
 
16813
    ac_abs_top_srcdir=$srcdir ;;
 
16814
  *) # Relative name.
 
16815
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
16816
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
16817
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
16818
esac
 
16819
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
16820
 
 
16821
 
 
16822
  case $ac_mode in
 
16823
  :F)
 
16824
  #
 
16825
  # CONFIG_FILE
 
16826
  #
 
16827
 
 
16828
  case $INSTALL in
 
16829
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
16830
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
16831
  esac
 
16832
  ac_MKDIR_P=$MKDIR_P
 
16833
  case $MKDIR_P in
 
16834
  [\\/$]* | ?:[\\/]* ) ;;
 
16835
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
16836
  esac
 
16837
_ACEOF
 
16838
 
 
16839
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16840
# If the template does not know about datarootdir, expand it.
 
16841
# FIXME: This hack should be removed a few years after 2.60.
 
16842
ac_datarootdir_hack=; ac_datarootdir_seen=
 
16843
ac_sed_dataroot='
 
16844
/datarootdir/ {
 
16845
  p
 
16846
  q
 
16847
}
 
16848
/@datadir@/p
 
16849
/@docdir@/p
 
16850
/@infodir@/p
 
16851
/@localedir@/p
 
16852
/@mandir@/p'
 
16853
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
16854
*datarootdir*) ac_datarootdir_seen=yes;;
 
16855
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
16856
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
16857
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
16858
_ACEOF
 
16859
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16860
  ac_datarootdir_hack='
 
16861
  s&@datadir@&$datadir&g
 
16862
  s&@docdir@&$docdir&g
 
16863
  s&@infodir@&$infodir&g
 
16864
  s&@localedir@&$localedir&g
 
16865
  s&@mandir@&$mandir&g
 
16866
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
16867
esac
 
16868
_ACEOF
 
16869
 
 
16870
# Neutralize VPATH when `$srcdir' = `.'.
 
16871
# Shell code in configure.ac might set extrasub.
 
16872
# FIXME: do we really want to maintain this feature?
 
16873
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16874
ac_sed_extra="$ac_vpsub
 
16875
$extrasub
 
16876
_ACEOF
 
16877
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16878
:t
 
16879
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
16880
s|@configure_input@|$ac_sed_conf_input|;t t
 
16881
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
16882
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
16883
s&@srcdir@&$ac_srcdir&;t t
 
16884
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
16885
s&@top_srcdir@&$ac_top_srcdir&;t t
 
16886
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
16887
s&@builddir@&$ac_builddir&;t t
 
16888
s&@abs_builddir@&$ac_abs_builddir&;t t
 
16889
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
16890
s&@INSTALL@&$ac_INSTALL&;t t
 
16891
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
16892
$ac_datarootdir_hack
 
16893
"
 
16894
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
16895
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
16896
 
 
16897
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
16898
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
16899
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
16900
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
16901
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16902
which seems to be undefined.  Please make sure it is defined" >&5
 
16903
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16904
which seems to be undefined.  Please make sure it is defined" >&2;}
 
16905
 
 
16906
  rm -f "$ac_tmp/stdin"
 
16907
  case $ac_file in
 
16908
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
16909
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
16910
  esac \
 
16911
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
16912
 ;;
 
16913
  :H)
 
16914
  #
 
16915
  # CONFIG_HEADER
 
16916
  #
 
16917
  if test x"$ac_file" != x-; then
 
16918
    {
 
16919
      $as_echo "/* $configure_input  */" \
 
16920
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
16921
    } >"$ac_tmp/config.h" \
 
16922
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
16923
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
16924
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
16925
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
16926
    else
 
16927
      rm -f "$ac_file"
 
16928
      mv "$ac_tmp/config.h" "$ac_file" \
 
16929
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
16930
    fi
 
16931
  else
 
16932
    $as_echo "/* $configure_input  */" \
 
16933
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
16934
      || as_fn_error $? "could not create -" "$LINENO" 5
 
16935
  fi
 
16936
# Compute "$ac_file"'s index in $config_headers.
 
16937
_am_arg="$ac_file"
 
16938
_am_stamp_count=1
 
16939
for _am_header in $config_headers :; do
 
16940
  case $_am_header in
 
16941
    $_am_arg | $_am_arg:* )
 
16942
      break ;;
 
16943
    * )
 
16944
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
16945
  esac
 
16946
done
 
16947
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
16948
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16949
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
16950
         X"$_am_arg" : 'X\(//\)$' \| \
 
16951
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
16952
$as_echo X"$_am_arg" |
 
16953
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16954
            s//\1/
 
16955
            q
 
16956
          }
 
16957
          /^X\(\/\/\)[^/].*/{
 
16958
            s//\1/
 
16959
            q
 
16960
          }
 
16961
          /^X\(\/\/\)$/{
 
16962
            s//\1/
 
16963
            q
 
16964
          }
 
16965
          /^X\(\/\).*/{
 
16966
            s//\1/
 
16967
            q
 
16968
          }
 
16969
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
16970
 ;;
 
16971
 
 
16972
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
16973
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
16974
 ;;
 
16975
  esac
 
16976
 
 
16977
 
 
16978
  case $ac_file$ac_mode in
 
16979
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
16980
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
16981
  # are listed without --file.  Let's play safe and only enable the eval
 
16982
  # if we detect the quoting.
 
16983
  case $CONFIG_FILES in
 
16984
  *\'*) eval set x "$CONFIG_FILES" ;;
 
16985
  *)   set x $CONFIG_FILES ;;
 
16986
  esac
 
16987
  shift
 
16988
  for mf
 
16989
  do
 
16990
    # Strip MF so we end up with the name of the file.
 
16991
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
16992
    # Check whether this is an Automake generated Makefile or not.
 
16993
    # We used to match only the files named `Makefile.in', but
 
16994
    # some people rename them; so instead we look at the file content.
 
16995
    # Grep'ing the first line is not enough: some people post-process
 
16996
    # each Makefile.in and add a new line on top of each file to say so.
 
16997
    # Grep'ing the whole file is not good either: AIX grep has a line
 
16998
    # limit of 2048, but all sed's we know have understand at least 4000.
 
16999
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
17000
      dirpart=`$as_dirname -- "$mf" ||
 
17001
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17002
         X"$mf" : 'X\(//\)[^/]' \| \
 
17003
         X"$mf" : 'X\(//\)$' \| \
 
17004
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
17005
$as_echo X"$mf" |
 
17006
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17007
            s//\1/
 
17008
            q
 
17009
          }
 
17010
          /^X\(\/\/\)[^/].*/{
 
17011
            s//\1/
 
17012
            q
 
17013
          }
 
17014
          /^X\(\/\/\)$/{
 
17015
            s//\1/
 
17016
            q
 
17017
          }
 
17018
          /^X\(\/\).*/{
 
17019
            s//\1/
 
17020
            q
 
17021
          }
 
17022
          s/.*/./; q'`
 
17023
    else
 
17024
      continue
 
17025
    fi
 
17026
    # Extract the definition of DEPDIR, am__include, and am__quote
 
17027
    # from the Makefile without running `make'.
 
17028
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
17029
    test -z "$DEPDIR" && continue
 
17030
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
17031
    test -z "am__include" && continue
 
17032
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
17033
    # When using ansi2knr, U may be empty or an underscore; expand it
 
17034
    U=`sed -n 's/^U = //p' < "$mf"`
 
17035
    # Find all dependency output files, they are included files with
 
17036
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
17037
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
17038
    # expansion.
 
17039
    for file in `sed -n "
 
17040
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
17041
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
17042
      # Make sure the directory exists.
 
17043
      test -f "$dirpart/$file" && continue
 
17044
      fdir=`$as_dirname -- "$file" ||
 
17045
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
17046
         X"$file" : 'X\(//\)[^/]' \| \
 
17047
         X"$file" : 'X\(//\)$' \| \
 
17048
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
17049
$as_echo X"$file" |
 
17050
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
17051
            s//\1/
 
17052
            q
 
17053
          }
 
17054
          /^X\(\/\/\)[^/].*/{
 
17055
            s//\1/
 
17056
            q
 
17057
          }
 
17058
          /^X\(\/\/\)$/{
 
17059
            s//\1/
 
17060
            q
 
17061
          }
 
17062
          /^X\(\/\).*/{
 
17063
            s//\1/
 
17064
            q
 
17065
          }
 
17066
          s/.*/./; q'`
 
17067
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
17068
      # echo "creating $dirpart/$file"
 
17069
      echo '# dummy' > "$dirpart/$file"
 
17070
    done
 
17071
  done
 
17072
}
 
17073
 ;;
 
17074
    "libtool":C)
 
17075
 
 
17076
    # See if we are running on zsh, and set the options which allow our
 
17077
    # commands through without removal of \ escapes.
 
17078
    if test -n "${ZSH_VERSION+set}" ; then
 
17079
      setopt NO_GLOB_SUBST
 
17080
    fi
 
17081
 
 
17082
    cfgfile="${ofile}T"
 
17083
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
17084
    $RM "$cfgfile"
 
17085
 
 
17086
    cat <<_LT_EOF >> "$cfgfile"
 
17087
#! $SHELL
 
17088
 
 
17089
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
17090
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
17091
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17092
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
17093
#
 
17094
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
17095
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
17096
#                 Foundation, Inc.
 
17097
#   Written by Gordon Matzigkeit, 1996
 
17098
#
 
17099
#   This file is part of GNU Libtool.
 
17100
#
 
17101
# GNU Libtool is free software; you can redistribute it and/or
 
17102
# modify it under the terms of the GNU General Public License as
 
17103
# published by the Free Software Foundation; either version 2 of
 
17104
# the License, or (at your option) any later version.
 
17105
#
 
17106
# As a special exception to the GNU General Public License,
 
17107
# if you distribute this file as part of a program or library that
 
17108
# is built using GNU Libtool, you may include this file under the
 
17109
# same distribution terms that you use for the rest of that program.
 
17110
#
 
17111
# GNU Libtool is distributed in the hope that it will be useful,
 
17112
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17113
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17114
# GNU General Public License for more details.
 
17115
#
 
17116
# You should have received a copy of the GNU General Public License
 
17117
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
17118
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
17119
# obtained by writing to the Free Software Foundation, Inc.,
 
17120
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17121
 
 
17122
 
 
17123
# The names of the tagged configurations supported by this script.
 
17124
available_tags="CXX "
 
17125
 
 
17126
# ### BEGIN LIBTOOL CONFIG
 
17127
 
 
17128
# Which release of libtool.m4 was used?
 
17129
macro_version=$macro_version
 
17130
macro_revision=$macro_revision
 
17131
 
 
17132
# Whether or not to build shared libraries.
 
17133
build_libtool_libs=$enable_shared
 
17134
 
 
17135
# Whether or not to build static libraries.
 
17136
build_old_libs=$enable_static
 
17137
 
 
17138
# What type of objects to build.
 
17139
pic_mode=$pic_mode
 
17140
 
 
17141
# Whether or not to optimize for fast installation.
 
17142
fast_install=$enable_fast_install
 
17143
 
 
17144
# Shell to use when invoking shell scripts.
 
17145
SHELL=$lt_SHELL
 
17146
 
 
17147
# An echo program that protects backslashes.
 
17148
ECHO=$lt_ECHO
 
17149
 
 
17150
# The PATH separator for the build system.
 
17151
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
17152
 
 
17153
# The host system.
 
17154
host_alias=$host_alias
 
17155
host=$host
 
17156
host_os=$host_os
 
17157
 
 
17158
# The build system.
 
17159
build_alias=$build_alias
 
17160
build=$build
 
17161
build_os=$build_os
 
17162
 
 
17163
# A sed program that does not truncate output.
 
17164
SED=$lt_SED
 
17165
 
 
17166
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
17167
Xsed="\$SED -e 1s/^X//"
 
17168
 
 
17169
# A grep program that handles long lines.
 
17170
GREP=$lt_GREP
 
17171
 
 
17172
# An ERE matcher.
 
17173
EGREP=$lt_EGREP
 
17174
 
 
17175
# A literal string matcher.
 
17176
FGREP=$lt_FGREP
 
17177
 
 
17178
# A BSD- or MS-compatible name lister.
 
17179
NM=$lt_NM
 
17180
 
 
17181
# Whether we need soft or hard links.
 
17182
LN_S=$lt_LN_S
 
17183
 
 
17184
# What is the maximum length of a command?
 
17185
max_cmd_len=$max_cmd_len
 
17186
 
 
17187
# Object file suffix (normally "o").
 
17188
objext=$ac_objext
 
17189
 
 
17190
# Executable file suffix (normally "").
 
17191
exeext=$exeext
 
17192
 
 
17193
# whether the shell understands "unset".
 
17194
lt_unset=$lt_unset
 
17195
 
 
17196
# turn spaces into newlines.
 
17197
SP2NL=$lt_lt_SP2NL
 
17198
 
 
17199
# turn newlines into spaces.
 
17200
NL2SP=$lt_lt_NL2SP
 
17201
 
 
17202
# convert \$build file names to \$host format.
 
17203
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
17204
 
 
17205
# convert \$build files to toolchain format.
 
17206
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
17207
 
 
17208
# An object symbol dumper.
 
17209
OBJDUMP=$lt_OBJDUMP
 
17210
 
 
17211
# Method to check whether dependent libraries are shared objects.
 
17212
deplibs_check_method=$lt_deplibs_check_method
 
17213
 
 
17214
# Command to use when deplibs_check_method = "file_magic".
 
17215
file_magic_cmd=$lt_file_magic_cmd
 
17216
 
 
17217
# How to find potential files when deplibs_check_method = "file_magic".
 
17218
file_magic_glob=$lt_file_magic_glob
 
17219
 
 
17220
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
17221
want_nocaseglob=$lt_want_nocaseglob
 
17222
 
 
17223
# DLL creation program.
 
17224
DLLTOOL=$lt_DLLTOOL
 
17225
 
 
17226
# Command to associate shared and link libraries.
 
17227
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
17228
 
 
17229
# The archiver.
 
17230
AR=$lt_AR
 
17231
 
 
17232
# Flags to create an archive.
 
17233
AR_FLAGS=$lt_AR_FLAGS
 
17234
 
 
17235
# How to feed a file listing to the archiver.
 
17236
archiver_list_spec=$lt_archiver_list_spec
 
17237
 
 
17238
# A symbol stripping program.
 
17239
STRIP=$lt_STRIP
 
17240
 
 
17241
# Commands used to install an old-style archive.
 
17242
RANLIB=$lt_RANLIB
 
17243
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17244
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17245
 
 
17246
# Whether to use a lock for old archive extraction.
 
17247
lock_old_archive_extraction=$lock_old_archive_extraction
 
17248
 
 
17249
# A C compiler.
 
17250
LTCC=$lt_CC
 
17251
 
 
17252
# LTCC compiler flags.
 
17253
LTCFLAGS=$lt_CFLAGS
 
17254
 
 
17255
# Take the output of nm and produce a listing of raw symbols and C names.
 
17256
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17257
 
 
17258
# Transform the output of nm in a proper C declaration.
 
17259
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17260
 
 
17261
# Transform the output of nm in a C name address pair.
 
17262
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17263
 
 
17264
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
17265
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
17266
 
 
17267
# Specify filename containing input files for \$NM.
 
17268
nm_file_list_spec=$lt_nm_file_list_spec
 
17269
 
 
17270
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
17271
lt_sysroot=$lt_sysroot
 
17272
 
 
17273
# The name of the directory that contains temporary libtool files.
 
17274
objdir=$objdir
 
17275
 
 
17276
# Used to examine libraries when file_magic_cmd begins with "file".
 
17277
MAGIC_CMD=$MAGIC_CMD
 
17278
 
 
17279
# Must we lock files when doing compilation?
 
17280
need_locks=$lt_need_locks
 
17281
 
 
17282
# Manifest tool.
 
17283
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
17284
 
 
17285
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
17286
DSYMUTIL=$lt_DSYMUTIL
 
17287
 
 
17288
# Tool to change global to local symbols on Mac OS X.
 
17289
NMEDIT=$lt_NMEDIT
 
17290
 
 
17291
# Tool to manipulate fat objects and archives on Mac OS X.
 
17292
LIPO=$lt_LIPO
 
17293
 
 
17294
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
17295
OTOOL=$lt_OTOOL
 
17296
 
 
17297
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
17298
OTOOL64=$lt_OTOOL64
 
17299
 
 
17300
# Old archive suffix (normally "a").
 
17301
libext=$libext
 
17302
 
 
17303
# Shared library suffix (normally ".so").
 
17304
shrext_cmds=$lt_shrext_cmds
 
17305
 
 
17306
# The commands to extract the exported symbol list from a shared archive.
 
17307
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17308
 
 
17309
# Variables whose values should be saved in libtool wrapper scripts and
 
17310
# restored at link time.
 
17311
variables_saved_for_relink=$lt_variables_saved_for_relink
 
17312
 
 
17313
# Do we need the "lib" prefix for modules?
 
17314
need_lib_prefix=$need_lib_prefix
 
17315
 
 
17316
# Do we need a version for libraries?
 
17317
need_version=$need_version
 
17318
 
 
17319
# Library versioning type.
 
17320
version_type=$version_type
 
17321
 
 
17322
# Shared library runtime path variable.
 
17323
runpath_var=$runpath_var
 
17324
 
 
17325
# Shared library path variable.
 
17326
shlibpath_var=$shlibpath_var
 
17327
 
 
17328
# Is shlibpath searched before the hard-coded library search path?
 
17329
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17330
 
 
17331
# Format of library name prefix.
 
17332
libname_spec=$lt_libname_spec
 
17333
 
 
17334
# List of archive names.  First name is the real one, the rest are links.
 
17335
# The last name is the one that the linker finds with -lNAME
 
17336
library_names_spec=$lt_library_names_spec
 
17337
 
 
17338
# The coded name of the library, if different from the real name.
 
17339
soname_spec=$lt_soname_spec
 
17340
 
 
17341
# Permission mode override for installation of shared libraries.
 
17342
install_override_mode=$lt_install_override_mode
 
17343
 
 
17344
# Command to use after installation of a shared archive.
 
17345
postinstall_cmds=$lt_postinstall_cmds
 
17346
 
 
17347
# Command to use after uninstallation of a shared archive.
 
17348
postuninstall_cmds=$lt_postuninstall_cmds
 
17349
 
 
17350
# Commands used to finish a libtool library installation in a directory.
 
17351
finish_cmds=$lt_finish_cmds
 
17352
 
 
17353
# As "finish_cmds", except a single script fragment to be evaled but
 
17354
# not shown.
 
17355
finish_eval=$lt_finish_eval
 
17356
 
 
17357
# Whether we should hardcode library paths into libraries.
 
17358
hardcode_into_libs=$hardcode_into_libs
 
17359
 
 
17360
# Compile-time system search path for libraries.
 
17361
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17362
 
 
17363
# Run-time system search path for libraries.
 
17364
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17365
 
 
17366
# Whether dlopen is supported.
 
17367
dlopen_support=$enable_dlopen
 
17368
 
 
17369
# Whether dlopen of programs is supported.
 
17370
dlopen_self=$enable_dlopen_self
 
17371
 
 
17372
# Whether dlopen of statically linked programs is supported.
 
17373
dlopen_self_static=$enable_dlopen_self_static
 
17374
 
 
17375
# Commands to strip libraries.
 
17376
old_striplib=$lt_old_striplib
 
17377
striplib=$lt_striplib
 
17378
 
 
17379
 
 
17380
# The linker used to build libraries.
 
17381
LD=$lt_LD
 
17382
 
 
17383
# How to create reloadable object files.
 
17384
reload_flag=$lt_reload_flag
 
17385
reload_cmds=$lt_reload_cmds
 
17386
 
 
17387
# Commands used to build an old-style archive.
 
17388
old_archive_cmds=$lt_old_archive_cmds
 
17389
 
 
17390
# A language specific compiler.
 
17391
CC=$lt_compiler
 
17392
 
 
17393
# Is the compiler the GNU compiler?
 
17394
with_gcc=$GCC
 
17395
 
 
17396
# Compiler flag to turn off builtin functions.
 
17397
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
17398
 
 
17399
# Additional compiler flags for building library objects.
 
17400
pic_flag=$lt_lt_prog_compiler_pic
 
17401
 
 
17402
# How to pass a linker flag through the compiler.
 
17403
wl=$lt_lt_prog_compiler_wl
 
17404
 
 
17405
# Compiler flag to prevent dynamic linking.
 
17406
link_static_flag=$lt_lt_prog_compiler_static
 
17407
 
 
17408
# Does compiler simultaneously support -c and -o options?
 
17409
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
17410
 
 
17411
# Whether or not to add -lc for building shared libraries.
 
17412
build_libtool_need_lc=$archive_cmds_need_lc
 
17413
 
 
17414
# Whether or not to disallow shared libs when runtime libs are static.
 
17415
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
17416
 
 
17417
# Compiler flag to allow reflexive dlopens.
 
17418
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
17419
 
 
17420
# Compiler flag to generate shared objects directly from archives.
 
17421
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
17422
 
 
17423
# Whether the compiler copes with passing no objects directly.
 
17424
compiler_needs_object=$lt_compiler_needs_object
 
17425
 
 
17426
# Create an old-style archive from a shared archive.
 
17427
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
17428
 
 
17429
# Create a temporary old-style archive to link instead of a shared archive.
 
17430
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
17431
 
 
17432
# Commands used to build a shared archive.
 
17433
archive_cmds=$lt_archive_cmds
 
17434
archive_expsym_cmds=$lt_archive_expsym_cmds
 
17435
 
 
17436
# Commands used to build a loadable module if different from building
 
17437
# a shared archive.
 
17438
module_cmds=$lt_module_cmds
 
17439
module_expsym_cmds=$lt_module_expsym_cmds
 
17440
 
 
17441
# Whether we are building with GNU ld or not.
 
17442
with_gnu_ld=$lt_with_gnu_ld
 
17443
 
 
17444
# Flag that allows shared libraries with undefined symbols to be built.
 
17445
allow_undefined_flag=$lt_allow_undefined_flag
 
17446
 
 
17447
# Flag that enforces no undefined symbols.
 
17448
no_undefined_flag=$lt_no_undefined_flag
 
17449
 
 
17450
# Flag to hardcode \$libdir into a binary during linking.
 
17451
# This must work even if \$libdir does not exist
 
17452
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
17453
 
 
17454
# Whether we need a single "-rpath" flag with a separated argument.
 
17455
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
17456
 
 
17457
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17458
# DIR into the resulting binary.
 
17459
hardcode_direct=$hardcode_direct
 
17460
 
 
17461
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17462
# DIR into the resulting binary and the resulting library dependency is
 
17463
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17464
# library is relocated.
 
17465
hardcode_direct_absolute=$hardcode_direct_absolute
 
17466
 
 
17467
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17468
# into the resulting binary.
 
17469
hardcode_minus_L=$hardcode_minus_L
 
17470
 
 
17471
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17472
# into the resulting binary.
 
17473
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
17474
 
 
17475
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17476
# into the library and all subsequent libraries and executables linked
 
17477
# against it.
 
17478
hardcode_automatic=$hardcode_automatic
 
17479
 
 
17480
# Set to yes if linker adds runtime paths of dependent libraries
 
17481
# to runtime path list.
 
17482
inherit_rpath=$inherit_rpath
 
17483
 
 
17484
# Whether libtool must link a program against all its dependency libraries.
 
17485
link_all_deplibs=$link_all_deplibs
 
17486
 
 
17487
# Set to "yes" if exported symbols are required.
 
17488
always_export_symbols=$always_export_symbols
 
17489
 
 
17490
# The commands to list exported symbols.
 
17491
export_symbols_cmds=$lt_export_symbols_cmds
 
17492
 
 
17493
# Symbols that should not be listed in the preloaded symbols.
 
17494
exclude_expsyms=$lt_exclude_expsyms
 
17495
 
 
17496
# Symbols that must always be exported.
 
17497
include_expsyms=$lt_include_expsyms
 
17498
 
 
17499
# Commands necessary for linking programs (against libraries) with templates.
 
17500
prelink_cmds=$lt_prelink_cmds
 
17501
 
 
17502
# Commands necessary for finishing linking programs.
 
17503
postlink_cmds=$lt_postlink_cmds
 
17504
 
 
17505
# Specify filename containing input files.
 
17506
file_list_spec=$lt_file_list_spec
 
17507
 
 
17508
# How to hardcode a shared library path into an executable.
 
17509
hardcode_action=$hardcode_action
 
17510
 
 
17511
# The directories searched by this compiler when creating a shared library.
 
17512
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
17513
 
 
17514
# Dependencies to place before and after the objects being linked to
 
17515
# create a shared library.
 
17516
predep_objects=$lt_predep_objects
 
17517
postdep_objects=$lt_postdep_objects
 
17518
predeps=$lt_predeps
 
17519
postdeps=$lt_postdeps
 
17520
 
 
17521
# The library search path used internally by the compiler when linking
 
17522
# a shared library.
 
17523
compiler_lib_search_path=$lt_compiler_lib_search_path
 
17524
 
 
17525
# ### END LIBTOOL CONFIG
 
17526
 
 
17527
_LT_EOF
 
17528
 
 
17529
  case $host_os in
 
17530
  aix3*)
 
17531
    cat <<\_LT_EOF >> "$cfgfile"
 
17532
# AIX sometimes has problems with the GCC collect2 program.  For some
 
17533
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
17534
# vanish in a puff of smoke.
 
17535
if test "X${COLLECT_NAMES+set}" != Xset; then
 
17536
  COLLECT_NAMES=
 
17537
  export COLLECT_NAMES
 
17538
fi
 
17539
_LT_EOF
 
17540
    ;;
 
17541
  esac
 
17542
 
 
17543
 
 
17544
ltmain="$ac_aux_dir/ltmain.sh"
 
17545
 
 
17546
 
 
17547
  # We use sed instead of cat because bash on DJGPP gets confused if
 
17548
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
17549
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
17550
  # is reportedly fixed, but why not run on old versions too?
 
17551
  sed '$q' "$ltmain" >> "$cfgfile" \
 
17552
     || (rm -f "$cfgfile"; exit 1)
 
17553
 
 
17554
  if test x"$xsi_shell" = xyes; then
 
17555
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
17556
func_dirname ()\
 
17557
{\
 
17558
\    case ${1} in\
 
17559
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
17560
\      *  ) func_dirname_result="${3}" ;;\
 
17561
\    esac\
 
17562
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
17563
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17564
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17565
test 0 -eq $? || _lt_function_replace_fail=:
 
17566
 
 
17567
 
 
17568
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
17569
func_basename ()\
 
17570
{\
 
17571
\    func_basename_result="${1##*/}"\
 
17572
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
17573
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17574
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17575
test 0 -eq $? || _lt_function_replace_fail=:
 
17576
 
 
17577
 
 
17578
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
17579
func_dirname_and_basename ()\
 
17580
{\
 
17581
\    case ${1} in\
 
17582
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
17583
\      *  ) func_dirname_result="${3}" ;;\
 
17584
\    esac\
 
17585
\    func_basename_result="${1##*/}"\
 
17586
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
17587
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17588
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17589
test 0 -eq $? || _lt_function_replace_fail=:
 
17590
 
 
17591
 
 
17592
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
17593
func_stripname ()\
 
17594
{\
 
17595
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
17596
\    # positional parameters, so assign one to ordinary parameter first.\
 
17597
\    func_stripname_result=${3}\
 
17598
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
17599
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
17600
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
17601
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17602
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17603
test 0 -eq $? || _lt_function_replace_fail=:
 
17604
 
 
17605
 
 
17606
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
17607
func_split_long_opt ()\
 
17608
{\
 
17609
\    func_split_long_opt_name=${1%%=*}\
 
17610
\    func_split_long_opt_arg=${1#*=}\
 
17611
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
17612
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17613
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17614
test 0 -eq $? || _lt_function_replace_fail=:
 
17615
 
 
17616
 
 
17617
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
17618
func_split_short_opt ()\
 
17619
{\
 
17620
\    func_split_short_opt_arg=${1#??}\
 
17621
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
17622
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
17623
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17624
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17625
test 0 -eq $? || _lt_function_replace_fail=:
 
17626
 
 
17627
 
 
17628
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
17629
func_lo2o ()\
 
17630
{\
 
17631
\    case ${1} in\
 
17632
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
17633
\      *)    func_lo2o_result=${1} ;;\
 
17634
\    esac\
 
17635
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
17636
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17637
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17638
test 0 -eq $? || _lt_function_replace_fail=:
 
17639
 
 
17640
 
 
17641
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
17642
func_xform ()\
 
17643
{\
 
17644
    func_xform_result=${1%.*}.lo\
 
17645
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
17646
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17647
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17648
test 0 -eq $? || _lt_function_replace_fail=:
 
17649
 
 
17650
 
 
17651
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
17652
func_arith ()\
 
17653
{\
 
17654
    func_arith_result=$(( $* ))\
 
17655
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
17656
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17657
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17658
test 0 -eq $? || _lt_function_replace_fail=:
 
17659
 
 
17660
 
 
17661
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
17662
func_len ()\
 
17663
{\
 
17664
    func_len_result=${#1}\
 
17665
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
17666
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17667
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17668
test 0 -eq $? || _lt_function_replace_fail=:
 
17669
 
 
17670
fi
 
17671
 
 
17672
if test x"$lt_shell_append" = xyes; then
 
17673
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
17674
func_append ()\
 
17675
{\
 
17676
    eval "${1}+=\\${2}"\
 
17677
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
17678
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17679
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17680
test 0 -eq $? || _lt_function_replace_fail=:
 
17681
 
 
17682
 
 
17683
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
17684
func_append_quoted ()\
 
17685
{\
 
17686
\    func_quote_for_eval "${2}"\
 
17687
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
17688
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
17689
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17690
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17691
test 0 -eq $? || _lt_function_replace_fail=:
 
17692
 
 
17693
 
 
17694
  # Save a `func_append' function call where possible by direct use of '+='
 
17695
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
17696
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17697
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17698
  test 0 -eq $? || _lt_function_replace_fail=:
 
17699
else
 
17700
  # Save a `func_append' function call even when '+=' is not available
 
17701
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
17702
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
17703
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
17704
  test 0 -eq $? || _lt_function_replace_fail=:
 
17705
fi
 
17706
 
 
17707
if test x"$_lt_function_replace_fail" = x":"; then
 
17708
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
17709
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
17710
fi
 
17711
 
 
17712
 
 
17713
   mv -f "$cfgfile" "$ofile" ||
 
17714
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
17715
  chmod +x "$ofile"
 
17716
 
 
17717
 
 
17718
    cat <<_LT_EOF >> "$ofile"
 
17719
 
 
17720
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
17721
 
 
17722
# The linker used to build libraries.
 
17723
LD=$lt_LD_CXX
 
17724
 
 
17725
# How to create reloadable object files.
 
17726
reload_flag=$lt_reload_flag_CXX
 
17727
reload_cmds=$lt_reload_cmds_CXX
 
17728
 
 
17729
# Commands used to build an old-style archive.
 
17730
old_archive_cmds=$lt_old_archive_cmds_CXX
 
17731
 
 
17732
# A language specific compiler.
 
17733
CC=$lt_compiler_CXX
 
17734
 
 
17735
# Is the compiler the GNU compiler?
 
17736
with_gcc=$GCC_CXX
 
17737
 
 
17738
# Compiler flag to turn off builtin functions.
 
17739
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
17740
 
 
17741
# Additional compiler flags for building library objects.
 
17742
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
17743
 
 
17744
# How to pass a linker flag through the compiler.
 
17745
wl=$lt_lt_prog_compiler_wl_CXX
 
17746
 
 
17747
# Compiler flag to prevent dynamic linking.
 
17748
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
17749
 
 
17750
# Does compiler simultaneously support -c and -o options?
 
17751
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
17752
 
 
17753
# Whether or not to add -lc for building shared libraries.
 
17754
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
17755
 
 
17756
# Whether or not to disallow shared libs when runtime libs are static.
 
17757
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
17758
 
 
17759
# Compiler flag to allow reflexive dlopens.
 
17760
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
17761
 
 
17762
# Compiler flag to generate shared objects directly from archives.
 
17763
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
17764
 
 
17765
# Whether the compiler copes with passing no objects directly.
 
17766
compiler_needs_object=$lt_compiler_needs_object_CXX
 
17767
 
 
17768
# Create an old-style archive from a shared archive.
 
17769
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
17770
 
 
17771
# Create a temporary old-style archive to link instead of a shared archive.
 
17772
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
17773
 
 
17774
# Commands used to build a shared archive.
 
17775
archive_cmds=$lt_archive_cmds_CXX
 
17776
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
17777
 
 
17778
# Commands used to build a loadable module if different from building
 
17779
# a shared archive.
 
17780
module_cmds=$lt_module_cmds_CXX
 
17781
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
17782
 
 
17783
# Whether we are building with GNU ld or not.
 
17784
with_gnu_ld=$lt_with_gnu_ld_CXX
 
17785
 
 
17786
# Flag that allows shared libraries with undefined symbols to be built.
 
17787
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
17788
 
 
17789
# Flag that enforces no undefined symbols.
 
17790
no_undefined_flag=$lt_no_undefined_flag_CXX
 
17791
 
 
17792
# Flag to hardcode \$libdir into a binary during linking.
 
17793
# This must work even if \$libdir does not exist
 
17794
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
17795
 
 
17796
# Whether we need a single "-rpath" flag with a separated argument.
 
17797
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
17798
 
 
17799
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17800
# DIR into the resulting binary.
 
17801
hardcode_direct=$hardcode_direct_CXX
 
17802
 
 
17803
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17804
# DIR into the resulting binary and the resulting library dependency is
 
17805
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17806
# library is relocated.
 
17807
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
17808
 
 
17809
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17810
# into the resulting binary.
 
17811
hardcode_minus_L=$hardcode_minus_L_CXX
 
17812
 
 
17813
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17814
# into the resulting binary.
 
17815
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
17816
 
 
17817
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17818
# into the library and all subsequent libraries and executables linked
 
17819
# against it.
 
17820
hardcode_automatic=$hardcode_automatic_CXX
 
17821
 
 
17822
# Set to yes if linker adds runtime paths of dependent libraries
 
17823
# to runtime path list.
 
17824
inherit_rpath=$inherit_rpath_CXX
 
17825
 
 
17826
# Whether libtool must link a program against all its dependency libraries.
 
17827
link_all_deplibs=$link_all_deplibs_CXX
 
17828
 
 
17829
# Set to "yes" if exported symbols are required.
 
17830
always_export_symbols=$always_export_symbols_CXX
 
17831
 
 
17832
# The commands to list exported symbols.
 
17833
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
17834
 
 
17835
# Symbols that should not be listed in the preloaded symbols.
 
17836
exclude_expsyms=$lt_exclude_expsyms_CXX
 
17837
 
 
17838
# Symbols that must always be exported.
 
17839
include_expsyms=$lt_include_expsyms_CXX
 
17840
 
 
17841
# Commands necessary for linking programs (against libraries) with templates.
 
17842
prelink_cmds=$lt_prelink_cmds_CXX
 
17843
 
 
17844
# Commands necessary for finishing linking programs.
 
17845
postlink_cmds=$lt_postlink_cmds_CXX
 
17846
 
 
17847
# Specify filename containing input files.
 
17848
file_list_spec=$lt_file_list_spec_CXX
 
17849
 
 
17850
# How to hardcode a shared library path into an executable.
 
17851
hardcode_action=$hardcode_action_CXX
 
17852
 
 
17853
# The directories searched by this compiler when creating a shared library.
 
17854
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
17855
 
 
17856
# Dependencies to place before and after the objects being linked to
 
17857
# create a shared library.
 
17858
predep_objects=$lt_predep_objects_CXX
 
17859
postdep_objects=$lt_postdep_objects_CXX
 
17860
predeps=$lt_predeps_CXX
 
17861
postdeps=$lt_postdeps_CXX
 
17862
 
 
17863
# The library search path used internally by the compiler when linking
 
17864
# a shared library.
 
17865
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
17866
 
 
17867
# ### END LIBTOOL TAG CONFIG: CXX
 
17868
_LT_EOF
 
17869
 
 
17870
 ;;
 
17871
 
 
17872
  esac
 
17873
done # for ac_tag
 
17874
 
 
17875
 
 
17876
as_fn_exit 0
 
17877
_ACEOF
 
17878
ac_clean_files=$ac_clean_files_save
 
17879
 
 
17880
test $ac_write_fail = 0 ||
 
17881
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
17882
 
 
17883
 
 
17884
# configure is writing to config.log, and then calls config.status.
 
17885
# config.status does its own redirection, appending to config.log.
 
17886
# Unfortunately, on DOS this fails, as config.log is still kept open
 
17887
# by configure, so config.status won't be able to write to it; its
 
17888
# output is simply discarded.  So we exec the FD to /dev/null,
 
17889
# effectively closing config.log, so it can be properly (re)opened and
 
17890
# appended to by config.status.  When coming back to configure, we
 
17891
# need to make the FD available again.
 
17892
if test "$no_create" != yes; then
 
17893
  ac_cs_success=:
 
17894
  ac_config_status_args=
 
17895
  test "$silent" = yes &&
 
17896
    ac_config_status_args="$ac_config_status_args --quiet"
 
17897
  exec 5>/dev/null
 
17898
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
17899
  exec 5>>config.log
 
17900
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
17901
  # would make configure fail if this is the last instruction.
 
17902
  $ac_cs_success || as_fn_exit 1
 
17903
fi
 
17904
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
17905
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
17906
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
17907
fi
 
17908