/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: 2010-02-07 14:39:18 UTC
  • Revision ID: edam@waxworlds.org-20100207143918-gi030ojecbska8hw
- updated README
- set up project for use with autotools

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.64 for sqlite3cc 0.1.0.
 
4
#
 
5
# Report bugs to <edam@waxworlds.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
9
# Foundation, Inc.
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
 
123
PS1='$ '
 
124
PS2='> '
 
125
PS4='+ '
 
126
 
 
127
# NLS nuisances.
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
186
do
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org
 
232
$0: about your system, including any error possibly output
 
233
$0: before this message. Then install a modern shell, or
 
234
$0: manually run the script under such a shell if you do
 
235
$0: have one."
 
236
  fi
 
237
  exit 1
 
238
fi
 
239
fi
 
240
fi
 
241
SHELL=${CONFIG_SHELL-/bin/sh}
 
242
export SHELL
 
243
# Unset more variables known to interfere with behavior of common tools.
 
244
CLICOLOR_FORCE= GREP_OPTIONS=
 
245
unset CLICOLOR_FORCE GREP_OPTIONS
 
246
 
 
247
## --------------------- ##
 
248
## M4sh Shell Functions. ##
 
249
## --------------------- ##
 
250
# as_fn_unset VAR
 
251
# ---------------
 
252
# Portably unset VAR.
 
253
as_fn_unset ()
 
254
{
 
255
  { eval $1=; unset $1;}
 
256
}
 
257
as_unset=as_fn_unset
 
258
 
 
259
# as_fn_set_status STATUS
 
260
# -----------------------
 
261
# Set $? to STATUS, without forking.
 
262
as_fn_set_status ()
 
263
{
 
264
  return $1
 
265
} # as_fn_set_status
 
266
 
 
267
# as_fn_exit STATUS
 
268
# -----------------
 
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
270
as_fn_exit ()
 
271
{
 
272
  set +e
 
273
  as_fn_set_status $1
 
274
  exit $1
 
275
} # as_fn_exit
 
276
 
 
277
# as_fn_mkdir_p
 
278
# -------------
 
279
# Create "$as_dir" as a directory, including parents if necessary.
 
280
as_fn_mkdir_p ()
 
281
{
 
282
 
 
283
  case $as_dir in #(
 
284
  -*) as_dir=./$as_dir;;
 
285
  esac
 
286
  test -d "$as_dir" || eval $as_mkdir_p || {
 
287
    as_dirs=
 
288
    while :; do
 
289
      case $as_dir in #(
 
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
291
      *) as_qdir=$as_dir;;
 
292
      esac
 
293
      as_dirs="'$as_qdir' $as_dirs"
 
294
      as_dir=`$as_dirname -- "$as_dir" ||
 
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
297
         X"$as_dir" : 'X\(//\)$' \| \
 
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
299
$as_echo X"$as_dir" |
 
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
301
            s//\1/
 
302
            q
 
303
          }
 
304
          /^X\(\/\/\)[^/].*/{
 
305
            s//\1/
 
306
            q
 
307
          }
 
308
          /^X\(\/\/\)$/{
 
309
            s//\1/
 
310
            q
 
311
          }
 
312
          /^X\(\/\).*/{
 
313
            s//\1/
 
314
            q
 
315
          }
 
316
          s/.*/./; q'`
 
317
      test -d "$as_dir" && break
 
318
    done
 
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
321
 
 
322
 
 
323
} # as_fn_mkdir_p
 
324
# as_fn_append VAR VALUE
 
325
# ----------------------
 
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
327
# advantage of any shell optimizations that allow amortized linear growth over
 
328
# repeated appends, instead of the typical quadratic growth present in naive
 
329
# implementations.
 
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
331
  eval 'as_fn_append ()
 
332
  {
 
333
    eval $1+=\$2
 
334
  }'
 
335
else
 
336
  as_fn_append ()
 
337
  {
 
338
    eval $1=\$$1\$2
 
339
  }
 
340
fi # as_fn_append
 
341
 
 
342
# as_fn_arith ARG...
 
343
# ------------------
 
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
346
# must be portable across $(()) and expr.
 
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
348
  eval 'as_fn_arith ()
 
349
  {
 
350
    as_val=$(( $* ))
 
351
  }'
 
352
else
 
353
  as_fn_arith ()
 
354
  {
 
355
    as_val=`expr "$@" || test $? -eq 1`
 
356
  }
 
357
fi # as_fn_arith
 
358
 
 
359
 
 
360
# as_fn_error ERROR [LINENO LOG_FD]
 
361
# ---------------------------------
 
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
364
# script with status $?, using 1 if that was 0.
 
365
as_fn_error ()
 
366
{
 
367
  as_status=$?; test $as_status -eq 0 && as_status=1
 
368
  if test "$3"; then
 
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
371
  fi
 
372
  $as_echo "$as_me: error: $1" >&2
 
373
  as_fn_exit $as_status
 
374
} # as_fn_error
 
375
 
 
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
378
  as_expr=expr
 
379
else
 
380
  as_expr=false
 
381
fi
 
382
 
 
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
384
  as_basename=basename
 
385
else
 
386
  as_basename=false
 
387
fi
 
388
 
 
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
390
  as_dirname=dirname
 
391
else
 
392
  as_dirname=false
 
393
fi
 
394
 
 
395
as_me=`$as_basename -- "$0" ||
 
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
397
         X"$0" : 'X\(//\)$' \| \
 
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
399
$as_echo X/"$0" |
 
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
401
            s//\1/
 
402
            q
 
403
          }
 
404
          /^X\/\(\/\/\)$/{
 
405
            s//\1/
 
406
            q
 
407
          }
 
408
          /^X\/\(\/\).*/{
 
409
            s//\1/
 
410
            q
 
411
          }
 
412
          s/.*/./; q'`
 
413
 
 
414
# Avoid depending upon Character Ranges.
 
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
418
as_cr_digits='0123456789'
 
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
420
 
 
421
 
 
422
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
427
  sed -n '
 
428
    p
 
429
    /[$]LINENO/=
 
430
  ' <$as_myself |
 
431
    sed '
 
432
      s/[$]LINENO.*/&-/
 
433
      t lineno
 
434
      b
 
435
      :lineno
 
436
      N
 
437
      :loop
 
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
439
      t loop
 
440
      s/-\n.*//
 
441
    ' >$as_me.lineno &&
 
442
  chmod +x "$as_me.lineno" ||
 
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
444
 
 
445
  # Don't try to exec as it changes $[0], causing all sort of problems
 
446
  # (the dirname of $[0] is not the place where we might find the
 
447
  # original and so on.  Autoconf is especially sensitive to this).
 
448
  . "./$as_me.lineno"
 
449
  # Exit status is that of the last command.
 
450
  exit
 
451
}
 
452
 
 
453
ECHO_C= ECHO_N= ECHO_T=
 
454
case `echo -n x` in #(((((
 
455
-n*)
 
456
  case `echo 'xy\c'` in
 
457
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
458
  xy)  ECHO_C='\c';;
 
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
460
       ECHO_T=' ';;
 
461
  esac;;
 
462
*)
 
463
  ECHO_N='-n';;
 
464
esac
 
465
 
 
466
rm -f conf$$ conf$$.exe conf$$.file
 
467
if test -d conf$$.dir; then
 
468
  rm -f conf$$.dir/conf$$.file
 
469
else
 
470
  rm -f conf$$.dir
 
471
  mkdir conf$$.dir 2>/dev/null
 
472
fi
 
473
if (echo >conf$$.file) 2>/dev/null; then
 
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
475
    as_ln_s='ln -s'
 
476
    # ... but there are two gotchas:
 
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
479
    # In both cases, we have to default to `cp -p'.
 
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
481
      as_ln_s='cp -p'
 
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
483
    as_ln_s=ln
 
484
  else
 
485
    as_ln_s='cp -p'
 
486
  fi
 
487
else
 
488
  as_ln_s='cp -p'
 
489
fi
 
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
491
rmdir conf$$.dir 2>/dev/null
 
492
 
 
493
if mkdir -p . 2>/dev/null; then
 
494
  as_mkdir_p='mkdir -p "$as_dir"'
 
495
else
 
496
  test -d ./-p && rmdir ./-p
 
497
  as_mkdir_p=false
 
498
fi
 
499
 
 
500
if test -x / >/dev/null 2>&1; then
 
501
  as_test_x='test -x'
 
502
else
 
503
  if ls -dL / >/dev/null 2>&1; then
 
504
    as_ls_L_option=L
 
505
  else
 
506
    as_ls_L_option=
 
507
  fi
 
508
  as_test_x='
 
509
    eval sh -c '\''
 
510
      if test -d "$1"; then
 
511
        test -d "$1/.";
 
512
      else
 
513
        case $1 in #(
 
514
        -*)set "./$1";;
 
515
        esac;
 
516
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
517
        ???[sx]*):;;*)false;;esac;fi
 
518
    '\'' sh
 
519
  '
 
520
fi
 
521
as_executable_p=$as_test_x
 
522
 
 
523
# Sed expression to map a string onto a valid CPP name.
 
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
525
 
 
526
# Sed expression to map a string onto a valid variable name.
 
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
528
 
 
529
 
 
530
 
 
531
# Check that we are running under the correct shell.
 
532
SHELL=${CONFIG_SHELL-/bin/sh}
 
533
 
 
534
case X$lt_ECHO in
 
535
X*--fallback-echo)
 
536
  # Remove one level of quotation (which was required for Make).
 
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
538
  ;;
 
539
esac
 
540
 
 
541
ECHO=${lt_ECHO-echo}
 
542
if test "X$1" = X--no-reexec; then
 
543
  # Discard the --no-reexec flag, and continue.
 
544
  shift
 
545
elif test "X$1" = X--fallback-echo; then
 
546
  # Avoid inline document here, it may be left over
 
547
  :
 
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
549
  # Yippee, $ECHO works!
 
550
  :
 
551
else
 
552
  # Restart under the correct shell.
 
553
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
554
fi
 
555
 
 
556
if test "X$1" = X--fallback-echo; then
 
557
  # used as fallback echo
 
558
  shift
 
559
  cat <<_LT_EOF
 
560
$*
 
561
_LT_EOF
 
562
  exit 0
 
563
fi
 
564
 
 
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
566
# if CDPATH is set.
 
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
568
 
 
569
if test -z "$lt_ECHO"; then
 
570
  if test "X${echo_test_string+set}" != Xset; then
 
571
    # find a string as large as possible, as long as the shell can cope with it
 
572
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
573
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
574
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
575
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
576
      then
 
577
        break
 
578
      fi
 
579
    done
 
580
  fi
 
581
 
 
582
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
583
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
584
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
585
    :
 
586
  else
 
587
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
588
    # backslashes.  This makes it impossible to quote backslashes using
 
589
    #   echo "$something" | sed 's/\\/\\\\/g'
 
590
    #
 
591
    # So, first we look for a working echo in the user's PATH.
 
592
 
 
593
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
594
    for dir in $PATH /usr/ucb; do
 
595
      IFS="$lt_save_ifs"
 
596
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
597
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
598
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
599
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
600
        ECHO="$dir/echo"
 
601
        break
 
602
      fi
 
603
    done
 
604
    IFS="$lt_save_ifs"
 
605
 
 
606
    if test "X$ECHO" = Xecho; then
 
607
      # We didn't find a better echo, so look for alternatives.
 
608
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
609
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
610
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
611
        # This shell has a builtin print -r that does the trick.
 
612
        ECHO='print -r'
 
613
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
614
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
615
        # If we have ksh, try running configure again with it.
 
616
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
617
        export ORIGINAL_CONFIG_SHELL
 
618
        CONFIG_SHELL=/bin/ksh
 
619
        export CONFIG_SHELL
 
620
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
621
      else
 
622
        # Try using printf.
 
623
        ECHO='printf %s\n'
 
624
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
625
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
626
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
627
          # Cool, printf works
 
628
          :
 
629
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
630
             test "X$echo_testing_string" = 'X\t' &&
 
631
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
633
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
634
          export CONFIG_SHELL
 
635
          SHELL="$CONFIG_SHELL"
 
636
          export SHELL
 
637
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
638
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
639
             test "X$echo_testing_string" = 'X\t' &&
 
640
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
642
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
643
        else
 
644
          # maybe with a smaller string...
 
645
          prev=:
 
646
 
 
647
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
648
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
649
            then
 
650
              break
 
651
            fi
 
652
            prev="$cmd"
 
653
          done
 
654
 
 
655
          if test "$prev" != 'sed 50q "$0"'; then
 
656
            echo_test_string=`eval $prev`
 
657
            export echo_test_string
 
658
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
659
          else
 
660
            # Oops.  We lost completely, so just stick with echo.
 
661
            ECHO=echo
 
662
          fi
 
663
        fi
 
664
      fi
 
665
    fi
 
666
  fi
 
667
fi
 
668
 
 
669
# Copy echo and quote the copy suitably for passing to libtool from
 
670
# the Makefile, instead of quoting the original, which is used later.
 
671
lt_ECHO=$ECHO
 
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
673
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
674
fi
 
675
 
 
676
 
 
677
 
 
678
 
 
679
exec 7<&0 </dev/null 6>&1
 
680
 
 
681
# Name of the host.
 
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
683
# so uname gets run too.
 
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
685
 
 
686
#
 
687
# Initializations.
 
688
#
 
689
ac_default_prefix=/usr/local
 
690
ac_clean_files=
 
691
ac_config_libobj_dir=.
 
692
LIBOBJS=
 
693
cross_compiling=no
 
694
subdirs=
 
695
MFLAGS=
 
696
MAKEFLAGS=
 
697
 
 
698
# Identity of this package.
 
699
PACKAGE_NAME='sqlite3cc'
 
700
PACKAGE_TARNAME='sqlite3cc'
 
701
PACKAGE_VERSION='0.1.0'
 
702
PACKAGE_STRING='sqlite3cc 0.1.0'
 
703
PACKAGE_BUGREPORT='edam@waxworlds.org'
 
704
PACKAGE_URL=''
 
705
 
 
706
ac_unique_file="src/database.cc"
 
707
# Factoring default headers for most tests.
 
708
ac_includes_default="\
 
709
#include <stdio.h>
 
710
#ifdef HAVE_SYS_TYPES_H
 
711
# include <sys/types.h>
 
712
#endif
 
713
#ifdef HAVE_SYS_STAT_H
 
714
# include <sys/stat.h>
 
715
#endif
 
716
#ifdef STDC_HEADERS
 
717
# include <stdlib.h>
 
718
# include <stddef.h>
 
719
#else
 
720
# ifdef HAVE_STDLIB_H
 
721
#  include <stdlib.h>
 
722
# endif
 
723
#endif
 
724
#ifdef HAVE_STRING_H
 
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
726
#  include <memory.h>
 
727
# endif
 
728
# include <string.h>
 
729
#endif
 
730
#ifdef HAVE_STRINGS_H
 
731
# include <strings.h>
 
732
#endif
 
733
#ifdef HAVE_INTTYPES_H
 
734
# include <inttypes.h>
 
735
#endif
 
736
#ifdef HAVE_STDINT_H
 
737
# include <stdint.h>
 
738
#endif
 
739
#ifdef HAVE_UNISTD_H
 
740
# include <unistd.h>
 
741
#endif"
 
742
 
 
743
ac_subst_vars='am__EXEEXT_FALSE
 
744
am__EXEEXT_TRUE
 
745
LTLIBOBJS
 
746
LIBOBJS
 
747
CXXCPP
 
748
CPP
 
749
OTOOL64
 
750
OTOOL
 
751
LIPO
 
752
NMEDIT
 
753
DSYMUTIL
 
754
lt_ECHO
 
755
RANLIB
 
756
AR
 
757
OBJDUMP
 
758
LN_S
 
759
NM
 
760
ac_ct_DUMPBIN
 
761
DUMPBIN
 
762
LD
 
763
FGREP
 
764
EGREP
 
765
GREP
 
766
SED
 
767
am__fastdepCC_FALSE
 
768
am__fastdepCC_TRUE
 
769
CCDEPMODE
 
770
ac_ct_CC
 
771
CFLAGS
 
772
CC
 
773
host_os
 
774
host_vendor
 
775
host_cpu
 
776
host
 
777
build_os
 
778
build_vendor
 
779
build_cpu
 
780
build
 
781
LIBTOOL
 
782
am__fastdepCXX_FALSE
 
783
am__fastdepCXX_TRUE
 
784
CXXDEPMODE
 
785
AMDEPBACKSLASH
 
786
AMDEP_FALSE
 
787
AMDEP_TRUE
 
788
am__quote
 
789
am__include
 
790
DEPDIR
 
791
OBJEXT
 
792
EXEEXT
 
793
ac_ct_CXX
 
794
CPPFLAGS
 
795
LDFLAGS
 
796
CXXFLAGS
 
797
CXX
 
798
am__untar
 
799
am__tar
 
800
AMTAR
 
801
am__leading_dot
 
802
SET_MAKE
 
803
AWK
 
804
mkdir_p
 
805
MKDIR_P
 
806
INSTALL_STRIP_PROGRAM
 
807
STRIP
 
808
install_sh
 
809
MAKEINFO
 
810
AUTOHEADER
 
811
AUTOMAKE
 
812
AUTOCONF
 
813
ACLOCAL
 
814
VERSION
 
815
PACKAGE
 
816
CYGPATH_W
 
817
am__isrc
 
818
INSTALL_DATA
 
819
INSTALL_SCRIPT
 
820
INSTALL_PROGRAM
 
821
target_alias
 
822
host_alias
 
823
build_alias
 
824
LIBS
 
825
ECHO_T
 
826
ECHO_N
 
827
ECHO_C
 
828
DEFS
 
829
mandir
 
830
localedir
 
831
libdir
 
832
psdir
 
833
pdfdir
 
834
dvidir
 
835
htmldir
 
836
infodir
 
837
docdir
 
838
oldincludedir
 
839
includedir
 
840
localstatedir
 
841
sharedstatedir
 
842
sysconfdir
 
843
datadir
 
844
datarootdir
 
845
libexecdir
 
846
sbindir
 
847
bindir
 
848
program_transform_name
 
849
prefix
 
850
exec_prefix
 
851
PACKAGE_URL
 
852
PACKAGE_BUGREPORT
 
853
PACKAGE_STRING
 
854
PACKAGE_VERSION
 
855
PACKAGE_TARNAME
 
856
PACKAGE_NAME
 
857
PATH_SEPARATOR
 
858
SHELL'
 
859
ac_subst_files=''
 
860
ac_user_opts='
 
861
enable_option_checking
 
862
enable_dependency_tracking
 
863
enable_shared
 
864
enable_static
 
865
with_pic
 
866
enable_fast_install
 
867
with_gnu_ld
 
868
enable_libtool_lock
 
869
'
 
870
      ac_precious_vars='build_alias
 
871
host_alias
 
872
target_alias
 
873
CXX
 
874
CXXFLAGS
 
875
LDFLAGS
 
876
LIBS
 
877
CPPFLAGS
 
878
CCC
 
879
CC
 
880
CFLAGS
 
881
CPP
 
882
CXXCPP'
 
883
 
 
884
 
 
885
# Initialize some variables set by options.
 
886
ac_init_help=
 
887
ac_init_version=false
 
888
ac_unrecognized_opts=
 
889
ac_unrecognized_sep=
 
890
# The variables have the same names as the options, with
 
891
# dashes changed to underlines.
 
892
cache_file=/dev/null
 
893
exec_prefix=NONE
 
894
no_create=
 
895
no_recursion=
 
896
prefix=NONE
 
897
program_prefix=NONE
 
898
program_suffix=NONE
 
899
program_transform_name=s,x,x,
 
900
silent=
 
901
site=
 
902
srcdir=
 
903
verbose=
 
904
x_includes=NONE
 
905
x_libraries=NONE
 
906
 
 
907
# Installation directory options.
 
908
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
909
# and all the variables that are supposed to be based on exec_prefix
 
910
# by default will actually change.
 
911
# Use braces instead of parens because sh, perl, etc. also accept them.
 
912
# (The list follows the same order as the GNU Coding Standards.)
 
913
bindir='${exec_prefix}/bin'
 
914
sbindir='${exec_prefix}/sbin'
 
915
libexecdir='${exec_prefix}/libexec'
 
916
datarootdir='${prefix}/share'
 
917
datadir='${datarootdir}'
 
918
sysconfdir='${prefix}/etc'
 
919
sharedstatedir='${prefix}/com'
 
920
localstatedir='${prefix}/var'
 
921
includedir='${prefix}/include'
 
922
oldincludedir='/usr/include'
 
923
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
924
infodir='${datarootdir}/info'
 
925
htmldir='${docdir}'
 
926
dvidir='${docdir}'
 
927
pdfdir='${docdir}'
 
928
psdir='${docdir}'
 
929
libdir='${exec_prefix}/lib'
 
930
localedir='${datarootdir}/locale'
 
931
mandir='${datarootdir}/man'
 
932
 
 
933
ac_prev=
 
934
ac_dashdash=
 
935
for ac_option
 
936
do
 
937
  # If the previous option needs an argument, assign it.
 
938
  if test -n "$ac_prev"; then
 
939
    eval $ac_prev=\$ac_option
 
940
    ac_prev=
 
941
    continue
 
942
  fi
 
943
 
 
944
  case $ac_option in
 
945
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
946
  *)    ac_optarg=yes ;;
 
947
  esac
 
948
 
 
949
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
950
 
 
951
  case $ac_dashdash$ac_option in
 
952
  --)
 
953
    ac_dashdash=yes ;;
 
954
 
 
955
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
956
    ac_prev=bindir ;;
 
957
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
958
    bindir=$ac_optarg ;;
 
959
 
 
960
  -build | --build | --buil | --bui | --bu)
 
961
    ac_prev=build_alias ;;
 
962
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
963
    build_alias=$ac_optarg ;;
 
964
 
 
965
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
966
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
967
    ac_prev=cache_file ;;
 
968
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
969
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
970
    cache_file=$ac_optarg ;;
 
971
 
 
972
  --config-cache | -C)
 
973
    cache_file=config.cache ;;
 
974
 
 
975
  -datadir | --datadir | --datadi | --datad)
 
976
    ac_prev=datadir ;;
 
977
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
978
    datadir=$ac_optarg ;;
 
979
 
 
980
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
981
  | --dataroo | --dataro | --datar)
 
982
    ac_prev=datarootdir ;;
 
983
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
984
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
985
    datarootdir=$ac_optarg ;;
 
986
 
 
987
  -disable-* | --disable-*)
 
988
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
989
    # Reject names that are not valid shell variable names.
 
990
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
991
      as_fn_error "invalid feature name: $ac_useropt"
 
992
    ac_useropt_orig=$ac_useropt
 
993
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
994
    case $ac_user_opts in
 
995
      *"
 
996
"enable_$ac_useropt"
 
997
"*) ;;
 
998
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
999
         ac_unrecognized_sep=', ';;
 
1000
    esac
 
1001
    eval enable_$ac_useropt=no ;;
 
1002
 
 
1003
  -docdir | --docdir | --docdi | --doc | --do)
 
1004
    ac_prev=docdir ;;
 
1005
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1006
    docdir=$ac_optarg ;;
 
1007
 
 
1008
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1009
    ac_prev=dvidir ;;
 
1010
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1011
    dvidir=$ac_optarg ;;
 
1012
 
 
1013
  -enable-* | --enable-*)
 
1014
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1015
    # Reject names that are not valid shell variable names.
 
1016
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1017
      as_fn_error "invalid feature name: $ac_useropt"
 
1018
    ac_useropt_orig=$ac_useropt
 
1019
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1020
    case $ac_user_opts in
 
1021
      *"
 
1022
"enable_$ac_useropt"
 
1023
"*) ;;
 
1024
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1025
         ac_unrecognized_sep=', ';;
 
1026
    esac
 
1027
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1028
 
 
1029
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1030
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1031
  | --exec | --exe | --ex)
 
1032
    ac_prev=exec_prefix ;;
 
1033
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1034
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1035
  | --exec=* | --exe=* | --ex=*)
 
1036
    exec_prefix=$ac_optarg ;;
 
1037
 
 
1038
  -gas | --gas | --ga | --g)
 
1039
    # Obsolete; use --with-gas.
 
1040
    with_gas=yes ;;
 
1041
 
 
1042
  -help | --help | --hel | --he | -h)
 
1043
    ac_init_help=long ;;
 
1044
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1045
    ac_init_help=recursive ;;
 
1046
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1047
    ac_init_help=short ;;
 
1048
 
 
1049
  -host | --host | --hos | --ho)
 
1050
    ac_prev=host_alias ;;
 
1051
  -host=* | --host=* | --hos=* | --ho=*)
 
1052
    host_alias=$ac_optarg ;;
 
1053
 
 
1054
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1055
    ac_prev=htmldir ;;
 
1056
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1057
  | --ht=*)
 
1058
    htmldir=$ac_optarg ;;
 
1059
 
 
1060
  -includedir | --includedir | --includedi | --included | --include \
 
1061
  | --includ | --inclu | --incl | --inc)
 
1062
    ac_prev=includedir ;;
 
1063
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1064
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1065
    includedir=$ac_optarg ;;
 
1066
 
 
1067
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1068
    ac_prev=infodir ;;
 
1069
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1070
    infodir=$ac_optarg ;;
 
1071
 
 
1072
  -libdir | --libdir | --libdi | --libd)
 
1073
    ac_prev=libdir ;;
 
1074
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1075
    libdir=$ac_optarg ;;
 
1076
 
 
1077
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1078
  | --libexe | --libex | --libe)
 
1079
    ac_prev=libexecdir ;;
 
1080
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1081
  | --libexe=* | --libex=* | --libe=*)
 
1082
    libexecdir=$ac_optarg ;;
 
1083
 
 
1084
  -localedir | --localedir | --localedi | --localed | --locale)
 
1085
    ac_prev=localedir ;;
 
1086
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1087
    localedir=$ac_optarg ;;
 
1088
 
 
1089
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1090
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1091
    ac_prev=localstatedir ;;
 
1092
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1093
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1094
    localstatedir=$ac_optarg ;;
 
1095
 
 
1096
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1097
    ac_prev=mandir ;;
 
1098
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1099
    mandir=$ac_optarg ;;
 
1100
 
 
1101
  -nfp | --nfp | --nf)
 
1102
    # Obsolete; use --without-fp.
 
1103
    with_fp=no ;;
 
1104
 
 
1105
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1106
  | --no-cr | --no-c | -n)
 
1107
    no_create=yes ;;
 
1108
 
 
1109
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1110
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1111
    no_recursion=yes ;;
 
1112
 
 
1113
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1114
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1115
  | --oldin | --oldi | --old | --ol | --o)
 
1116
    ac_prev=oldincludedir ;;
 
1117
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1118
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1119
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1120
    oldincludedir=$ac_optarg ;;
 
1121
 
 
1122
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1123
    ac_prev=prefix ;;
 
1124
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1125
    prefix=$ac_optarg ;;
 
1126
 
 
1127
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1128
  | --program-pre | --program-pr | --program-p)
 
1129
    ac_prev=program_prefix ;;
 
1130
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1131
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1132
    program_prefix=$ac_optarg ;;
 
1133
 
 
1134
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1135
  | --program-suf | --program-su | --program-s)
 
1136
    ac_prev=program_suffix ;;
 
1137
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1138
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1139
    program_suffix=$ac_optarg ;;
 
1140
 
 
1141
  -program-transform-name | --program-transform-name \
 
1142
  | --program-transform-nam | --program-transform-na \
 
1143
  | --program-transform-n | --program-transform- \
 
1144
  | --program-transform | --program-transfor \
 
1145
  | --program-transfo | --program-transf \
 
1146
  | --program-trans | --program-tran \
 
1147
  | --progr-tra | --program-tr | --program-t)
 
1148
    ac_prev=program_transform_name ;;
 
1149
  -program-transform-name=* | --program-transform-name=* \
 
1150
  | --program-transform-nam=* | --program-transform-na=* \
 
1151
  | --program-transform-n=* | --program-transform-=* \
 
1152
  | --program-transform=* | --program-transfor=* \
 
1153
  | --program-transfo=* | --program-transf=* \
 
1154
  | --program-trans=* | --program-tran=* \
 
1155
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1156
    program_transform_name=$ac_optarg ;;
 
1157
 
 
1158
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1159
    ac_prev=pdfdir ;;
 
1160
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1161
    pdfdir=$ac_optarg ;;
 
1162
 
 
1163
  -psdir | --psdir | --psdi | --psd | --ps)
 
1164
    ac_prev=psdir ;;
 
1165
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1166
    psdir=$ac_optarg ;;
 
1167
 
 
1168
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1169
  | -silent | --silent | --silen | --sile | --sil)
 
1170
    silent=yes ;;
 
1171
 
 
1172
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1173
    ac_prev=sbindir ;;
 
1174
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1175
  | --sbi=* | --sb=*)
 
1176
    sbindir=$ac_optarg ;;
 
1177
 
 
1178
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1179
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1180
  | --sharedst | --shareds | --shared | --share | --shar \
 
1181
  | --sha | --sh)
 
1182
    ac_prev=sharedstatedir ;;
 
1183
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1184
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1185
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1186
  | --sha=* | --sh=*)
 
1187
    sharedstatedir=$ac_optarg ;;
 
1188
 
 
1189
  -site | --site | --sit)
 
1190
    ac_prev=site ;;
 
1191
  -site=* | --site=* | --sit=*)
 
1192
    site=$ac_optarg ;;
 
1193
 
 
1194
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1195
    ac_prev=srcdir ;;
 
1196
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1197
    srcdir=$ac_optarg ;;
 
1198
 
 
1199
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1200
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1201
    ac_prev=sysconfdir ;;
 
1202
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1203
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1204
    sysconfdir=$ac_optarg ;;
 
1205
 
 
1206
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1207
    ac_prev=target_alias ;;
 
1208
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1209
    target_alias=$ac_optarg ;;
 
1210
 
 
1211
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1212
    verbose=yes ;;
 
1213
 
 
1214
  -version | --version | --versio | --versi | --vers | -V)
 
1215
    ac_init_version=: ;;
 
1216
 
 
1217
  -with-* | --with-*)
 
1218
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1219
    # Reject names that are not valid shell variable names.
 
1220
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1221
      as_fn_error "invalid package name: $ac_useropt"
 
1222
    ac_useropt_orig=$ac_useropt
 
1223
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1224
    case $ac_user_opts in
 
1225
      *"
 
1226
"with_$ac_useropt"
 
1227
"*) ;;
 
1228
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1229
         ac_unrecognized_sep=', ';;
 
1230
    esac
 
1231
    eval with_$ac_useropt=\$ac_optarg ;;
 
1232
 
 
1233
  -without-* | --without-*)
 
1234
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1235
    # Reject names that are not valid shell variable names.
 
1236
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1237
      as_fn_error "invalid package name: $ac_useropt"
 
1238
    ac_useropt_orig=$ac_useropt
 
1239
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1240
    case $ac_user_opts in
 
1241
      *"
 
1242
"with_$ac_useropt"
 
1243
"*) ;;
 
1244
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1245
         ac_unrecognized_sep=', ';;
 
1246
    esac
 
1247
    eval with_$ac_useropt=no ;;
 
1248
 
 
1249
  --x)
 
1250
    # Obsolete; use --with-x.
 
1251
    with_x=yes ;;
 
1252
 
 
1253
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1254
  | --x-incl | --x-inc | --x-in | --x-i)
 
1255
    ac_prev=x_includes ;;
 
1256
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1257
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1258
    x_includes=$ac_optarg ;;
 
1259
 
 
1260
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1261
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1262
    ac_prev=x_libraries ;;
 
1263
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1264
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1265
    x_libraries=$ac_optarg ;;
 
1266
 
 
1267
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1268
Try \`$0 --help' for more information."
 
1269
    ;;
 
1270
 
 
1271
  *=*)
 
1272
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1273
    # Reject names that are not valid shell variable names.
 
1274
    case $ac_envvar in #(
 
1275
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1276
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1277
    esac
 
1278
    eval $ac_envvar=\$ac_optarg
 
1279
    export $ac_envvar ;;
 
1280
 
 
1281
  *)
 
1282
    # FIXME: should be removed in autoconf 3.0.
 
1283
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1284
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1285
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1286
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1287
    ;;
 
1288
 
 
1289
  esac
 
1290
done
 
1291
 
 
1292
if test -n "$ac_prev"; then
 
1293
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1294
  as_fn_error "missing argument to $ac_option"
 
1295
fi
 
1296
 
 
1297
if test -n "$ac_unrecognized_opts"; then
 
1298
  case $enable_option_checking in
 
1299
    no) ;;
 
1300
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1301
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1302
  esac
 
1303
fi
 
1304
 
 
1305
# Check all directory arguments for consistency.
 
1306
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1307
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1308
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1309
                libdir localedir mandir
 
1310
do
 
1311
  eval ac_val=\$$ac_var
 
1312
  # Remove trailing slashes.
 
1313
  case $ac_val in
 
1314
    */ )
 
1315
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1316
      eval $ac_var=\$ac_val;;
 
1317
  esac
 
1318
  # Be sure to have absolute directory names.
 
1319
  case $ac_val in
 
1320
    [\\/$]* | ?:[\\/]* )  continue;;
 
1321
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1322
  esac
 
1323
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1324
done
 
1325
 
 
1326
# There might be people who depend on the old broken behavior: `$host'
 
1327
# used to hold the argument of --host etc.
 
1328
# FIXME: To remove some day.
 
1329
build=$build_alias
 
1330
host=$host_alias
 
1331
target=$target_alias
 
1332
 
 
1333
# FIXME: To remove some day.
 
1334
if test "x$host_alias" != x; then
 
1335
  if test "x$build_alias" = x; then
 
1336
    cross_compiling=maybe
 
1337
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1338
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1339
  elif test "x$build_alias" != "x$host_alias"; then
 
1340
    cross_compiling=yes
 
1341
  fi
 
1342
fi
 
1343
 
 
1344
ac_tool_prefix=
 
1345
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1346
 
 
1347
test "$silent" = yes && exec 6>/dev/null
 
1348
 
 
1349
 
 
1350
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1351
ac_ls_di=`ls -di .` &&
 
1352
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1353
  as_fn_error "working directory cannot be determined"
 
1354
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1355
  as_fn_error "pwd does not report name of working directory"
 
1356
 
 
1357
 
 
1358
# Find the source files, if location was not specified.
 
1359
if test -z "$srcdir"; then
 
1360
  ac_srcdir_defaulted=yes
 
1361
  # Try the directory containing this script, then the parent directory.
 
1362
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1363
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1364
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1365
         X"$as_myself" : 'X\(//\)$' \| \
 
1366
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1367
$as_echo X"$as_myself" |
 
1368
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1369
            s//\1/
 
1370
            q
 
1371
          }
 
1372
          /^X\(\/\/\)[^/].*/{
 
1373
            s//\1/
 
1374
            q
 
1375
          }
 
1376
          /^X\(\/\/\)$/{
 
1377
            s//\1/
 
1378
            q
 
1379
          }
 
1380
          /^X\(\/\).*/{
 
1381
            s//\1/
 
1382
            q
 
1383
          }
 
1384
          s/.*/./; q'`
 
1385
  srcdir=$ac_confdir
 
1386
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1387
    srcdir=..
 
1388
  fi
 
1389
else
 
1390
  ac_srcdir_defaulted=no
 
1391
fi
 
1392
if test ! -r "$srcdir/$ac_unique_file"; then
 
1393
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1394
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1395
fi
 
1396
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1397
ac_abs_confdir=`(
 
1398
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1399
        pwd)`
 
1400
# When building in place, set srcdir=.
 
1401
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1402
  srcdir=.
 
1403
fi
 
1404
# Remove unnecessary trailing slashes from srcdir.
 
1405
# Double slashes in file names in object file debugging info
 
1406
# mess up M-x gdb in Emacs.
 
1407
case $srcdir in
 
1408
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1409
esac
 
1410
for ac_var in $ac_precious_vars; do
 
1411
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1412
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1413
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1414
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1415
done
 
1416
 
 
1417
#
 
1418
# Report the --help message.
 
1419
#
 
1420
if test "$ac_init_help" = "long"; then
 
1421
  # Omit some internal or obsolete options to make the list less imposing.
 
1422
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1423
  cat <<_ACEOF
 
1424
\`configure' configures sqlite3cc 0.1.0 to adapt to many kinds of systems.
 
1425
 
 
1426
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1427
 
 
1428
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1429
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1430
 
 
1431
Defaults for the options are specified in brackets.
 
1432
 
 
1433
Configuration:
 
1434
  -h, --help              display this help and exit
 
1435
      --help=short        display options specific to this package
 
1436
      --help=recursive    display the short help of all the included packages
 
1437
  -V, --version           display version information and exit
 
1438
  -q, --quiet, --silent   do not print \`checking...' messages
 
1439
      --cache-file=FILE   cache test results in FILE [disabled]
 
1440
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1441
  -n, --no-create         do not create output files
 
1442
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1443
 
 
1444
Installation directories:
 
1445
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1446
                          [$ac_default_prefix]
 
1447
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1448
                          [PREFIX]
 
1449
 
 
1450
By default, \`make install' will install all the files in
 
1451
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1452
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1453
for instance \`--prefix=\$HOME'.
 
1454
 
 
1455
For better control, use the options below.
 
1456
 
 
1457
Fine tuning of the installation directories:
 
1458
  --bindir=DIR            user executables [EPREFIX/bin]
 
1459
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1460
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1461
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1462
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1463
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1464
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1465
  --includedir=DIR        C header files [PREFIX/include]
 
1466
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1467
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1468
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1469
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1470
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1471
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1472
  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite3cc]
 
1473
  --htmldir=DIR           html documentation [DOCDIR]
 
1474
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1475
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1476
  --psdir=DIR             ps documentation [DOCDIR]
 
1477
_ACEOF
 
1478
 
 
1479
  cat <<\_ACEOF
 
1480
 
 
1481
Program names:
 
1482
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1483
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1484
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1485
 
 
1486
System types:
 
1487
  --build=BUILD     configure for building on BUILD [guessed]
 
1488
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1489
_ACEOF
 
1490
fi
 
1491
 
 
1492
if test -n "$ac_init_help"; then
 
1493
  case $ac_init_help in
 
1494
     short | recursive ) echo "Configuration of sqlite3cc 0.1.0:";;
 
1495
   esac
 
1496
  cat <<\_ACEOF
 
1497
 
 
1498
Optional Features:
 
1499
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1500
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1501
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1502
  --disable-dependency-tracking  speeds up one-time build
 
1503
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1504
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1505
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1506
  --enable-fast-install[=PKGS]
 
1507
                          optimize for fast installation [default=yes]
 
1508
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1509
 
 
1510
Optional Packages:
 
1511
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1512
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1513
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1514
                          both]
 
1515
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1516
 
 
1517
Some influential environment variables:
 
1518
  CXX         C++ compiler command
 
1519
  CXXFLAGS    C++ compiler flags
 
1520
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1521
              nonstandard directory <lib dir>
 
1522
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1523
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1524
              you have headers in a nonstandard directory <include dir>
 
1525
  CC          C compiler command
 
1526
  CFLAGS      C compiler flags
 
1527
  CPP         C preprocessor
 
1528
  CXXCPP      C++ preprocessor
 
1529
 
 
1530
Use these variables to override the choices made by `configure' or to help
 
1531
it to find libraries and programs with nonstandard names/locations.
 
1532
 
 
1533
Report bugs to <edam@waxworlds.org>.
 
1534
_ACEOF
 
1535
ac_status=$?
 
1536
fi
 
1537
 
 
1538
if test "$ac_init_help" = "recursive"; then
 
1539
  # If there are subdirs, report their specific --help.
 
1540
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1541
    test -d "$ac_dir" ||
 
1542
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1543
      continue
 
1544
    ac_builddir=.
 
1545
 
 
1546
case "$ac_dir" in
 
1547
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1548
*)
 
1549
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1550
  # A ".." for each directory in $ac_dir_suffix.
 
1551
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1552
  case $ac_top_builddir_sub in
 
1553
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1554
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1555
  esac ;;
 
1556
esac
 
1557
ac_abs_top_builddir=$ac_pwd
 
1558
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1559
# for backward compatibility:
 
1560
ac_top_builddir=$ac_top_build_prefix
 
1561
 
 
1562
case $srcdir in
 
1563
  .)  # We are building in place.
 
1564
    ac_srcdir=.
 
1565
    ac_top_srcdir=$ac_top_builddir_sub
 
1566
    ac_abs_top_srcdir=$ac_pwd ;;
 
1567
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1568
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1569
    ac_top_srcdir=$srcdir
 
1570
    ac_abs_top_srcdir=$srcdir ;;
 
1571
  *) # Relative name.
 
1572
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1573
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1574
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1575
esac
 
1576
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1577
 
 
1578
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1579
    # Check for guested configure.
 
1580
    if test -f "$ac_srcdir/configure.gnu"; then
 
1581
      echo &&
 
1582
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1583
    elif test -f "$ac_srcdir/configure"; then
 
1584
      echo &&
 
1585
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1586
    else
 
1587
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1588
    fi || ac_status=$?
 
1589
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1590
  done
 
1591
fi
 
1592
 
 
1593
test -n "$ac_init_help" && exit $ac_status
 
1594
if $ac_init_version; then
 
1595
  cat <<\_ACEOF
 
1596
sqlite3cc configure 0.1.0
 
1597
generated by GNU Autoconf 2.64
 
1598
 
 
1599
Copyright (C) 2009 Free Software Foundation, Inc.
 
1600
This configure script is free software; the Free Software Foundation
 
1601
gives unlimited permission to copy, distribute and modify it.
 
1602
_ACEOF
 
1603
  exit
 
1604
fi
 
1605
 
 
1606
## ------------------------ ##
 
1607
## Autoconf initialization. ##
 
1608
## ------------------------ ##
 
1609
 
 
1610
# ac_fn_cxx_try_compile LINENO
 
1611
# ----------------------------
 
1612
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1613
ac_fn_cxx_try_compile ()
 
1614
{
 
1615
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1616
  rm -f conftest.$ac_objext
 
1617
  if { { ac_try="$ac_compile"
 
1618
case "(($ac_try" in
 
1619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1620
  *) ac_try_echo=$ac_try;;
 
1621
esac
 
1622
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1623
$as_echo "$ac_try_echo"; } >&5
 
1624
  (eval "$ac_compile") 2>conftest.err
 
1625
  ac_status=$?
 
1626
  if test -s conftest.err; then
 
1627
    grep -v '^ *+' conftest.err >conftest.er1
 
1628
    cat conftest.er1 >&5
 
1629
    mv -f conftest.er1 conftest.err
 
1630
  fi
 
1631
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1632
  test $ac_status = 0; } && {
 
1633
         test -z "$ac_cxx_werror_flag" ||
 
1634
         test ! -s conftest.err
 
1635
       } && test -s conftest.$ac_objext; then :
 
1636
  ac_retval=0
 
1637
else
 
1638
  $as_echo "$as_me: failed program was:" >&5
 
1639
sed 's/^/| /' conftest.$ac_ext >&5
 
1640
 
 
1641
        ac_retval=1
 
1642
fi
 
1643
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1644
  return $ac_retval
 
1645
 
 
1646
} # ac_fn_cxx_try_compile
 
1647
 
 
1648
# ac_fn_c_try_compile LINENO
 
1649
# --------------------------
 
1650
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1651
ac_fn_c_try_compile ()
 
1652
{
 
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1654
  rm -f conftest.$ac_objext
 
1655
  if { { ac_try="$ac_compile"
 
1656
case "(($ac_try" in
 
1657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1658
  *) ac_try_echo=$ac_try;;
 
1659
esac
 
1660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1661
$as_echo "$ac_try_echo"; } >&5
 
1662
  (eval "$ac_compile") 2>conftest.err
 
1663
  ac_status=$?
 
1664
  if test -s conftest.err; then
 
1665
    grep -v '^ *+' conftest.err >conftest.er1
 
1666
    cat conftest.er1 >&5
 
1667
    mv -f conftest.er1 conftest.err
 
1668
  fi
 
1669
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1670
  test $ac_status = 0; } && {
 
1671
         test -z "$ac_c_werror_flag" ||
 
1672
         test ! -s conftest.err
 
1673
       } && test -s conftest.$ac_objext; then :
 
1674
  ac_retval=0
 
1675
else
 
1676
  $as_echo "$as_me: failed program was:" >&5
 
1677
sed 's/^/| /' conftest.$ac_ext >&5
 
1678
 
 
1679
        ac_retval=1
 
1680
fi
 
1681
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1682
  return $ac_retval
 
1683
 
 
1684
} # ac_fn_c_try_compile
 
1685
 
 
1686
# ac_fn_c_try_link LINENO
 
1687
# -----------------------
 
1688
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1689
ac_fn_c_try_link ()
 
1690
{
 
1691
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1692
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1693
  if { { ac_try="$ac_link"
 
1694
case "(($ac_try" in
 
1695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1696
  *) ac_try_echo=$ac_try;;
 
1697
esac
 
1698
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1699
$as_echo "$ac_try_echo"; } >&5
 
1700
  (eval "$ac_link") 2>conftest.err
 
1701
  ac_status=$?
 
1702
  if test -s conftest.err; then
 
1703
    grep -v '^ *+' conftest.err >conftest.er1
 
1704
    cat conftest.er1 >&5
 
1705
    mv -f conftest.er1 conftest.err
 
1706
  fi
 
1707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1708
  test $ac_status = 0; } && {
 
1709
         test -z "$ac_c_werror_flag" ||
 
1710
         test ! -s conftest.err
 
1711
       } && test -s conftest$ac_exeext && {
 
1712
         test "$cross_compiling" = yes ||
 
1713
         $as_test_x conftest$ac_exeext
 
1714
       }; then :
 
1715
  ac_retval=0
 
1716
else
 
1717
  $as_echo "$as_me: failed program was:" >&5
 
1718
sed 's/^/| /' conftest.$ac_ext >&5
 
1719
 
 
1720
        ac_retval=1
 
1721
fi
 
1722
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1723
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1724
  # interfere with the next link command; also delete a directory that is
 
1725
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1726
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1727
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1728
  return $ac_retval
 
1729
 
 
1730
} # ac_fn_c_try_link
 
1731
 
 
1732
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1733
# -------------------------------------------------------
 
1734
# Tests whether HEADER exists and can be compiled using the include files in
 
1735
# INCLUDES, setting the cache variable VAR accordingly.
 
1736
ac_fn_c_check_header_compile ()
 
1737
{
 
1738
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1739
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1740
$as_echo_n "checking for $2... " >&6; }
 
1741
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1742
  $as_echo_n "(cached) " >&6
 
1743
else
 
1744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1745
/* end confdefs.h.  */
 
1746
$4
 
1747
#include <$2>
 
1748
_ACEOF
 
1749
if ac_fn_c_try_compile "$LINENO"; then :
 
1750
  eval "$3=yes"
 
1751
else
 
1752
  eval "$3=no"
 
1753
fi
 
1754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1755
fi
 
1756
eval ac_res=\$$3
 
1757
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1758
$as_echo "$ac_res" >&6; }
 
1759
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1760
 
 
1761
} # ac_fn_c_check_header_compile
 
1762
 
 
1763
# ac_fn_c_try_cpp LINENO
 
1764
# ----------------------
 
1765
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1766
ac_fn_c_try_cpp ()
 
1767
{
 
1768
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1769
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1770
case "(($ac_try" in
 
1771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1772
  *) ac_try_echo=$ac_try;;
 
1773
esac
 
1774
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1775
$as_echo "$ac_try_echo"; } >&5
 
1776
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1777
  ac_status=$?
 
1778
  if test -s conftest.err; then
 
1779
    grep -v '^ *+' conftest.err >conftest.er1
 
1780
    cat conftest.er1 >&5
 
1781
    mv -f conftest.er1 conftest.err
 
1782
  fi
 
1783
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1784
  test $ac_status = 0; } >/dev/null && {
 
1785
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1786
         test ! -s conftest.err
 
1787
       }; then :
 
1788
  ac_retval=0
 
1789
else
 
1790
  $as_echo "$as_me: failed program was:" >&5
 
1791
sed 's/^/| /' conftest.$ac_ext >&5
 
1792
 
 
1793
    ac_retval=1
 
1794
fi
 
1795
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1796
  return $ac_retval
 
1797
 
 
1798
} # ac_fn_c_try_cpp
 
1799
 
 
1800
# ac_fn_c_try_run LINENO
 
1801
# ----------------------
 
1802
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1803
# that executables *can* be run.
 
1804
ac_fn_c_try_run ()
 
1805
{
 
1806
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1807
  if { { ac_try="$ac_link"
 
1808
case "(($ac_try" in
 
1809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1810
  *) ac_try_echo=$ac_try;;
 
1811
esac
 
1812
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1813
$as_echo "$ac_try_echo"; } >&5
 
1814
  (eval "$ac_link") 2>&5
 
1815
  ac_status=$?
 
1816
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1817
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1818
  { { case "(($ac_try" in
 
1819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1820
  *) ac_try_echo=$ac_try;;
 
1821
esac
 
1822
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1823
$as_echo "$ac_try_echo"; } >&5
 
1824
  (eval "$ac_try") 2>&5
 
1825
  ac_status=$?
 
1826
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1827
  test $ac_status = 0; }; }; then :
 
1828
  ac_retval=0
 
1829
else
 
1830
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1831
       $as_echo "$as_me: failed program was:" >&5
 
1832
sed 's/^/| /' conftest.$ac_ext >&5
 
1833
 
 
1834
       ac_retval=$ac_status
 
1835
fi
 
1836
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1837
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1838
  return $ac_retval
 
1839
 
 
1840
} # ac_fn_c_try_run
 
1841
 
 
1842
# ac_fn_c_check_func LINENO FUNC VAR
 
1843
# ----------------------------------
 
1844
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1845
ac_fn_c_check_func ()
 
1846
{
 
1847
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1848
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1849
$as_echo_n "checking for $2... " >&6; }
 
1850
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1851
  $as_echo_n "(cached) " >&6
 
1852
else
 
1853
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1854
/* end confdefs.h.  */
 
1855
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1856
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1857
#define $2 innocuous_$2
 
1858
 
 
1859
/* System header to define __stub macros and hopefully few prototypes,
 
1860
    which can conflict with char $2 (); below.
 
1861
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1862
    <limits.h> exists even on freestanding compilers.  */
 
1863
 
 
1864
#ifdef __STDC__
 
1865
# include <limits.h>
 
1866
#else
 
1867
# include <assert.h>
 
1868
#endif
 
1869
 
 
1870
#undef $2
 
1871
 
 
1872
/* Override any GCC internal prototype to avoid an error.
 
1873
   Use char because int might match the return type of a GCC
 
1874
   builtin and then its argument prototype would still apply.  */
 
1875
#ifdef __cplusplus
 
1876
extern "C"
 
1877
#endif
 
1878
char $2 ();
 
1879
/* The GNU C library defines this for functions which it implements
 
1880
    to always fail with ENOSYS.  Some functions are actually named
 
1881
    something starting with __ and the normal name is an alias.  */
 
1882
#if defined __stub_$2 || defined __stub___$2
 
1883
choke me
 
1884
#endif
 
1885
 
 
1886
int
 
1887
main ()
 
1888
{
 
1889
return $2 ();
 
1890
  ;
 
1891
  return 0;
 
1892
}
 
1893
_ACEOF
 
1894
if ac_fn_c_try_link "$LINENO"; then :
 
1895
  eval "$3=yes"
 
1896
else
 
1897
  eval "$3=no"
 
1898
fi
 
1899
rm -f core conftest.err conftest.$ac_objext \
 
1900
    conftest$ac_exeext conftest.$ac_ext
 
1901
fi
 
1902
eval ac_res=\$$3
 
1903
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1904
$as_echo "$ac_res" >&6; }
 
1905
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1906
 
 
1907
} # ac_fn_c_check_func
 
1908
 
 
1909
# ac_fn_cxx_try_cpp LINENO
 
1910
# ------------------------
 
1911
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1912
ac_fn_cxx_try_cpp ()
 
1913
{
 
1914
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1915
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1916
case "(($ac_try" in
 
1917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1918
  *) ac_try_echo=$ac_try;;
 
1919
esac
 
1920
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1921
$as_echo "$ac_try_echo"; } >&5
 
1922
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1923
  ac_status=$?
 
1924
  if test -s conftest.err; then
 
1925
    grep -v '^ *+' conftest.err >conftest.er1
 
1926
    cat conftest.er1 >&5
 
1927
    mv -f conftest.er1 conftest.err
 
1928
  fi
 
1929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1930
  test $ac_status = 0; } >/dev/null && {
 
1931
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1932
         test ! -s conftest.err
 
1933
       }; then :
 
1934
  ac_retval=0
 
1935
else
 
1936
  $as_echo "$as_me: failed program was:" >&5
 
1937
sed 's/^/| /' conftest.$ac_ext >&5
 
1938
 
 
1939
    ac_retval=1
 
1940
fi
 
1941
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1942
  return $ac_retval
 
1943
 
 
1944
} # ac_fn_cxx_try_cpp
 
1945
 
 
1946
# ac_fn_cxx_try_link LINENO
 
1947
# -------------------------
 
1948
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1949
ac_fn_cxx_try_link ()
 
1950
{
 
1951
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1952
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1953
  if { { ac_try="$ac_link"
 
1954
case "(($ac_try" in
 
1955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1956
  *) ac_try_echo=$ac_try;;
 
1957
esac
 
1958
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1959
$as_echo "$ac_try_echo"; } >&5
 
1960
  (eval "$ac_link") 2>conftest.err
 
1961
  ac_status=$?
 
1962
  if test -s conftest.err; then
 
1963
    grep -v '^ *+' conftest.err >conftest.er1
 
1964
    cat conftest.er1 >&5
 
1965
    mv -f conftest.er1 conftest.err
 
1966
  fi
 
1967
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1968
  test $ac_status = 0; } && {
 
1969
         test -z "$ac_cxx_werror_flag" ||
 
1970
         test ! -s conftest.err
 
1971
       } && test -s conftest$ac_exeext && {
 
1972
         test "$cross_compiling" = yes ||
 
1973
         $as_test_x conftest$ac_exeext
 
1974
       }; then :
 
1975
  ac_retval=0
 
1976
else
 
1977
  $as_echo "$as_me: failed program was:" >&5
 
1978
sed 's/^/| /' conftest.$ac_ext >&5
 
1979
 
 
1980
        ac_retval=1
 
1981
fi
 
1982
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1983
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1984
  # interfere with the next link command; also delete a directory that is
 
1985
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1986
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1987
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1988
  return $ac_retval
 
1989
 
 
1990
} # ac_fn_cxx_try_link
 
1991
 
 
1992
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1993
# -------------------------------------------------------
 
1994
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1995
# the include files in INCLUDES and setting the cache variable VAR
 
1996
# accordingly.
 
1997
ac_fn_c_check_header_mongrel ()
 
1998
{
 
1999
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2000
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2001
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2002
$as_echo_n "checking for $2... " >&6; }
 
2003
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2004
  $as_echo_n "(cached) " >&6
 
2005
fi
 
2006
eval ac_res=\$$3
 
2007
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2008
$as_echo "$ac_res" >&6; }
 
2009
else
 
2010
  # Is the header compilable?
 
2011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2012
$as_echo_n "checking $2 usability... " >&6; }
 
2013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2014
/* end confdefs.h.  */
 
2015
$4
 
2016
#include <$2>
 
2017
_ACEOF
 
2018
if ac_fn_c_try_compile "$LINENO"; then :
 
2019
  ac_header_compiler=yes
 
2020
else
 
2021
  ac_header_compiler=no
 
2022
fi
 
2023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2025
$as_echo "$ac_header_compiler" >&6; }
 
2026
 
 
2027
# Is the header present?
 
2028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2029
$as_echo_n "checking $2 presence... " >&6; }
 
2030
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2031
/* end confdefs.h.  */
 
2032
#include <$2>
 
2033
_ACEOF
 
2034
if ac_fn_c_try_cpp "$LINENO"; then :
 
2035
  ac_header_preproc=yes
 
2036
else
 
2037
  ac_header_preproc=no
 
2038
fi
 
2039
rm -f conftest.err conftest.$ac_ext
 
2040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2041
$as_echo "$ac_header_preproc" >&6; }
 
2042
 
 
2043
# So?  What about this header?
 
2044
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2045
  yes:no: )
 
2046
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2047
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2048
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2049
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2050
    ;;
 
2051
  no:yes:* )
 
2052
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2053
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2054
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2055
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2056
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2057
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2058
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2059
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2060
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2061
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2062
( cat <<\_ASBOX
 
2063
## --------------------------------- ##
 
2064
## Report this to edam@waxworlds.org ##
 
2065
## --------------------------------- ##
 
2066
_ASBOX
 
2067
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2068
    ;;
 
2069
esac
 
2070
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2071
$as_echo_n "checking for $2... " >&6; }
 
2072
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2073
  $as_echo_n "(cached) " >&6
 
2074
else
 
2075
  eval "$3=\$ac_header_compiler"
 
2076
fi
 
2077
eval ac_res=\$$3
 
2078
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2079
$as_echo "$ac_res" >&6; }
 
2080
fi
 
2081
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2082
 
 
2083
} # ac_fn_c_check_header_mongrel
 
2084
cat >config.log <<_ACEOF
 
2085
This file contains any messages produced by compilers while
 
2086
running configure, to aid debugging if configure makes a mistake.
 
2087
 
 
2088
It was created by sqlite3cc $as_me 0.1.0, which was
 
2089
generated by GNU Autoconf 2.64.  Invocation command line was
 
2090
 
 
2091
  $ $0 $@
 
2092
 
 
2093
_ACEOF
 
2094
exec 5>>config.log
 
2095
{
 
2096
cat <<_ASUNAME
 
2097
## --------- ##
 
2098
## Platform. ##
 
2099
## --------- ##
 
2100
 
 
2101
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2102
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2103
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2104
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2105
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2106
 
 
2107
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2108
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2109
 
 
2110
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2111
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2112
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2113
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2114
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2115
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2116
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2117
 
 
2118
_ASUNAME
 
2119
 
 
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2121
for as_dir in $PATH
 
2122
do
 
2123
  IFS=$as_save_IFS
 
2124
  test -z "$as_dir" && as_dir=.
 
2125
    $as_echo "PATH: $as_dir"
 
2126
  done
 
2127
IFS=$as_save_IFS
 
2128
 
 
2129
} >&5
 
2130
 
 
2131
cat >&5 <<_ACEOF
 
2132
 
 
2133
 
 
2134
## ----------- ##
 
2135
## Core tests. ##
 
2136
## ----------- ##
 
2137
 
 
2138
_ACEOF
 
2139
 
 
2140
 
 
2141
# Keep a trace of the command line.
 
2142
# Strip out --no-create and --no-recursion so they do not pile up.
 
2143
# Strip out --silent because we don't want to record it for future runs.
 
2144
# Also quote any args containing shell meta-characters.
 
2145
# Make two passes to allow for proper duplicate-argument suppression.
 
2146
ac_configure_args=
 
2147
ac_configure_args0=
 
2148
ac_configure_args1=
 
2149
ac_must_keep_next=false
 
2150
for ac_pass in 1 2
 
2151
do
 
2152
  for ac_arg
 
2153
  do
 
2154
    case $ac_arg in
 
2155
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2156
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2157
    | -silent | --silent | --silen | --sile | --sil)
 
2158
      continue ;;
 
2159
    *\'*)
 
2160
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2161
    esac
 
2162
    case $ac_pass in
 
2163
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2164
    2)
 
2165
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2166
      if test $ac_must_keep_next = true; then
 
2167
        ac_must_keep_next=false # Got value, back to normal.
 
2168
      else
 
2169
        case $ac_arg in
 
2170
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2171
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2172
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2173
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2174
            case "$ac_configure_args0 " in
 
2175
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2176
            esac
 
2177
            ;;
 
2178
          -* ) ac_must_keep_next=true ;;
 
2179
        esac
 
2180
      fi
 
2181
      as_fn_append ac_configure_args " '$ac_arg'"
 
2182
      ;;
 
2183
    esac
 
2184
  done
 
2185
done
 
2186
{ ac_configure_args0=; unset ac_configure_args0;}
 
2187
{ ac_configure_args1=; unset ac_configure_args1;}
 
2188
 
 
2189
# When interrupted or exit'd, cleanup temporary files, and complete
 
2190
# config.log.  We remove comments because anyway the quotes in there
 
2191
# would cause problems or look ugly.
 
2192
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2193
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2194
trap 'exit_status=$?
 
2195
  # Save into config.log some information that might help in debugging.
 
2196
  {
 
2197
    echo
 
2198
 
 
2199
    cat <<\_ASBOX
 
2200
## ---------------- ##
 
2201
## Cache variables. ##
 
2202
## ---------------- ##
 
2203
_ASBOX
 
2204
    echo
 
2205
    # The following way of writing the cache mishandles newlines in values,
 
2206
(
 
2207
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2208
    eval ac_val=\$$ac_var
 
2209
    case $ac_val in #(
 
2210
    *${as_nl}*)
 
2211
      case $ac_var in #(
 
2212
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2213
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2214
      esac
 
2215
      case $ac_var in #(
 
2216
      _ | IFS | as_nl) ;; #(
 
2217
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2218
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2219
      esac ;;
 
2220
    esac
 
2221
  done
 
2222
  (set) 2>&1 |
 
2223
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2224
    *${as_nl}ac_space=\ *)
 
2225
      sed -n \
 
2226
        "s/'\''/'\''\\\\'\'''\''/g;
 
2227
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2228
      ;; #(
 
2229
    *)
 
2230
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2231
      ;;
 
2232
    esac |
 
2233
    sort
 
2234
)
 
2235
    echo
 
2236
 
 
2237
    cat <<\_ASBOX
 
2238
## ----------------- ##
 
2239
## Output variables. ##
 
2240
## ----------------- ##
 
2241
_ASBOX
 
2242
    echo
 
2243
    for ac_var in $ac_subst_vars
 
2244
    do
 
2245
      eval ac_val=\$$ac_var
 
2246
      case $ac_val in
 
2247
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2248
      esac
 
2249
      $as_echo "$ac_var='\''$ac_val'\''"
 
2250
    done | sort
 
2251
    echo
 
2252
 
 
2253
    if test -n "$ac_subst_files"; then
 
2254
      cat <<\_ASBOX
 
2255
## ------------------- ##
 
2256
## File substitutions. ##
 
2257
## ------------------- ##
 
2258
_ASBOX
 
2259
      echo
 
2260
      for ac_var in $ac_subst_files
 
2261
      do
 
2262
        eval ac_val=\$$ac_var
 
2263
        case $ac_val in
 
2264
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2265
        esac
 
2266
        $as_echo "$ac_var='\''$ac_val'\''"
 
2267
      done | sort
 
2268
      echo
 
2269
    fi
 
2270
 
 
2271
    if test -s confdefs.h; then
 
2272
      cat <<\_ASBOX
 
2273
## ----------- ##
 
2274
## confdefs.h. ##
 
2275
## ----------- ##
 
2276
_ASBOX
 
2277
      echo
 
2278
      cat confdefs.h
 
2279
      echo
 
2280
    fi
 
2281
    test "$ac_signal" != 0 &&
 
2282
      $as_echo "$as_me: caught signal $ac_signal"
 
2283
    $as_echo "$as_me: exit $exit_status"
 
2284
  } >&5
 
2285
  rm -f core *.core core.conftest.* &&
 
2286
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2287
    exit $exit_status
 
2288
' 0
 
2289
for ac_signal in 1 2 13 15; do
 
2290
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2291
done
 
2292
ac_signal=0
 
2293
 
 
2294
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2295
rm -f -r conftest* confdefs.h
 
2296
 
 
2297
$as_echo "/* confdefs.h */" > confdefs.h
 
2298
 
 
2299
# Predefined preprocessor variables.
 
2300
 
 
2301
cat >>confdefs.h <<_ACEOF
 
2302
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2303
_ACEOF
 
2304
 
 
2305
cat >>confdefs.h <<_ACEOF
 
2306
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2307
_ACEOF
 
2308
 
 
2309
cat >>confdefs.h <<_ACEOF
 
2310
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2311
_ACEOF
 
2312
 
 
2313
cat >>confdefs.h <<_ACEOF
 
2314
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2315
_ACEOF
 
2316
 
 
2317
cat >>confdefs.h <<_ACEOF
 
2318
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2319
_ACEOF
 
2320
 
 
2321
cat >>confdefs.h <<_ACEOF
 
2322
#define PACKAGE_URL "$PACKAGE_URL"
 
2323
_ACEOF
 
2324
 
 
2325
 
 
2326
# Let the site file select an alternate cache file if it wants to.
 
2327
# Prefer an explicitly selected file to automatically selected ones.
 
2328
ac_site_file1=NONE
 
2329
ac_site_file2=NONE
 
2330
if test -n "$CONFIG_SITE"; then
 
2331
  ac_site_file1=$CONFIG_SITE
 
2332
elif test "x$prefix" != xNONE; then
 
2333
  ac_site_file1=$prefix/share/config.site
 
2334
  ac_site_file2=$prefix/etc/config.site
 
2335
else
 
2336
  ac_site_file1=$ac_default_prefix/share/config.site
 
2337
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2338
fi
 
2339
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2340
do
 
2341
  test "x$ac_site_file" = xNONE && continue
 
2342
  if test -r "$ac_site_file"; then
 
2343
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2344
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2345
    sed 's/^/| /' "$ac_site_file" >&5
 
2346
    . "$ac_site_file"
 
2347
  fi
 
2348
done
 
2349
 
 
2350
if test -r "$cache_file"; then
 
2351
  # Some versions of bash will fail to source /dev/null (special
 
2352
  # files actually), so we avoid doing that.
 
2353
  if test -f "$cache_file"; then
 
2354
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2355
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2356
    case $cache_file in
 
2357
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2358
      *)                      . "./$cache_file";;
 
2359
    esac
 
2360
  fi
 
2361
else
 
2362
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2363
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2364
  >$cache_file
 
2365
fi
 
2366
 
 
2367
# Check that the precious variables saved in the cache have kept the same
 
2368
# value.
 
2369
ac_cache_corrupted=false
 
2370
for ac_var in $ac_precious_vars; do
 
2371
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2372
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2373
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2374
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2375
  case $ac_old_set,$ac_new_set in
 
2376
    set,)
 
2377
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2378
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2379
      ac_cache_corrupted=: ;;
 
2380
    ,set)
 
2381
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2382
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2383
      ac_cache_corrupted=: ;;
 
2384
    ,);;
 
2385
    *)
 
2386
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2387
        # differences in whitespace do not lead to failure.
 
2388
        ac_old_val_w=`echo x $ac_old_val`
 
2389
        ac_new_val_w=`echo x $ac_new_val`
 
2390
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2391
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2392
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2393
          ac_cache_corrupted=:
 
2394
        else
 
2395
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2396
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2397
          eval $ac_var=\$ac_old_val
 
2398
        fi
 
2399
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2400
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2401
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2402
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2403
      fi;;
 
2404
  esac
 
2405
  # Pass precious variables to config.status.
 
2406
  if test "$ac_new_set" = set; then
 
2407
    case $ac_new_val in
 
2408
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2409
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2410
    esac
 
2411
    case " $ac_configure_args " in
 
2412
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2413
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2414
    esac
 
2415
  fi
 
2416
done
 
2417
if $ac_cache_corrupted; then
 
2418
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2420
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2421
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2422
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2423
fi
 
2424
## -------------------- ##
 
2425
## Main body of script. ##
 
2426
## -------------------- ##
 
2427
 
 
2428
ac_ext=c
 
2429
ac_cpp='$CPP $CPPFLAGS'
 
2430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2433
 
 
2434
 
 
2435
ac_aux_dir=
 
2436
for ac_dir in build-aux "$srcdir"/build-aux; do
 
2437
  for ac_t in install-sh install.sh shtool; do
 
2438
    if test -f "$ac_dir/$ac_t"; then
 
2439
      ac_aux_dir=$ac_dir
 
2440
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2441
      break 2
 
2442
    fi
 
2443
  done
 
2444
done
 
2445
if test -z "$ac_aux_dir"; then
 
2446
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
 
2447
fi
 
2448
 
 
2449
# These three variables are undocumented and unsupported,
 
2450
# and are intended to be withdrawn in a future Autoconf release.
 
2451
# They can cause serious problems if a builder's source tree is in a directory
 
2452
# whose full name contains unusual characters.
 
2453
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2454
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2455
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2456
 
 
2457
 
 
2458
 
 
2459
am__api_version='1.11'
 
2460
 
 
2461
# Find a good install program.  We prefer a C program (faster),
 
2462
# so one script is as good as another.  But avoid the broken or
 
2463
# incompatible versions:
 
2464
# SysV /etc/install, /usr/sbin/install
 
2465
# SunOS /usr/etc/install
 
2466
# IRIX /sbin/install
 
2467
# AIX /bin/install
 
2468
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2469
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2470
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2471
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2472
# OS/2's system install, which has a completely different semantic
 
2473
# ./install, which can be erroneously created by make from ./install.sh.
 
2474
# Reject install programs that cannot install multiple files.
 
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2476
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2477
if test -z "$INSTALL"; then
 
2478
if test "${ac_cv_path_install+set}" = set; then :
 
2479
  $as_echo_n "(cached) " >&6
 
2480
else
 
2481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2482
for as_dir in $PATH
 
2483
do
 
2484
  IFS=$as_save_IFS
 
2485
  test -z "$as_dir" && as_dir=.
 
2486
    # Account for people who put trailing slashes in PATH elements.
 
2487
case $as_dir/ in #((
 
2488
  ./ | .// | /[cC]/* | \
 
2489
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2490
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2491
  /usr/ucb/* ) ;;
 
2492
  *)
 
2493
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2494
    # Don't use installbsd from OSF since it installs stuff as root
 
2495
    # by default.
 
2496
    for ac_prog in ginstall scoinst install; do
 
2497
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2498
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2499
          if test $ac_prog = install &&
 
2500
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2501
            # AIX install.  It has an incompatible calling convention.
 
2502
            :
 
2503
          elif test $ac_prog = install &&
 
2504
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2505
            # program-specific install script used by HP pwplus--don't use.
 
2506
            :
 
2507
          else
 
2508
            rm -rf conftest.one conftest.two conftest.dir
 
2509
            echo one > conftest.one
 
2510
            echo two > conftest.two
 
2511
            mkdir conftest.dir
 
2512
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2513
              test -s conftest.one && test -s conftest.two &&
 
2514
              test -s conftest.dir/conftest.one &&
 
2515
              test -s conftest.dir/conftest.two
 
2516
            then
 
2517
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2518
              break 3
 
2519
            fi
 
2520
          fi
 
2521
        fi
 
2522
      done
 
2523
    done
 
2524
    ;;
 
2525
esac
 
2526
 
 
2527
  done
 
2528
IFS=$as_save_IFS
 
2529
 
 
2530
rm -rf conftest.one conftest.two conftest.dir
 
2531
 
 
2532
fi
 
2533
  if test "${ac_cv_path_install+set}" = set; then
 
2534
    INSTALL=$ac_cv_path_install
 
2535
  else
 
2536
    # As a last resort, use the slow shell script.  Don't cache a
 
2537
    # value for INSTALL within a source directory, because that will
 
2538
    # break other packages using the cache if that directory is
 
2539
    # removed, or if the value is a relative name.
 
2540
    INSTALL=$ac_install_sh
 
2541
  fi
 
2542
fi
 
2543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2544
$as_echo "$INSTALL" >&6; }
 
2545
 
 
2546
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2547
# It thinks the first close brace ends the variable substitution.
 
2548
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2549
 
 
2550
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2551
 
 
2552
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2553
 
 
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2555
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2556
# Just in case
 
2557
sleep 1
 
2558
echo timestamp > conftest.file
 
2559
# Reject unsafe characters in $srcdir or the absolute working directory
 
2560
# name.  Accept space and tab only in the latter.
 
2561
am_lf='
 
2562
'
 
2563
case `pwd` in
 
2564
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2565
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2566
esac
 
2567
case $srcdir in
 
2568
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2569
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2570
esac
 
2571
 
 
2572
# Do `set' in a subshell so we don't clobber the current shell's
 
2573
# arguments.  Must try -L first in case configure is actually a
 
2574
# symlink; some systems play weird games with the mod time of symlinks
 
2575
# (eg FreeBSD returns the mod time of the symlink's containing
 
2576
# directory).
 
2577
if (
 
2578
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2579
   if test "$*" = "X"; then
 
2580
      # -L didn't work.
 
2581
      set X `ls -t "$srcdir/configure" conftest.file`
 
2582
   fi
 
2583
   rm -f conftest.file
 
2584
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2585
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2586
 
 
2587
      # If neither matched, then we have a broken ls.  This can happen
 
2588
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2589
      # broken ls alias from the environment.  This has actually
 
2590
      # happened.  Such a system could not be considered "sane".
 
2591
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2592
alias in your environment" "$LINENO" 5
 
2593
   fi
 
2594
 
 
2595
   test "$2" = conftest.file
 
2596
   )
 
2597
then
 
2598
   # Ok.
 
2599
   :
 
2600
else
 
2601
   as_fn_error "newly created file is older than distributed files!
 
2602
Check your system clock" "$LINENO" 5
 
2603
fi
 
2604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2605
$as_echo "yes" >&6; }
 
2606
test "$program_prefix" != NONE &&
 
2607
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2608
# Use a double $ so make ignores it.
 
2609
test "$program_suffix" != NONE &&
 
2610
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2611
# Double any \ or $.
 
2612
# By default was `s,x,x', remove it if useless.
 
2613
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2614
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2615
 
 
2616
# expand $ac_aux_dir to an absolute path
 
2617
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2618
 
 
2619
if test x"${MISSING+set}" != xset; then
 
2620
  case $am_aux_dir in
 
2621
  *\ * | *\     *)
 
2622
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2623
  *)
 
2624
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2625
  esac
 
2626
fi
 
2627
# Use eval to expand $SHELL
 
2628
if eval "$MISSING --run true"; then
 
2629
  am_missing_run="$MISSING --run "
 
2630
else
 
2631
  am_missing_run=
 
2632
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2633
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2634
fi
 
2635
 
 
2636
if test x"${install_sh}" != xset; then
 
2637
  case $am_aux_dir in
 
2638
  *\ * | *\     *)
 
2639
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2640
  *)
 
2641
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2642
  esac
 
2643
fi
 
2644
 
 
2645
# Installed binaries are usually stripped using `strip' when the user
 
2646
# run `make install-strip'.  However `strip' might not be the right
 
2647
# tool to use in cross-compilation environments, therefore Automake
 
2648
# will honor the `STRIP' environment variable to overrule this program.
 
2649
if test "$cross_compiling" != no; then
 
2650
  if test -n "$ac_tool_prefix"; then
 
2651
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2652
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2654
$as_echo_n "checking for $ac_word... " >&6; }
 
2655
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2656
  $as_echo_n "(cached) " >&6
 
2657
else
 
2658
  if test -n "$STRIP"; then
 
2659
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2660
else
 
2661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2662
for as_dir in $PATH
 
2663
do
 
2664
  IFS=$as_save_IFS
 
2665
  test -z "$as_dir" && as_dir=.
 
2666
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2667
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2668
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2669
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2670
    break 2
 
2671
  fi
 
2672
done
 
2673
  done
 
2674
IFS=$as_save_IFS
 
2675
 
 
2676
fi
 
2677
fi
 
2678
STRIP=$ac_cv_prog_STRIP
 
2679
if test -n "$STRIP"; then
 
2680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2681
$as_echo "$STRIP" >&6; }
 
2682
else
 
2683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2684
$as_echo "no" >&6; }
 
2685
fi
 
2686
 
 
2687
 
 
2688
fi
 
2689
if test -z "$ac_cv_prog_STRIP"; then
 
2690
  ac_ct_STRIP=$STRIP
 
2691
  # Extract the first word of "strip", so it can be a program name with args.
 
2692
set dummy strip; ac_word=$2
 
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2694
$as_echo_n "checking for $ac_word... " >&6; }
 
2695
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2696
  $as_echo_n "(cached) " >&6
 
2697
else
 
2698
  if test -n "$ac_ct_STRIP"; then
 
2699
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2700
else
 
2701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2702
for as_dir in $PATH
 
2703
do
 
2704
  IFS=$as_save_IFS
 
2705
  test -z "$as_dir" && as_dir=.
 
2706
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2707
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2708
    ac_cv_prog_ac_ct_STRIP="strip"
 
2709
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2710
    break 2
 
2711
  fi
 
2712
done
 
2713
  done
 
2714
IFS=$as_save_IFS
 
2715
 
 
2716
fi
 
2717
fi
 
2718
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2719
if test -n "$ac_ct_STRIP"; then
 
2720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2721
$as_echo "$ac_ct_STRIP" >&6; }
 
2722
else
 
2723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2724
$as_echo "no" >&6; }
 
2725
fi
 
2726
 
 
2727
  if test "x$ac_ct_STRIP" = x; then
 
2728
    STRIP=":"
 
2729
  else
 
2730
    case $cross_compiling:$ac_tool_warned in
 
2731
yes:)
 
2732
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2733
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2734
ac_tool_warned=yes ;;
 
2735
esac
 
2736
    STRIP=$ac_ct_STRIP
 
2737
  fi
 
2738
else
 
2739
  STRIP="$ac_cv_prog_STRIP"
 
2740
fi
 
2741
 
 
2742
fi
 
2743
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2744
 
 
2745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2746
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2747
if test -z "$MKDIR_P"; then
 
2748
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2749
  $as_echo_n "(cached) " >&6
 
2750
else
 
2751
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2752
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2753
do
 
2754
  IFS=$as_save_IFS
 
2755
  test -z "$as_dir" && as_dir=.
 
2756
    for ac_prog in mkdir gmkdir; do
 
2757
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2758
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2759
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2760
             'mkdir (GNU coreutils) '* | \
 
2761
             'mkdir (coreutils) '* | \
 
2762
             'mkdir (fileutils) '4.1*)
 
2763
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2764
               break 3;;
 
2765
           esac
 
2766
         done
 
2767
       done
 
2768
  done
 
2769
IFS=$as_save_IFS
 
2770
 
 
2771
fi
 
2772
 
 
2773
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2774
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2775
  else
 
2776
    # As a last resort, use the slow shell script.  Don't cache a
 
2777
    # value for MKDIR_P within a source directory, because that will
 
2778
    # break other packages using the cache if that directory is
 
2779
    # removed, or if the value is a relative name.
 
2780
    test -d ./--version && rmdir ./--version
 
2781
    MKDIR_P="$ac_install_sh -d"
 
2782
  fi
 
2783
fi
 
2784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2785
$as_echo "$MKDIR_P" >&6; }
 
2786
 
 
2787
mkdir_p="$MKDIR_P"
 
2788
case $mkdir_p in
 
2789
  [\\/$]* | ?:[\\/]*) ;;
 
2790
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2791
esac
 
2792
 
 
2793
for ac_prog in gawk mawk nawk awk
 
2794
do
 
2795
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2796
set dummy $ac_prog; ac_word=$2
 
2797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2798
$as_echo_n "checking for $ac_word... " >&6; }
 
2799
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2800
  $as_echo_n "(cached) " >&6
 
2801
else
 
2802
  if test -n "$AWK"; then
 
2803
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2804
else
 
2805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2806
for as_dir in $PATH
 
2807
do
 
2808
  IFS=$as_save_IFS
 
2809
  test -z "$as_dir" && as_dir=.
 
2810
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2811
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2812
    ac_cv_prog_AWK="$ac_prog"
 
2813
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2814
    break 2
 
2815
  fi
 
2816
done
 
2817
  done
 
2818
IFS=$as_save_IFS
 
2819
 
 
2820
fi
 
2821
fi
 
2822
AWK=$ac_cv_prog_AWK
 
2823
if test -n "$AWK"; then
 
2824
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2825
$as_echo "$AWK" >&6; }
 
2826
else
 
2827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2828
$as_echo "no" >&6; }
 
2829
fi
 
2830
 
 
2831
 
 
2832
  test -n "$AWK" && break
 
2833
done
 
2834
 
 
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2836
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2837
set x ${MAKE-make}
 
2838
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2839
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2840
  $as_echo_n "(cached) " >&6
 
2841
else
 
2842
  cat >conftest.make <<\_ACEOF
 
2843
SHELL = /bin/sh
 
2844
all:
 
2845
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2846
_ACEOF
 
2847
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2848
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2849
  *@@@%%%=?*=@@@%%%*)
 
2850
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2851
  *)
 
2852
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2853
esac
 
2854
rm -f conftest.make
 
2855
fi
 
2856
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2857
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2858
$as_echo "yes" >&6; }
 
2859
  SET_MAKE=
 
2860
else
 
2861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2862
$as_echo "no" >&6; }
 
2863
  SET_MAKE="MAKE=${MAKE-make}"
 
2864
fi
 
2865
 
 
2866
rm -rf .tst 2>/dev/null
 
2867
mkdir .tst 2>/dev/null
 
2868
if test -d .tst; then
 
2869
  am__leading_dot=.
 
2870
else
 
2871
  am__leading_dot=_
 
2872
fi
 
2873
rmdir .tst 2>/dev/null
 
2874
 
 
2875
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2876
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2877
  # is not polluted with repeated "-I."
 
2878
  am__isrc=' -I$(srcdir)'
 
2879
  # test to see if srcdir already configured
 
2880
  if test -f $srcdir/config.status; then
 
2881
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2882
  fi
 
2883
fi
 
2884
 
 
2885
# test whether we have cygpath
 
2886
if test -z "$CYGPATH_W"; then
 
2887
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2888
    CYGPATH_W='cygpath -w'
 
2889
  else
 
2890
    CYGPATH_W=echo
 
2891
  fi
 
2892
fi
 
2893
 
 
2894
 
 
2895
# Define the identity of the package.
 
2896
 PACKAGE='sqlite3cc'
 
2897
 VERSION='0.1.0'
 
2898
 
 
2899
 
 
2900
cat >>confdefs.h <<_ACEOF
 
2901
#define PACKAGE "$PACKAGE"
 
2902
_ACEOF
 
2903
 
 
2904
 
 
2905
cat >>confdefs.h <<_ACEOF
 
2906
#define VERSION "$VERSION"
 
2907
_ACEOF
 
2908
 
 
2909
# Some tools Automake needs.
 
2910
 
 
2911
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2912
 
 
2913
 
 
2914
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2915
 
 
2916
 
 
2917
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2918
 
 
2919
 
 
2920
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2921
 
 
2922
 
 
2923
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2924
 
 
2925
# We need awk for the "check" target.  The system "awk" is bad on
 
2926
# some platforms.
 
2927
# Always define AMTAR for backward compatibility.
 
2928
 
 
2929
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2930
 
 
2931
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2932
 
 
2933
 
 
2934
 
 
2935
 
 
2936
 
 
2937
 
 
2938
ac_config_headers="$ac_config_headers config.h"
 
2939
 
 
2940
 
 
2941
# checks for programs.
 
2942
ac_ext=cpp
 
2943
ac_cpp='$CXXCPP $CPPFLAGS'
 
2944
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2945
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2946
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2947
if test -z "$CXX"; then
 
2948
  if test -n "$CCC"; then
 
2949
    CXX=$CCC
 
2950
  else
 
2951
    if test -n "$ac_tool_prefix"; then
 
2952
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2953
  do
 
2954
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2957
$as_echo_n "checking for $ac_word... " >&6; }
 
2958
if test "${ac_cv_prog_CXX+set}" = set; then :
 
2959
  $as_echo_n "(cached) " >&6
 
2960
else
 
2961
  if test -n "$CXX"; then
 
2962
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2963
else
 
2964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2965
for as_dir in $PATH
 
2966
do
 
2967
  IFS=$as_save_IFS
 
2968
  test -z "$as_dir" && as_dir=.
 
2969
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2971
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2973
    break 2
 
2974
  fi
 
2975
done
 
2976
  done
 
2977
IFS=$as_save_IFS
 
2978
 
 
2979
fi
 
2980
fi
 
2981
CXX=$ac_cv_prog_CXX
 
2982
if test -n "$CXX"; then
 
2983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
2984
$as_echo "$CXX" >&6; }
 
2985
else
 
2986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2987
$as_echo "no" >&6; }
 
2988
fi
 
2989
 
 
2990
 
 
2991
    test -n "$CXX" && break
 
2992
  done
 
2993
fi
 
2994
if test -z "$CXX"; then
 
2995
  ac_ct_CXX=$CXX
 
2996
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2997
do
 
2998
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2999
set dummy $ac_prog; ac_word=$2
 
3000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3001
$as_echo_n "checking for $ac_word... " >&6; }
 
3002
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3003
  $as_echo_n "(cached) " >&6
 
3004
else
 
3005
  if test -n "$ac_ct_CXX"; then
 
3006
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3007
else
 
3008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3009
for as_dir in $PATH
 
3010
do
 
3011
  IFS=$as_save_IFS
 
3012
  test -z "$as_dir" && as_dir=.
 
3013
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3015
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3017
    break 2
 
3018
  fi
 
3019
done
 
3020
  done
 
3021
IFS=$as_save_IFS
 
3022
 
 
3023
fi
 
3024
fi
 
3025
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3026
if test -n "$ac_ct_CXX"; then
 
3027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3028
$as_echo "$ac_ct_CXX" >&6; }
 
3029
else
 
3030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3031
$as_echo "no" >&6; }
 
3032
fi
 
3033
 
 
3034
 
 
3035
  test -n "$ac_ct_CXX" && break
 
3036
done
 
3037
 
 
3038
  if test "x$ac_ct_CXX" = x; then
 
3039
    CXX="g++"
 
3040
  else
 
3041
    case $cross_compiling:$ac_tool_warned in
 
3042
yes:)
 
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3044
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3045
ac_tool_warned=yes ;;
 
3046
esac
 
3047
    CXX=$ac_ct_CXX
 
3048
  fi
 
3049
fi
 
3050
 
 
3051
  fi
 
3052
fi
 
3053
# Provide some information about the compiler.
 
3054
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3055
set X $ac_compile
 
3056
ac_compiler=$2
 
3057
for ac_option in --version -v -V -qversion; do
 
3058
  { { ac_try="$ac_compiler $ac_option >&5"
 
3059
case "(($ac_try" in
 
3060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3061
  *) ac_try_echo=$ac_try;;
 
3062
esac
 
3063
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3064
$as_echo "$ac_try_echo"; } >&5
 
3065
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3066
  ac_status=$?
 
3067
  if test -s conftest.err; then
 
3068
    sed '10a\
 
3069
... rest of stderr output deleted ...
 
3070
         10q' conftest.err >conftest.er1
 
3071
    cat conftest.er1 >&5
 
3072
    rm -f conftest.er1 conftest.err
 
3073
  fi
 
3074
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3075
  test $ac_status = 0; }
 
3076
done
 
3077
 
 
3078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3079
/* end confdefs.h.  */
 
3080
#include <stdio.h>
 
3081
int
 
3082
main ()
 
3083
{
 
3084
FILE *f = fopen ("conftest.out", "w");
 
3085
 return ferror (f) || fclose (f) != 0;
 
3086
 
 
3087
  ;
 
3088
  return 0;
 
3089
}
 
3090
_ACEOF
 
3091
ac_clean_files_save=$ac_clean_files
 
3092
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
 
3093
# Try to create an executable without -o first, disregard a.out.
 
3094
# It will help us diagnose broken compilers, and finding out an intuition
 
3095
# of exeext.
 
3096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 
3097
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
3098
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3099
 
 
3100
# The possible output files:
 
3101
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3102
 
 
3103
ac_rmfiles=
 
3104
for ac_file in $ac_files
 
3105
do
 
3106
  case $ac_file in
 
3107
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3108
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3109
  esac
 
3110
done
 
3111
rm -f $ac_rmfiles
 
3112
 
 
3113
if { { ac_try="$ac_link_default"
 
3114
case "(($ac_try" in
 
3115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3116
  *) ac_try_echo=$ac_try;;
 
3117
esac
 
3118
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3119
$as_echo "$ac_try_echo"; } >&5
 
3120
  (eval "$ac_link_default") 2>&5
 
3121
  ac_status=$?
 
3122
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3123
  test $ac_status = 0; }; then :
 
3124
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3125
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3126
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3127
# so that the user can short-circuit this test for compilers unknown to
 
3128
# Autoconf.
 
3129
for ac_file in $ac_files ''
 
3130
do
 
3131
  test -f "$ac_file" || continue
 
3132
  case $ac_file in
 
3133
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3134
        ;;
 
3135
    [ab].out )
 
3136
        # We found the default executable, but exeext='' is most
 
3137
        # certainly right.
 
3138
        break;;
 
3139
    *.* )
 
3140
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3141
        then :; else
 
3142
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3143
        fi
 
3144
        # We set ac_cv_exeext here because the later test for it is not
 
3145
        # safe: cross compilers may not add the suffix if given an `-o'
 
3146
        # argument, so we may need to know it at that point already.
 
3147
        # Even if this section looks crufty: it has the advantage of
 
3148
        # actually working.
 
3149
        break;;
 
3150
    * )
 
3151
        break;;
 
3152
  esac
 
3153
done
 
3154
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3155
 
 
3156
else
 
3157
  ac_file=''
 
3158
fi
 
3159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3160
$as_echo "$ac_file" >&6; }
 
3161
if test -z "$ac_file"; then :
 
3162
  $as_echo "$as_me: failed program was:" >&5
 
3163
sed 's/^/| /' conftest.$ac_ext >&5
 
3164
 
 
3165
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3166
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3167
{ as_fn_set_status 77
 
3168
as_fn_error "C++ compiler cannot create executables
 
3169
See \`config.log' for more details." "$LINENO" 5; }; }
 
3170
fi
 
3171
ac_exeext=$ac_cv_exeext
 
3172
 
 
3173
# Check that the compiler produces executables we can run.  If not, either
 
3174
# the compiler is broken, or we cross compile.
 
3175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
3176
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
3177
# If not cross compiling, check that we can run a simple program.
 
3178
if test "$cross_compiling" != yes; then
 
3179
  if { ac_try='./$ac_file'
 
3180
  { { case "(($ac_try" in
 
3181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3182
  *) ac_try_echo=$ac_try;;
 
3183
esac
 
3184
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3185
$as_echo "$ac_try_echo"; } >&5
 
3186
  (eval "$ac_try") 2>&5
 
3187
  ac_status=$?
 
3188
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3189
  test $ac_status = 0; }; }; then
 
3190
    cross_compiling=no
 
3191
  else
 
3192
    if test "$cross_compiling" = maybe; then
 
3193
        cross_compiling=yes
 
3194
    else
 
3195
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3196
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3197
as_fn_error "cannot run C++ compiled programs.
 
3198
If you meant to cross compile, use \`--host'.
 
3199
See \`config.log' for more details." "$LINENO" 5; }
 
3200
    fi
 
3201
  fi
 
3202
fi
 
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3204
$as_echo "yes" >&6; }
 
3205
 
 
3206
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
 
3207
ac_clean_files=$ac_clean_files_save
 
3208
# Check that the compiler produces executables we can run.  If not, either
 
3209
# the compiler is broken, or we cross compile.
 
3210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3211
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3213
$as_echo "$cross_compiling" >&6; }
 
3214
 
 
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3216
$as_echo_n "checking for suffix of executables... " >&6; }
 
3217
if { { ac_try="$ac_link"
 
3218
case "(($ac_try" in
 
3219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3220
  *) ac_try_echo=$ac_try;;
 
3221
esac
 
3222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3223
$as_echo "$ac_try_echo"; } >&5
 
3224
  (eval "$ac_link") 2>&5
 
3225
  ac_status=$?
 
3226
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3227
  test $ac_status = 0; }; then :
 
3228
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3229
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3230
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3231
# `rm'.
 
3232
for ac_file in conftest.exe conftest conftest.*; do
 
3233
  test -f "$ac_file" || continue
 
3234
  case $ac_file in
 
3235
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3236
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3237
          break;;
 
3238
    * ) break;;
 
3239
  esac
 
3240
done
 
3241
else
 
3242
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3243
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3244
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3245
See \`config.log' for more details." "$LINENO" 5; }
 
3246
fi
 
3247
rm -f conftest$ac_cv_exeext
 
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3249
$as_echo "$ac_cv_exeext" >&6; }
 
3250
 
 
3251
rm -f conftest.$ac_ext
 
3252
EXEEXT=$ac_cv_exeext
 
3253
ac_exeext=$EXEEXT
 
3254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3255
$as_echo_n "checking for suffix of object files... " >&6; }
 
3256
if test "${ac_cv_objext+set}" = set; then :
 
3257
  $as_echo_n "(cached) " >&6
 
3258
else
 
3259
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3260
/* end confdefs.h.  */
 
3261
 
 
3262
int
 
3263
main ()
 
3264
{
 
3265
 
 
3266
  ;
 
3267
  return 0;
 
3268
}
 
3269
_ACEOF
 
3270
rm -f conftest.o conftest.obj
 
3271
if { { ac_try="$ac_compile"
 
3272
case "(($ac_try" in
 
3273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3274
  *) ac_try_echo=$ac_try;;
 
3275
esac
 
3276
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3277
$as_echo "$ac_try_echo"; } >&5
 
3278
  (eval "$ac_compile") 2>&5
 
3279
  ac_status=$?
 
3280
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3281
  test $ac_status = 0; }; then :
 
3282
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3283
  test -f "$ac_file" || continue;
 
3284
  case $ac_file in
 
3285
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3286
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3287
       break;;
 
3288
  esac
 
3289
done
 
3290
else
 
3291
  $as_echo "$as_me: failed program was:" >&5
 
3292
sed 's/^/| /' conftest.$ac_ext >&5
 
3293
 
 
3294
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3296
as_fn_error "cannot compute suffix of object files: cannot compile
 
3297
See \`config.log' for more details." "$LINENO" 5; }
 
3298
fi
 
3299
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3300
fi
 
3301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3302
$as_echo "$ac_cv_objext" >&6; }
 
3303
OBJEXT=$ac_cv_objext
 
3304
ac_objext=$OBJEXT
 
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3306
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3307
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3308
  $as_echo_n "(cached) " >&6
 
3309
else
 
3310
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3311
/* end confdefs.h.  */
 
3312
 
 
3313
int
 
3314
main ()
 
3315
{
 
3316
#ifndef __GNUC__
 
3317
       choke me
 
3318
#endif
 
3319
 
 
3320
  ;
 
3321
  return 0;
 
3322
}
 
3323
_ACEOF
 
3324
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3325
  ac_compiler_gnu=yes
 
3326
else
 
3327
  ac_compiler_gnu=no
 
3328
fi
 
3329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3330
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3331
 
 
3332
fi
 
3333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3334
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3335
if test $ac_compiler_gnu = yes; then
 
3336
  GXX=yes
 
3337
else
 
3338
  GXX=
 
3339
fi
 
3340
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3341
ac_save_CXXFLAGS=$CXXFLAGS
 
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3343
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3344
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3345
  $as_echo_n "(cached) " >&6
 
3346
else
 
3347
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3348
   ac_cxx_werror_flag=yes
 
3349
   ac_cv_prog_cxx_g=no
 
3350
   CXXFLAGS="-g"
 
3351
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3352
/* end confdefs.h.  */
 
3353
 
 
3354
int
 
3355
main ()
 
3356
{
 
3357
 
 
3358
  ;
 
3359
  return 0;
 
3360
}
 
3361
_ACEOF
 
3362
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3363
  ac_cv_prog_cxx_g=yes
 
3364
else
 
3365
  CXXFLAGS=""
 
3366
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3367
/* end confdefs.h.  */
 
3368
 
 
3369
int
 
3370
main ()
 
3371
{
 
3372
 
 
3373
  ;
 
3374
  return 0;
 
3375
}
 
3376
_ACEOF
 
3377
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3378
 
 
3379
else
 
3380
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3381
         CXXFLAGS="-g"
 
3382
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3383
/* end confdefs.h.  */
 
3384
 
 
3385
int
 
3386
main ()
 
3387
{
 
3388
 
 
3389
  ;
 
3390
  return 0;
 
3391
}
 
3392
_ACEOF
 
3393
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3394
  ac_cv_prog_cxx_g=yes
 
3395
fi
 
3396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3397
fi
 
3398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3399
fi
 
3400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3401
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3402
fi
 
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3404
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3405
if test "$ac_test_CXXFLAGS" = set; then
 
3406
  CXXFLAGS=$ac_save_CXXFLAGS
 
3407
elif test $ac_cv_prog_cxx_g = yes; then
 
3408
  if test "$GXX" = yes; then
 
3409
    CXXFLAGS="-g -O2"
 
3410
  else
 
3411
    CXXFLAGS="-g"
 
3412
  fi
 
3413
else
 
3414
  if test "$GXX" = yes; then
 
3415
    CXXFLAGS="-O2"
 
3416
  else
 
3417
    CXXFLAGS=
 
3418
  fi
 
3419
fi
 
3420
ac_ext=c
 
3421
ac_cpp='$CPP $CPPFLAGS'
 
3422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3425
DEPDIR="${am__leading_dot}deps"
 
3426
 
 
3427
ac_config_commands="$ac_config_commands depfiles"
 
3428
 
 
3429
 
 
3430
am_make=${MAKE-make}
 
3431
cat > confinc << 'END'
 
3432
am__doit:
 
3433
        @echo this is the am__doit target
 
3434
.PHONY: am__doit
 
3435
END
 
3436
# If we don't find an include directive, just comment out the code.
 
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3438
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3439
am__include="#"
 
3440
am__quote=
 
3441
_am_result=none
 
3442
# First try GNU make style include.
 
3443
echo "include confinc" > confmf
 
3444
# Ignore all kinds of additional output from `make'.
 
3445
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3446
*the\ am__doit\ target*)
 
3447
  am__include=include
 
3448
  am__quote=
 
3449
  _am_result=GNU
 
3450
  ;;
 
3451
esac
 
3452
# Now try BSD make style include.
 
3453
if test "$am__include" = "#"; then
 
3454
   echo '.include "confinc"' > confmf
 
3455
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3456
   *the\ am__doit\ target*)
 
3457
     am__include=.include
 
3458
     am__quote="\""
 
3459
     _am_result=BSD
 
3460
     ;;
 
3461
   esac
 
3462
fi
 
3463
 
 
3464
 
 
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3466
$as_echo "$_am_result" >&6; }
 
3467
rm -f confinc confmf
 
3468
 
 
3469
# Check whether --enable-dependency-tracking was given.
 
3470
if test "${enable_dependency_tracking+set}" = set; then :
 
3471
  enableval=$enable_dependency_tracking;
 
3472
fi
 
3473
 
 
3474
if test "x$enable_dependency_tracking" != xno; then
 
3475
  am_depcomp="$ac_aux_dir/depcomp"
 
3476
  AMDEPBACKSLASH='\'
 
3477
fi
 
3478
 if test "x$enable_dependency_tracking" != xno; then
 
3479
  AMDEP_TRUE=
 
3480
  AMDEP_FALSE='#'
 
3481
else
 
3482
  AMDEP_TRUE='#'
 
3483
  AMDEP_FALSE=
 
3484
fi
 
3485
 
 
3486
 
 
3487
 
 
3488
depcc="$CXX"  am_compiler_list=
 
3489
 
 
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3491
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3492
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
3493
  $as_echo_n "(cached) " >&6
 
3494
else
 
3495
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3496
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3497
  # making bogus files that we don't know about and never remove.  For
 
3498
  # instance it was reported that on HP-UX the gcc test will end up
 
3499
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3500
  # in D'.
 
3501
  mkdir conftest.dir
 
3502
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3503
  # using a relative directory.
 
3504
  cp "$am_depcomp" conftest.dir
 
3505
  cd conftest.dir
 
3506
  # We will build objects and dependencies in a subdirectory because
 
3507
  # it helps to detect inapplicable dependency modes.  For instance
 
3508
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3509
  # side effect of compilation, but ICC will put the dependencies in
 
3510
  # the current directory while Tru64 will put them in the object
 
3511
  # directory.
 
3512
  mkdir sub
 
3513
 
 
3514
  am_cv_CXX_dependencies_compiler_type=none
 
3515
  if test "$am_compiler_list" = ""; then
 
3516
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3517
  fi
 
3518
  am__universal=false
 
3519
  case " $depcc " in #(
 
3520
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3521
     esac
 
3522
 
 
3523
  for depmode in $am_compiler_list; do
 
3524
    # Setup a source with many dependencies, because some compilers
 
3525
    # like to wrap large dependency lists on column 80 (with \), and
 
3526
    # we should not choose a depcomp mode which is confused by this.
 
3527
    #
 
3528
    # We need to recreate these files for each test, as the compiler may
 
3529
    # overwrite some of them when testing with obscure command lines.
 
3530
    # This happens at least with the AIX C compiler.
 
3531
    : > sub/conftest.c
 
3532
    for i in 1 2 3 4 5 6; do
 
3533
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3534
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3535
      # Solaris 8's {/usr,}/bin/sh.
 
3536
      touch sub/conftst$i.h
 
3537
    done
 
3538
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3539
 
 
3540
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3541
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3542
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3543
    # versions had trouble with output in subdirs
 
3544
    am__obj=sub/conftest.${OBJEXT-o}
 
3545
    am__minus_obj="-o $am__obj"
 
3546
    case $depmode in
 
3547
    gcc)
 
3548
      # This depmode causes a compiler race in universal mode.
 
3549
      test "$am__universal" = false || continue
 
3550
      ;;
 
3551
    nosideeffect)
 
3552
      # after this tag, mechanisms are not by side-effect, so they'll
 
3553
      # only be used when explicitly requested
 
3554
      if test "x$enable_dependency_tracking" = xyes; then
 
3555
        continue
 
3556
      else
 
3557
        break
 
3558
      fi
 
3559
      ;;
 
3560
    msvisualcpp | msvcmsys)
 
3561
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3562
      # not run yet.  These depmodes are late enough in the game, and
 
3563
      # so weak that their functioning should not be impacted.
 
3564
      am__obj=conftest.${OBJEXT-o}
 
3565
      am__minus_obj=
 
3566
      ;;
 
3567
    none) break ;;
 
3568
    esac
 
3569
    if depmode=$depmode \
 
3570
       source=sub/conftest.c object=$am__obj \
 
3571
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3572
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3573
         >/dev/null 2>conftest.err &&
 
3574
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3575
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3576
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3577
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3578
      # icc doesn't choke on unknown options, it will just issue warnings
 
3579
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3580
      # that says an option was ignored or not supported.
 
3581
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3582
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3583
      # The diagnosis changed in icc 8.0:
 
3584
      #   icc: Command line remark: option '-MP' not supported
 
3585
      if (grep 'ignoring option' conftest.err ||
 
3586
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3587
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3588
        break
 
3589
      fi
 
3590
    fi
 
3591
  done
 
3592
 
 
3593
  cd ..
 
3594
  rm -rf conftest.dir
 
3595
else
 
3596
  am_cv_CXX_dependencies_compiler_type=none
 
3597
fi
 
3598
 
 
3599
fi
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3601
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3602
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3603
 
 
3604
 if
 
3605
  test "x$enable_dependency_tracking" != xno \
 
3606
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3607
  am__fastdepCXX_TRUE=
 
3608
  am__fastdepCXX_FALSE='#'
 
3609
else
 
3610
  am__fastdepCXX_TRUE='#'
 
3611
  am__fastdepCXX_FALSE=
 
3612
fi
 
3613
 
 
3614
 
 
3615
case `pwd` in
 
3616
  *\ * | *\     *)
 
3617
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3618
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3619
esac
 
3620
 
 
3621
 
 
3622
 
 
3623
macro_version='2.2.6'
 
3624
macro_revision='1.3012'
 
3625
 
 
3626
 
 
3627
 
 
3628
 
 
3629
 
 
3630
 
 
3631
 
 
3632
 
 
3633
 
 
3634
 
 
3635
 
 
3636
 
 
3637
 
 
3638
ltmain="$ac_aux_dir/ltmain.sh"
 
3639
 
 
3640
# Make sure we can run config.sub.
 
3641
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3642
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
3643
 
 
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
3645
$as_echo_n "checking build system type... " >&6; }
 
3646
if test "${ac_cv_build+set}" = set; then :
 
3647
  $as_echo_n "(cached) " >&6
 
3648
else
 
3649
  ac_build_alias=$build_alias
 
3650
test "x$ac_build_alias" = x &&
 
3651
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3652
test "x$ac_build_alias" = x &&
 
3653
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
3654
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3655
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3656
 
 
3657
fi
 
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3659
$as_echo "$ac_cv_build" >&6; }
 
3660
case $ac_cv_build in
 
3661
*-*-*) ;;
 
3662
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
3663
esac
 
3664
build=$ac_cv_build
 
3665
ac_save_IFS=$IFS; IFS='-'
 
3666
set x $ac_cv_build
 
3667
shift
 
3668
build_cpu=$1
 
3669
build_vendor=$2
 
3670
shift; shift
 
3671
# Remember, the first character of IFS is used to create $*,
 
3672
# except with old shells:
 
3673
build_os=$*
 
3674
IFS=$ac_save_IFS
 
3675
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3676
 
 
3677
 
 
3678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3679
$as_echo_n "checking host system type... " >&6; }
 
3680
if test "${ac_cv_host+set}" = set; then :
 
3681
  $as_echo_n "(cached) " >&6
 
3682
else
 
3683
  if test "x$host_alias" = x; then
 
3684
  ac_cv_host=$ac_cv_build
 
3685
else
 
3686
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3687
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3688
fi
 
3689
 
 
3690
fi
 
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3692
$as_echo "$ac_cv_host" >&6; }
 
3693
case $ac_cv_host in
 
3694
*-*-*) ;;
 
3695
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
3696
esac
 
3697
host=$ac_cv_host
 
3698
ac_save_IFS=$IFS; IFS='-'
 
3699
set x $ac_cv_host
 
3700
shift
 
3701
host_cpu=$1
 
3702
host_vendor=$2
 
3703
shift; shift
 
3704
# Remember, the first character of IFS is used to create $*,
 
3705
# except with old shells:
 
3706
host_os=$*
 
3707
IFS=$ac_save_IFS
 
3708
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3709
 
 
3710
 
 
3711
ac_ext=c
 
3712
ac_cpp='$CPP $CPPFLAGS'
 
3713
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3714
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3716
if test -n "$ac_tool_prefix"; then
 
3717
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3718
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3720
$as_echo_n "checking for $ac_word... " >&6; }
 
3721
if test "${ac_cv_prog_CC+set}" = set; then :
 
3722
  $as_echo_n "(cached) " >&6
 
3723
else
 
3724
  if test -n "$CC"; then
 
3725
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3726
else
 
3727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3728
for as_dir in $PATH
 
3729
do
 
3730
  IFS=$as_save_IFS
 
3731
  test -z "$as_dir" && as_dir=.
 
3732
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3733
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3734
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3735
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3736
    break 2
 
3737
  fi
 
3738
done
 
3739
  done
 
3740
IFS=$as_save_IFS
 
3741
 
 
3742
fi
 
3743
fi
 
3744
CC=$ac_cv_prog_CC
 
3745
if test -n "$CC"; then
 
3746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3747
$as_echo "$CC" >&6; }
 
3748
else
 
3749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3750
$as_echo "no" >&6; }
 
3751
fi
 
3752
 
 
3753
 
 
3754
fi
 
3755
if test -z "$ac_cv_prog_CC"; then
 
3756
  ac_ct_CC=$CC
 
3757
  # Extract the first word of "gcc", so it can be a program name with args.
 
3758
set dummy gcc; ac_word=$2
 
3759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3760
$as_echo_n "checking for $ac_word... " >&6; }
 
3761
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3762
  $as_echo_n "(cached) " >&6
 
3763
else
 
3764
  if test -n "$ac_ct_CC"; then
 
3765
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3766
else
 
3767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3768
for as_dir in $PATH
 
3769
do
 
3770
  IFS=$as_save_IFS
 
3771
  test -z "$as_dir" && as_dir=.
 
3772
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3773
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3774
    ac_cv_prog_ac_ct_CC="gcc"
 
3775
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3776
    break 2
 
3777
  fi
 
3778
done
 
3779
  done
 
3780
IFS=$as_save_IFS
 
3781
 
 
3782
fi
 
3783
fi
 
3784
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3785
if test -n "$ac_ct_CC"; then
 
3786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3787
$as_echo "$ac_ct_CC" >&6; }
 
3788
else
 
3789
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3790
$as_echo "no" >&6; }
 
3791
fi
 
3792
 
 
3793
  if test "x$ac_ct_CC" = x; then
 
3794
    CC=""
 
3795
  else
 
3796
    case $cross_compiling:$ac_tool_warned in
 
3797
yes:)
 
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3800
ac_tool_warned=yes ;;
 
3801
esac
 
3802
    CC=$ac_ct_CC
 
3803
  fi
 
3804
else
 
3805
  CC="$ac_cv_prog_CC"
 
3806
fi
 
3807
 
 
3808
if test -z "$CC"; then
 
3809
          if test -n "$ac_tool_prefix"; then
 
3810
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3811
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3813
$as_echo_n "checking for $ac_word... " >&6; }
 
3814
if test "${ac_cv_prog_CC+set}" = set; then :
 
3815
  $as_echo_n "(cached) " >&6
 
3816
else
 
3817
  if test -n "$CC"; then
 
3818
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3819
else
 
3820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3821
for as_dir in $PATH
 
3822
do
 
3823
  IFS=$as_save_IFS
 
3824
  test -z "$as_dir" && as_dir=.
 
3825
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3826
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3827
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3828
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3829
    break 2
 
3830
  fi
 
3831
done
 
3832
  done
 
3833
IFS=$as_save_IFS
 
3834
 
 
3835
fi
 
3836
fi
 
3837
CC=$ac_cv_prog_CC
 
3838
if test -n "$CC"; then
 
3839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3840
$as_echo "$CC" >&6; }
 
3841
else
 
3842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3843
$as_echo "no" >&6; }
 
3844
fi
 
3845
 
 
3846
 
 
3847
  fi
 
3848
fi
 
3849
if test -z "$CC"; then
 
3850
  # Extract the first word of "cc", so it can be a program name with args.
 
3851
set dummy cc; ac_word=$2
 
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3853
$as_echo_n "checking for $ac_word... " >&6; }
 
3854
if test "${ac_cv_prog_CC+set}" = set; then :
 
3855
  $as_echo_n "(cached) " >&6
 
3856
else
 
3857
  if test -n "$CC"; then
 
3858
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3859
else
 
3860
  ac_prog_rejected=no
 
3861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3862
for as_dir in $PATH
 
3863
do
 
3864
  IFS=$as_save_IFS
 
3865
  test -z "$as_dir" && as_dir=.
 
3866
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3867
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3868
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3869
       ac_prog_rejected=yes
 
3870
       continue
 
3871
     fi
 
3872
    ac_cv_prog_CC="cc"
 
3873
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3874
    break 2
 
3875
  fi
 
3876
done
 
3877
  done
 
3878
IFS=$as_save_IFS
 
3879
 
 
3880
if test $ac_prog_rejected = yes; then
 
3881
  # We found a bogon in the path, so make sure we never use it.
 
3882
  set dummy $ac_cv_prog_CC
 
3883
  shift
 
3884
  if test $# != 0; then
 
3885
    # We chose a different compiler from the bogus one.
 
3886
    # However, it has the same basename, so the bogon will be chosen
 
3887
    # first if we set CC to just the basename; use the full file name.
 
3888
    shift
 
3889
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3890
  fi
 
3891
fi
 
3892
fi
 
3893
fi
 
3894
CC=$ac_cv_prog_CC
 
3895
if test -n "$CC"; then
 
3896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3897
$as_echo "$CC" >&6; }
 
3898
else
 
3899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3900
$as_echo "no" >&6; }
 
3901
fi
 
3902
 
 
3903
 
 
3904
fi
 
3905
if test -z "$CC"; then
 
3906
  if test -n "$ac_tool_prefix"; then
 
3907
  for ac_prog in cl.exe
 
3908
  do
 
3909
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3910
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3912
$as_echo_n "checking for $ac_word... " >&6; }
 
3913
if test "${ac_cv_prog_CC+set}" = set; then :
 
3914
  $as_echo_n "(cached) " >&6
 
3915
else
 
3916
  if test -n "$CC"; then
 
3917
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3918
else
 
3919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3920
for as_dir in $PATH
 
3921
do
 
3922
  IFS=$as_save_IFS
 
3923
  test -z "$as_dir" && as_dir=.
 
3924
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3925
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3926
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3927
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3928
    break 2
 
3929
  fi
 
3930
done
 
3931
  done
 
3932
IFS=$as_save_IFS
 
3933
 
 
3934
fi
 
3935
fi
 
3936
CC=$ac_cv_prog_CC
 
3937
if test -n "$CC"; then
 
3938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3939
$as_echo "$CC" >&6; }
 
3940
else
 
3941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3942
$as_echo "no" >&6; }
 
3943
fi
 
3944
 
 
3945
 
 
3946
    test -n "$CC" && break
 
3947
  done
 
3948
fi
 
3949
if test -z "$CC"; then
 
3950
  ac_ct_CC=$CC
 
3951
  for ac_prog in cl.exe
 
3952
do
 
3953
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3954
set dummy $ac_prog; ac_word=$2
 
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3956
$as_echo_n "checking for $ac_word... " >&6; }
 
3957
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3958
  $as_echo_n "(cached) " >&6
 
3959
else
 
3960
  if test -n "$ac_ct_CC"; then
 
3961
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3962
else
 
3963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3964
for as_dir in $PATH
 
3965
do
 
3966
  IFS=$as_save_IFS
 
3967
  test -z "$as_dir" && as_dir=.
 
3968
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3969
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3970
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3972
    break 2
 
3973
  fi
 
3974
done
 
3975
  done
 
3976
IFS=$as_save_IFS
 
3977
 
 
3978
fi
 
3979
fi
 
3980
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3981
if test -n "$ac_ct_CC"; then
 
3982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3983
$as_echo "$ac_ct_CC" >&6; }
 
3984
else
 
3985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3986
$as_echo "no" >&6; }
 
3987
fi
 
3988
 
 
3989
 
 
3990
  test -n "$ac_ct_CC" && break
 
3991
done
 
3992
 
 
3993
  if test "x$ac_ct_CC" = x; then
 
3994
    CC=""
 
3995
  else
 
3996
    case $cross_compiling:$ac_tool_warned in
 
3997
yes:)
 
3998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4000
ac_tool_warned=yes ;;
 
4001
esac
 
4002
    CC=$ac_ct_CC
 
4003
  fi
 
4004
fi
 
4005
 
 
4006
fi
 
4007
 
 
4008
 
 
4009
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4010
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4011
as_fn_error "no acceptable C compiler found in \$PATH
 
4012
See \`config.log' for more details." "$LINENO" 5; }
 
4013
 
 
4014
# Provide some information about the compiler.
 
4015
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4016
set X $ac_compile
 
4017
ac_compiler=$2
 
4018
for ac_option in --version -v -V -qversion; do
 
4019
  { { ac_try="$ac_compiler $ac_option >&5"
 
4020
case "(($ac_try" in
 
4021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4022
  *) ac_try_echo=$ac_try;;
 
4023
esac
 
4024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4025
$as_echo "$ac_try_echo"; } >&5
 
4026
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4027
  ac_status=$?
 
4028
  if test -s conftest.err; then
 
4029
    sed '10a\
 
4030
... rest of stderr output deleted ...
 
4031
         10q' conftest.err >conftest.er1
 
4032
    cat conftest.er1 >&5
 
4033
    rm -f conftest.er1 conftest.err
 
4034
  fi
 
4035
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4036
  test $ac_status = 0; }
 
4037
done
 
4038
 
 
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4040
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4041
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4042
  $as_echo_n "(cached) " >&6
 
4043
else
 
4044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4045
/* end confdefs.h.  */
 
4046
 
 
4047
int
 
4048
main ()
 
4049
{
 
4050
#ifndef __GNUC__
 
4051
       choke me
 
4052
#endif
 
4053
 
 
4054
  ;
 
4055
  return 0;
 
4056
}
 
4057
_ACEOF
 
4058
if ac_fn_c_try_compile "$LINENO"; then :
 
4059
  ac_compiler_gnu=yes
 
4060
else
 
4061
  ac_compiler_gnu=no
 
4062
fi
 
4063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4064
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4065
 
 
4066
fi
 
4067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4068
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4069
if test $ac_compiler_gnu = yes; then
 
4070
  GCC=yes
 
4071
else
 
4072
  GCC=
 
4073
fi
 
4074
ac_test_CFLAGS=${CFLAGS+set}
 
4075
ac_save_CFLAGS=$CFLAGS
 
4076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4077
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4078
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4079
  $as_echo_n "(cached) " >&6
 
4080
else
 
4081
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4082
   ac_c_werror_flag=yes
 
4083
   ac_cv_prog_cc_g=no
 
4084
   CFLAGS="-g"
 
4085
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4086
/* end confdefs.h.  */
 
4087
 
 
4088
int
 
4089
main ()
 
4090
{
 
4091
 
 
4092
  ;
 
4093
  return 0;
 
4094
}
 
4095
_ACEOF
 
4096
if ac_fn_c_try_compile "$LINENO"; then :
 
4097
  ac_cv_prog_cc_g=yes
 
4098
else
 
4099
  CFLAGS=""
 
4100
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4101
/* end confdefs.h.  */
 
4102
 
 
4103
int
 
4104
main ()
 
4105
{
 
4106
 
 
4107
  ;
 
4108
  return 0;
 
4109
}
 
4110
_ACEOF
 
4111
if ac_fn_c_try_compile "$LINENO"; then :
 
4112
 
 
4113
else
 
4114
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4115
         CFLAGS="-g"
 
4116
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4117
/* end confdefs.h.  */
 
4118
 
 
4119
int
 
4120
main ()
 
4121
{
 
4122
 
 
4123
  ;
 
4124
  return 0;
 
4125
}
 
4126
_ACEOF
 
4127
if ac_fn_c_try_compile "$LINENO"; then :
 
4128
  ac_cv_prog_cc_g=yes
 
4129
fi
 
4130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4131
fi
 
4132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4133
fi
 
4134
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4135
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4136
fi
 
4137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4138
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4139
if test "$ac_test_CFLAGS" = set; then
 
4140
  CFLAGS=$ac_save_CFLAGS
 
4141
elif test $ac_cv_prog_cc_g = yes; then
 
4142
  if test "$GCC" = yes; then
 
4143
    CFLAGS="-g -O2"
 
4144
  else
 
4145
    CFLAGS="-g"
 
4146
  fi
 
4147
else
 
4148
  if test "$GCC" = yes; then
 
4149
    CFLAGS="-O2"
 
4150
  else
 
4151
    CFLAGS=
 
4152
  fi
 
4153
fi
 
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4155
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4156
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4157
  $as_echo_n "(cached) " >&6
 
4158
else
 
4159
  ac_cv_prog_cc_c89=no
 
4160
ac_save_CC=$CC
 
4161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4162
/* end confdefs.h.  */
 
4163
#include <stdarg.h>
 
4164
#include <stdio.h>
 
4165
#include <sys/types.h>
 
4166
#include <sys/stat.h>
 
4167
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4168
struct buf { int x; };
 
4169
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4170
static char *e (p, i)
 
4171
     char **p;
 
4172
     int i;
 
4173
{
 
4174
  return p[i];
 
4175
}
 
4176
static char *f (char * (*g) (char **, int), char **p, ...)
 
4177
{
 
4178
  char *s;
 
4179
  va_list v;
 
4180
  va_start (v,p);
 
4181
  s = g (p, va_arg (v,int));
 
4182
  va_end (v);
 
4183
  return s;
 
4184
}
 
4185
 
 
4186
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4187
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4188
   These don't provoke an error unfortunately, instead are silently treated
 
4189
   as 'x'.  The following induces an error, until -std is added to get
 
4190
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4191
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4192
   that's true only with -std.  */
 
4193
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4194
 
 
4195
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4196
   inside strings and character constants.  */
 
4197
#define FOO(x) 'x'
 
4198
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4199
 
 
4200
int test (int i, double x);
 
4201
struct s1 {int (*f) (int a);};
 
4202
struct s2 {int (*f) (double a);};
 
4203
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4204
int argc;
 
4205
char **argv;
 
4206
int
 
4207
main ()
 
4208
{
 
4209
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4210
  ;
 
4211
  return 0;
 
4212
}
 
4213
_ACEOF
 
4214
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4215
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4216
do
 
4217
  CC="$ac_save_CC $ac_arg"
 
4218
  if ac_fn_c_try_compile "$LINENO"; then :
 
4219
  ac_cv_prog_cc_c89=$ac_arg
 
4220
fi
 
4221
rm -f core conftest.err conftest.$ac_objext
 
4222
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4223
done
 
4224
rm -f conftest.$ac_ext
 
4225
CC=$ac_save_CC
 
4226
 
 
4227
fi
 
4228
# AC_CACHE_VAL
 
4229
case "x$ac_cv_prog_cc_c89" in
 
4230
  x)
 
4231
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4232
$as_echo "none needed" >&6; } ;;
 
4233
  xno)
 
4234
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4235
$as_echo "unsupported" >&6; } ;;
 
4236
  *)
 
4237
    CC="$CC $ac_cv_prog_cc_c89"
 
4238
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4239
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4240
esac
 
4241
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4242
 
 
4243
fi
 
4244
 
 
4245
ac_ext=c
 
4246
ac_cpp='$CPP $CPPFLAGS'
 
4247
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4248
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4249
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4250
 
 
4251
depcc="$CC"   am_compiler_list=
 
4252
 
 
4253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4254
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4255
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4256
  $as_echo_n "(cached) " >&6
 
4257
else
 
4258
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4259
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4260
  # making bogus files that we don't know about and never remove.  For
 
4261
  # instance it was reported that on HP-UX the gcc test will end up
 
4262
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4263
  # in D'.
 
4264
  mkdir conftest.dir
 
4265
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4266
  # using a relative directory.
 
4267
  cp "$am_depcomp" conftest.dir
 
4268
  cd conftest.dir
 
4269
  # We will build objects and dependencies in a subdirectory because
 
4270
  # it helps to detect inapplicable dependency modes.  For instance
 
4271
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4272
  # side effect of compilation, but ICC will put the dependencies in
 
4273
  # the current directory while Tru64 will put them in the object
 
4274
  # directory.
 
4275
  mkdir sub
 
4276
 
 
4277
  am_cv_CC_dependencies_compiler_type=none
 
4278
  if test "$am_compiler_list" = ""; then
 
4279
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4280
  fi
 
4281
  am__universal=false
 
4282
  case " $depcc " in #(
 
4283
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4284
     esac
 
4285
 
 
4286
  for depmode in $am_compiler_list; do
 
4287
    # Setup a source with many dependencies, because some compilers
 
4288
    # like to wrap large dependency lists on column 80 (with \), and
 
4289
    # we should not choose a depcomp mode which is confused by this.
 
4290
    #
 
4291
    # We need to recreate these files for each test, as the compiler may
 
4292
    # overwrite some of them when testing with obscure command lines.
 
4293
    # This happens at least with the AIX C compiler.
 
4294
    : > sub/conftest.c
 
4295
    for i in 1 2 3 4 5 6; do
 
4296
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4297
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4298
      # Solaris 8's {/usr,}/bin/sh.
 
4299
      touch sub/conftst$i.h
 
4300
    done
 
4301
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4302
 
 
4303
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4304
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4305
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4306
    # versions had trouble with output in subdirs
 
4307
    am__obj=sub/conftest.${OBJEXT-o}
 
4308
    am__minus_obj="-o $am__obj"
 
4309
    case $depmode in
 
4310
    gcc)
 
4311
      # This depmode causes a compiler race in universal mode.
 
4312
      test "$am__universal" = false || continue
 
4313
      ;;
 
4314
    nosideeffect)
 
4315
      # after this tag, mechanisms are not by side-effect, so they'll
 
4316
      # only be used when explicitly requested
 
4317
      if test "x$enable_dependency_tracking" = xyes; then
 
4318
        continue
 
4319
      else
 
4320
        break
 
4321
      fi
 
4322
      ;;
 
4323
    msvisualcpp | msvcmsys)
 
4324
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4325
      # not run yet.  These depmodes are late enough in the game, and
 
4326
      # so weak that their functioning should not be impacted.
 
4327
      am__obj=conftest.${OBJEXT-o}
 
4328
      am__minus_obj=
 
4329
      ;;
 
4330
    none) break ;;
 
4331
    esac
 
4332
    if depmode=$depmode \
 
4333
       source=sub/conftest.c object=$am__obj \
 
4334
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4335
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4336
         >/dev/null 2>conftest.err &&
 
4337
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4338
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4339
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4340
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4341
      # icc doesn't choke on unknown options, it will just issue warnings
 
4342
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4343
      # that says an option was ignored or not supported.
 
4344
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4345
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4346
      # The diagnosis changed in icc 8.0:
 
4347
      #   icc: Command line remark: option '-MP' not supported
 
4348
      if (grep 'ignoring option' conftest.err ||
 
4349
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4350
        am_cv_CC_dependencies_compiler_type=$depmode
 
4351
        break
 
4352
      fi
 
4353
    fi
 
4354
  done
 
4355
 
 
4356
  cd ..
 
4357
  rm -rf conftest.dir
 
4358
else
 
4359
  am_cv_CC_dependencies_compiler_type=none
 
4360
fi
 
4361
 
 
4362
fi
 
4363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4364
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4365
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4366
 
 
4367
 if
 
4368
  test "x$enable_dependency_tracking" != xno \
 
4369
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4370
  am__fastdepCC_TRUE=
 
4371
  am__fastdepCC_FALSE='#'
 
4372
else
 
4373
  am__fastdepCC_TRUE='#'
 
4374
  am__fastdepCC_FALSE=
 
4375
fi
 
4376
 
 
4377
 
 
4378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4379
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4380
if test "${ac_cv_path_SED+set}" = set; then :
 
4381
  $as_echo_n "(cached) " >&6
 
4382
else
 
4383
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4384
     for ac_i in 1 2 3 4 5 6 7; do
 
4385
       ac_script="$ac_script$as_nl$ac_script"
 
4386
     done
 
4387
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4388
     { ac_script=; unset ac_script;}
 
4389
     if test -z "$SED"; then
 
4390
  ac_path_SED_found=false
 
4391
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4392
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4393
for as_dir in $PATH
 
4394
do
 
4395
  IFS=$as_save_IFS
 
4396
  test -z "$as_dir" && as_dir=.
 
4397
    for ac_prog in sed gsed; do
 
4398
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4399
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4400
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4401
# Check for GNU ac_path_SED and select it if it is found.
 
4402
  # Check for GNU $ac_path_SED
 
4403
case `"$ac_path_SED" --version 2>&1` in
 
4404
*GNU*)
 
4405
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4406
*)
 
4407
  ac_count=0
 
4408
  $as_echo_n 0123456789 >"conftest.in"
 
4409
  while :
 
4410
  do
 
4411
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4412
    mv "conftest.tmp" "conftest.in"
 
4413
    cp "conftest.in" "conftest.nl"
 
4414
    $as_echo '' >> "conftest.nl"
 
4415
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4416
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4417
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4418
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4419
      # Best one so far, save it but keep looking for a better one
 
4420
      ac_cv_path_SED="$ac_path_SED"
 
4421
      ac_path_SED_max=$ac_count
 
4422
    fi
 
4423
    # 10*(2^10) chars as input seems more than enough
 
4424
    test $ac_count -gt 10 && break
 
4425
  done
 
4426
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4427
esac
 
4428
 
 
4429
      $ac_path_SED_found && break 3
 
4430
    done
 
4431
  done
 
4432
  done
 
4433
IFS=$as_save_IFS
 
4434
  if test -z "$ac_cv_path_SED"; then
 
4435
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4436
  fi
 
4437
else
 
4438
  ac_cv_path_SED=$SED
 
4439
fi
 
4440
 
 
4441
fi
 
4442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4443
$as_echo "$ac_cv_path_SED" >&6; }
 
4444
 SED="$ac_cv_path_SED"
 
4445
  rm -f conftest.sed
 
4446
 
 
4447
test -z "$SED" && SED=sed
 
4448
Xsed="$SED -e 1s/^X//"
 
4449
 
 
4450
 
 
4451
 
 
4452
 
 
4453
 
 
4454
 
 
4455
 
 
4456
 
 
4457
 
 
4458
 
 
4459
 
 
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4461
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4462
if test "${ac_cv_path_GREP+set}" = set; then :
 
4463
  $as_echo_n "(cached) " >&6
 
4464
else
 
4465
  if test -z "$GREP"; then
 
4466
  ac_path_GREP_found=false
 
4467
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4468
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4469
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4470
do
 
4471
  IFS=$as_save_IFS
 
4472
  test -z "$as_dir" && as_dir=.
 
4473
    for ac_prog in grep ggrep; do
 
4474
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4475
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4476
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4477
# Check for GNU ac_path_GREP and select it if it is found.
 
4478
  # Check for GNU $ac_path_GREP
 
4479
case `"$ac_path_GREP" --version 2>&1` in
 
4480
*GNU*)
 
4481
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4482
*)
 
4483
  ac_count=0
 
4484
  $as_echo_n 0123456789 >"conftest.in"
 
4485
  while :
 
4486
  do
 
4487
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4488
    mv "conftest.tmp" "conftest.in"
 
4489
    cp "conftest.in" "conftest.nl"
 
4490
    $as_echo 'GREP' >> "conftest.nl"
 
4491
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4492
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4493
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4494
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4495
      # Best one so far, save it but keep looking for a better one
 
4496
      ac_cv_path_GREP="$ac_path_GREP"
 
4497
      ac_path_GREP_max=$ac_count
 
4498
    fi
 
4499
    # 10*(2^10) chars as input seems more than enough
 
4500
    test $ac_count -gt 10 && break
 
4501
  done
 
4502
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4503
esac
 
4504
 
 
4505
      $ac_path_GREP_found && break 3
 
4506
    done
 
4507
  done
 
4508
  done
 
4509
IFS=$as_save_IFS
 
4510
  if test -z "$ac_cv_path_GREP"; then
 
4511
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4512
  fi
 
4513
else
 
4514
  ac_cv_path_GREP=$GREP
 
4515
fi
 
4516
 
 
4517
fi
 
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4519
$as_echo "$ac_cv_path_GREP" >&6; }
 
4520
 GREP="$ac_cv_path_GREP"
 
4521
 
 
4522
 
 
4523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4524
$as_echo_n "checking for egrep... " >&6; }
 
4525
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4526
  $as_echo_n "(cached) " >&6
 
4527
else
 
4528
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4529
   then ac_cv_path_EGREP="$GREP -E"
 
4530
   else
 
4531
     if test -z "$EGREP"; then
 
4532
  ac_path_EGREP_found=false
 
4533
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4534
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4535
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4536
do
 
4537
  IFS=$as_save_IFS
 
4538
  test -z "$as_dir" && as_dir=.
 
4539
    for ac_prog in egrep; do
 
4540
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4541
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4542
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4543
# Check for GNU ac_path_EGREP and select it if it is found.
 
4544
  # Check for GNU $ac_path_EGREP
 
4545
case `"$ac_path_EGREP" --version 2>&1` in
 
4546
*GNU*)
 
4547
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4548
*)
 
4549
  ac_count=0
 
4550
  $as_echo_n 0123456789 >"conftest.in"
 
4551
  while :
 
4552
  do
 
4553
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4554
    mv "conftest.tmp" "conftest.in"
 
4555
    cp "conftest.in" "conftest.nl"
 
4556
    $as_echo 'EGREP' >> "conftest.nl"
 
4557
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4558
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4559
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4560
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4561
      # Best one so far, save it but keep looking for a better one
 
4562
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4563
      ac_path_EGREP_max=$ac_count
 
4564
    fi
 
4565
    # 10*(2^10) chars as input seems more than enough
 
4566
    test $ac_count -gt 10 && break
 
4567
  done
 
4568
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4569
esac
 
4570
 
 
4571
      $ac_path_EGREP_found && break 3
 
4572
    done
 
4573
  done
 
4574
  done
 
4575
IFS=$as_save_IFS
 
4576
  if test -z "$ac_cv_path_EGREP"; then
 
4577
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4578
  fi
 
4579
else
 
4580
  ac_cv_path_EGREP=$EGREP
 
4581
fi
 
4582
 
 
4583
   fi
 
4584
fi
 
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4586
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4587
 EGREP="$ac_cv_path_EGREP"
 
4588
 
 
4589
 
 
4590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4591
$as_echo_n "checking for fgrep... " >&6; }
 
4592
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4593
  $as_echo_n "(cached) " >&6
 
4594
else
 
4595
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4596
   then ac_cv_path_FGREP="$GREP -F"
 
4597
   else
 
4598
     if test -z "$FGREP"; then
 
4599
  ac_path_FGREP_found=false
 
4600
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4601
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4602
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4603
do
 
4604
  IFS=$as_save_IFS
 
4605
  test -z "$as_dir" && as_dir=.
 
4606
    for ac_prog in fgrep; do
 
4607
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4608
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4609
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4610
# Check for GNU ac_path_FGREP and select it if it is found.
 
4611
  # Check for GNU $ac_path_FGREP
 
4612
case `"$ac_path_FGREP" --version 2>&1` in
 
4613
*GNU*)
 
4614
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4615
*)
 
4616
  ac_count=0
 
4617
  $as_echo_n 0123456789 >"conftest.in"
 
4618
  while :
 
4619
  do
 
4620
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4621
    mv "conftest.tmp" "conftest.in"
 
4622
    cp "conftest.in" "conftest.nl"
 
4623
    $as_echo 'FGREP' >> "conftest.nl"
 
4624
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4625
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4626
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4627
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4628
      # Best one so far, save it but keep looking for a better one
 
4629
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4630
      ac_path_FGREP_max=$ac_count
 
4631
    fi
 
4632
    # 10*(2^10) chars as input seems more than enough
 
4633
    test $ac_count -gt 10 && break
 
4634
  done
 
4635
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4636
esac
 
4637
 
 
4638
      $ac_path_FGREP_found && break 3
 
4639
    done
 
4640
  done
 
4641
  done
 
4642
IFS=$as_save_IFS
 
4643
  if test -z "$ac_cv_path_FGREP"; then
 
4644
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4645
  fi
 
4646
else
 
4647
  ac_cv_path_FGREP=$FGREP
 
4648
fi
 
4649
 
 
4650
   fi
 
4651
fi
 
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4653
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4654
 FGREP="$ac_cv_path_FGREP"
 
4655
 
 
4656
 
 
4657
test -z "$GREP" && GREP=grep
 
4658
 
 
4659
 
 
4660
 
 
4661
 
 
4662
 
 
4663
 
 
4664
 
 
4665
 
 
4666
 
 
4667
 
 
4668
 
 
4669
 
 
4670
 
 
4671
 
 
4672
 
 
4673
 
 
4674
 
 
4675
 
 
4676
 
 
4677
# Check whether --with-gnu-ld was given.
 
4678
if test "${with_gnu_ld+set}" = set; then :
 
4679
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4680
else
 
4681
  with_gnu_ld=no
 
4682
fi
 
4683
 
 
4684
ac_prog=ld
 
4685
if test "$GCC" = yes; then
 
4686
  # Check if gcc -print-prog-name=ld gives a path.
 
4687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4688
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4689
  case $host in
 
4690
  *-*-mingw*)
 
4691
    # gcc leaves a trailing carriage return which upsets mingw
 
4692
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4693
  *)
 
4694
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4695
  esac
 
4696
  case $ac_prog in
 
4697
    # Accept absolute paths.
 
4698
    [\\/]* | ?:[\\/]*)
 
4699
      re_direlt='/[^/][^/]*/\.\./'
 
4700
      # Canonicalize the pathname of ld
 
4701
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4702
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4703
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4704
      done
 
4705
      test -z "$LD" && LD="$ac_prog"
 
4706
      ;;
 
4707
  "")
 
4708
    # If it fails, then pretend we aren't using GCC.
 
4709
    ac_prog=ld
 
4710
    ;;
 
4711
  *)
 
4712
    # If it is relative, then search for the first ld in PATH.
 
4713
    with_gnu_ld=unknown
 
4714
    ;;
 
4715
  esac
 
4716
elif test "$with_gnu_ld" = yes; then
 
4717
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4718
$as_echo_n "checking for GNU ld... " >&6; }
 
4719
else
 
4720
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4721
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4722
fi
 
4723
if test "${lt_cv_path_LD+set}" = set; then :
 
4724
  $as_echo_n "(cached) " >&6
 
4725
else
 
4726
  if test -z "$LD"; then
 
4727
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4728
  for ac_dir in $PATH; do
 
4729
    IFS="$lt_save_ifs"
 
4730
    test -z "$ac_dir" && ac_dir=.
 
4731
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4732
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4733
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4734
      # but apparently some variants of GNU ld only accept -v.
 
4735
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4736
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4737
      *GNU* | *'with BFD'*)
 
4738
        test "$with_gnu_ld" != no && break
 
4739
        ;;
 
4740
      *)
 
4741
        test "$with_gnu_ld" != yes && break
 
4742
        ;;
 
4743
      esac
 
4744
    fi
 
4745
  done
 
4746
  IFS="$lt_save_ifs"
 
4747
else
 
4748
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4749
fi
 
4750
fi
 
4751
 
 
4752
LD="$lt_cv_path_LD"
 
4753
if test -n "$LD"; then
 
4754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4755
$as_echo "$LD" >&6; }
 
4756
else
 
4757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4758
$as_echo "no" >&6; }
 
4759
fi
 
4760
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4762
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4763
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4764
  $as_echo_n "(cached) " >&6
 
4765
else
 
4766
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4767
case `$LD -v 2>&1 </dev/null` in
 
4768
*GNU* | *'with BFD'*)
 
4769
  lt_cv_prog_gnu_ld=yes
 
4770
  ;;
 
4771
*)
 
4772
  lt_cv_prog_gnu_ld=no
 
4773
  ;;
 
4774
esac
 
4775
fi
 
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4777
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4778
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4779
 
 
4780
 
 
4781
 
 
4782
 
 
4783
 
 
4784
 
 
4785
 
 
4786
 
 
4787
 
 
4788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4789
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4790
if test "${lt_cv_path_NM+set}" = set; then :
 
4791
  $as_echo_n "(cached) " >&6
 
4792
else
 
4793
  if test -n "$NM"; then
 
4794
  # Let the user override the test.
 
4795
  lt_cv_path_NM="$NM"
 
4796
else
 
4797
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4798
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4799
    lt_nm_to_check="$lt_nm_to_check nm"
 
4800
  fi
 
4801
  for lt_tmp_nm in $lt_nm_to_check; do
 
4802
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4803
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4804
      IFS="$lt_save_ifs"
 
4805
      test -z "$ac_dir" && ac_dir=.
 
4806
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4807
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4808
        # Check to see if the nm accepts a BSD-compat flag.
 
4809
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4810
        #   nm: unknown option "B" ignored
 
4811
        # Tru64's nm complains that /dev/null is an invalid object file
 
4812
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4813
        */dev/null* | *'Invalid file or object type'*)
 
4814
          lt_cv_path_NM="$tmp_nm -B"
 
4815
          break
 
4816
          ;;
 
4817
        *)
 
4818
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4819
          */dev/null*)
 
4820
            lt_cv_path_NM="$tmp_nm -p"
 
4821
            break
 
4822
            ;;
 
4823
          *)
 
4824
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4825
            continue # so that we can try to find one that supports BSD flags
 
4826
            ;;
 
4827
          esac
 
4828
          ;;
 
4829
        esac
 
4830
      fi
 
4831
    done
 
4832
    IFS="$lt_save_ifs"
 
4833
  done
 
4834
  : ${lt_cv_path_NM=no}
 
4835
fi
 
4836
fi
 
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4838
$as_echo "$lt_cv_path_NM" >&6; }
 
4839
if test "$lt_cv_path_NM" != "no"; then
 
4840
  NM="$lt_cv_path_NM"
 
4841
else
 
4842
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4843
  if test -n "$ac_tool_prefix"; then
 
4844
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4845
  do
 
4846
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4847
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4849
$as_echo_n "checking for $ac_word... " >&6; }
 
4850
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
4851
  $as_echo_n "(cached) " >&6
 
4852
else
 
4853
  if test -n "$DUMPBIN"; then
 
4854
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4855
else
 
4856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4857
for as_dir in $PATH
 
4858
do
 
4859
  IFS=$as_save_IFS
 
4860
  test -z "$as_dir" && as_dir=.
 
4861
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4862
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4863
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4864
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4865
    break 2
 
4866
  fi
 
4867
done
 
4868
  done
 
4869
IFS=$as_save_IFS
 
4870
 
 
4871
fi
 
4872
fi
 
4873
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4874
if test -n "$DUMPBIN"; then
 
4875
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4876
$as_echo "$DUMPBIN" >&6; }
 
4877
else
 
4878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4879
$as_echo "no" >&6; }
 
4880
fi
 
4881
 
 
4882
 
 
4883
    test -n "$DUMPBIN" && break
 
4884
  done
 
4885
fi
 
4886
if test -z "$DUMPBIN"; then
 
4887
  ac_ct_DUMPBIN=$DUMPBIN
 
4888
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4889
do
 
4890
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4891
set dummy $ac_prog; ac_word=$2
 
4892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4893
$as_echo_n "checking for $ac_word... " >&6; }
 
4894
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
4895
  $as_echo_n "(cached) " >&6
 
4896
else
 
4897
  if test -n "$ac_ct_DUMPBIN"; then
 
4898
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4899
else
 
4900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4901
for as_dir in $PATH
 
4902
do
 
4903
  IFS=$as_save_IFS
 
4904
  test -z "$as_dir" && as_dir=.
 
4905
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4906
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4907
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4908
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4909
    break 2
 
4910
  fi
 
4911
done
 
4912
  done
 
4913
IFS=$as_save_IFS
 
4914
 
 
4915
fi
 
4916
fi
 
4917
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4918
if test -n "$ac_ct_DUMPBIN"; then
 
4919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4920
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4921
else
 
4922
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4923
$as_echo "no" >&6; }
 
4924
fi
 
4925
 
 
4926
 
 
4927
  test -n "$ac_ct_DUMPBIN" && break
 
4928
done
 
4929
 
 
4930
  if test "x$ac_ct_DUMPBIN" = x; then
 
4931
    DUMPBIN=":"
 
4932
  else
 
4933
    case $cross_compiling:$ac_tool_warned in
 
4934
yes:)
 
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4936
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4937
ac_tool_warned=yes ;;
 
4938
esac
 
4939
    DUMPBIN=$ac_ct_DUMPBIN
 
4940
  fi
 
4941
fi
 
4942
 
 
4943
 
 
4944
  if test "$DUMPBIN" != ":"; then
 
4945
    NM="$DUMPBIN"
 
4946
  fi
 
4947
fi
 
4948
test -z "$NM" && NM=nm
 
4949
 
 
4950
 
 
4951
 
 
4952
 
 
4953
 
 
4954
 
 
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4956
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4957
if test "${lt_cv_nm_interface+set}" = set; then :
 
4958
  $as_echo_n "(cached) " >&6
 
4959
else
 
4960
  lt_cv_nm_interface="BSD nm"
 
4961
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4962
  (eval echo "\"\$as_me:4962: $ac_compile\"" >&5)
 
4963
  (eval "$ac_compile" 2>conftest.err)
 
4964
  cat conftest.err >&5
 
4965
  (eval echo "\"\$as_me:4965: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4966
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4967
  cat conftest.err >&5
 
4968
  (eval echo "\"\$as_me:4968: output\"" >&5)
 
4969
  cat conftest.out >&5
 
4970
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4971
    lt_cv_nm_interface="MS dumpbin"
 
4972
  fi
 
4973
  rm -f conftest*
 
4974
fi
 
4975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4976
$as_echo "$lt_cv_nm_interface" >&6; }
 
4977
 
 
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4979
$as_echo_n "checking whether ln -s works... " >&6; }
 
4980
LN_S=$as_ln_s
 
4981
if test "$LN_S" = "ln -s"; then
 
4982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4983
$as_echo "yes" >&6; }
 
4984
else
 
4985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4986
$as_echo "no, using $LN_S" >&6; }
 
4987
fi
 
4988
 
 
4989
# find the maximum length of command line arguments
 
4990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4991
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4992
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
4993
  $as_echo_n "(cached) " >&6
 
4994
else
 
4995
    i=0
 
4996
  teststring="ABCD"
 
4997
 
 
4998
  case $build_os in
 
4999
  msdosdjgpp*)
 
5000
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5001
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5002
    # during glob expansion).  Even if it were fixed, the result of this
 
5003
    # check would be larger than it should be.
 
5004
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5005
    ;;
 
5006
 
 
5007
  gnu*)
 
5008
    # Under GNU Hurd, this test is not required because there is
 
5009
    # no limit to the length of command line arguments.
 
5010
    # Libtool will interpret -1 as no limit whatsoever
 
5011
    lt_cv_sys_max_cmd_len=-1;
 
5012
    ;;
 
5013
 
 
5014
  cygwin* | mingw* | cegcc*)
 
5015
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5016
    # about 5 minutes as the teststring grows exponentially.
 
5017
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5018
    # you end up with a "frozen" computer, even though with patience
 
5019
    # the test eventually succeeds (with a max line length of 256k).
 
5020
    # Instead, let's just punt: use the minimum linelength reported by
 
5021
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5022
    lt_cv_sys_max_cmd_len=8192;
 
5023
    ;;
 
5024
 
 
5025
  amigaos*)
 
5026
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5027
    # So we just punt and use a minimum line length of 8192.
 
5028
    lt_cv_sys_max_cmd_len=8192;
 
5029
    ;;
 
5030
 
 
5031
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5032
    # This has been around since 386BSD, at least.  Likely further.
 
5033
    if test -x /sbin/sysctl; then
 
5034
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5035
    elif test -x /usr/sbin/sysctl; then
 
5036
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5037
    else
 
5038
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5039
    fi
 
5040
    # And add a safety zone
 
5041
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5042
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5043
    ;;
 
5044
 
 
5045
  interix*)
 
5046
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5047
    lt_cv_sys_max_cmd_len=196608
 
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"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5090
                 = "XX$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"}, \
 
5133
      = c,a/b,, \
 
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 for $LD option to reload object files" >&5
 
5183
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5184
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5185
  $as_echo_n "(cached) " >&6
 
5186
else
 
5187
  lt_cv_ld_reload_flag='-r'
 
5188
fi
 
5189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5190
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5191
reload_flag=$lt_cv_ld_reload_flag
 
5192
case $reload_flag in
 
5193
"" | " "*) ;;
 
5194
*) reload_flag=" $reload_flag" ;;
 
5195
esac
 
5196
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5197
case $host_os in
 
5198
  darwin*)
 
5199
    if test "$GCC" = yes; then
 
5200
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5201
    else
 
5202
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5203
    fi
 
5204
    ;;
 
5205
esac
 
5206
 
 
5207
 
 
5208
 
 
5209
 
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
 
 
5215
if test -n "$ac_tool_prefix"; then
 
5216
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5217
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5219
$as_echo_n "checking for $ac_word... " >&6; }
 
5220
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5221
  $as_echo_n "(cached) " >&6
 
5222
else
 
5223
  if test -n "$OBJDUMP"; then
 
5224
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5225
else
 
5226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5227
for as_dir in $PATH
 
5228
do
 
5229
  IFS=$as_save_IFS
 
5230
  test -z "$as_dir" && as_dir=.
 
5231
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5233
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5234
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5235
    break 2
 
5236
  fi
 
5237
done
 
5238
  done
 
5239
IFS=$as_save_IFS
 
5240
 
 
5241
fi
 
5242
fi
 
5243
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5244
if test -n "$OBJDUMP"; then
 
5245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5246
$as_echo "$OBJDUMP" >&6; }
 
5247
else
 
5248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5249
$as_echo "no" >&6; }
 
5250
fi
 
5251
 
 
5252
 
 
5253
fi
 
5254
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5255
  ac_ct_OBJDUMP=$OBJDUMP
 
5256
  # Extract the first word of "objdump", so it can be a program name with args.
 
5257
set dummy objdump; ac_word=$2
 
5258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5259
$as_echo_n "checking for $ac_word... " >&6; }
 
5260
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
5261
  $as_echo_n "(cached) " >&6
 
5262
else
 
5263
  if test -n "$ac_ct_OBJDUMP"; then
 
5264
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5265
else
 
5266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5267
for as_dir in $PATH
 
5268
do
 
5269
  IFS=$as_save_IFS
 
5270
  test -z "$as_dir" && as_dir=.
 
5271
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5272
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5273
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5274
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5275
    break 2
 
5276
  fi
 
5277
done
 
5278
  done
 
5279
IFS=$as_save_IFS
 
5280
 
 
5281
fi
 
5282
fi
 
5283
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5284
if test -n "$ac_ct_OBJDUMP"; then
 
5285
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5286
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5287
else
 
5288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5289
$as_echo "no" >&6; }
 
5290
fi
 
5291
 
 
5292
  if test "x$ac_ct_OBJDUMP" = x; then
 
5293
    OBJDUMP="false"
 
5294
  else
 
5295
    case $cross_compiling:$ac_tool_warned in
 
5296
yes:)
 
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5299
ac_tool_warned=yes ;;
 
5300
esac
 
5301
    OBJDUMP=$ac_ct_OBJDUMP
 
5302
  fi
 
5303
else
 
5304
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5305
fi
 
5306
 
 
5307
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5308
 
 
5309
 
 
5310
 
 
5311
 
 
5312
 
 
5313
 
 
5314
 
 
5315
 
 
5316
 
 
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5318
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5319
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
5320
  $as_echo_n "(cached) " >&6
 
5321
else
 
5322
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5323
lt_cv_file_magic_test_file=
 
5324
lt_cv_deplibs_check_method='unknown'
 
5325
# Need to set the preceding variable on all platforms that support
 
5326
# interlibrary dependencies.
 
5327
# 'none' -- dependencies not supported.
 
5328
# `unknown' -- same as none, but documents that we really don't know.
 
5329
# 'pass_all' -- all dependencies passed with no checks.
 
5330
# 'test_compile' -- check by making test program.
 
5331
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5332
# which responds to the $file_magic_cmd with a given extended regex.
 
5333
# If you have `file' or equivalent on your system and you're not sure
 
5334
# whether `pass_all' will *always* work, you probably want this one.
 
5335
 
 
5336
case $host_os in
 
5337
aix[4-9]*)
 
5338
  lt_cv_deplibs_check_method=pass_all
 
5339
  ;;
 
5340
 
 
5341
beos*)
 
5342
  lt_cv_deplibs_check_method=pass_all
 
5343
  ;;
 
5344
 
 
5345
bsdi[45]*)
 
5346
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5347
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5348
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5349
  ;;
 
5350
 
 
5351
cygwin*)
 
5352
  # func_win32_libid is a shell function defined in ltmain.sh
 
5353
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5354
  lt_cv_file_magic_cmd='func_win32_libid'
 
5355
  ;;
 
5356
 
 
5357
mingw* | pw32*)
 
5358
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5359
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5360
  # unless we find 'file', for example because we are cross-compiling.
 
5361
  if ( file / ) >/dev/null 2>&1; then
 
5362
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5363
    lt_cv_file_magic_cmd='func_win32_libid'
 
5364
  else
 
5365
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5366
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5367
  fi
 
5368
  ;;
 
5369
 
 
5370
cegcc)
 
5371
  # use the weaker test based on 'objdump'. See mingw*.
 
5372
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5373
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5374
  ;;
 
5375
 
 
5376
darwin* | rhapsody*)
 
5377
  lt_cv_deplibs_check_method=pass_all
 
5378
  ;;
 
5379
 
 
5380
freebsd* | dragonfly*)
 
5381
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5382
    case $host_cpu in
 
5383
    i*86 )
 
5384
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5385
      # Let's accept both of them until this is cleared up.
 
5386
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5387
      lt_cv_file_magic_cmd=/usr/bin/file
 
5388
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5389
      ;;
 
5390
    esac
 
5391
  else
 
5392
    lt_cv_deplibs_check_method=pass_all
 
5393
  fi
 
5394
  ;;
 
5395
 
 
5396
gnu*)
 
5397
  lt_cv_deplibs_check_method=pass_all
 
5398
  ;;
 
5399
 
 
5400
hpux10.20* | hpux11*)
 
5401
  lt_cv_file_magic_cmd=/usr/bin/file
 
5402
  case $host_cpu in
 
5403
  ia64*)
 
5404
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5405
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5406
    ;;
 
5407
  hppa*64*)
 
5408
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5409
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5410
    ;;
 
5411
  *)
 
5412
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5413
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5414
    ;;
 
5415
  esac
 
5416
  ;;
 
5417
 
 
5418
interix[3-9]*)
 
5419
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5420
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5421
  ;;
 
5422
 
 
5423
irix5* | irix6* | nonstopux*)
 
5424
  case $LD in
 
5425
  *-32|*"-32 ") libmagic=32-bit;;
 
5426
  *-n32|*"-n32 ") libmagic=N32;;
 
5427
  *-64|*"-64 ") libmagic=64-bit;;
 
5428
  *) libmagic=never-match;;
 
5429
  esac
 
5430
  lt_cv_deplibs_check_method=pass_all
 
5431
  ;;
 
5432
 
 
5433
# This must be Linux ELF.
 
5434
linux* | k*bsd*-gnu)
 
5435
  lt_cv_deplibs_check_method=pass_all
 
5436
  ;;
 
5437
 
 
5438
netbsd* | netbsdelf*-gnu)
 
5439
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5440
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5441
  else
 
5442
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5443
  fi
 
5444
  ;;
 
5445
 
 
5446
newos6*)
 
5447
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5448
  lt_cv_file_magic_cmd=/usr/bin/file
 
5449
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5450
  ;;
 
5451
 
 
5452
*nto* | *qnx*)
 
5453
  lt_cv_deplibs_check_method=pass_all
 
5454
  ;;
 
5455
 
 
5456
openbsd*)
 
5457
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5458
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5459
  else
 
5460
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5461
  fi
 
5462
  ;;
 
5463
 
 
5464
osf3* | osf4* | osf5*)
 
5465
  lt_cv_deplibs_check_method=pass_all
 
5466
  ;;
 
5467
 
 
5468
rdos*)
 
5469
  lt_cv_deplibs_check_method=pass_all
 
5470
  ;;
 
5471
 
 
5472
solaris*)
 
5473
  lt_cv_deplibs_check_method=pass_all
 
5474
  ;;
 
5475
 
 
5476
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5477
  lt_cv_deplibs_check_method=pass_all
 
5478
  ;;
 
5479
 
 
5480
sysv4 | sysv4.3*)
 
5481
  case $host_vendor in
 
5482
  motorola)
 
5483
    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]'
 
5484
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5485
    ;;
 
5486
  ncr)
 
5487
    lt_cv_deplibs_check_method=pass_all
 
5488
    ;;
 
5489
  sequent)
 
5490
    lt_cv_file_magic_cmd='/bin/file'
 
5491
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5492
    ;;
 
5493
  sni)
 
5494
    lt_cv_file_magic_cmd='/bin/file'
 
5495
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5496
    lt_cv_file_magic_test_file=/lib/libc.so
 
5497
    ;;
 
5498
  siemens)
 
5499
    lt_cv_deplibs_check_method=pass_all
 
5500
    ;;
 
5501
  pc)
 
5502
    lt_cv_deplibs_check_method=pass_all
 
5503
    ;;
 
5504
  esac
 
5505
  ;;
 
5506
 
 
5507
tpf*)
 
5508
  lt_cv_deplibs_check_method=pass_all
 
5509
  ;;
 
5510
esac
 
5511
 
 
5512
fi
 
5513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5514
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5515
file_magic_cmd=$lt_cv_file_magic_cmd
 
5516
deplibs_check_method=$lt_cv_deplibs_check_method
 
5517
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5518
 
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
5527
 
 
5528
 
 
5529
 
 
5530
if test -n "$ac_tool_prefix"; then
 
5531
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5532
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5534
$as_echo_n "checking for $ac_word... " >&6; }
 
5535
if test "${ac_cv_prog_AR+set}" = set; then :
 
5536
  $as_echo_n "(cached) " >&6
 
5537
else
 
5538
  if test -n "$AR"; then
 
5539
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5540
else
 
5541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5542
for as_dir in $PATH
 
5543
do
 
5544
  IFS=$as_save_IFS
 
5545
  test -z "$as_dir" && as_dir=.
 
5546
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5547
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5548
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5549
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5550
    break 2
 
5551
  fi
 
5552
done
 
5553
  done
 
5554
IFS=$as_save_IFS
 
5555
 
 
5556
fi
 
5557
fi
 
5558
AR=$ac_cv_prog_AR
 
5559
if test -n "$AR"; then
 
5560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5561
$as_echo "$AR" >&6; }
 
5562
else
 
5563
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5564
$as_echo "no" >&6; }
 
5565
fi
 
5566
 
 
5567
 
 
5568
fi
 
5569
if test -z "$ac_cv_prog_AR"; then
 
5570
  ac_ct_AR=$AR
 
5571
  # Extract the first word of "ar", so it can be a program name with args.
 
5572
set dummy ar; ac_word=$2
 
5573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5574
$as_echo_n "checking for $ac_word... " >&6; }
 
5575
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5576
  $as_echo_n "(cached) " >&6
 
5577
else
 
5578
  if test -n "$ac_ct_AR"; then
 
5579
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5580
else
 
5581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5582
for as_dir in $PATH
 
5583
do
 
5584
  IFS=$as_save_IFS
 
5585
  test -z "$as_dir" && as_dir=.
 
5586
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5587
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5588
    ac_cv_prog_ac_ct_AR="ar"
 
5589
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5590
    break 2
 
5591
  fi
 
5592
done
 
5593
  done
 
5594
IFS=$as_save_IFS
 
5595
 
 
5596
fi
 
5597
fi
 
5598
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5599
if test -n "$ac_ct_AR"; then
 
5600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5601
$as_echo "$ac_ct_AR" >&6; }
 
5602
else
 
5603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5604
$as_echo "no" >&6; }
 
5605
fi
 
5606
 
 
5607
  if test "x$ac_ct_AR" = x; then
 
5608
    AR="false"
 
5609
  else
 
5610
    case $cross_compiling:$ac_tool_warned in
 
5611
yes:)
 
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5613
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5614
ac_tool_warned=yes ;;
 
5615
esac
 
5616
    AR=$ac_ct_AR
 
5617
  fi
 
5618
else
 
5619
  AR="$ac_cv_prog_AR"
 
5620
fi
 
5621
 
 
5622
test -z "$AR" && AR=ar
 
5623
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
if test -n "$ac_tool_prefix"; then
 
5636
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5637
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5639
$as_echo_n "checking for $ac_word... " >&6; }
 
5640
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5641
  $as_echo_n "(cached) " >&6
 
5642
else
 
5643
  if test -n "$STRIP"; then
 
5644
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5645
else
 
5646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5647
for as_dir in $PATH
 
5648
do
 
5649
  IFS=$as_save_IFS
 
5650
  test -z "$as_dir" && as_dir=.
 
5651
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5652
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5653
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5654
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5655
    break 2
 
5656
  fi
 
5657
done
 
5658
  done
 
5659
IFS=$as_save_IFS
 
5660
 
 
5661
fi
 
5662
fi
 
5663
STRIP=$ac_cv_prog_STRIP
 
5664
if test -n "$STRIP"; then
 
5665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5666
$as_echo "$STRIP" >&6; }
 
5667
else
 
5668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5669
$as_echo "no" >&6; }
 
5670
fi
 
5671
 
 
5672
 
 
5673
fi
 
5674
if test -z "$ac_cv_prog_STRIP"; then
 
5675
  ac_ct_STRIP=$STRIP
 
5676
  # Extract the first word of "strip", so it can be a program name with args.
 
5677
set dummy strip; ac_word=$2
 
5678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5679
$as_echo_n "checking for $ac_word... " >&6; }
 
5680
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5681
  $as_echo_n "(cached) " >&6
 
5682
else
 
5683
  if test -n "$ac_ct_STRIP"; then
 
5684
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5685
else
 
5686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5687
for as_dir in $PATH
 
5688
do
 
5689
  IFS=$as_save_IFS
 
5690
  test -z "$as_dir" && as_dir=.
 
5691
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5693
    ac_cv_prog_ac_ct_STRIP="strip"
 
5694
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5695
    break 2
 
5696
  fi
 
5697
done
 
5698
  done
 
5699
IFS=$as_save_IFS
 
5700
 
 
5701
fi
 
5702
fi
 
5703
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5704
if test -n "$ac_ct_STRIP"; then
 
5705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5706
$as_echo "$ac_ct_STRIP" >&6; }
 
5707
else
 
5708
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5709
$as_echo "no" >&6; }
 
5710
fi
 
5711
 
 
5712
  if test "x$ac_ct_STRIP" = x; then
 
5713
    STRIP=":"
 
5714
  else
 
5715
    case $cross_compiling:$ac_tool_warned in
 
5716
yes:)
 
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5718
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5719
ac_tool_warned=yes ;;
 
5720
esac
 
5721
    STRIP=$ac_ct_STRIP
 
5722
  fi
 
5723
else
 
5724
  STRIP="$ac_cv_prog_STRIP"
 
5725
fi
 
5726
 
 
5727
test -z "$STRIP" && STRIP=:
 
5728
 
 
5729
 
 
5730
 
 
5731
 
 
5732
 
 
5733
 
 
5734
if test -n "$ac_tool_prefix"; then
 
5735
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5736
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5738
$as_echo_n "checking for $ac_word... " >&6; }
 
5739
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5740
  $as_echo_n "(cached) " >&6
 
5741
else
 
5742
  if test -n "$RANLIB"; then
 
5743
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5744
else
 
5745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5746
for as_dir in $PATH
 
5747
do
 
5748
  IFS=$as_save_IFS
 
5749
  test -z "$as_dir" && as_dir=.
 
5750
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5751
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5752
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5753
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5754
    break 2
 
5755
  fi
 
5756
done
 
5757
  done
 
5758
IFS=$as_save_IFS
 
5759
 
 
5760
fi
 
5761
fi
 
5762
RANLIB=$ac_cv_prog_RANLIB
 
5763
if test -n "$RANLIB"; then
 
5764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5765
$as_echo "$RANLIB" >&6; }
 
5766
else
 
5767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5768
$as_echo "no" >&6; }
 
5769
fi
 
5770
 
 
5771
 
 
5772
fi
 
5773
if test -z "$ac_cv_prog_RANLIB"; then
 
5774
  ac_ct_RANLIB=$RANLIB
 
5775
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5776
set dummy ranlib; ac_word=$2
 
5777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5778
$as_echo_n "checking for $ac_word... " >&6; }
 
5779
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
5780
  $as_echo_n "(cached) " >&6
 
5781
else
 
5782
  if test -n "$ac_ct_RANLIB"; then
 
5783
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5784
else
 
5785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5786
for as_dir in $PATH
 
5787
do
 
5788
  IFS=$as_save_IFS
 
5789
  test -z "$as_dir" && as_dir=.
 
5790
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5791
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5792
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5794
    break 2
 
5795
  fi
 
5796
done
 
5797
  done
 
5798
IFS=$as_save_IFS
 
5799
 
 
5800
fi
 
5801
fi
 
5802
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5803
if test -n "$ac_ct_RANLIB"; then
 
5804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5805
$as_echo "$ac_ct_RANLIB" >&6; }
 
5806
else
 
5807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5808
$as_echo "no" >&6; }
 
5809
fi
 
5810
 
 
5811
  if test "x$ac_ct_RANLIB" = x; then
 
5812
    RANLIB=":"
 
5813
  else
 
5814
    case $cross_compiling:$ac_tool_warned in
 
5815
yes:)
 
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5817
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5818
ac_tool_warned=yes ;;
 
5819
esac
 
5820
    RANLIB=$ac_ct_RANLIB
 
5821
  fi
 
5822
else
 
5823
  RANLIB="$ac_cv_prog_RANLIB"
 
5824
fi
 
5825
 
 
5826
test -z "$RANLIB" && RANLIB=:
 
5827
 
 
5828
 
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
# Determine commands to create old-style static archives.
 
5834
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5835
old_postinstall_cmds='chmod 644 $oldlib'
 
5836
old_postuninstall_cmds=
 
5837
 
 
5838
if test -n "$RANLIB"; then
 
5839
  case $host_os in
 
5840
  openbsd*)
 
5841
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5842
    ;;
 
5843
  *)
 
5844
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5845
    ;;
 
5846
  esac
 
5847
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5848
fi
 
5849
 
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
 
 
5865
 
 
5866
 
 
5867
 
 
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
# If no C compiler was specified, use CC.
 
5884
LTCC=${LTCC-"$CC"}
 
5885
 
 
5886
# If no C compiler flags were specified, use CFLAGS.
 
5887
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5888
 
 
5889
# Allow CC to be a program name with arguments.
 
5890
compiler=$CC
 
5891
 
 
5892
 
 
5893
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5895
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5896
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
5897
  $as_echo_n "(cached) " >&6
 
5898
else
 
5899
 
 
5900
# These are sane defaults that work on at least a few old systems.
 
5901
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5902
 
 
5903
# Character class describing NM global symbol codes.
 
5904
symcode='[BCDEGRST]'
 
5905
 
 
5906
# Regexp to match symbols that can be accessed directly from C.
 
5907
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5908
 
 
5909
# Define system-specific variables.
 
5910
case $host_os in
 
5911
aix*)
 
5912
  symcode='[BCDT]'
 
5913
  ;;
 
5914
cygwin* | mingw* | pw32* | cegcc*)
 
5915
  symcode='[ABCDGISTW]'
 
5916
  ;;
 
5917
hpux*)
 
5918
  if test "$host_cpu" = ia64; then
 
5919
    symcode='[ABCDEGRST]'
 
5920
  fi
 
5921
  ;;
 
5922
irix* | nonstopux*)
 
5923
  symcode='[BCDEGRST]'
 
5924
  ;;
 
5925
osf*)
 
5926
  symcode='[BCDEGQRST]'
 
5927
  ;;
 
5928
solaris*)
 
5929
  symcode='[BDRT]'
 
5930
  ;;
 
5931
sco3.2v5*)
 
5932
  symcode='[DT]'
 
5933
  ;;
 
5934
sysv4.2uw2*)
 
5935
  symcode='[DT]'
 
5936
  ;;
 
5937
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5938
  symcode='[ABDT]'
 
5939
  ;;
 
5940
sysv4)
 
5941
  symcode='[DFNSTU]'
 
5942
  ;;
 
5943
esac
 
5944
 
 
5945
# If we're using GNU nm, then use its standard symbol codes.
 
5946
case `$NM -V 2>&1` in
 
5947
*GNU* | *'with BFD'*)
 
5948
  symcode='[ABCDGIRSTW]' ;;
 
5949
esac
 
5950
 
 
5951
# Transform an extracted symbol line into a proper C declaration.
 
5952
# Some systems (esp. on ia64) link data and code symbols differently,
 
5953
# so use this general approach.
 
5954
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5955
 
 
5956
# Transform an extracted symbol line into symbol name and symbol address
 
5957
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5958
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'"
 
5959
 
 
5960
# Handle CRLF in mingw tool chain
 
5961
opt_cr=
 
5962
case $build_os in
 
5963
mingw*)
 
5964
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5965
  ;;
 
5966
esac
 
5967
 
 
5968
# Try without a prefix underscore, then with it.
 
5969
for ac_symprfx in "" "_"; do
 
5970
 
 
5971
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5972
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5973
 
 
5974
  # Write the raw and C identifiers.
 
5975
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5976
    # Fake it for dumpbin and say T for any non-static function
 
5977
    # and D for any global variable.
 
5978
    # Also find C++ and __fastcall symbols from MSVC++,
 
5979
    # which start with @ or ?.
 
5980
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5981
"     {last_section=section; section=\$ 3};"\
 
5982
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5983
"     \$ 0!~/External *\|/{next};"\
 
5984
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5985
"     {if(hide[section]) next};"\
 
5986
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5987
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5988
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5989
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5990
"     ' prfx=^$ac_symprfx"
 
5991
  else
 
5992
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5993
  fi
 
5994
 
 
5995
  # Check to see that the pipe works correctly.
 
5996
  pipe_works=no
 
5997
 
 
5998
  rm -f conftest*
 
5999
  cat > conftest.$ac_ext <<_LT_EOF
 
6000
#ifdef __cplusplus
 
6001
extern "C" {
 
6002
#endif
 
6003
char nm_test_var;
 
6004
void nm_test_func(void);
 
6005
void nm_test_func(void){}
 
6006
#ifdef __cplusplus
 
6007
}
 
6008
#endif
 
6009
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6010
_LT_EOF
 
6011
 
 
6012
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6013
  (eval $ac_compile) 2>&5
 
6014
  ac_status=$?
 
6015
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6016
  test $ac_status = 0; }; then
 
6017
    # Now try to grab the symbols.
 
6018
    nlist=conftest.nm
 
6019
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6020
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6021
  ac_status=$?
 
6022
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6023
  test $ac_status = 0; } && test -s "$nlist"; then
 
6024
      # Try sorting and uniquifying the output.
 
6025
      if sort "$nlist" | uniq > "$nlist"T; then
 
6026
        mv -f "$nlist"T "$nlist"
 
6027
      else
 
6028
        rm -f "$nlist"T
 
6029
      fi
 
6030
 
 
6031
      # Make sure that we snagged all the symbols we need.
 
6032
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6033
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6034
          cat <<_LT_EOF > conftest.$ac_ext
 
6035
#ifdef __cplusplus
 
6036
extern "C" {
 
6037
#endif
 
6038
 
 
6039
_LT_EOF
 
6040
          # Now generate the symbol file.
 
6041
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6042
 
 
6043
          cat <<_LT_EOF >> conftest.$ac_ext
 
6044
 
 
6045
/* The mapping between symbol names and symbols.  */
 
6046
const struct {
 
6047
  const char *name;
 
6048
  void       *address;
 
6049
}
 
6050
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6051
{
 
6052
  { "@PROGRAM@", (void *) 0 },
 
6053
_LT_EOF
 
6054
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6055
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6056
  {0, (void *) 0}
 
6057
};
 
6058
 
 
6059
/* This works around a problem in FreeBSD linker */
 
6060
#ifdef FREEBSD_WORKAROUND
 
6061
static const void *lt_preloaded_setup() {
 
6062
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6063
}
 
6064
#endif
 
6065
 
 
6066
#ifdef __cplusplus
 
6067
}
 
6068
#endif
 
6069
_LT_EOF
 
6070
          # Now try linking the two files.
 
6071
          mv conftest.$ac_objext conftstm.$ac_objext
 
6072
          lt_save_LIBS="$LIBS"
 
6073
          lt_save_CFLAGS="$CFLAGS"
 
6074
          LIBS="conftstm.$ac_objext"
 
6075
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6076
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6077
  (eval $ac_link) 2>&5
 
6078
  ac_status=$?
 
6079
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6080
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6081
            pipe_works=yes
 
6082
          fi
 
6083
          LIBS="$lt_save_LIBS"
 
6084
          CFLAGS="$lt_save_CFLAGS"
 
6085
        else
 
6086
          echo "cannot find nm_test_func in $nlist" >&5
 
6087
        fi
 
6088
      else
 
6089
        echo "cannot find nm_test_var in $nlist" >&5
 
6090
      fi
 
6091
    else
 
6092
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6093
    fi
 
6094
  else
 
6095
    echo "$progname: failed program was:" >&5
 
6096
    cat conftest.$ac_ext >&5
 
6097
  fi
 
6098
  rm -rf conftest* conftst*
 
6099
 
 
6100
  # Do not use the global_symbol_pipe unless it works.
 
6101
  if test "$pipe_works" = yes; then
 
6102
    break
 
6103
  else
 
6104
    lt_cv_sys_global_symbol_pipe=
 
6105
  fi
 
6106
done
 
6107
 
 
6108
fi
 
6109
 
 
6110
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6111
  lt_cv_sys_global_symbol_to_cdecl=
 
6112
fi
 
6113
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6115
$as_echo "failed" >&6; }
 
6116
else
 
6117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6118
$as_echo "ok" >&6; }
 
6119
fi
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
 
 
6127
 
 
6128
 
 
6129
 
 
6130
 
 
6131
 
 
6132
 
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
 
6138
 
 
6139
 
 
6140
 
 
6141
 
 
6142
 
 
6143
# Check whether --enable-libtool-lock was given.
 
6144
if test "${enable_libtool_lock+set}" = set; then :
 
6145
  enableval=$enable_libtool_lock;
 
6146
fi
 
6147
 
 
6148
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6149
 
 
6150
# Some flags need to be propagated to the compiler or linker for good
 
6151
# libtool support.
 
6152
case $host in
 
6153
ia64-*-hpux*)
 
6154
  # Find out which ABI we are using.
 
6155
  echo 'int i;' > conftest.$ac_ext
 
6156
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6157
  (eval $ac_compile) 2>&5
 
6158
  ac_status=$?
 
6159
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6160
  test $ac_status = 0; }; then
 
6161
    case `/usr/bin/file conftest.$ac_objext` in
 
6162
      *ELF-32*)
 
6163
        HPUX_IA64_MODE="32"
 
6164
        ;;
 
6165
      *ELF-64*)
 
6166
        HPUX_IA64_MODE="64"
 
6167
        ;;
 
6168
    esac
 
6169
  fi
 
6170
  rm -rf conftest*
 
6171
  ;;
 
6172
*-*-irix6*)
 
6173
  # Find out which ABI we are using.
 
6174
  echo '#line 6174 "configure"' > conftest.$ac_ext
 
6175
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6176
  (eval $ac_compile) 2>&5
 
6177
  ac_status=$?
 
6178
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6179
  test $ac_status = 0; }; then
 
6180
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6181
      case `/usr/bin/file conftest.$ac_objext` in
 
6182
        *32-bit*)
 
6183
          LD="${LD-ld} -melf32bsmip"
 
6184
          ;;
 
6185
        *N32*)
 
6186
          LD="${LD-ld} -melf32bmipn32"
 
6187
          ;;
 
6188
        *64-bit*)
 
6189
          LD="${LD-ld} -melf64bmip"
 
6190
        ;;
 
6191
      esac
 
6192
    else
 
6193
      case `/usr/bin/file conftest.$ac_objext` in
 
6194
        *32-bit*)
 
6195
          LD="${LD-ld} -32"
 
6196
          ;;
 
6197
        *N32*)
 
6198
          LD="${LD-ld} -n32"
 
6199
          ;;
 
6200
        *64-bit*)
 
6201
          LD="${LD-ld} -64"
 
6202
          ;;
 
6203
      esac
 
6204
    fi
 
6205
  fi
 
6206
  rm -rf conftest*
 
6207
  ;;
 
6208
 
 
6209
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6210
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6211
  # Find out which ABI we are using.
 
6212
  echo 'int i;' > conftest.$ac_ext
 
6213
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6214
  (eval $ac_compile) 2>&5
 
6215
  ac_status=$?
 
6216
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6217
  test $ac_status = 0; }; then
 
6218
    case `/usr/bin/file conftest.o` in
 
6219
      *32-bit*)
 
6220
        case $host in
 
6221
          x86_64-*kfreebsd*-gnu)
 
6222
            LD="${LD-ld} -m elf_i386_fbsd"
 
6223
            ;;
 
6224
          x86_64-*linux*)
 
6225
            LD="${LD-ld} -m elf_i386"
 
6226
            ;;
 
6227
          ppc64-*linux*|powerpc64-*linux*)
 
6228
            LD="${LD-ld} -m elf32ppclinux"
 
6229
            ;;
 
6230
          s390x-*linux*)
 
6231
            LD="${LD-ld} -m elf_s390"
 
6232
            ;;
 
6233
          sparc64-*linux*)
 
6234
            LD="${LD-ld} -m elf32_sparc"
 
6235
            ;;
 
6236
        esac
 
6237
        ;;
 
6238
      *64-bit*)
 
6239
        case $host in
 
6240
          x86_64-*kfreebsd*-gnu)
 
6241
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6242
            ;;
 
6243
          x86_64-*linux*)
 
6244
            LD="${LD-ld} -m elf_x86_64"
 
6245
            ;;
 
6246
          ppc*-*linux*|powerpc*-*linux*)
 
6247
            LD="${LD-ld} -m elf64ppc"
 
6248
            ;;
 
6249
          s390*-*linux*|s390*-*tpf*)
 
6250
            LD="${LD-ld} -m elf64_s390"
 
6251
            ;;
 
6252
          sparc*-*linux*)
 
6253
            LD="${LD-ld} -m elf64_sparc"
 
6254
            ;;
 
6255
        esac
 
6256
        ;;
 
6257
    esac
 
6258
  fi
 
6259
  rm -rf conftest*
 
6260
  ;;
 
6261
 
 
6262
*-*-sco3.2v5*)
 
6263
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6264
  SAVE_CFLAGS="$CFLAGS"
 
6265
  CFLAGS="$CFLAGS -belf"
 
6266
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6267
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6268
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
6269
  $as_echo_n "(cached) " >&6
 
6270
else
 
6271
  ac_ext=c
 
6272
ac_cpp='$CPP $CPPFLAGS'
 
6273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6276
 
 
6277
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6278
/* end confdefs.h.  */
 
6279
 
 
6280
int
 
6281
main ()
 
6282
{
 
6283
 
 
6284
  ;
 
6285
  return 0;
 
6286
}
 
6287
_ACEOF
 
6288
if ac_fn_c_try_link "$LINENO"; then :
 
6289
  lt_cv_cc_needs_belf=yes
 
6290
else
 
6291
  lt_cv_cc_needs_belf=no
 
6292
fi
 
6293
rm -f core conftest.err conftest.$ac_objext \
 
6294
    conftest$ac_exeext conftest.$ac_ext
 
6295
     ac_ext=c
 
6296
ac_cpp='$CPP $CPPFLAGS'
 
6297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6300
 
 
6301
fi
 
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6303
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6304
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6305
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6306
    CFLAGS="$SAVE_CFLAGS"
 
6307
  fi
 
6308
  ;;
 
6309
sparc*-*solaris*)
 
6310
  # Find out which ABI we are using.
 
6311
  echo 'int i;' > conftest.$ac_ext
 
6312
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6313
  (eval $ac_compile) 2>&5
 
6314
  ac_status=$?
 
6315
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6316
  test $ac_status = 0; }; then
 
6317
    case `/usr/bin/file conftest.o` in
 
6318
    *64-bit*)
 
6319
      case $lt_cv_prog_gnu_ld in
 
6320
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6321
      *)
 
6322
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6323
          LD="${LD-ld} -64"
 
6324
        fi
 
6325
        ;;
 
6326
      esac
 
6327
      ;;
 
6328
    esac
 
6329
  fi
 
6330
  rm -rf conftest*
 
6331
  ;;
 
6332
esac
 
6333
 
 
6334
need_locks="$enable_libtool_lock"
 
6335
 
 
6336
 
 
6337
  case $host_os in
 
6338
    rhapsody* | darwin*)
 
6339
    if test -n "$ac_tool_prefix"; then
 
6340
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6341
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6343
$as_echo_n "checking for $ac_word... " >&6; }
 
6344
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
6345
  $as_echo_n "(cached) " >&6
 
6346
else
 
6347
  if test -n "$DSYMUTIL"; then
 
6348
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6349
else
 
6350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6351
for as_dir in $PATH
 
6352
do
 
6353
  IFS=$as_save_IFS
 
6354
  test -z "$as_dir" && as_dir=.
 
6355
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6357
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6358
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6359
    break 2
 
6360
  fi
 
6361
done
 
6362
  done
 
6363
IFS=$as_save_IFS
 
6364
 
 
6365
fi
 
6366
fi
 
6367
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6368
if test -n "$DSYMUTIL"; then
 
6369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6370
$as_echo "$DSYMUTIL" >&6; }
 
6371
else
 
6372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6373
$as_echo "no" >&6; }
 
6374
fi
 
6375
 
 
6376
 
 
6377
fi
 
6378
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6379
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6380
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6381
set dummy dsymutil; ac_word=$2
 
6382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6383
$as_echo_n "checking for $ac_word... " >&6; }
 
6384
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
6385
  $as_echo_n "(cached) " >&6
 
6386
else
 
6387
  if test -n "$ac_ct_DSYMUTIL"; then
 
6388
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6389
else
 
6390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6391
for as_dir in $PATH
 
6392
do
 
6393
  IFS=$as_save_IFS
 
6394
  test -z "$as_dir" && as_dir=.
 
6395
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6396
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6397
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6398
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6399
    break 2
 
6400
  fi
 
6401
done
 
6402
  done
 
6403
IFS=$as_save_IFS
 
6404
 
 
6405
fi
 
6406
fi
 
6407
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6408
if test -n "$ac_ct_DSYMUTIL"; then
 
6409
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6410
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6411
else
 
6412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6413
$as_echo "no" >&6; }
 
6414
fi
 
6415
 
 
6416
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6417
    DSYMUTIL=":"
 
6418
  else
 
6419
    case $cross_compiling:$ac_tool_warned in
 
6420
yes:)
 
6421
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6422
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6423
ac_tool_warned=yes ;;
 
6424
esac
 
6425
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6426
  fi
 
6427
else
 
6428
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6429
fi
 
6430
 
 
6431
    if test -n "$ac_tool_prefix"; then
 
6432
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6433
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6435
$as_echo_n "checking for $ac_word... " >&6; }
 
6436
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
6437
  $as_echo_n "(cached) " >&6
 
6438
else
 
6439
  if test -n "$NMEDIT"; then
 
6440
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6441
else
 
6442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6443
for as_dir in $PATH
 
6444
do
 
6445
  IFS=$as_save_IFS
 
6446
  test -z "$as_dir" && as_dir=.
 
6447
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6448
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6449
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6450
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6451
    break 2
 
6452
  fi
 
6453
done
 
6454
  done
 
6455
IFS=$as_save_IFS
 
6456
 
 
6457
fi
 
6458
fi
 
6459
NMEDIT=$ac_cv_prog_NMEDIT
 
6460
if test -n "$NMEDIT"; then
 
6461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6462
$as_echo "$NMEDIT" >&6; }
 
6463
else
 
6464
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6465
$as_echo "no" >&6; }
 
6466
fi
 
6467
 
 
6468
 
 
6469
fi
 
6470
if test -z "$ac_cv_prog_NMEDIT"; then
 
6471
  ac_ct_NMEDIT=$NMEDIT
 
6472
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6473
set dummy nmedit; ac_word=$2
 
6474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6475
$as_echo_n "checking for $ac_word... " >&6; }
 
6476
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
6477
  $as_echo_n "(cached) " >&6
 
6478
else
 
6479
  if test -n "$ac_ct_NMEDIT"; then
 
6480
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6481
else
 
6482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6483
for as_dir in $PATH
 
6484
do
 
6485
  IFS=$as_save_IFS
 
6486
  test -z "$as_dir" && as_dir=.
 
6487
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6488
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6489
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6490
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6491
    break 2
 
6492
  fi
 
6493
done
 
6494
  done
 
6495
IFS=$as_save_IFS
 
6496
 
 
6497
fi
 
6498
fi
 
6499
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6500
if test -n "$ac_ct_NMEDIT"; then
 
6501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6502
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6503
else
 
6504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6505
$as_echo "no" >&6; }
 
6506
fi
 
6507
 
 
6508
  if test "x$ac_ct_NMEDIT" = x; then
 
6509
    NMEDIT=":"
 
6510
  else
 
6511
    case $cross_compiling:$ac_tool_warned in
 
6512
yes:)
 
6513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6515
ac_tool_warned=yes ;;
 
6516
esac
 
6517
    NMEDIT=$ac_ct_NMEDIT
 
6518
  fi
 
6519
else
 
6520
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6521
fi
 
6522
 
 
6523
    if test -n "$ac_tool_prefix"; then
 
6524
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6525
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6527
$as_echo_n "checking for $ac_word... " >&6; }
 
6528
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
6529
  $as_echo_n "(cached) " >&6
 
6530
else
 
6531
  if test -n "$LIPO"; then
 
6532
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6533
else
 
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6535
for as_dir in $PATH
 
6536
do
 
6537
  IFS=$as_save_IFS
 
6538
  test -z "$as_dir" && as_dir=.
 
6539
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6541
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6542
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6543
    break 2
 
6544
  fi
 
6545
done
 
6546
  done
 
6547
IFS=$as_save_IFS
 
6548
 
 
6549
fi
 
6550
fi
 
6551
LIPO=$ac_cv_prog_LIPO
 
6552
if test -n "$LIPO"; then
 
6553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6554
$as_echo "$LIPO" >&6; }
 
6555
else
 
6556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6557
$as_echo "no" >&6; }
 
6558
fi
 
6559
 
 
6560
 
 
6561
fi
 
6562
if test -z "$ac_cv_prog_LIPO"; then
 
6563
  ac_ct_LIPO=$LIPO
 
6564
  # Extract the first word of "lipo", so it can be a program name with args.
 
6565
set dummy lipo; ac_word=$2
 
6566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6567
$as_echo_n "checking for $ac_word... " >&6; }
 
6568
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6569
  $as_echo_n "(cached) " >&6
 
6570
else
 
6571
  if test -n "$ac_ct_LIPO"; then
 
6572
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6573
else
 
6574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6575
for as_dir in $PATH
 
6576
do
 
6577
  IFS=$as_save_IFS
 
6578
  test -z "$as_dir" && as_dir=.
 
6579
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6580
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6581
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6582
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6583
    break 2
 
6584
  fi
 
6585
done
 
6586
  done
 
6587
IFS=$as_save_IFS
 
6588
 
 
6589
fi
 
6590
fi
 
6591
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6592
if test -n "$ac_ct_LIPO"; then
 
6593
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6594
$as_echo "$ac_ct_LIPO" >&6; }
 
6595
else
 
6596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6597
$as_echo "no" >&6; }
 
6598
fi
 
6599
 
 
6600
  if test "x$ac_ct_LIPO" = x; then
 
6601
    LIPO=":"
 
6602
  else
 
6603
    case $cross_compiling:$ac_tool_warned in
 
6604
yes:)
 
6605
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6606
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6607
ac_tool_warned=yes ;;
 
6608
esac
 
6609
    LIPO=$ac_ct_LIPO
 
6610
  fi
 
6611
else
 
6612
  LIPO="$ac_cv_prog_LIPO"
 
6613
fi
 
6614
 
 
6615
    if test -n "$ac_tool_prefix"; then
 
6616
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6617
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6619
$as_echo_n "checking for $ac_word... " >&6; }
 
6620
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6621
  $as_echo_n "(cached) " >&6
 
6622
else
 
6623
  if test -n "$OTOOL"; then
 
6624
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6625
else
 
6626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6627
for as_dir in $PATH
 
6628
do
 
6629
  IFS=$as_save_IFS
 
6630
  test -z "$as_dir" && as_dir=.
 
6631
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6632
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6633
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6634
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6635
    break 2
 
6636
  fi
 
6637
done
 
6638
  done
 
6639
IFS=$as_save_IFS
 
6640
 
 
6641
fi
 
6642
fi
 
6643
OTOOL=$ac_cv_prog_OTOOL
 
6644
if test -n "$OTOOL"; then
 
6645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6646
$as_echo "$OTOOL" >&6; }
 
6647
else
 
6648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6649
$as_echo "no" >&6; }
 
6650
fi
 
6651
 
 
6652
 
 
6653
fi
 
6654
if test -z "$ac_cv_prog_OTOOL"; then
 
6655
  ac_ct_OTOOL=$OTOOL
 
6656
  # Extract the first word of "otool", so it can be a program name with args.
 
6657
set dummy otool; ac_word=$2
 
6658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6659
$as_echo_n "checking for $ac_word... " >&6; }
 
6660
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6661
  $as_echo_n "(cached) " >&6
 
6662
else
 
6663
  if test -n "$ac_ct_OTOOL"; then
 
6664
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6665
else
 
6666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6667
for as_dir in $PATH
 
6668
do
 
6669
  IFS=$as_save_IFS
 
6670
  test -z "$as_dir" && as_dir=.
 
6671
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6672
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6673
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6674
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6675
    break 2
 
6676
  fi
 
6677
done
 
6678
  done
 
6679
IFS=$as_save_IFS
 
6680
 
 
6681
fi
 
6682
fi
 
6683
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6684
if test -n "$ac_ct_OTOOL"; then
 
6685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6686
$as_echo "$ac_ct_OTOOL" >&6; }
 
6687
else
 
6688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6689
$as_echo "no" >&6; }
 
6690
fi
 
6691
 
 
6692
  if test "x$ac_ct_OTOOL" = x; then
 
6693
    OTOOL=":"
 
6694
  else
 
6695
    case $cross_compiling:$ac_tool_warned in
 
6696
yes:)
 
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6698
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6699
ac_tool_warned=yes ;;
 
6700
esac
 
6701
    OTOOL=$ac_ct_OTOOL
 
6702
  fi
 
6703
else
 
6704
  OTOOL="$ac_cv_prog_OTOOL"
 
6705
fi
 
6706
 
 
6707
    if test -n "$ac_tool_prefix"; then
 
6708
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6709
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6711
$as_echo_n "checking for $ac_word... " >&6; }
 
6712
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6713
  $as_echo_n "(cached) " >&6
 
6714
else
 
6715
  if test -n "$OTOOL64"; then
 
6716
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6717
else
 
6718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6719
for as_dir in $PATH
 
6720
do
 
6721
  IFS=$as_save_IFS
 
6722
  test -z "$as_dir" && as_dir=.
 
6723
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6725
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6726
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6727
    break 2
 
6728
  fi
 
6729
done
 
6730
  done
 
6731
IFS=$as_save_IFS
 
6732
 
 
6733
fi
 
6734
fi
 
6735
OTOOL64=$ac_cv_prog_OTOOL64
 
6736
if test -n "$OTOOL64"; then
 
6737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6738
$as_echo "$OTOOL64" >&6; }
 
6739
else
 
6740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6741
$as_echo "no" >&6; }
 
6742
fi
 
6743
 
 
6744
 
 
6745
fi
 
6746
if test -z "$ac_cv_prog_OTOOL64"; then
 
6747
  ac_ct_OTOOL64=$OTOOL64
 
6748
  # Extract the first word of "otool64", so it can be a program name with args.
 
6749
set dummy otool64; ac_word=$2
 
6750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6751
$as_echo_n "checking for $ac_word... " >&6; }
 
6752
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6753
  $as_echo_n "(cached) " >&6
 
6754
else
 
6755
  if test -n "$ac_ct_OTOOL64"; then
 
6756
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6757
else
 
6758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6759
for as_dir in $PATH
 
6760
do
 
6761
  IFS=$as_save_IFS
 
6762
  test -z "$as_dir" && as_dir=.
 
6763
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6764
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6765
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6766
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6767
    break 2
 
6768
  fi
 
6769
done
 
6770
  done
 
6771
IFS=$as_save_IFS
 
6772
 
 
6773
fi
 
6774
fi
 
6775
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6776
if test -n "$ac_ct_OTOOL64"; then
 
6777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6778
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6779
else
 
6780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6781
$as_echo "no" >&6; }
 
6782
fi
 
6783
 
 
6784
  if test "x$ac_ct_OTOOL64" = x; then
 
6785
    OTOOL64=":"
 
6786
  else
 
6787
    case $cross_compiling:$ac_tool_warned in
 
6788
yes:)
 
6789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6790
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6791
ac_tool_warned=yes ;;
 
6792
esac
 
6793
    OTOOL64=$ac_ct_OTOOL64
 
6794
  fi
 
6795
else
 
6796
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6797
fi
 
6798
 
 
6799
 
 
6800
 
 
6801
 
 
6802
 
 
6803
 
 
6804
 
 
6805
 
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
6815
 
 
6816
 
 
6817
 
 
6818
 
 
6819
 
 
6820
 
 
6821
 
 
6822
 
 
6823
 
 
6824
 
 
6825
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6826
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6827
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
6828
  $as_echo_n "(cached) " >&6
 
6829
else
 
6830
  lt_cv_apple_cc_single_mod=no
 
6831
      if test -z "${LT_MULTI_MODULE}"; then
 
6832
        # By default we will add the -single_module flag. You can override
 
6833
        # by either setting the environment variable LT_MULTI_MODULE
 
6834
        # non-empty at configure time, or by adding -multi_module to the
 
6835
        # link flags.
 
6836
        rm -rf libconftest.dylib*
 
6837
        echo "int foo(void){return 1;}" > conftest.c
 
6838
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6839
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6840
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6841
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6842
        _lt_result=$?
 
6843
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6844
          lt_cv_apple_cc_single_mod=yes
 
6845
        else
 
6846
          cat conftest.err >&5
 
6847
        fi
 
6848
        rm -rf libconftest.dylib*
 
6849
        rm -f conftest.*
 
6850
      fi
 
6851
fi
 
6852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6853
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6854
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6855
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6856
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
6857
  $as_echo_n "(cached) " >&6
 
6858
else
 
6859
  lt_cv_ld_exported_symbols_list=no
 
6860
      save_LDFLAGS=$LDFLAGS
 
6861
      echo "_main" > conftest.sym
 
6862
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6863
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6864
/* end confdefs.h.  */
 
6865
 
 
6866
int
 
6867
main ()
 
6868
{
 
6869
 
 
6870
  ;
 
6871
  return 0;
 
6872
}
 
6873
_ACEOF
 
6874
if ac_fn_c_try_link "$LINENO"; then :
 
6875
  lt_cv_ld_exported_symbols_list=yes
 
6876
else
 
6877
  lt_cv_ld_exported_symbols_list=no
 
6878
fi
 
6879
rm -f core conftest.err conftest.$ac_objext \
 
6880
    conftest$ac_exeext conftest.$ac_ext
 
6881
        LDFLAGS="$save_LDFLAGS"
 
6882
 
 
6883
fi
 
6884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
6885
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6886
    case $host_os in
 
6887
    rhapsody* | darwin1.[012])
 
6888
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6889
    darwin1.*)
 
6890
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6891
    darwin*) # darwin 5.x on
 
6892
      # if running on 10.5 or later, the deployment target defaults
 
6893
      # to the OS version, if on x86, and 10.4, the deployment
 
6894
      # target defaults to 10.4. Don't you love it?
 
6895
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6896
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6897
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6898
        10.[012]*)
 
6899
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6900
        10.*)
 
6901
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6902
      esac
 
6903
    ;;
 
6904
  esac
 
6905
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6906
      _lt_dar_single_mod='$single_module'
 
6907
    fi
 
6908
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6909
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6910
    else
 
6911
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6912
    fi
 
6913
    if test "$DSYMUTIL" != ":"; then
 
6914
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6915
    else
 
6916
      _lt_dsymutil=
 
6917
    fi
 
6918
    ;;
 
6919
  esac
 
6920
 
 
6921
ac_ext=c
 
6922
ac_cpp='$CPP $CPPFLAGS'
 
6923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6927
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6928
# On Suns, sometimes $CPP names a directory.
 
6929
if test -n "$CPP" && test -d "$CPP"; then
 
6930
  CPP=
 
6931
fi
 
6932
if test -z "$CPP"; then
 
6933
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
6934
  $as_echo_n "(cached) " >&6
 
6935
else
 
6936
      # Double quotes because CPP needs to be expanded
 
6937
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6938
    do
 
6939
      ac_preproc_ok=false
 
6940
for ac_c_preproc_warn_flag in '' yes
 
6941
do
 
6942
  # Use a header file that comes with gcc, so configuring glibc
 
6943
  # with a fresh cross-compiler works.
 
6944
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6945
  # <limits.h> exists even on freestanding compilers.
 
6946
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6947
  # not just through cpp. "Syntax error" is here to catch this case.
 
6948
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6949
/* end confdefs.h.  */
 
6950
#ifdef __STDC__
 
6951
# include <limits.h>
 
6952
#else
 
6953
# include <assert.h>
 
6954
#endif
 
6955
                     Syntax error
 
6956
_ACEOF
 
6957
if ac_fn_c_try_cpp "$LINENO"; then :
 
6958
 
 
6959
else
 
6960
  # Broken: fails on valid input.
 
6961
continue
 
6962
fi
 
6963
rm -f conftest.err conftest.$ac_ext
 
6964
 
 
6965
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6966
  # can be detected and how.
 
6967
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6968
/* end confdefs.h.  */
 
6969
#include <ac_nonexistent.h>
 
6970
_ACEOF
 
6971
if ac_fn_c_try_cpp "$LINENO"; then :
 
6972
  # Broken: success on invalid input.
 
6973
continue
 
6974
else
 
6975
  # Passes both tests.
 
6976
ac_preproc_ok=:
 
6977
break
 
6978
fi
 
6979
rm -f conftest.err conftest.$ac_ext
 
6980
 
 
6981
done
 
6982
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6983
rm -f conftest.err conftest.$ac_ext
 
6984
if $ac_preproc_ok; then :
 
6985
  break
 
6986
fi
 
6987
 
 
6988
    done
 
6989
    ac_cv_prog_CPP=$CPP
 
6990
 
 
6991
fi
 
6992
  CPP=$ac_cv_prog_CPP
 
6993
else
 
6994
  ac_cv_prog_CPP=$CPP
 
6995
fi
 
6996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
6997
$as_echo "$CPP" >&6; }
 
6998
ac_preproc_ok=false
 
6999
for ac_c_preproc_warn_flag in '' yes
 
7000
do
 
7001
  # Use a header file that comes with gcc, so configuring glibc
 
7002
  # with a fresh cross-compiler works.
 
7003
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7004
  # <limits.h> exists even on freestanding compilers.
 
7005
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7006
  # not just through cpp. "Syntax error" is here to catch this case.
 
7007
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7008
/* end confdefs.h.  */
 
7009
#ifdef __STDC__
 
7010
# include <limits.h>
 
7011
#else
 
7012
# include <assert.h>
 
7013
#endif
 
7014
                     Syntax error
 
7015
_ACEOF
 
7016
if ac_fn_c_try_cpp "$LINENO"; then :
 
7017
 
 
7018
else
 
7019
  # Broken: fails on valid input.
 
7020
continue
 
7021
fi
 
7022
rm -f conftest.err conftest.$ac_ext
 
7023
 
 
7024
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7025
  # can be detected and how.
 
7026
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7027
/* end confdefs.h.  */
 
7028
#include <ac_nonexistent.h>
 
7029
_ACEOF
 
7030
if ac_fn_c_try_cpp "$LINENO"; then :
 
7031
  # Broken: success on invalid input.
 
7032
continue
 
7033
else
 
7034
  # Passes both tests.
 
7035
ac_preproc_ok=:
 
7036
break
 
7037
fi
 
7038
rm -f conftest.err conftest.$ac_ext
 
7039
 
 
7040
done
 
7041
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7042
rm -f conftest.err conftest.$ac_ext
 
7043
if $ac_preproc_ok; then :
 
7044
 
 
7045
else
 
7046
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7047
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7048
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
7049
See \`config.log' for more details." "$LINENO" 5; }
 
7050
fi
 
7051
 
 
7052
ac_ext=c
 
7053
ac_cpp='$CPP $CPPFLAGS'
 
7054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7057
 
 
7058
 
 
7059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7060
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7061
if test "${ac_cv_header_stdc+set}" = set; then :
 
7062
  $as_echo_n "(cached) " >&6
 
7063
else
 
7064
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7065
/* end confdefs.h.  */
 
7066
#include <stdlib.h>
 
7067
#include <stdarg.h>
 
7068
#include <string.h>
 
7069
#include <float.h>
 
7070
 
 
7071
int
 
7072
main ()
 
7073
{
 
7074
 
 
7075
  ;
 
7076
  return 0;
 
7077
}
 
7078
_ACEOF
 
7079
if ac_fn_c_try_compile "$LINENO"; then :
 
7080
  ac_cv_header_stdc=yes
 
7081
else
 
7082
  ac_cv_header_stdc=no
 
7083
fi
 
7084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7085
 
 
7086
if test $ac_cv_header_stdc = yes; then
 
7087
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7088
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7089
/* end confdefs.h.  */
 
7090
#include <string.h>
 
7091
 
 
7092
_ACEOF
 
7093
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7094
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7095
 
 
7096
else
 
7097
  ac_cv_header_stdc=no
 
7098
fi
 
7099
rm -f conftest*
 
7100
 
 
7101
fi
 
7102
 
 
7103
if test $ac_cv_header_stdc = yes; then
 
7104
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7105
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7106
/* end confdefs.h.  */
 
7107
#include <stdlib.h>
 
7108
 
 
7109
_ACEOF
 
7110
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7111
  $EGREP "free" >/dev/null 2>&1; then :
 
7112
 
 
7113
else
 
7114
  ac_cv_header_stdc=no
 
7115
fi
 
7116
rm -f conftest*
 
7117
 
 
7118
fi
 
7119
 
 
7120
if test $ac_cv_header_stdc = yes; then
 
7121
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7122
  if test "$cross_compiling" = yes; then :
 
7123
  :
 
7124
else
 
7125
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7126
/* end confdefs.h.  */
 
7127
#include <ctype.h>
 
7128
#include <stdlib.h>
 
7129
#if ((' ' & 0x0FF) == 0x020)
 
7130
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7131
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7132
#else
 
7133
# define ISLOWER(c) \
 
7134
                   (('a' <= (c) && (c) <= 'i') \
 
7135
                     || ('j' <= (c) && (c) <= 'r') \
 
7136
                     || ('s' <= (c) && (c) <= 'z'))
 
7137
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7138
#endif
 
7139
 
 
7140
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7141
int
 
7142
main ()
 
7143
{
 
7144
  int i;
 
7145
  for (i = 0; i < 256; i++)
 
7146
    if (XOR (islower (i), ISLOWER (i))
 
7147
        || toupper (i) != TOUPPER (i))
 
7148
      return 2;
 
7149
  return 0;
 
7150
}
 
7151
_ACEOF
 
7152
if ac_fn_c_try_run "$LINENO"; then :
 
7153
 
 
7154
else
 
7155
  ac_cv_header_stdc=no
 
7156
fi
 
7157
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7158
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7159
fi
 
7160
 
 
7161
fi
 
7162
fi
 
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7164
$as_echo "$ac_cv_header_stdc" >&6; }
 
7165
if test $ac_cv_header_stdc = yes; then
 
7166
 
 
7167
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7168
 
 
7169
fi
 
7170
 
 
7171
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7172
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7173
                  inttypes.h stdint.h unistd.h
 
7174
do :
 
7175
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7176
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7177
"
 
7178
eval as_val=\$$as_ac_Header
 
7179
   if test "x$as_val" = x""yes; then :
 
7180
  cat >>confdefs.h <<_ACEOF
 
7181
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7182
_ACEOF
 
7183
 
 
7184
fi
 
7185
 
 
7186
done
 
7187
 
 
7188
 
 
7189
for ac_header in dlfcn.h
 
7190
do :
 
7191
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7192
"
 
7193
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7194
  cat >>confdefs.h <<_ACEOF
 
7195
#define HAVE_DLFCN_H 1
 
7196
_ACEOF
 
7197
 
 
7198
fi
 
7199
 
 
7200
done
 
7201
 
 
7202
 
 
7203
 
 
7204
ac_ext=cpp
 
7205
ac_cpp='$CXXCPP $CPPFLAGS'
 
7206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7209
if test -z "$CXX"; then
 
7210
  if test -n "$CCC"; then
 
7211
    CXX=$CCC
 
7212
  else
 
7213
    if test -n "$ac_tool_prefix"; then
 
7214
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7215
  do
 
7216
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7217
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7219
$as_echo_n "checking for $ac_word... " >&6; }
 
7220
if test "${ac_cv_prog_CXX+set}" = set; then :
 
7221
  $as_echo_n "(cached) " >&6
 
7222
else
 
7223
  if test -n "$CXX"; then
 
7224
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
7225
else
 
7226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7227
for as_dir in $PATH
 
7228
do
 
7229
  IFS=$as_save_IFS
 
7230
  test -z "$as_dir" && as_dir=.
 
7231
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7233
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
7234
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7235
    break 2
 
7236
  fi
 
7237
done
 
7238
  done
 
7239
IFS=$as_save_IFS
 
7240
 
 
7241
fi
 
7242
fi
 
7243
CXX=$ac_cv_prog_CXX
 
7244
if test -n "$CXX"; then
 
7245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
7246
$as_echo "$CXX" >&6; }
 
7247
else
 
7248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7249
$as_echo "no" >&6; }
 
7250
fi
 
7251
 
 
7252
 
 
7253
    test -n "$CXX" && break
 
7254
  done
 
7255
fi
 
7256
if test -z "$CXX"; then
 
7257
  ac_ct_CXX=$CXX
 
7258
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
7259
do
 
7260
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7261
set dummy $ac_prog; ac_word=$2
 
7262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7263
$as_echo_n "checking for $ac_word... " >&6; }
 
7264
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
7265
  $as_echo_n "(cached) " >&6
 
7266
else
 
7267
  if test -n "$ac_ct_CXX"; then
 
7268
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
7269
else
 
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7271
for as_dir in $PATH
 
7272
do
 
7273
  IFS=$as_save_IFS
 
7274
  test -z "$as_dir" && as_dir=.
 
7275
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7276
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7277
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
7278
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7279
    break 2
 
7280
  fi
 
7281
done
 
7282
  done
 
7283
IFS=$as_save_IFS
 
7284
 
 
7285
fi
 
7286
fi
 
7287
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
7288
if test -n "$ac_ct_CXX"; then
 
7289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
7290
$as_echo "$ac_ct_CXX" >&6; }
 
7291
else
 
7292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7293
$as_echo "no" >&6; }
 
7294
fi
 
7295
 
 
7296
 
 
7297
  test -n "$ac_ct_CXX" && break
 
7298
done
 
7299
 
 
7300
  if test "x$ac_ct_CXX" = x; then
 
7301
    CXX="g++"
 
7302
  else
 
7303
    case $cross_compiling:$ac_tool_warned in
 
7304
yes:)
 
7305
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7306
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7307
ac_tool_warned=yes ;;
 
7308
esac
 
7309
    CXX=$ac_ct_CXX
 
7310
  fi
 
7311
fi
 
7312
 
 
7313
  fi
 
7314
fi
 
7315
# Provide some information about the compiler.
 
7316
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
7317
set X $ac_compile
 
7318
ac_compiler=$2
 
7319
for ac_option in --version -v -V -qversion; do
 
7320
  { { ac_try="$ac_compiler $ac_option >&5"
 
7321
case "(($ac_try" in
 
7322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7323
  *) ac_try_echo=$ac_try;;
 
7324
esac
 
7325
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
7326
$as_echo "$ac_try_echo"; } >&5
 
7327
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
7328
  ac_status=$?
 
7329
  if test -s conftest.err; then
 
7330
    sed '10a\
 
7331
... rest of stderr output deleted ...
 
7332
         10q' conftest.err >conftest.er1
 
7333
    cat conftest.er1 >&5
 
7334
    rm -f conftest.er1 conftest.err
 
7335
  fi
 
7336
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7337
  test $ac_status = 0; }
 
7338
done
 
7339
 
 
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
7341
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
7342
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
7343
  $as_echo_n "(cached) " >&6
 
7344
else
 
7345
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7346
/* end confdefs.h.  */
 
7347
 
 
7348
int
 
7349
main ()
 
7350
{
 
7351
#ifndef __GNUC__
 
7352
       choke me
 
7353
#endif
 
7354
 
 
7355
  ;
 
7356
  return 0;
 
7357
}
 
7358
_ACEOF
 
7359
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7360
  ac_compiler_gnu=yes
 
7361
else
 
7362
  ac_compiler_gnu=no
 
7363
fi
 
7364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7365
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7366
 
 
7367
fi
 
7368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
7369
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
7370
if test $ac_compiler_gnu = yes; then
 
7371
  GXX=yes
 
7372
else
 
7373
  GXX=
 
7374
fi
 
7375
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
7376
ac_save_CXXFLAGS=$CXXFLAGS
 
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
7378
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
7379
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
7380
  $as_echo_n "(cached) " >&6
 
7381
else
 
7382
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
7383
   ac_cxx_werror_flag=yes
 
7384
   ac_cv_prog_cxx_g=no
 
7385
   CXXFLAGS="-g"
 
7386
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7387
/* end confdefs.h.  */
 
7388
 
 
7389
int
 
7390
main ()
 
7391
{
 
7392
 
 
7393
  ;
 
7394
  return 0;
 
7395
}
 
7396
_ACEOF
 
7397
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7398
  ac_cv_prog_cxx_g=yes
 
7399
else
 
7400
  CXXFLAGS=""
 
7401
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7402
/* end confdefs.h.  */
 
7403
 
 
7404
int
 
7405
main ()
 
7406
{
 
7407
 
 
7408
  ;
 
7409
  return 0;
 
7410
}
 
7411
_ACEOF
 
7412
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7413
 
 
7414
else
 
7415
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7416
         CXXFLAGS="-g"
 
7417
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7418
/* end confdefs.h.  */
 
7419
 
 
7420
int
 
7421
main ()
 
7422
{
 
7423
 
 
7424
  ;
 
7425
  return 0;
 
7426
}
 
7427
_ACEOF
 
7428
if ac_fn_cxx_try_compile "$LINENO"; then :
 
7429
  ac_cv_prog_cxx_g=yes
 
7430
fi
 
7431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7432
fi
 
7433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7434
fi
 
7435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7436
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
7437
fi
 
7438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
7439
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
7440
if test "$ac_test_CXXFLAGS" = set; then
 
7441
  CXXFLAGS=$ac_save_CXXFLAGS
 
7442
elif test $ac_cv_prog_cxx_g = yes; then
 
7443
  if test "$GXX" = yes; then
 
7444
    CXXFLAGS="-g -O2"
 
7445
  else
 
7446
    CXXFLAGS="-g"
 
7447
  fi
 
7448
else
 
7449
  if test "$GXX" = yes; then
 
7450
    CXXFLAGS="-O2"
 
7451
  else
 
7452
    CXXFLAGS=
 
7453
  fi
 
7454
fi
 
7455
ac_ext=c
 
7456
ac_cpp='$CPP $CPPFLAGS'
 
7457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7460
 
 
7461
depcc="$CXX"  am_compiler_list=
 
7462
 
 
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
7464
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
7465
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
7466
  $as_echo_n "(cached) " >&6
 
7467
else
 
7468
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7469
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7470
  # making bogus files that we don't know about and never remove.  For
 
7471
  # instance it was reported that on HP-UX the gcc test will end up
 
7472
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7473
  # in D'.
 
7474
  mkdir conftest.dir
 
7475
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7476
  # using a relative directory.
 
7477
  cp "$am_depcomp" conftest.dir
 
7478
  cd conftest.dir
 
7479
  # We will build objects and dependencies in a subdirectory because
 
7480
  # it helps to detect inapplicable dependency modes.  For instance
 
7481
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7482
  # side effect of compilation, but ICC will put the dependencies in
 
7483
  # the current directory while Tru64 will put them in the object
 
7484
  # directory.
 
7485
  mkdir sub
 
7486
 
 
7487
  am_cv_CXX_dependencies_compiler_type=none
 
7488
  if test "$am_compiler_list" = ""; then
 
7489
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7490
  fi
 
7491
  am__universal=false
 
7492
  case " $depcc " in #(
 
7493
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
7494
     esac
 
7495
 
 
7496
  for depmode in $am_compiler_list; do
 
7497
    # Setup a source with many dependencies, because some compilers
 
7498
    # like to wrap large dependency lists on column 80 (with \), and
 
7499
    # we should not choose a depcomp mode which is confused by this.
 
7500
    #
 
7501
    # We need to recreate these files for each test, as the compiler may
 
7502
    # overwrite some of them when testing with obscure command lines.
 
7503
    # This happens at least with the AIX C compiler.
 
7504
    : > sub/conftest.c
 
7505
    for i in 1 2 3 4 5 6; do
 
7506
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7507
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7508
      # Solaris 8's {/usr,}/bin/sh.
 
7509
      touch sub/conftst$i.h
 
7510
    done
 
7511
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7512
 
 
7513
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7514
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7515
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
7516
    # versions had trouble with output in subdirs
 
7517
    am__obj=sub/conftest.${OBJEXT-o}
 
7518
    am__minus_obj="-o $am__obj"
 
7519
    case $depmode in
 
7520
    gcc)
 
7521
      # This depmode causes a compiler race in universal mode.
 
7522
      test "$am__universal" = false || continue
 
7523
      ;;
 
7524
    nosideeffect)
 
7525
      # after this tag, mechanisms are not by side-effect, so they'll
 
7526
      # only be used when explicitly requested
 
7527
      if test "x$enable_dependency_tracking" = xyes; then
 
7528
        continue
 
7529
      else
 
7530
        break
 
7531
      fi
 
7532
      ;;
 
7533
    msvisualcpp | msvcmsys)
 
7534
      # This compiler won't grok `-c -o', but also, the minuso test has
 
7535
      # not run yet.  These depmodes are late enough in the game, and
 
7536
      # so weak that their functioning should not be impacted.
 
7537
      am__obj=conftest.${OBJEXT-o}
 
7538
      am__minus_obj=
 
7539
      ;;
 
7540
    none) break ;;
 
7541
    esac
 
7542
    if depmode=$depmode \
 
7543
       source=sub/conftest.c object=$am__obj \
 
7544
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7545
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
7546
         >/dev/null 2>conftest.err &&
 
7547
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7548
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7549
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
7550
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7551
      # icc doesn't choke on unknown options, it will just issue warnings
 
7552
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7553
      # that says an option was ignored or not supported.
 
7554
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7555
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7556
      # The diagnosis changed in icc 8.0:
 
7557
      #   icc: Command line remark: option '-MP' not supported
 
7558
      if (grep 'ignoring option' conftest.err ||
 
7559
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7560
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7561
        break
 
7562
      fi
 
7563
    fi
 
7564
  done
 
7565
 
 
7566
  cd ..
 
7567
  rm -rf conftest.dir
 
7568
else
 
7569
  am_cv_CXX_dependencies_compiler_type=none
 
7570
fi
 
7571
 
 
7572
fi
 
7573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7574
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
7575
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7576
 
 
7577
 if
 
7578
  test "x$enable_dependency_tracking" != xno \
 
7579
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7580
  am__fastdepCXX_TRUE=
 
7581
  am__fastdepCXX_FALSE='#'
 
7582
else
 
7583
  am__fastdepCXX_TRUE='#'
 
7584
  am__fastdepCXX_FALSE=
 
7585
fi
 
7586
 
 
7587
 
 
7588
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7589
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7590
    (test "X$CXX" != "Xg++"))) ; then
 
7591
  ac_ext=cpp
 
7592
ac_cpp='$CXXCPP $CPPFLAGS'
 
7593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
7597
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
7598
if test -z "$CXXCPP"; then
 
7599
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
7600
  $as_echo_n "(cached) " >&6
 
7601
else
 
7602
      # Double quotes because CXXCPP needs to be expanded
 
7603
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7604
    do
 
7605
      ac_preproc_ok=false
 
7606
for ac_cxx_preproc_warn_flag in '' yes
 
7607
do
 
7608
  # Use a header file that comes with gcc, so configuring glibc
 
7609
  # with a fresh cross-compiler works.
 
7610
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7611
  # <limits.h> exists even on freestanding compilers.
 
7612
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7613
  # not just through cpp. "Syntax error" is here to catch this case.
 
7614
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7615
/* end confdefs.h.  */
 
7616
#ifdef __STDC__
 
7617
# include <limits.h>
 
7618
#else
 
7619
# include <assert.h>
 
7620
#endif
 
7621
                     Syntax error
 
7622
_ACEOF
 
7623
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7624
 
 
7625
else
 
7626
  # Broken: fails on valid input.
 
7627
continue
 
7628
fi
 
7629
rm -f conftest.err conftest.$ac_ext
 
7630
 
 
7631
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7632
  # can be detected and how.
 
7633
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7634
/* end confdefs.h.  */
 
7635
#include <ac_nonexistent.h>
 
7636
_ACEOF
 
7637
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7638
  # Broken: success on invalid input.
 
7639
continue
 
7640
else
 
7641
  # Passes both tests.
 
7642
ac_preproc_ok=:
 
7643
break
 
7644
fi
 
7645
rm -f conftest.err conftest.$ac_ext
 
7646
 
 
7647
done
 
7648
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7649
rm -f conftest.err conftest.$ac_ext
 
7650
if $ac_preproc_ok; then :
 
7651
  break
 
7652
fi
 
7653
 
 
7654
    done
 
7655
    ac_cv_prog_CXXCPP=$CXXCPP
 
7656
 
 
7657
fi
 
7658
  CXXCPP=$ac_cv_prog_CXXCPP
 
7659
else
 
7660
  ac_cv_prog_CXXCPP=$CXXCPP
 
7661
fi
 
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
7663
$as_echo "$CXXCPP" >&6; }
 
7664
ac_preproc_ok=false
 
7665
for ac_cxx_preproc_warn_flag in '' yes
 
7666
do
 
7667
  # Use a header file that comes with gcc, so configuring glibc
 
7668
  # with a fresh cross-compiler works.
 
7669
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7670
  # <limits.h> exists even on freestanding compilers.
 
7671
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7672
  # not just through cpp. "Syntax error" is here to catch this case.
 
7673
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7674
/* end confdefs.h.  */
 
7675
#ifdef __STDC__
 
7676
# include <limits.h>
 
7677
#else
 
7678
# include <assert.h>
 
7679
#endif
 
7680
                     Syntax error
 
7681
_ACEOF
 
7682
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7683
 
 
7684
else
 
7685
  # Broken: fails on valid input.
 
7686
continue
 
7687
fi
 
7688
rm -f conftest.err conftest.$ac_ext
 
7689
 
 
7690
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7691
  # can be detected and how.
 
7692
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7693
/* end confdefs.h.  */
 
7694
#include <ac_nonexistent.h>
 
7695
_ACEOF
 
7696
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
7697
  # Broken: success on invalid input.
 
7698
continue
 
7699
else
 
7700
  # Passes both tests.
 
7701
ac_preproc_ok=:
 
7702
break
 
7703
fi
 
7704
rm -f conftest.err conftest.$ac_ext
 
7705
 
 
7706
done
 
7707
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7708
rm -f conftest.err conftest.$ac_ext
 
7709
if $ac_preproc_ok; then :
 
7710
 
 
7711
else
 
7712
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7713
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7714
_lt_caught_CXX_error=yes; }
 
7715
fi
 
7716
 
 
7717
ac_ext=c
 
7718
ac_cpp='$CPP $CPPFLAGS'
 
7719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7722
 
 
7723
else
 
7724
  _lt_caught_CXX_error=yes
 
7725
fi
 
7726
 
 
7727
 
 
7728
 
 
7729
 
 
7730
 
 
7731
# Set options
 
7732
 
 
7733
 
 
7734
 
 
7735
        enable_dlopen=no
 
7736
 
 
7737
 
 
7738
  enable_win32_dll=no
 
7739
 
 
7740
 
 
7741
            # Check whether --enable-shared was given.
 
7742
if test "${enable_shared+set}" = set; then :
 
7743
  enableval=$enable_shared; p=${PACKAGE-default}
 
7744
    case $enableval in
 
7745
    yes) enable_shared=yes ;;
 
7746
    no) enable_shared=no ;;
 
7747
    *)
 
7748
      enable_shared=no
 
7749
      # Look at the argument we got.  We use all the common list separators.
 
7750
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7751
      for pkg in $enableval; do
 
7752
        IFS="$lt_save_ifs"
 
7753
        if test "X$pkg" = "X$p"; then
 
7754
          enable_shared=yes
 
7755
        fi
 
7756
      done
 
7757
      IFS="$lt_save_ifs"
 
7758
      ;;
 
7759
    esac
 
7760
else
 
7761
  enable_shared=yes
 
7762
fi
 
7763
 
 
7764
 
 
7765
 
 
7766
 
 
7767
 
 
7768
 
 
7769
 
 
7770
 
 
7771
 
 
7772
  # Check whether --enable-static was given.
 
7773
if test "${enable_static+set}" = set; then :
 
7774
  enableval=$enable_static; p=${PACKAGE-default}
 
7775
    case $enableval in
 
7776
    yes) enable_static=yes ;;
 
7777
    no) enable_static=no ;;
 
7778
    *)
 
7779
     enable_static=no
 
7780
      # Look at the argument we got.  We use all the common list separators.
 
7781
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7782
      for pkg in $enableval; do
 
7783
        IFS="$lt_save_ifs"
 
7784
        if test "X$pkg" = "X$p"; then
 
7785
          enable_static=yes
 
7786
        fi
 
7787
      done
 
7788
      IFS="$lt_save_ifs"
 
7789
      ;;
 
7790
    esac
 
7791
else
 
7792
  enable_static=yes
 
7793
fi
 
7794
 
 
7795
 
 
7796
 
 
7797
 
 
7798
 
 
7799
 
 
7800
 
 
7801
 
 
7802
 
 
7803
 
 
7804
# Check whether --with-pic was given.
 
7805
if test "${with_pic+set}" = set; then :
 
7806
  withval=$with_pic; pic_mode="$withval"
 
7807
else
 
7808
  pic_mode=default
 
7809
fi
 
7810
 
 
7811
 
 
7812
test -z "$pic_mode" && pic_mode=default
 
7813
 
 
7814
 
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
 
 
7820
  # Check whether --enable-fast-install was given.
 
7821
if test "${enable_fast_install+set}" = set; then :
 
7822
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7823
    case $enableval in
 
7824
    yes) enable_fast_install=yes ;;
 
7825
    no) enable_fast_install=no ;;
 
7826
    *)
 
7827
      enable_fast_install=no
 
7828
      # Look at the argument we got.  We use all the common list separators.
 
7829
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7830
      for pkg in $enableval; do
 
7831
        IFS="$lt_save_ifs"
 
7832
        if test "X$pkg" = "X$p"; then
 
7833
          enable_fast_install=yes
 
7834
        fi
 
7835
      done
 
7836
      IFS="$lt_save_ifs"
 
7837
      ;;
 
7838
    esac
 
7839
else
 
7840
  enable_fast_install=yes
 
7841
fi
 
7842
 
 
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
# This can be used to rebuild libtool when needed
 
7854
LIBTOOL_DEPS="$ltmain"
 
7855
 
 
7856
# Always use our own libtool.
 
7857
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7858
 
 
7859
 
 
7860
 
 
7861
 
 
7862
 
 
7863
 
 
7864
 
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
 
 
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
test -z "$LN_S" && LN_S="ln -s"
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
 
 
7892
 
 
7893
 
 
7894
 
 
7895
 
 
7896
 
 
7897
 
 
7898
if test -n "${ZSH_VERSION+set}" ; then
 
7899
   setopt NO_GLOB_SUBST
 
7900
fi
 
7901
 
 
7902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7903
$as_echo_n "checking for objdir... " >&6; }
 
7904
if test "${lt_cv_objdir+set}" = set; then :
 
7905
  $as_echo_n "(cached) " >&6
 
7906
else
 
7907
  rm -f .libs 2>/dev/null
 
7908
mkdir .libs 2>/dev/null
 
7909
if test -d .libs; then
 
7910
  lt_cv_objdir=.libs
 
7911
else
 
7912
  # MS-DOS does not allow filenames that begin with a dot.
 
7913
  lt_cv_objdir=_libs
 
7914
fi
 
7915
rmdir .libs 2>/dev/null
 
7916
fi
 
7917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7918
$as_echo "$lt_cv_objdir" >&6; }
 
7919
objdir=$lt_cv_objdir
 
7920
 
 
7921
 
 
7922
 
 
7923
 
 
7924
 
 
7925
cat >>confdefs.h <<_ACEOF
 
7926
#define LT_OBJDIR "$lt_cv_objdir/"
 
7927
_ACEOF
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
7935
 
 
7936
 
 
7937
 
 
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
 
7945
case $host_os in
 
7946
aix3*)
 
7947
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7948
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7949
  # vanish in a puff of smoke.
 
7950
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7951
    COLLECT_NAMES=
 
7952
    export COLLECT_NAMES
 
7953
  fi
 
7954
  ;;
 
7955
esac
 
7956
 
 
7957
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7958
# metacharacters that are still active within double-quoted strings.
 
7959
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7960
 
 
7961
# Same as above, but do not quote variable references.
 
7962
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7963
 
 
7964
# Sed substitution to delay expansion of an escaped shell variable in a
 
7965
# double_quote_subst'ed string.
 
7966
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7967
 
 
7968
# Sed substitution to delay expansion of an escaped single quote.
 
7969
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7970
 
 
7971
# Sed substitution to avoid accidental globbing in evaled expressions
 
7972
no_glob_subst='s/\*/\\\*/g'
 
7973
 
 
7974
# Global variables:
 
7975
ofile=libtool
 
7976
can_build_shared=yes
 
7977
 
 
7978
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7979
# which needs '.lib').
 
7980
libext=a
 
7981
 
 
7982
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7983
 
 
7984
old_CC="$CC"
 
7985
old_CFLAGS="$CFLAGS"
 
7986
 
 
7987
# Set sane defaults for various variables
 
7988
test -z "$CC" && CC=cc
 
7989
test -z "$LTCC" && LTCC=$CC
 
7990
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7991
test -z "$LD" && LD=ld
 
7992
test -z "$ac_objext" && ac_objext=o
 
7993
 
 
7994
for cc_temp in $compiler""; do
 
7995
  case $cc_temp in
 
7996
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7997
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7998
    \-*) ;;
 
7999
    *) break;;
 
8000
  esac
 
8001
done
 
8002
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8003
 
 
8004
 
 
8005
# Only perform the check for file, if the check method requires it
 
8006
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8007
case $deplibs_check_method in
 
8008
file_magic*)
 
8009
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8010
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8011
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8012
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8013
  $as_echo_n "(cached) " >&6
 
8014
else
 
8015
  case $MAGIC_CMD in
 
8016
[\\/*] |  ?:[\\/]*)
 
8017
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8018
  ;;
 
8019
*)
 
8020
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8021
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8022
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8023
  for ac_dir in $ac_dummy; do
 
8024
    IFS="$lt_save_ifs"
 
8025
    test -z "$ac_dir" && ac_dir=.
 
8026
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8027
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8028
      if test -n "$file_magic_test_file"; then
 
8029
        case $deplibs_check_method in
 
8030
        "file_magic "*)
 
8031
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8032
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8033
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8034
            $EGREP "$file_magic_regex" > /dev/null; then
 
8035
            :
 
8036
          else
 
8037
            cat <<_LT_EOF 1>&2
 
8038
 
 
8039
*** Warning: the command libtool uses to detect shared libraries,
 
8040
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8041
*** The result is that libtool may fail to recognize shared libraries
 
8042
*** as such.  This will affect the creation of libtool libraries that
 
8043
*** depend on shared libraries, but programs linked with such libtool
 
8044
*** libraries will work regardless of this problem.  Nevertheless, you
 
8045
*** may want to report the problem to your system manager and/or to
 
8046
*** bug-libtool@gnu.org
 
8047
 
 
8048
_LT_EOF
 
8049
          fi ;;
 
8050
        esac
 
8051
      fi
 
8052
      break
 
8053
    fi
 
8054
  done
 
8055
  IFS="$lt_save_ifs"
 
8056
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8057
  ;;
 
8058
esac
 
8059
fi
 
8060
 
 
8061
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8062
if test -n "$MAGIC_CMD"; then
 
8063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8064
$as_echo "$MAGIC_CMD" >&6; }
 
8065
else
 
8066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8067
$as_echo "no" >&6; }
 
8068
fi
 
8069
 
 
8070
 
 
8071
 
 
8072
 
 
8073
 
 
8074
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8075
  if test -n "$ac_tool_prefix"; then
 
8076
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8077
$as_echo_n "checking for file... " >&6; }
 
8078
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
8079
  $as_echo_n "(cached) " >&6
 
8080
else
 
8081
  case $MAGIC_CMD in
 
8082
[\\/*] |  ?:[\\/]*)
 
8083
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8084
  ;;
 
8085
*)
 
8086
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8087
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8088
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8089
  for ac_dir in $ac_dummy; do
 
8090
    IFS="$lt_save_ifs"
 
8091
    test -z "$ac_dir" && ac_dir=.
 
8092
    if test -f $ac_dir/file; then
 
8093
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8094
      if test -n "$file_magic_test_file"; then
 
8095
        case $deplibs_check_method in
 
8096
        "file_magic "*)
 
8097
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8098
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8099
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8100
            $EGREP "$file_magic_regex" > /dev/null; then
 
8101
            :
 
8102
          else
 
8103
            cat <<_LT_EOF 1>&2
 
8104
 
 
8105
*** Warning: the command libtool uses to detect shared libraries,
 
8106
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8107
*** The result is that libtool may fail to recognize shared libraries
 
8108
*** as such.  This will affect the creation of libtool libraries that
 
8109
*** depend on shared libraries, but programs linked with such libtool
 
8110
*** libraries will work regardless of this problem.  Nevertheless, you
 
8111
*** may want to report the problem to your system manager and/or to
 
8112
*** bug-libtool@gnu.org
 
8113
 
 
8114
_LT_EOF
 
8115
          fi ;;
 
8116
        esac
 
8117
      fi
 
8118
      break
 
8119
    fi
 
8120
  done
 
8121
  IFS="$lt_save_ifs"
 
8122
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8123
  ;;
 
8124
esac
 
8125
fi
 
8126
 
 
8127
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8128
if test -n "$MAGIC_CMD"; then
 
8129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8130
$as_echo "$MAGIC_CMD" >&6; }
 
8131
else
 
8132
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8133
$as_echo "no" >&6; }
 
8134
fi
 
8135
 
 
8136
 
 
8137
  else
 
8138
    MAGIC_CMD=:
 
8139
  fi
 
8140
fi
 
8141
 
 
8142
  fi
 
8143
  ;;
 
8144
esac
 
8145
 
 
8146
# Use C for the default configuration in the libtool script
 
8147
 
 
8148
lt_save_CC="$CC"
 
8149
ac_ext=c
 
8150
ac_cpp='$CPP $CPPFLAGS'
 
8151
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8152
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8153
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8154
 
 
8155
 
 
8156
# Source file extension for C test sources.
 
8157
ac_ext=c
 
8158
 
 
8159
# Object file extension for compiled C test sources.
 
8160
objext=o
 
8161
objext=$objext
 
8162
 
 
8163
# Code to be used in simple compile tests
 
8164
lt_simple_compile_test_code="int some_variable = 0;"
 
8165
 
 
8166
# Code to be used in simple link tests
 
8167
lt_simple_link_test_code='int main(){return(0);}'
 
8168
 
 
8169
 
 
8170
 
 
8171
 
 
8172
 
 
8173
 
 
8174
 
 
8175
# If no C compiler was specified, use CC.
 
8176
LTCC=${LTCC-"$CC"}
 
8177
 
 
8178
# If no C compiler flags were specified, use CFLAGS.
 
8179
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8180
 
 
8181
# Allow CC to be a program name with arguments.
 
8182
compiler=$CC
 
8183
 
 
8184
# Save the default compiler, since it gets overwritten when the other
 
8185
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8186
compiler_DEFAULT=$CC
 
8187
 
 
8188
# save warnings/boilerplate of simple test code
 
8189
ac_outfile=conftest.$ac_objext
 
8190
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8191
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8192
_lt_compiler_boilerplate=`cat conftest.err`
 
8193
$RM conftest*
 
8194
 
 
8195
ac_outfile=conftest.$ac_objext
 
8196
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8197
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8198
_lt_linker_boilerplate=`cat conftest.err`
 
8199
$RM -r conftest*
 
8200
 
 
8201
 
 
8202
## CAVEAT EMPTOR:
 
8203
## There is no encapsulation within the following macros, do not change
 
8204
## the running order or otherwise move them around unless you know exactly
 
8205
## what you are doing...
 
8206
if test -n "$compiler"; then
 
8207
 
 
8208
lt_prog_compiler_no_builtin_flag=
 
8209
 
 
8210
if test "$GCC" = yes; then
 
8211
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8212
 
 
8213
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8214
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8215
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8216
  $as_echo_n "(cached) " >&6
 
8217
else
 
8218
  lt_cv_prog_compiler_rtti_exceptions=no
 
8219
   ac_outfile=conftest.$ac_objext
 
8220
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8221
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8222
   # Insert the option either (1) after the last *FLAGS variable, or
 
8223
   # (2) before a word containing "conftest.", or (3) at the end.
 
8224
   # Note that $ac_compile itself does not contain backslashes and begins
 
8225
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8226
   # The option is referenced via a variable to avoid confusing sed.
 
8227
   lt_compile=`echo "$ac_compile" | $SED \
 
8228
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8229
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8230
   -e 's:$: $lt_compiler_flag:'`
 
8231
   (eval echo "\"\$as_me:8231: $lt_compile\"" >&5)
 
8232
   (eval "$lt_compile" 2>conftest.err)
 
8233
   ac_status=$?
 
8234
   cat conftest.err >&5
 
8235
   echo "$as_me:8235: \$? = $ac_status" >&5
 
8236
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8237
     # The compiler can only warn and ignore the option if not recognized
 
8238
     # So say no if there are warnings other than the usual output.
 
8239
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8240
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8241
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8242
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8243
     fi
 
8244
   fi
 
8245
   $RM conftest*
 
8246
 
 
8247
fi
 
8248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8249
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8250
 
 
8251
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8252
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8253
else
 
8254
    :
 
8255
fi
 
8256
 
 
8257
fi
 
8258
 
 
8259
 
 
8260
 
 
8261
 
 
8262
 
 
8263
 
 
8264
  lt_prog_compiler_wl=
 
8265
lt_prog_compiler_pic=
 
8266
lt_prog_compiler_static=
 
8267
 
 
8268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8269
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8270
 
 
8271
  if test "$GCC" = yes; then
 
8272
    lt_prog_compiler_wl='-Wl,'
 
8273
    lt_prog_compiler_static='-static'
 
8274
 
 
8275
    case $host_os in
 
8276
      aix*)
 
8277
      # All AIX code is PIC.
 
8278
      if test "$host_cpu" = ia64; then
 
8279
        # AIX 5 now supports IA64 processor
 
8280
        lt_prog_compiler_static='-Bstatic'
 
8281
      fi
 
8282
      ;;
 
8283
 
 
8284
    amigaos*)
 
8285
      case $host_cpu in
 
8286
      powerpc)
 
8287
            # see comment about AmigaOS4 .so support
 
8288
            lt_prog_compiler_pic='-fPIC'
 
8289
        ;;
 
8290
      m68k)
 
8291
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8292
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8293
            # like `-m68040'.
 
8294
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8295
        ;;
 
8296
      esac
 
8297
      ;;
 
8298
 
 
8299
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8300
      # PIC is the default for these OSes.
 
8301
      ;;
 
8302
 
 
8303
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8304
      # This hack is so that the source file can tell whether it is being
 
8305
      # built for inclusion in a dll (and should export symbols for example).
 
8306
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8307
      # (--disable-auto-import) libraries
 
8308
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8309
      ;;
 
8310
 
 
8311
    darwin* | rhapsody*)
 
8312
      # PIC is the default on this platform
 
8313
      # Common symbols not allowed in MH_DYLIB files
 
8314
      lt_prog_compiler_pic='-fno-common'
 
8315
      ;;
 
8316
 
 
8317
    hpux*)
 
8318
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8319
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8320
      # sets the default TLS model and affects inlining.
 
8321
      case $host_cpu in
 
8322
      hppa*64*)
 
8323
        # +Z the default
 
8324
        ;;
 
8325
      *)
 
8326
        lt_prog_compiler_pic='-fPIC'
 
8327
        ;;
 
8328
      esac
 
8329
      ;;
 
8330
 
 
8331
    interix[3-9]*)
 
8332
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8333
      # Instead, we relocate shared libraries at runtime.
 
8334
      ;;
 
8335
 
 
8336
    msdosdjgpp*)
 
8337
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8338
      # on systems that don't support them.
 
8339
      lt_prog_compiler_can_build_shared=no
 
8340
      enable_shared=no
 
8341
      ;;
 
8342
 
 
8343
    *nto* | *qnx*)
 
8344
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8345
      # it will coredump.
 
8346
      lt_prog_compiler_pic='-fPIC -shared'
 
8347
      ;;
 
8348
 
 
8349
    sysv4*MP*)
 
8350
      if test -d /usr/nec; then
 
8351
        lt_prog_compiler_pic=-Kconform_pic
 
8352
      fi
 
8353
      ;;
 
8354
 
 
8355
    *)
 
8356
      lt_prog_compiler_pic='-fPIC'
 
8357
      ;;
 
8358
    esac
 
8359
  else
 
8360
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8361
    case $host_os in
 
8362
    aix*)
 
8363
      lt_prog_compiler_wl='-Wl,'
 
8364
      if test "$host_cpu" = ia64; then
 
8365
        # AIX 5 now supports IA64 processor
 
8366
        lt_prog_compiler_static='-Bstatic'
 
8367
      else
 
8368
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8369
      fi
 
8370
      ;;
 
8371
 
 
8372
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8373
      # This hack is so that the source file can tell whether it is being
 
8374
      # built for inclusion in a dll (and should export symbols for example).
 
8375
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8376
      ;;
 
8377
 
 
8378
    hpux9* | hpux10* | hpux11*)
 
8379
      lt_prog_compiler_wl='-Wl,'
 
8380
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8381
      # not for PA HP-UX.
 
8382
      case $host_cpu in
 
8383
      hppa*64*|ia64*)
 
8384
        # +Z the default
 
8385
        ;;
 
8386
      *)
 
8387
        lt_prog_compiler_pic='+Z'
 
8388
        ;;
 
8389
      esac
 
8390
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8391
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8392
      ;;
 
8393
 
 
8394
    irix5* | irix6* | nonstopux*)
 
8395
      lt_prog_compiler_wl='-Wl,'
 
8396
      # PIC (with -KPIC) is the default.
 
8397
      lt_prog_compiler_static='-non_shared'
 
8398
      ;;
 
8399
 
 
8400
    linux* | k*bsd*-gnu)
 
8401
      case $cc_basename in
 
8402
      # old Intel for x86_64 which still supported -KPIC.
 
8403
      ecc*)
 
8404
        lt_prog_compiler_wl='-Wl,'
 
8405
        lt_prog_compiler_pic='-KPIC'
 
8406
        lt_prog_compiler_static='-static'
 
8407
        ;;
 
8408
      # icc used to be incompatible with GCC.
 
8409
      # ICC 10 doesn't accept -KPIC any more.
 
8410
      icc* | ifort*)
 
8411
        lt_prog_compiler_wl='-Wl,'
 
8412
        lt_prog_compiler_pic='-fPIC'
 
8413
        lt_prog_compiler_static='-static'
 
8414
        ;;
 
8415
      # Lahey Fortran 8.1.
 
8416
      lf95*)
 
8417
        lt_prog_compiler_wl='-Wl,'
 
8418
        lt_prog_compiler_pic='--shared'
 
8419
        lt_prog_compiler_static='--static'
 
8420
        ;;
 
8421
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8422
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8423
        # which looks to be a dead project)
 
8424
        lt_prog_compiler_wl='-Wl,'
 
8425
        lt_prog_compiler_pic='-fpic'
 
8426
        lt_prog_compiler_static='-Bstatic'
 
8427
        ;;
 
8428
      ccc*)
 
8429
        lt_prog_compiler_wl='-Wl,'
 
8430
        # All Alpha code is PIC.
 
8431
        lt_prog_compiler_static='-non_shared'
 
8432
        ;;
 
8433
      xl*)
 
8434
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8435
        lt_prog_compiler_wl='-Wl,'
 
8436
        lt_prog_compiler_pic='-qpic'
 
8437
        lt_prog_compiler_static='-qstaticlink'
 
8438
        ;;
 
8439
      *)
 
8440
        case `$CC -V 2>&1 | sed 5q` in
 
8441
        *Sun\ C*)
 
8442
          # Sun C 5.9
 
8443
          lt_prog_compiler_pic='-KPIC'
 
8444
          lt_prog_compiler_static='-Bstatic'
 
8445
          lt_prog_compiler_wl='-Wl,'
 
8446
          ;;
 
8447
        *Sun\ F*)
 
8448
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8449
          lt_prog_compiler_pic='-KPIC'
 
8450
          lt_prog_compiler_static='-Bstatic'
 
8451
          lt_prog_compiler_wl=''
 
8452
          ;;
 
8453
        esac
 
8454
        ;;
 
8455
      esac
 
8456
      ;;
 
8457
 
 
8458
    newsos6)
 
8459
      lt_prog_compiler_pic='-KPIC'
 
8460
      lt_prog_compiler_static='-Bstatic'
 
8461
      ;;
 
8462
 
 
8463
    *nto* | *qnx*)
 
8464
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8465
      # it will coredump.
 
8466
      lt_prog_compiler_pic='-fPIC -shared'
 
8467
      ;;
 
8468
 
 
8469
    osf3* | osf4* | osf5*)
 
8470
      lt_prog_compiler_wl='-Wl,'
 
8471
      # All OSF/1 code is PIC.
 
8472
      lt_prog_compiler_static='-non_shared'
 
8473
      ;;
 
8474
 
 
8475
    rdos*)
 
8476
      lt_prog_compiler_static='-non_shared'
 
8477
      ;;
 
8478
 
 
8479
    solaris*)
 
8480
      lt_prog_compiler_pic='-KPIC'
 
8481
      lt_prog_compiler_static='-Bstatic'
 
8482
      case $cc_basename in
 
8483
      f77* | f90* | f95*)
 
8484
        lt_prog_compiler_wl='-Qoption ld ';;
 
8485
      *)
 
8486
        lt_prog_compiler_wl='-Wl,';;
 
8487
      esac
 
8488
      ;;
 
8489
 
 
8490
    sunos4*)
 
8491
      lt_prog_compiler_wl='-Qoption ld '
 
8492
      lt_prog_compiler_pic='-PIC'
 
8493
      lt_prog_compiler_static='-Bstatic'
 
8494
      ;;
 
8495
 
 
8496
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8497
      lt_prog_compiler_wl='-Wl,'
 
8498
      lt_prog_compiler_pic='-KPIC'
 
8499
      lt_prog_compiler_static='-Bstatic'
 
8500
      ;;
 
8501
 
 
8502
    sysv4*MP*)
 
8503
      if test -d /usr/nec ;then
 
8504
        lt_prog_compiler_pic='-Kconform_pic'
 
8505
        lt_prog_compiler_static='-Bstatic'
 
8506
      fi
 
8507
      ;;
 
8508
 
 
8509
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8510
      lt_prog_compiler_wl='-Wl,'
 
8511
      lt_prog_compiler_pic='-KPIC'
 
8512
      lt_prog_compiler_static='-Bstatic'
 
8513
      ;;
 
8514
 
 
8515
    unicos*)
 
8516
      lt_prog_compiler_wl='-Wl,'
 
8517
      lt_prog_compiler_can_build_shared=no
 
8518
      ;;
 
8519
 
 
8520
    uts4*)
 
8521
      lt_prog_compiler_pic='-pic'
 
8522
      lt_prog_compiler_static='-Bstatic'
 
8523
      ;;
 
8524
 
 
8525
    *)
 
8526
      lt_prog_compiler_can_build_shared=no
 
8527
      ;;
 
8528
    esac
 
8529
  fi
 
8530
 
 
8531
case $host_os in
 
8532
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8533
  *djgpp*)
 
8534
    lt_prog_compiler_pic=
 
8535
    ;;
 
8536
  *)
 
8537
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8538
    ;;
 
8539
esac
 
8540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8541
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8542
 
 
8543
 
 
8544
 
 
8545
 
 
8546
 
 
8547
 
 
8548
#
 
8549
# Check to make sure the PIC flag actually works.
 
8550
#
 
8551
if test -n "$lt_prog_compiler_pic"; then
 
8552
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8553
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8554
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8555
  $as_echo_n "(cached) " >&6
 
8556
else
 
8557
  lt_cv_prog_compiler_pic_works=no
 
8558
   ac_outfile=conftest.$ac_objext
 
8559
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8560
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8561
   # Insert the option either (1) after the last *FLAGS variable, or
 
8562
   # (2) before a word containing "conftest.", or (3) at the end.
 
8563
   # Note that $ac_compile itself does not contain backslashes and begins
 
8564
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8565
   # The option is referenced via a variable to avoid confusing sed.
 
8566
   lt_compile=`echo "$ac_compile" | $SED \
 
8567
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8568
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8569
   -e 's:$: $lt_compiler_flag:'`
 
8570
   (eval echo "\"\$as_me:8570: $lt_compile\"" >&5)
 
8571
   (eval "$lt_compile" 2>conftest.err)
 
8572
   ac_status=$?
 
8573
   cat conftest.err >&5
 
8574
   echo "$as_me:8574: \$? = $ac_status" >&5
 
8575
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8576
     # The compiler can only warn and ignore the option if not recognized
 
8577
     # So say no if there are warnings other than the usual output.
 
8578
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8579
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8580
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8581
       lt_cv_prog_compiler_pic_works=yes
 
8582
     fi
 
8583
   fi
 
8584
   $RM conftest*
 
8585
 
 
8586
fi
 
8587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8588
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8589
 
 
8590
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8591
    case $lt_prog_compiler_pic in
 
8592
     "" | " "*) ;;
 
8593
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8594
     esac
 
8595
else
 
8596
    lt_prog_compiler_pic=
 
8597
     lt_prog_compiler_can_build_shared=no
 
8598
fi
 
8599
 
 
8600
fi
 
8601
 
 
8602
 
 
8603
 
 
8604
 
 
8605
 
 
8606
 
 
8607
#
 
8608
# Check to make sure the static flag actually works.
 
8609
#
 
8610
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8612
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8613
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8614
  $as_echo_n "(cached) " >&6
 
8615
else
 
8616
  lt_cv_prog_compiler_static_works=no
 
8617
   save_LDFLAGS="$LDFLAGS"
 
8618
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8619
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8620
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8621
     # The linker can only warn and ignore the option if not recognized
 
8622
     # So say no if there are warnings
 
8623
     if test -s conftest.err; then
 
8624
       # Append any errors to the config.log.
 
8625
       cat conftest.err 1>&5
 
8626
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8627
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8628
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8629
         lt_cv_prog_compiler_static_works=yes
 
8630
       fi
 
8631
     else
 
8632
       lt_cv_prog_compiler_static_works=yes
 
8633
     fi
 
8634
   fi
 
8635
   $RM -r conftest*
 
8636
   LDFLAGS="$save_LDFLAGS"
 
8637
 
 
8638
fi
 
8639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8640
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8641
 
 
8642
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8643
    :
 
8644
else
 
8645
    lt_prog_compiler_static=
 
8646
fi
 
8647
 
 
8648
 
 
8649
 
 
8650
 
 
8651
 
 
8652
 
 
8653
 
 
8654
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8655
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8656
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8657
  $as_echo_n "(cached) " >&6
 
8658
else
 
8659
  lt_cv_prog_compiler_c_o=no
 
8660
   $RM -r conftest 2>/dev/null
 
8661
   mkdir conftest
 
8662
   cd conftest
 
8663
   mkdir out
 
8664
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8665
 
 
8666
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8667
   # Insert the option either (1) after the last *FLAGS variable, or
 
8668
   # (2) before a word containing "conftest.", or (3) at the end.
 
8669
   # Note that $ac_compile itself does not contain backslashes and begins
 
8670
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8671
   lt_compile=`echo "$ac_compile" | $SED \
 
8672
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8673
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8674
   -e 's:$: $lt_compiler_flag:'`
 
8675
   (eval echo "\"\$as_me:8675: $lt_compile\"" >&5)
 
8676
   (eval "$lt_compile" 2>out/conftest.err)
 
8677
   ac_status=$?
 
8678
   cat out/conftest.err >&5
 
8679
   echo "$as_me:8679: \$? = $ac_status" >&5
 
8680
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8681
   then
 
8682
     # The compiler can only warn and ignore the option if not recognized
 
8683
     # So say no if there are warnings
 
8684
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8685
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8686
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8687
       lt_cv_prog_compiler_c_o=yes
 
8688
     fi
 
8689
   fi
 
8690
   chmod u+w . 2>&5
 
8691
   $RM conftest*
 
8692
   # SGI C++ compiler will create directory out/ii_files/ for
 
8693
   # template instantiation
 
8694
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8695
   $RM out/* && rmdir out
 
8696
   cd ..
 
8697
   $RM -r conftest
 
8698
   $RM conftest*
 
8699
 
 
8700
fi
 
8701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8702
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8703
 
 
8704
 
 
8705
 
 
8706
 
 
8707
 
 
8708
 
 
8709
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8710
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8711
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8712
  $as_echo_n "(cached) " >&6
 
8713
else
 
8714
  lt_cv_prog_compiler_c_o=no
 
8715
   $RM -r conftest 2>/dev/null
 
8716
   mkdir conftest
 
8717
   cd conftest
 
8718
   mkdir out
 
8719
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8720
 
 
8721
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8722
   # Insert the option either (1) after the last *FLAGS variable, or
 
8723
   # (2) before a word containing "conftest.", or (3) at the end.
 
8724
   # Note that $ac_compile itself does not contain backslashes and begins
 
8725
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8726
   lt_compile=`echo "$ac_compile" | $SED \
 
8727
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8728
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8729
   -e 's:$: $lt_compiler_flag:'`
 
8730
   (eval echo "\"\$as_me:8730: $lt_compile\"" >&5)
 
8731
   (eval "$lt_compile" 2>out/conftest.err)
 
8732
   ac_status=$?
 
8733
   cat out/conftest.err >&5
 
8734
   echo "$as_me:8734: \$? = $ac_status" >&5
 
8735
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8736
   then
 
8737
     # The compiler can only warn and ignore the option if not recognized
 
8738
     # So say no if there are warnings
 
8739
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8740
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8741
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8742
       lt_cv_prog_compiler_c_o=yes
 
8743
     fi
 
8744
   fi
 
8745
   chmod u+w . 2>&5
 
8746
   $RM conftest*
 
8747
   # SGI C++ compiler will create directory out/ii_files/ for
 
8748
   # template instantiation
 
8749
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8750
   $RM out/* && rmdir out
 
8751
   cd ..
 
8752
   $RM -r conftest
 
8753
   $RM conftest*
 
8754
 
 
8755
fi
 
8756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8757
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
hard_links="nottested"
 
8763
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8764
  # do not overwrite the value of need_locks provided by the user
 
8765
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8766
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8767
  hard_links=yes
 
8768
  $RM conftest*
 
8769
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8770
  touch conftest.a
 
8771
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8772
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8774
$as_echo "$hard_links" >&6; }
 
8775
  if test "$hard_links" = no; then
 
8776
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8777
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8778
    need_locks=warn
 
8779
  fi
 
8780
else
 
8781
  need_locks=no
 
8782
fi
 
8783
 
 
8784
 
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8790
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8791
 
 
8792
  runpath_var=
 
8793
  allow_undefined_flag=
 
8794
  always_export_symbols=no
 
8795
  archive_cmds=
 
8796
  archive_expsym_cmds=
 
8797
  compiler_needs_object=no
 
8798
  enable_shared_with_static_runtimes=no
 
8799
  export_dynamic_flag_spec=
 
8800
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8801
  hardcode_automatic=no
 
8802
  hardcode_direct=no
 
8803
  hardcode_direct_absolute=no
 
8804
  hardcode_libdir_flag_spec=
 
8805
  hardcode_libdir_flag_spec_ld=
 
8806
  hardcode_libdir_separator=
 
8807
  hardcode_minus_L=no
 
8808
  hardcode_shlibpath_var=unsupported
 
8809
  inherit_rpath=no
 
8810
  link_all_deplibs=unknown
 
8811
  module_cmds=
 
8812
  module_expsym_cmds=
 
8813
  old_archive_from_new_cmds=
 
8814
  old_archive_from_expsyms_cmds=
 
8815
  thread_safe_flag_spec=
 
8816
  whole_archive_flag_spec=
 
8817
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8818
  # included in the symbol list
 
8819
  include_expsyms=
 
8820
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8821
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8822
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8823
  # as well as any symbol that contains `d'.
 
8824
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8825
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8826
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8827
  # the symbol is explicitly referenced.  Since portable code cannot
 
8828
  # rely on this symbol name, it's probably fine to never include it in
 
8829
  # preloaded symbol tables.
 
8830
  # Exclude shared library initialization/finalization symbols.
 
8831
  extract_expsyms_cmds=
 
8832
 
 
8833
  case $host_os in
 
8834
  cygwin* | mingw* | pw32* | cegcc*)
 
8835
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8836
    # When not using gcc, we currently assume that we are using
 
8837
    # Microsoft Visual C++.
 
8838
    if test "$GCC" != yes; then
 
8839
      with_gnu_ld=no
 
8840
    fi
 
8841
    ;;
 
8842
  interix*)
 
8843
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8844
    with_gnu_ld=yes
 
8845
    ;;
 
8846
  openbsd*)
 
8847
    with_gnu_ld=no
 
8848
    ;;
 
8849
  linux* | k*bsd*-gnu)
 
8850
    link_all_deplibs=no
 
8851
    ;;
 
8852
  esac
 
8853
 
 
8854
  ld_shlibs=yes
 
8855
  if test "$with_gnu_ld" = yes; then
 
8856
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8857
    wlarc='${wl}'
 
8858
 
 
8859
    # Set some defaults for GNU ld with shared library support. These
 
8860
    # are reset later if shared libraries are not supported. Putting them
 
8861
    # here allows them to be overridden if necessary.
 
8862
    runpath_var=LD_RUN_PATH
 
8863
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8864
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8865
    # ancient GNU ld didn't support --whole-archive et. al.
 
8866
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8867
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8868
    else
 
8869
      whole_archive_flag_spec=
 
8870
    fi
 
8871
    supports_anon_versioning=no
 
8872
    case `$LD -v 2>&1` in
 
8873
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8874
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8875
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8876
      *\ 2.11.*) ;; # other 2.11 versions
 
8877
      *) supports_anon_versioning=yes ;;
 
8878
    esac
 
8879
 
 
8880
    # See if GNU ld supports shared libraries.
 
8881
    case $host_os in
 
8882
    aix[3-9]*)
 
8883
      # On AIX/PPC, the GNU linker is very broken
 
8884
      if test "$host_cpu" != ia64; then
 
8885
        ld_shlibs=no
 
8886
        cat <<_LT_EOF 1>&2
 
8887
 
 
8888
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8889
*** to be unable to reliably create shared libraries on AIX.
 
8890
*** Therefore, libtool is disabling shared libraries support.  If you
 
8891
*** really care for shared libraries, you may want to modify your PATH
 
8892
*** so that a non-GNU linker is found, and then restart.
 
8893
 
 
8894
_LT_EOF
 
8895
      fi
 
8896
      ;;
 
8897
 
 
8898
    amigaos*)
 
8899
      case $host_cpu in
 
8900
      powerpc)
 
8901
            # see comment about AmigaOS4 .so support
 
8902
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8903
            archive_expsym_cmds=''
 
8904
        ;;
 
8905
      m68k)
 
8906
            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)'
 
8907
            hardcode_libdir_flag_spec='-L$libdir'
 
8908
            hardcode_minus_L=yes
 
8909
        ;;
 
8910
      esac
 
8911
      ;;
 
8912
 
 
8913
    beos*)
 
8914
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8915
        allow_undefined_flag=unsupported
 
8916
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8917
        # support --undefined.  This deserves some investigation.  FIXME
 
8918
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8919
      else
 
8920
        ld_shlibs=no
 
8921
      fi
 
8922
      ;;
 
8923
 
 
8924
    cygwin* | mingw* | pw32* | cegcc*)
 
8925
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8926
      # as there is no search path for DLLs.
 
8927
      hardcode_libdir_flag_spec='-L$libdir'
 
8928
      allow_undefined_flag=unsupported
 
8929
      always_export_symbols=no
 
8930
      enable_shared_with_static_runtimes=yes
 
8931
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8932
 
 
8933
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8934
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8935
        # If the export-symbols file already is a .def file (1st line
 
8936
        # is EXPORTS), use it as is; otherwise, prepend...
 
8937
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8938
          cp $export_symbols $output_objdir/$soname.def;
 
8939
        else
 
8940
          echo EXPORTS > $output_objdir/$soname.def;
 
8941
          cat $export_symbols >> $output_objdir/$soname.def;
 
8942
        fi~
 
8943
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8944
      else
 
8945
        ld_shlibs=no
 
8946
      fi
 
8947
      ;;
 
8948
 
 
8949
    interix[3-9]*)
 
8950
      hardcode_direct=no
 
8951
      hardcode_shlibpath_var=no
 
8952
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8953
      export_dynamic_flag_spec='${wl}-E'
 
8954
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8955
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8956
      # default) and relocated if they conflict, which is a slow very memory
 
8957
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8958
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8959
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8960
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8961
      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'
 
8962
      ;;
 
8963
 
 
8964
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8965
      tmp_diet=no
 
8966
      if test "$host_os" = linux-dietlibc; then
 
8967
        case $cc_basename in
 
8968
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8969
        esac
 
8970
      fi
 
8971
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8972
         && test "$tmp_diet" = no
 
8973
      then
 
8974
        tmp_addflag=
 
8975
        tmp_sharedflag='-shared'
 
8976
        case $cc_basename,$host_cpu in
 
8977
        pgcc*)                          # Portland Group C compiler
 
8978
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8979
          tmp_addflag=' $pic_flag'
 
8980
          ;;
 
8981
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8982
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8983
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8984
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8985
          tmp_addflag=' -i_dynamic' ;;
 
8986
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8987
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8988
        ifc* | ifort*)                  # Intel Fortran compiler
 
8989
          tmp_addflag=' -nofor_main' ;;
 
8990
        lf95*)                          # Lahey Fortran 8.1
 
8991
          whole_archive_flag_spec=
 
8992
          tmp_sharedflag='--shared' ;;
 
8993
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8994
          tmp_sharedflag='-qmkshrobj'
 
8995
          tmp_addflag= ;;
 
8996
        esac
 
8997
        case `$CC -V 2>&1 | sed 5q` in
 
8998
        *Sun\ C*)                       # Sun C 5.9
 
8999
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
9000
          compiler_needs_object=yes
 
9001
          tmp_sharedflag='-G' ;;
 
9002
        *Sun\ F*)                       # Sun Fortran 8.3
 
9003
          tmp_sharedflag='-G' ;;
 
9004
        esac
 
9005
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9006
 
 
9007
        if test "x$supports_anon_versioning" = xyes; then
 
9008
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9009
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9010
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9011
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9012
        fi
 
9013
 
 
9014
        case $cc_basename in
 
9015
        xlf*)
 
9016
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9017
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9018
          hardcode_libdir_flag_spec=
 
9019
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9020
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
9021
          if test "x$supports_anon_versioning" = xyes; then
 
9022
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9023
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9024
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9025
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9026
          fi
 
9027
          ;;
 
9028
        esac
 
9029
      else
 
9030
        ld_shlibs=no
 
9031
      fi
 
9032
      ;;
 
9033
 
 
9034
    netbsd* | netbsdelf*-gnu)
 
9035
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9036
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9037
        wlarc=
 
9038
      else
 
9039
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9040
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9041
      fi
 
9042
      ;;
 
9043
 
 
9044
    solaris*)
 
9045
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9046
        ld_shlibs=no
 
9047
        cat <<_LT_EOF 1>&2
 
9048
 
 
9049
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9050
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9051
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9052
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9053
*** your PATH or compiler configuration so that the native linker is
 
9054
*** used, and then restart.
 
9055
 
 
9056
_LT_EOF
 
9057
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9058
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9059
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9060
      else
 
9061
        ld_shlibs=no
 
9062
      fi
 
9063
      ;;
 
9064
 
 
9065
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9066
      case `$LD -v 2>&1` in
 
9067
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9068
        ld_shlibs=no
 
9069
        cat <<_LT_EOF 1>&2
 
9070
 
 
9071
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9072
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9073
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9074
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9075
*** your PATH or compiler configuration so that the native linker is
 
9076
*** used, and then restart.
 
9077
 
 
9078
_LT_EOF
 
9079
        ;;
 
9080
        *)
 
9081
          # For security reasons, it is highly recommended that you always
 
9082
          # use absolute paths for naming shared libraries, and exclude the
 
9083
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9084
          # requires that you compile everything twice, which is a pain.
 
9085
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9086
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9087
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9088
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9089
          else
 
9090
            ld_shlibs=no
 
9091
          fi
 
9092
        ;;
 
9093
      esac
 
9094
      ;;
 
9095
 
 
9096
    sunos4*)
 
9097
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9098
      wlarc=
 
9099
      hardcode_direct=yes
 
9100
      hardcode_shlibpath_var=no
 
9101
      ;;
 
9102
 
 
9103
    *)
 
9104
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9105
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9106
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9107
      else
 
9108
        ld_shlibs=no
 
9109
      fi
 
9110
      ;;
 
9111
    esac
 
9112
 
 
9113
    if test "$ld_shlibs" = no; then
 
9114
      runpath_var=
 
9115
      hardcode_libdir_flag_spec=
 
9116
      export_dynamic_flag_spec=
 
9117
      whole_archive_flag_spec=
 
9118
    fi
 
9119
  else
 
9120
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9121
    case $host_os in
 
9122
    aix3*)
 
9123
      allow_undefined_flag=unsupported
 
9124
      always_export_symbols=yes
 
9125
      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'
 
9126
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9127
      # are no directories specified by -L.
 
9128
      hardcode_minus_L=yes
 
9129
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9130
        # Neither direct hardcoding nor static linking is supported with a
 
9131
        # broken collect2.
 
9132
        hardcode_direct=unsupported
 
9133
      fi
 
9134
      ;;
 
9135
 
 
9136
    aix[4-9]*)
 
9137
      if test "$host_cpu" = ia64; then
 
9138
        # On IA64, the linker does run time linking by default, so we don't
 
9139
        # have to do anything special.
 
9140
        aix_use_runtimelinking=no
 
9141
        exp_sym_flag='-Bexport'
 
9142
        no_entry_flag=""
 
9143
      else
 
9144
        # If we're using GNU nm, then we don't want the "-C" option.
 
9145
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9146
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9147
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9148
        else
 
9149
          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'
 
9150
        fi
 
9151
        aix_use_runtimelinking=no
 
9152
 
 
9153
        # Test if we are trying to use run time linking or normal
 
9154
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9155
        # need to do runtime linking.
 
9156
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9157
          for ld_flag in $LDFLAGS; do
 
9158
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9159
            aix_use_runtimelinking=yes
 
9160
            break
 
9161
          fi
 
9162
          done
 
9163
          ;;
 
9164
        esac
 
9165
 
 
9166
        exp_sym_flag='-bexport'
 
9167
        no_entry_flag='-bnoentry'
 
9168
      fi
 
9169
 
 
9170
      # When large executables or shared objects are built, AIX ld can
 
9171
      # have problems creating the table of contents.  If linking a library
 
9172
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9173
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9174
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9175
 
 
9176
      archive_cmds=''
 
9177
      hardcode_direct=yes
 
9178
      hardcode_direct_absolute=yes
 
9179
      hardcode_libdir_separator=':'
 
9180
      link_all_deplibs=yes
 
9181
      file_list_spec='${wl}-f,'
 
9182
 
 
9183
      if test "$GCC" = yes; then
 
9184
        case $host_os in aix4.[012]|aix4.[012].*)
 
9185
        # We only want to do this on AIX 4.2 and lower, the check
 
9186
        # below for broken collect2 doesn't work under 4.3+
 
9187
          collect2name=`${CC} -print-prog-name=collect2`
 
9188
          if test -f "$collect2name" &&
 
9189
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9190
          then
 
9191
          # We have reworked collect2
 
9192
          :
 
9193
          else
 
9194
          # We have old collect2
 
9195
          hardcode_direct=unsupported
 
9196
          # It fails to find uninstalled libraries when the uninstalled
 
9197
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9198
          # to unsupported forces relinking
 
9199
          hardcode_minus_L=yes
 
9200
          hardcode_libdir_flag_spec='-L$libdir'
 
9201
          hardcode_libdir_separator=
 
9202
          fi
 
9203
          ;;
 
9204
        esac
 
9205
        shared_flag='-shared'
 
9206
        if test "$aix_use_runtimelinking" = yes; then
 
9207
          shared_flag="$shared_flag "'${wl}-G'
 
9208
        fi
 
9209
        link_all_deplibs=no
 
9210
      else
 
9211
        # not using gcc
 
9212
        if test "$host_cpu" = ia64; then
 
9213
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9214
        # chokes on -Wl,-G. The following line is correct:
 
9215
          shared_flag='-G'
 
9216
        else
 
9217
          if test "$aix_use_runtimelinking" = yes; then
 
9218
            shared_flag='${wl}-G'
 
9219
          else
 
9220
            shared_flag='${wl}-bM:SRE'
 
9221
          fi
 
9222
        fi
 
9223
      fi
 
9224
 
 
9225
      export_dynamic_flag_spec='${wl}-bexpall'
 
9226
      # It seems that -bexpall does not export symbols beginning with
 
9227
      # underscore (_), so it is better to generate a list of symbols to export.
 
9228
      always_export_symbols=yes
 
9229
      if test "$aix_use_runtimelinking" = yes; then
 
9230
        # Warning - without using the other runtime loading flags (-brtl),
 
9231
        # -berok will link without error, but may produce a broken library.
 
9232
        allow_undefined_flag='-berok'
 
9233
        # Determine the default libpath from the value encoded in an
 
9234
        # empty executable.
 
9235
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9236
/* end confdefs.h.  */
 
9237
 
 
9238
int
 
9239
main ()
 
9240
{
 
9241
 
 
9242
  ;
 
9243
  return 0;
 
9244
}
 
9245
_ACEOF
 
9246
if ac_fn_c_try_link "$LINENO"; then :
 
9247
 
 
9248
lt_aix_libpath_sed='
 
9249
    /Import File Strings/,/^$/ {
 
9250
        /^0/ {
 
9251
            s/^0  *\(.*\)$/\1/
 
9252
            p
 
9253
        }
 
9254
    }'
 
9255
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9256
# Check for a 64-bit object if we didn't find anything.
 
9257
if test -z "$aix_libpath"; then
 
9258
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9259
fi
 
9260
fi
 
9261
rm -f core conftest.err conftest.$ac_objext \
 
9262
    conftest$ac_exeext conftest.$ac_ext
 
9263
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9264
 
 
9265
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9266
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9267
      else
 
9268
        if test "$host_cpu" = ia64; then
 
9269
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9270
          allow_undefined_flag="-z nodefs"
 
9271
          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"
 
9272
        else
 
9273
         # Determine the default libpath from the value encoded in an
 
9274
         # empty executable.
 
9275
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9276
/* end confdefs.h.  */
 
9277
 
 
9278
int
 
9279
main ()
 
9280
{
 
9281
 
 
9282
  ;
 
9283
  return 0;
 
9284
}
 
9285
_ACEOF
 
9286
if ac_fn_c_try_link "$LINENO"; then :
 
9287
 
 
9288
lt_aix_libpath_sed='
 
9289
    /Import File Strings/,/^$/ {
 
9290
        /^0/ {
 
9291
            s/^0  *\(.*\)$/\1/
 
9292
            p
 
9293
        }
 
9294
    }'
 
9295
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9296
# Check for a 64-bit object if we didn't find anything.
 
9297
if test -z "$aix_libpath"; then
 
9298
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9299
fi
 
9300
fi
 
9301
rm -f core conftest.err conftest.$ac_objext \
 
9302
    conftest$ac_exeext conftest.$ac_ext
 
9303
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9304
 
 
9305
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9306
          # Warning - without using the other run time loading flags,
 
9307
          # -berok will link without error, but may produce a broken library.
 
9308
          no_undefined_flag=' ${wl}-bernotok'
 
9309
          allow_undefined_flag=' ${wl}-berok'
 
9310
          # Exported symbols can be pulled into shared objects from archives
 
9311
          whole_archive_flag_spec='$convenience'
 
9312
          archive_cmds_need_lc=yes
 
9313
          # This is similar to how AIX traditionally builds its shared libraries.
 
9314
          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'
 
9315
        fi
 
9316
      fi
 
9317
      ;;
 
9318
 
 
9319
    amigaos*)
 
9320
      case $host_cpu in
 
9321
      powerpc)
 
9322
            # see comment about AmigaOS4 .so support
 
9323
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9324
            archive_expsym_cmds=''
 
9325
        ;;
 
9326
      m68k)
 
9327
            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)'
 
9328
            hardcode_libdir_flag_spec='-L$libdir'
 
9329
            hardcode_minus_L=yes
 
9330
        ;;
 
9331
      esac
 
9332
      ;;
 
9333
 
 
9334
    bsdi[45]*)
 
9335
      export_dynamic_flag_spec=-rdynamic
 
9336
      ;;
 
9337
 
 
9338
    cygwin* | mingw* | pw32* | cegcc*)
 
9339
      # When not using gcc, we currently assume that we are using
 
9340
      # Microsoft Visual C++.
 
9341
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9342
      # no search path for DLLs.
 
9343
      hardcode_libdir_flag_spec=' '
 
9344
      allow_undefined_flag=unsupported
 
9345
      # Tell ltmain to make .lib files, not .a files.
 
9346
      libext=lib
 
9347
      # Tell ltmain to make .dll files, not .so files.
 
9348
      shrext_cmds=".dll"
 
9349
      # FIXME: Setting linknames here is a bad hack.
 
9350
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9351
      # The linker will automatically build a .lib file if we build a DLL.
 
9352
      old_archive_from_new_cmds='true'
 
9353
      # FIXME: Should let the user specify the lib program.
 
9354
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9355
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9356
      enable_shared_with_static_runtimes=yes
 
9357
      ;;
 
9358
 
 
9359
    darwin* | rhapsody*)
 
9360
 
 
9361
 
 
9362
  archive_cmds_need_lc=no
 
9363
  hardcode_direct=no
 
9364
  hardcode_automatic=yes
 
9365
  hardcode_shlibpath_var=unsupported
 
9366
  whole_archive_flag_spec=''
 
9367
  link_all_deplibs=yes
 
9368
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9369
  case $cc_basename in
 
9370
     ifort*) _lt_dar_can_shared=yes ;;
 
9371
     *) _lt_dar_can_shared=$GCC ;;
 
9372
  esac
 
9373
  if test "$_lt_dar_can_shared" = "yes"; then
 
9374
    output_verbose_link_cmd=echo
 
9375
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9376
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9377
    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}"
 
9378
    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}"
 
9379
 
 
9380
  else
 
9381
  ld_shlibs=no
 
9382
  fi
 
9383
 
 
9384
      ;;
 
9385
 
 
9386
    dgux*)
 
9387
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9388
      hardcode_libdir_flag_spec='-L$libdir'
 
9389
      hardcode_shlibpath_var=no
 
9390
      ;;
 
9391
 
 
9392
    freebsd1*)
 
9393
      ld_shlibs=no
 
9394
      ;;
 
9395
 
 
9396
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9397
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9398
    # does not break anything, and helps significantly (at the cost of a little
 
9399
    # extra space).
 
9400
    freebsd2.2*)
 
9401
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9402
      hardcode_libdir_flag_spec='-R$libdir'
 
9403
      hardcode_direct=yes
 
9404
      hardcode_shlibpath_var=no
 
9405
      ;;
 
9406
 
 
9407
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9408
    freebsd2*)
 
9409
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9410
      hardcode_direct=yes
 
9411
      hardcode_minus_L=yes
 
9412
      hardcode_shlibpath_var=no
 
9413
      ;;
 
9414
 
 
9415
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9416
    freebsd* | dragonfly*)
 
9417
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9418
      hardcode_libdir_flag_spec='-R$libdir'
 
9419
      hardcode_direct=yes
 
9420
      hardcode_shlibpath_var=no
 
9421
      ;;
 
9422
 
 
9423
    hpux9*)
 
9424
      if test "$GCC" = yes; then
 
9425
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9426
      else
 
9427
        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'
 
9428
      fi
 
9429
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9430
      hardcode_libdir_separator=:
 
9431
      hardcode_direct=yes
 
9432
 
 
9433
      # hardcode_minus_L: Not really in the search PATH,
 
9434
      # but as the default location of the library.
 
9435
      hardcode_minus_L=yes
 
9436
      export_dynamic_flag_spec='${wl}-E'
 
9437
      ;;
 
9438
 
 
9439
    hpux10*)
 
9440
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9441
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9442
      else
 
9443
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9444
      fi
 
9445
      if test "$with_gnu_ld" = no; then
 
9446
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9447
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9448
        hardcode_libdir_separator=:
 
9449
        hardcode_direct=yes
 
9450
        hardcode_direct_absolute=yes
 
9451
        export_dynamic_flag_spec='${wl}-E'
 
9452
        # hardcode_minus_L: Not really in the search PATH,
 
9453
        # but as the default location of the library.
 
9454
        hardcode_minus_L=yes
 
9455
      fi
 
9456
      ;;
 
9457
 
 
9458
    hpux11*)
 
9459
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9460
        case $host_cpu in
 
9461
        hppa*64*)
 
9462
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9463
          ;;
 
9464
        ia64*)
 
9465
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9466
          ;;
 
9467
        *)
 
9468
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9469
          ;;
 
9470
        esac
 
9471
      else
 
9472
        case $host_cpu in
 
9473
        hppa*64*)
 
9474
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9475
          ;;
 
9476
        ia64*)
 
9477
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9478
          ;;
 
9479
        *)
 
9480
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9481
          ;;
 
9482
        esac
 
9483
      fi
 
9484
      if test "$with_gnu_ld" = no; then
 
9485
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9486
        hardcode_libdir_separator=:
 
9487
 
 
9488
        case $host_cpu in
 
9489
        hppa*64*|ia64*)
 
9490
          hardcode_direct=no
 
9491
          hardcode_shlibpath_var=no
 
9492
          ;;
 
9493
        *)
 
9494
          hardcode_direct=yes
 
9495
          hardcode_direct_absolute=yes
 
9496
          export_dynamic_flag_spec='${wl}-E'
 
9497
 
 
9498
          # hardcode_minus_L: Not really in the search PATH,
 
9499
          # but as the default location of the library.
 
9500
          hardcode_minus_L=yes
 
9501
          ;;
 
9502
        esac
 
9503
      fi
 
9504
      ;;
 
9505
 
 
9506
    irix5* | irix6* | nonstopux*)
 
9507
      if test "$GCC" = yes; then
 
9508
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9509
        # Try to use the -exported_symbol ld option, if it does not
 
9510
        # work, assume that -exports_file does not work either and
 
9511
        # implicitly export all symbols.
 
9512
        save_LDFLAGS="$LDFLAGS"
 
9513
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9514
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9515
/* end confdefs.h.  */
 
9516
int foo(void) {}
 
9517
_ACEOF
 
9518
if ac_fn_c_try_link "$LINENO"; then :
 
9519
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9520
 
 
9521
fi
 
9522
rm -f core conftest.err conftest.$ac_objext \
 
9523
    conftest$ac_exeext conftest.$ac_ext
 
9524
        LDFLAGS="$save_LDFLAGS"
 
9525
      else
 
9526
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9527
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9528
      fi
 
9529
      archive_cmds_need_lc='no'
 
9530
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9531
      hardcode_libdir_separator=:
 
9532
      inherit_rpath=yes
 
9533
      link_all_deplibs=yes
 
9534
      ;;
 
9535
 
 
9536
    netbsd* | netbsdelf*-gnu)
 
9537
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9538
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9539
      else
 
9540
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9541
      fi
 
9542
      hardcode_libdir_flag_spec='-R$libdir'
 
9543
      hardcode_direct=yes
 
9544
      hardcode_shlibpath_var=no
 
9545
      ;;
 
9546
 
 
9547
    newsos6)
 
9548
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9549
      hardcode_direct=yes
 
9550
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9551
      hardcode_libdir_separator=:
 
9552
      hardcode_shlibpath_var=no
 
9553
      ;;
 
9554
 
 
9555
    *nto* | *qnx*)
 
9556
      ;;
 
9557
 
 
9558
    openbsd*)
 
9559
      if test -f /usr/libexec/ld.so; then
 
9560
        hardcode_direct=yes
 
9561
        hardcode_shlibpath_var=no
 
9562
        hardcode_direct_absolute=yes
 
9563
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9564
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9565
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9566
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9567
          export_dynamic_flag_spec='${wl}-E'
 
9568
        else
 
9569
          case $host_os in
 
9570
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9571
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9572
             hardcode_libdir_flag_spec='-R$libdir'
 
9573
             ;;
 
9574
           *)
 
9575
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9576
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9577
             ;;
 
9578
          esac
 
9579
        fi
 
9580
      else
 
9581
        ld_shlibs=no
 
9582
      fi
 
9583
      ;;
 
9584
 
 
9585
    os2*)
 
9586
      hardcode_libdir_flag_spec='-L$libdir'
 
9587
      hardcode_minus_L=yes
 
9588
      allow_undefined_flag=unsupported
 
9589
      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'
 
9590
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9591
      ;;
 
9592
 
 
9593
    osf3*)
 
9594
      if test "$GCC" = yes; then
 
9595
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9596
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9597
      else
 
9598
        allow_undefined_flag=' -expect_unresolved \*'
 
9599
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9600
      fi
 
9601
      archive_cmds_need_lc='no'
 
9602
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9603
      hardcode_libdir_separator=:
 
9604
      ;;
 
9605
 
 
9606
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9607
      if test "$GCC" = yes; then
 
9608
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9609
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9610
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9611
      else
 
9612
        allow_undefined_flag=' -expect_unresolved \*'
 
9613
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9614
        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~
 
9615
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9616
 
 
9617
        # Both c and cxx compiler support -rpath directly
 
9618
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9619
      fi
 
9620
      archive_cmds_need_lc='no'
 
9621
      hardcode_libdir_separator=:
 
9622
      ;;
 
9623
 
 
9624
    solaris*)
 
9625
      no_undefined_flag=' -z defs'
 
9626
      if test "$GCC" = yes; then
 
9627
        wlarc='${wl}'
 
9628
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9629
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9630
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9631
      else
 
9632
        case `$CC -V 2>&1` in
 
9633
        *"Compilers 5.0"*)
 
9634
          wlarc=''
 
9635
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9636
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9637
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9638
          ;;
 
9639
        *)
 
9640
          wlarc='${wl}'
 
9641
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9642
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9643
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9644
          ;;
 
9645
        esac
 
9646
      fi
 
9647
      hardcode_libdir_flag_spec='-R$libdir'
 
9648
      hardcode_shlibpath_var=no
 
9649
      case $host_os in
 
9650
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9651
      *)
 
9652
        # The compiler driver will combine and reorder linker options,
 
9653
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9654
        # but is careful enough not to reorder.
 
9655
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9656
        if test "$GCC" = yes; then
 
9657
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9658
        else
 
9659
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9660
        fi
 
9661
        ;;
 
9662
      esac
 
9663
      link_all_deplibs=yes
 
9664
      ;;
 
9665
 
 
9666
    sunos4*)
 
9667
      if test "x$host_vendor" = xsequent; then
 
9668
        # Use $CC to link under sequent, because it throws in some extra .o
 
9669
        # files that make .init and .fini sections work.
 
9670
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9671
      else
 
9672
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9673
      fi
 
9674
      hardcode_libdir_flag_spec='-L$libdir'
 
9675
      hardcode_direct=yes
 
9676
      hardcode_minus_L=yes
 
9677
      hardcode_shlibpath_var=no
 
9678
      ;;
 
9679
 
 
9680
    sysv4)
 
9681
      case $host_vendor in
 
9682
        sni)
 
9683
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9684
          hardcode_direct=yes # is this really true???
 
9685
        ;;
 
9686
        siemens)
 
9687
          ## LD is ld it makes a PLAMLIB
 
9688
          ## CC just makes a GrossModule.
 
9689
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9690
          reload_cmds='$CC -r -o $output$reload_objs'
 
9691
          hardcode_direct=no
 
9692
        ;;
 
9693
        motorola)
 
9694
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9695
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9696
        ;;
 
9697
      esac
 
9698
      runpath_var='LD_RUN_PATH'
 
9699
      hardcode_shlibpath_var=no
 
9700
      ;;
 
9701
 
 
9702
    sysv4.3*)
 
9703
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9704
      hardcode_shlibpath_var=no
 
9705
      export_dynamic_flag_spec='-Bexport'
 
9706
      ;;
 
9707
 
 
9708
    sysv4*MP*)
 
9709
      if test -d /usr/nec; then
 
9710
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9711
        hardcode_shlibpath_var=no
 
9712
        runpath_var=LD_RUN_PATH
 
9713
        hardcode_runpath_var=yes
 
9714
        ld_shlibs=yes
 
9715
      fi
 
9716
      ;;
 
9717
 
 
9718
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9719
      no_undefined_flag='${wl}-z,text'
 
9720
      archive_cmds_need_lc=no
 
9721
      hardcode_shlibpath_var=no
 
9722
      runpath_var='LD_RUN_PATH'
 
9723
 
 
9724
      if test "$GCC" = yes; then
 
9725
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9726
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9727
      else
 
9728
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9729
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9730
      fi
 
9731
      ;;
 
9732
 
 
9733
    sysv5* | sco3.2v5* | sco5v6*)
 
9734
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9735
      # link with -lc, and that would cause any symbols used from libc to
 
9736
      # always be unresolved, which means just about no library would
 
9737
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9738
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9739
      # as -z defs.
 
9740
      no_undefined_flag='${wl}-z,text'
 
9741
      allow_undefined_flag='${wl}-z,nodefs'
 
9742
      archive_cmds_need_lc=no
 
9743
      hardcode_shlibpath_var=no
 
9744
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9745
      hardcode_libdir_separator=':'
 
9746
      link_all_deplibs=yes
 
9747
      export_dynamic_flag_spec='${wl}-Bexport'
 
9748
      runpath_var='LD_RUN_PATH'
 
9749
 
 
9750
      if test "$GCC" = yes; then
 
9751
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9752
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9753
      else
 
9754
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9755
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9756
      fi
 
9757
      ;;
 
9758
 
 
9759
    uts4*)
 
9760
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9761
      hardcode_libdir_flag_spec='-L$libdir'
 
9762
      hardcode_shlibpath_var=no
 
9763
      ;;
 
9764
 
 
9765
    *)
 
9766
      ld_shlibs=no
 
9767
      ;;
 
9768
    esac
 
9769
 
 
9770
    if test x$host_vendor = xsni; then
 
9771
      case $host in
 
9772
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9773
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9774
        ;;
 
9775
      esac
 
9776
    fi
 
9777
  fi
 
9778
 
 
9779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9780
$as_echo "$ld_shlibs" >&6; }
 
9781
test "$ld_shlibs" = no && can_build_shared=no
 
9782
 
 
9783
with_gnu_ld=$with_gnu_ld
 
9784
 
 
9785
 
 
9786
 
 
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
#
 
9800
# Do we need to explicitly link libc?
 
9801
#
 
9802
case "x$archive_cmds_need_lc" in
 
9803
x|xyes)
 
9804
  # Assume -lc should be added
 
9805
  archive_cmds_need_lc=yes
 
9806
 
 
9807
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9808
    case $archive_cmds in
 
9809
    *'~'*)
 
9810
      # FIXME: we may have to deal with multi-command sequences.
 
9811
      ;;
 
9812
    '$CC '*)
 
9813
      # Test whether the compiler implicitly links with -lc since on some
 
9814
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9815
      # to ld, don't add -lc before -lgcc.
 
9816
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9817
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9818
      $RM conftest*
 
9819
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9820
 
 
9821
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9822
  (eval $ac_compile) 2>&5
 
9823
  ac_status=$?
 
9824
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9825
  test $ac_status = 0; } 2>conftest.err; then
 
9826
        soname=conftest
 
9827
        lib=conftest
 
9828
        libobjs=conftest.$ac_objext
 
9829
        deplibs=
 
9830
        wl=$lt_prog_compiler_wl
 
9831
        pic_flag=$lt_prog_compiler_pic
 
9832
        compiler_flags=-v
 
9833
        linker_flags=-v
 
9834
        verstring=
 
9835
        output_objdir=.
 
9836
        libname=conftest
 
9837
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9838
        allow_undefined_flag=
 
9839
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9840
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9841
  ac_status=$?
 
9842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9843
  test $ac_status = 0; }
 
9844
        then
 
9845
          archive_cmds_need_lc=no
 
9846
        else
 
9847
          archive_cmds_need_lc=yes
 
9848
        fi
 
9849
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9850
      else
 
9851
        cat conftest.err 1>&5
 
9852
      fi
 
9853
      $RM conftest*
 
9854
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9855
$as_echo "$archive_cmds_need_lc" >&6; }
 
9856
      ;;
 
9857
    esac
 
9858
  fi
 
9859
  ;;
 
9860
esac
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
 
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
 
 
9893
 
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
 
 
9902
 
 
9903
 
 
9904
 
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
 
9920
 
 
9921
 
 
9922
 
 
9923
 
 
9924
 
 
9925
 
 
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
 
 
9937
 
 
9938
 
 
9939
 
 
9940
 
 
9941
 
 
9942
 
 
9943
 
 
9944
 
 
9945
 
 
9946
 
 
9947
 
 
9948
 
 
9949
 
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
 
 
9964
 
 
9965
 
 
9966
 
 
9967
 
 
9968
 
 
9969
 
 
9970
 
 
9971
 
 
9972
 
 
9973
 
 
9974
 
 
9975
 
 
9976
 
 
9977
 
 
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
 
 
10015
 
 
10016
 
 
10017
 
 
10018
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10019
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10020
 
 
10021
if test "$GCC" = yes; then
 
10022
  case $host_os in
 
10023
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10024
    *) lt_awk_arg="/^libraries:/" ;;
 
10025
  esac
 
10026
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10027
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
10028
    # if the path contains ";" then we assume it to be the separator
 
10029
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10030
    # assumed that no part of a normal pathname contains ";" but that should
 
10031
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10032
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10033
  else
 
10034
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10035
  fi
 
10036
  # Ok, now we have the path, separated by spaces, we can step through it
 
10037
  # and add multilib dir if necessary.
 
10038
  lt_tmp_lt_search_path_spec=
 
10039
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10040
  for lt_sys_path in $lt_search_path_spec; do
 
10041
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10042
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10043
    else
 
10044
      test -d "$lt_sys_path" && \
 
10045
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10046
    fi
 
10047
  done
 
10048
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
10049
BEGIN {RS=" "; FS="/|\n";} {
 
10050
  lt_foo="";
 
10051
  lt_count=0;
 
10052
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10053
    if ($lt_i != "" && $lt_i != ".") {
 
10054
      if ($lt_i == "..") {
 
10055
        lt_count++;
 
10056
      } else {
 
10057
        if (lt_count == 0) {
 
10058
          lt_foo="/" $lt_i lt_foo;
 
10059
        } else {
 
10060
          lt_count--;
 
10061
        }
 
10062
      }
 
10063
    }
 
10064
  }
 
10065
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10066
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10067
}'`
 
10068
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
10069
else
 
10070
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10071
fi
 
10072
library_names_spec=
 
10073
libname_spec='lib$name'
 
10074
soname_spec=
 
10075
shrext_cmds=".so"
 
10076
postinstall_cmds=
 
10077
postuninstall_cmds=
 
10078
finish_cmds=
 
10079
finish_eval=
 
10080
shlibpath_var=
 
10081
shlibpath_overrides_runpath=unknown
 
10082
version_type=none
 
10083
dynamic_linker="$host_os ld.so"
 
10084
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10085
need_lib_prefix=unknown
 
10086
hardcode_into_libs=no
 
10087
 
 
10088
# when you set need_version to no, make sure it does not cause -set_version
 
10089
# flags to be left without arguments
 
10090
need_version=unknown
 
10091
 
 
10092
case $host_os in
 
10093
aix3*)
 
10094
  version_type=linux
 
10095
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10096
  shlibpath_var=LIBPATH
 
10097
 
 
10098
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10099
  soname_spec='${libname}${release}${shared_ext}$major'
 
10100
  ;;
 
10101
 
 
10102
aix[4-9]*)
 
10103
  version_type=linux
 
10104
  need_lib_prefix=no
 
10105
  need_version=no
 
10106
  hardcode_into_libs=yes
 
10107
  if test "$host_cpu" = ia64; then
 
10108
    # AIX 5 supports IA64
 
10109
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10110
    shlibpath_var=LD_LIBRARY_PATH
 
10111
  else
 
10112
    # With GCC up to 2.95.x, collect2 would create an import file
 
10113
    # for dependence libraries.  The import file would start with
 
10114
    # the line `#! .'.  This would cause the generated library to
 
10115
    # depend on `.', always an invalid library.  This was fixed in
 
10116
    # development snapshots of GCC prior to 3.0.
 
10117
    case $host_os in
 
10118
      aix4 | aix4.[01] | aix4.[01].*)
 
10119
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10120
           echo ' yes '
 
10121
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10122
        :
 
10123
      else
 
10124
        can_build_shared=no
 
10125
      fi
 
10126
      ;;
 
10127
    esac
 
10128
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10129
    # soname into executable. Probably we can add versioning support to
 
10130
    # collect2, so additional links can be useful in future.
 
10131
    if test "$aix_use_runtimelinking" = yes; then
 
10132
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10133
      # instead of lib<name>.a to let people know that these are not
 
10134
      # typical AIX shared libraries.
 
10135
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10136
    else
 
10137
      # We preserve .a as extension for shared libraries through AIX4.2
 
10138
      # and later when we are not doing run time linking.
 
10139
      library_names_spec='${libname}${release}.a $libname.a'
 
10140
      soname_spec='${libname}${release}${shared_ext}$major'
 
10141
    fi
 
10142
    shlibpath_var=LIBPATH
 
10143
  fi
 
10144
  ;;
 
10145
 
 
10146
amigaos*)
 
10147
  case $host_cpu in
 
10148
  powerpc)
 
10149
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10150
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10151
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10152
    ;;
 
10153
  m68k)
 
10154
    library_names_spec='$libname.ixlibrary $libname.a'
 
10155
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10156
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10157
    ;;
 
10158
  esac
 
10159
  ;;
 
10160
 
 
10161
beos*)
 
10162
  library_names_spec='${libname}${shared_ext}'
 
10163
  dynamic_linker="$host_os ld.so"
 
10164
  shlibpath_var=LIBRARY_PATH
 
10165
  ;;
 
10166
 
 
10167
bsdi[45]*)
 
10168
  version_type=linux
 
10169
  need_version=no
 
10170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10171
  soname_spec='${libname}${release}${shared_ext}$major'
 
10172
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10173
  shlibpath_var=LD_LIBRARY_PATH
 
10174
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10175
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10176
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10177
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10178
  # libtool to hard-code these into programs
 
10179
  ;;
 
10180
 
 
10181
cygwin* | mingw* | pw32* | cegcc*)
 
10182
  version_type=windows
 
10183
  shrext_cmds=".dll"
 
10184
  need_version=no
 
10185
  need_lib_prefix=no
 
10186
 
 
10187
  case $GCC,$host_os in
 
10188
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
10189
    library_names_spec='$libname.dll.a'
 
10190
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10191
    postinstall_cmds='base_file=`basename \${file}`~
 
10192
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10193
      dldir=$destdir/`dirname \$dlpath`~
 
10194
      test -d \$dldir || mkdir -p \$dldir~
 
10195
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10196
      chmod a+x \$dldir/$dlname~
 
10197
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10198
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10199
      fi'
 
10200
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10201
      dlpath=$dir/\$dldll~
 
10202
       $RM \$dlpath'
 
10203
    shlibpath_overrides_runpath=yes
 
10204
 
 
10205
    case $host_os in
 
10206
    cygwin*)
 
10207
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10208
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10209
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10210
      ;;
 
10211
    mingw* | cegcc*)
 
10212
      # MinGW DLLs use traditional 'lib' prefix
 
10213
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10214
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10215
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10216
        # It is most probably a Windows format PATH printed by
 
10217
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10218
        # path with ; separators, and with drive letters. We can handle the
 
10219
        # drive letters (cygwin fileutils understands them), so leave them,
 
10220
        # especially as we might pass files found there to a mingw objdump,
 
10221
        # which wouldn't understand a cygwinified path. Ahh.
 
10222
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10223
      else
 
10224
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10225
      fi
 
10226
      ;;
 
10227
    pw32*)
 
10228
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10229
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10230
      ;;
 
10231
    esac
 
10232
    ;;
 
10233
 
 
10234
  *)
 
10235
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10236
    ;;
 
10237
  esac
 
10238
  dynamic_linker='Win32 ld.exe'
 
10239
  # FIXME: first we should search . and the directory the executable is in
 
10240
  shlibpath_var=PATH
 
10241
  ;;
 
10242
 
 
10243
darwin* | rhapsody*)
 
10244
  dynamic_linker="$host_os dyld"
 
10245
  version_type=darwin
 
10246
  need_lib_prefix=no
 
10247
  need_version=no
 
10248
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10249
  soname_spec='${libname}${release}${major}$shared_ext'
 
10250
  shlibpath_overrides_runpath=yes
 
10251
  shlibpath_var=DYLD_LIBRARY_PATH
 
10252
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10253
 
 
10254
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10255
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10256
  ;;
 
10257
 
 
10258
dgux*)
 
10259
  version_type=linux
 
10260
  need_lib_prefix=no
 
10261
  need_version=no
 
10262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10263
  soname_spec='${libname}${release}${shared_ext}$major'
 
10264
  shlibpath_var=LD_LIBRARY_PATH
 
10265
  ;;
 
10266
 
 
10267
freebsd1*)
 
10268
  dynamic_linker=no
 
10269
  ;;
 
10270
 
 
10271
freebsd* | dragonfly*)
 
10272
  # DragonFly does not have aout.  When/if they implement a new
 
10273
  # versioning mechanism, adjust this.
 
10274
  if test -x /usr/bin/objformat; then
 
10275
    objformat=`/usr/bin/objformat`
 
10276
  else
 
10277
    case $host_os in
 
10278
    freebsd[123]*) objformat=aout ;;
 
10279
    *) objformat=elf ;;
 
10280
    esac
 
10281
  fi
 
10282
  version_type=freebsd-$objformat
 
10283
  case $version_type in
 
10284
    freebsd-elf*)
 
10285
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10286
      need_version=no
 
10287
      need_lib_prefix=no
 
10288
      ;;
 
10289
    freebsd-*)
 
10290
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10291
      need_version=yes
 
10292
      ;;
 
10293
  esac
 
10294
  shlibpath_var=LD_LIBRARY_PATH
 
10295
  case $host_os in
 
10296
  freebsd2*)
 
10297
    shlibpath_overrides_runpath=yes
 
10298
    ;;
 
10299
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10300
    shlibpath_overrides_runpath=yes
 
10301
    hardcode_into_libs=yes
 
10302
    ;;
 
10303
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10304
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10305
    shlibpath_overrides_runpath=no
 
10306
    hardcode_into_libs=yes
 
10307
    ;;
 
10308
  *) # from 4.6 on, and DragonFly
 
10309
    shlibpath_overrides_runpath=yes
 
10310
    hardcode_into_libs=yes
 
10311
    ;;
 
10312
  esac
 
10313
  ;;
 
10314
 
 
10315
gnu*)
 
10316
  version_type=linux
 
10317
  need_lib_prefix=no
 
10318
  need_version=no
 
10319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10320
  soname_spec='${libname}${release}${shared_ext}$major'
 
10321
  shlibpath_var=LD_LIBRARY_PATH
 
10322
  hardcode_into_libs=yes
 
10323
  ;;
 
10324
 
 
10325
hpux9* | hpux10* | hpux11*)
 
10326
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10327
  # link against other versions.
 
10328
  version_type=sunos
 
10329
  need_lib_prefix=no
 
10330
  need_version=no
 
10331
  case $host_cpu in
 
10332
  ia64*)
 
10333
    shrext_cmds='.so'
 
10334
    hardcode_into_libs=yes
 
10335
    dynamic_linker="$host_os dld.so"
 
10336
    shlibpath_var=LD_LIBRARY_PATH
 
10337
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10338
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10339
    soname_spec='${libname}${release}${shared_ext}$major'
 
10340
    if test "X$HPUX_IA64_MODE" = X32; then
 
10341
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10342
    else
 
10343
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10344
    fi
 
10345
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10346
    ;;
 
10347
  hppa*64*)
 
10348
    shrext_cmds='.sl'
 
10349
    hardcode_into_libs=yes
 
10350
    dynamic_linker="$host_os dld.sl"
 
10351
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10352
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10353
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10354
    soname_spec='${libname}${release}${shared_ext}$major'
 
10355
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10356
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10357
    ;;
 
10358
  *)
 
10359
    shrext_cmds='.sl'
 
10360
    dynamic_linker="$host_os dld.sl"
 
10361
    shlibpath_var=SHLIB_PATH
 
10362
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10363
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10364
    soname_spec='${libname}${release}${shared_ext}$major'
 
10365
    ;;
 
10366
  esac
 
10367
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10368
  postinstall_cmds='chmod 555 $lib'
 
10369
  ;;
 
10370
 
 
10371
interix[3-9]*)
 
10372
  version_type=linux
 
10373
  need_lib_prefix=no
 
10374
  need_version=no
 
10375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10376
  soname_spec='${libname}${release}${shared_ext}$major'
 
10377
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10378
  shlibpath_var=LD_LIBRARY_PATH
 
10379
  shlibpath_overrides_runpath=no
 
10380
  hardcode_into_libs=yes
 
10381
  ;;
 
10382
 
 
10383
irix5* | irix6* | nonstopux*)
 
10384
  case $host_os in
 
10385
    nonstopux*) version_type=nonstopux ;;
 
10386
    *)
 
10387
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10388
                version_type=linux
 
10389
        else
 
10390
                version_type=irix
 
10391
        fi ;;
 
10392
  esac
 
10393
  need_lib_prefix=no
 
10394
  need_version=no
 
10395
  soname_spec='${libname}${release}${shared_ext}$major'
 
10396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10397
  case $host_os in
 
10398
  irix5* | nonstopux*)
 
10399
    libsuff= shlibsuff=
 
10400
    ;;
 
10401
  *)
 
10402
    case $LD in # libtool.m4 will add one of these switches to LD
 
10403
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10404
      libsuff= shlibsuff= libmagic=32-bit;;
 
10405
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10406
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10407
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10408
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10409
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10410
    esac
 
10411
    ;;
 
10412
  esac
 
10413
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10414
  shlibpath_overrides_runpath=no
 
10415
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10416
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10417
  hardcode_into_libs=yes
 
10418
  ;;
 
10419
 
 
10420
# No shared lib support for Linux oldld, aout, or coff.
 
10421
linux*oldld* | linux*aout* | linux*coff*)
 
10422
  dynamic_linker=no
 
10423
  ;;
 
10424
 
 
10425
# This must be Linux ELF.
 
10426
linux* | k*bsd*-gnu)
 
10427
  version_type=linux
 
10428
  need_lib_prefix=no
 
10429
  need_version=no
 
10430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10431
  soname_spec='${libname}${release}${shared_ext}$major'
 
10432
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10433
  shlibpath_var=LD_LIBRARY_PATH
 
10434
  shlibpath_overrides_runpath=no
 
10435
  # Some binutils ld are patched to set DT_RUNPATH
 
10436
  save_LDFLAGS=$LDFLAGS
 
10437
  save_libdir=$libdir
 
10438
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10439
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10440
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10441
/* end confdefs.h.  */
 
10442
 
 
10443
int
 
10444
main ()
 
10445
{
 
10446
 
 
10447
  ;
 
10448
  return 0;
 
10449
}
 
10450
_ACEOF
 
10451
if ac_fn_c_try_link "$LINENO"; then :
 
10452
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10453
  shlibpath_overrides_runpath=yes
 
10454
fi
 
10455
fi
 
10456
rm -f core conftest.err conftest.$ac_objext \
 
10457
    conftest$ac_exeext conftest.$ac_ext
 
10458
  LDFLAGS=$save_LDFLAGS
 
10459
  libdir=$save_libdir
 
10460
 
 
10461
  # This implies no fast_install, which is unacceptable.
 
10462
  # Some rework will be needed to allow for fast_install
 
10463
  # before this can be enabled.
 
10464
  hardcode_into_libs=yes
 
10465
 
 
10466
  # Append ld.so.conf contents to the search path
 
10467
  if test -f /etc/ld.so.conf; then
 
10468
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10469
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10470
  fi
 
10471
 
 
10472
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10473
  # powerpc, because MkLinux only supported shared libraries with the
 
10474
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10475
  # most powerpc-linux boxes support dynamic linking these days and
 
10476
  # people can always --disable-shared, the test was removed, and we
 
10477
  # assume the GNU/Linux dynamic linker is in use.
 
10478
  dynamic_linker='GNU/Linux ld.so'
 
10479
  ;;
 
10480
 
 
10481
netbsdelf*-gnu)
 
10482
  version_type=linux
 
10483
  need_lib_prefix=no
 
10484
  need_version=no
 
10485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10486
  soname_spec='${libname}${release}${shared_ext}$major'
 
10487
  shlibpath_var=LD_LIBRARY_PATH
 
10488
  shlibpath_overrides_runpath=no
 
10489
  hardcode_into_libs=yes
 
10490
  dynamic_linker='NetBSD ld.elf_so'
 
10491
  ;;
 
10492
 
 
10493
netbsd*)
 
10494
  version_type=sunos
 
10495
  need_lib_prefix=no
 
10496
  need_version=no
 
10497
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10498
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10499
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10500
    dynamic_linker='NetBSD (a.out) ld.so'
 
10501
  else
 
10502
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10503
    soname_spec='${libname}${release}${shared_ext}$major'
 
10504
    dynamic_linker='NetBSD ld.elf_so'
 
10505
  fi
 
10506
  shlibpath_var=LD_LIBRARY_PATH
 
10507
  shlibpath_overrides_runpath=yes
 
10508
  hardcode_into_libs=yes
 
10509
  ;;
 
10510
 
 
10511
newsos6)
 
10512
  version_type=linux
 
10513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10514
  shlibpath_var=LD_LIBRARY_PATH
 
10515
  shlibpath_overrides_runpath=yes
 
10516
  ;;
 
10517
 
 
10518
*nto* | *qnx*)
 
10519
  version_type=qnx
 
10520
  need_lib_prefix=no
 
10521
  need_version=no
 
10522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10523
  soname_spec='${libname}${release}${shared_ext}$major'
 
10524
  shlibpath_var=LD_LIBRARY_PATH
 
10525
  shlibpath_overrides_runpath=no
 
10526
  hardcode_into_libs=yes
 
10527
  dynamic_linker='ldqnx.so'
 
10528
  ;;
 
10529
 
 
10530
openbsd*)
 
10531
  version_type=sunos
 
10532
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10533
  need_lib_prefix=no
 
10534
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10535
  case $host_os in
 
10536
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10537
    *)                          need_version=no  ;;
 
10538
  esac
 
10539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10540
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10541
  shlibpath_var=LD_LIBRARY_PATH
 
10542
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10543
    case $host_os in
 
10544
      openbsd2.[89] | openbsd2.[89].*)
 
10545
        shlibpath_overrides_runpath=no
 
10546
        ;;
 
10547
      *)
 
10548
        shlibpath_overrides_runpath=yes
 
10549
        ;;
 
10550
      esac
 
10551
  else
 
10552
    shlibpath_overrides_runpath=yes
 
10553
  fi
 
10554
  ;;
 
10555
 
 
10556
os2*)
 
10557
  libname_spec='$name'
 
10558
  shrext_cmds=".dll"
 
10559
  need_lib_prefix=no
 
10560
  library_names_spec='$libname${shared_ext} $libname.a'
 
10561
  dynamic_linker='OS/2 ld.exe'
 
10562
  shlibpath_var=LIBPATH
 
10563
  ;;
 
10564
 
 
10565
osf3* | osf4* | osf5*)
 
10566
  version_type=osf
 
10567
  need_lib_prefix=no
 
10568
  need_version=no
 
10569
  soname_spec='${libname}${release}${shared_ext}$major'
 
10570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10571
  shlibpath_var=LD_LIBRARY_PATH
 
10572
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10573
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10574
  ;;
 
10575
 
 
10576
rdos*)
 
10577
  dynamic_linker=no
 
10578
  ;;
 
10579
 
 
10580
solaris*)
 
10581
  version_type=linux
 
10582
  need_lib_prefix=no
 
10583
  need_version=no
 
10584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10585
  soname_spec='${libname}${release}${shared_ext}$major'
 
10586
  shlibpath_var=LD_LIBRARY_PATH
 
10587
  shlibpath_overrides_runpath=yes
 
10588
  hardcode_into_libs=yes
 
10589
  # ldd complains unless libraries are executable
 
10590
  postinstall_cmds='chmod +x $lib'
 
10591
  ;;
 
10592
 
 
10593
sunos4*)
 
10594
  version_type=sunos
 
10595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10596
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10597
  shlibpath_var=LD_LIBRARY_PATH
 
10598
  shlibpath_overrides_runpath=yes
 
10599
  if test "$with_gnu_ld" = yes; then
 
10600
    need_lib_prefix=no
 
10601
  fi
 
10602
  need_version=yes
 
10603
  ;;
 
10604
 
 
10605
sysv4 | sysv4.3*)
 
10606
  version_type=linux
 
10607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10608
  soname_spec='${libname}${release}${shared_ext}$major'
 
10609
  shlibpath_var=LD_LIBRARY_PATH
 
10610
  case $host_vendor in
 
10611
    sni)
 
10612
      shlibpath_overrides_runpath=no
 
10613
      need_lib_prefix=no
 
10614
      runpath_var=LD_RUN_PATH
 
10615
      ;;
 
10616
    siemens)
 
10617
      need_lib_prefix=no
 
10618
      ;;
 
10619
    motorola)
 
10620
      need_lib_prefix=no
 
10621
      need_version=no
 
10622
      shlibpath_overrides_runpath=no
 
10623
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10624
      ;;
 
10625
  esac
 
10626
  ;;
 
10627
 
 
10628
sysv4*MP*)
 
10629
  if test -d /usr/nec ;then
 
10630
    version_type=linux
 
10631
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10632
    soname_spec='$libname${shared_ext}.$major'
 
10633
    shlibpath_var=LD_LIBRARY_PATH
 
10634
  fi
 
10635
  ;;
 
10636
 
 
10637
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10638
  version_type=freebsd-elf
 
10639
  need_lib_prefix=no
 
10640
  need_version=no
 
10641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10642
  soname_spec='${libname}${release}${shared_ext}$major'
 
10643
  shlibpath_var=LD_LIBRARY_PATH
 
10644
  shlibpath_overrides_runpath=yes
 
10645
  hardcode_into_libs=yes
 
10646
  if test "$with_gnu_ld" = yes; then
 
10647
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10648
  else
 
10649
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10650
    case $host_os in
 
10651
      sco3.2v5*)
 
10652
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10653
        ;;
 
10654
    esac
 
10655
  fi
 
10656
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10657
  ;;
 
10658
 
 
10659
tpf*)
 
10660
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10661
  version_type=linux
 
10662
  need_lib_prefix=no
 
10663
  need_version=no
 
10664
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10665
  shlibpath_var=LD_LIBRARY_PATH
 
10666
  shlibpath_overrides_runpath=no
 
10667
  hardcode_into_libs=yes
 
10668
  ;;
 
10669
 
 
10670
uts4*)
 
10671
  version_type=linux
 
10672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10673
  soname_spec='${libname}${release}${shared_ext}$major'
 
10674
  shlibpath_var=LD_LIBRARY_PATH
 
10675
  ;;
 
10676
 
 
10677
*)
 
10678
  dynamic_linker=no
 
10679
  ;;
 
10680
esac
 
10681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10682
$as_echo "$dynamic_linker" >&6; }
 
10683
test "$dynamic_linker" = no && can_build_shared=no
 
10684
 
 
10685
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10686
if test "$GCC" = yes; then
 
10687
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10688
fi
 
10689
 
 
10690
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10691
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10692
fi
 
10693
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10694
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10695
fi
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
 
10737
 
 
10738
 
 
10739
 
 
10740
 
 
10741
 
 
10742
 
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
 
 
10748
 
 
10749
 
 
10750
 
 
10751
 
 
10752
 
 
10753
 
 
10754
 
 
10755
 
 
10756
 
 
10757
 
 
10758
 
 
10759
 
 
10760
 
 
10761
 
 
10762
 
 
10763
 
 
10764
 
 
10765
 
 
10766
 
 
10767
 
 
10768
 
 
10769
 
 
10770
 
 
10771
 
 
10772
 
 
10773
 
 
10774
 
 
10775
 
 
10776
 
 
10777
 
 
10778
 
 
10779
 
 
10780
 
 
10781
 
 
10782
 
 
10783
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10784
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10785
hardcode_action=
 
10786
if test -n "$hardcode_libdir_flag_spec" ||
 
10787
   test -n "$runpath_var" ||
 
10788
   test "X$hardcode_automatic" = "Xyes" ; then
 
10789
 
 
10790
  # We can hardcode non-existent directories.
 
10791
  if test "$hardcode_direct" != no &&
 
10792
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10793
     # have to relink, otherwise we might link with an installed library
 
10794
     # when we should be linking with a yet-to-be-installed one
 
10795
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10796
     test "$hardcode_minus_L" != no; then
 
10797
    # Linking always hardcodes the temporary library directory.
 
10798
    hardcode_action=relink
 
10799
  else
 
10800
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10801
    hardcode_action=immediate
 
10802
  fi
 
10803
else
 
10804
  # We cannot hardcode anything, or else we can only hardcode existing
 
10805
  # directories.
 
10806
  hardcode_action=unsupported
 
10807
fi
 
10808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10809
$as_echo "$hardcode_action" >&6; }
 
10810
 
 
10811
if test "$hardcode_action" = relink ||
 
10812
   test "$inherit_rpath" = yes; then
 
10813
  # Fast installation is not supported
 
10814
  enable_fast_install=no
 
10815
elif test "$shlibpath_overrides_runpath" = yes ||
 
10816
     test "$enable_shared" = no; then
 
10817
  # Fast installation is not necessary
 
10818
  enable_fast_install=needless
 
10819
fi
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
 
10826
  if test "x$enable_dlopen" != xyes; then
 
10827
  enable_dlopen=unknown
 
10828
  enable_dlopen_self=unknown
 
10829
  enable_dlopen_self_static=unknown
 
10830
else
 
10831
  lt_cv_dlopen=no
 
10832
  lt_cv_dlopen_libs=
 
10833
 
 
10834
  case $host_os in
 
10835
  beos*)
 
10836
    lt_cv_dlopen="load_add_on"
 
10837
    lt_cv_dlopen_libs=
 
10838
    lt_cv_dlopen_self=yes
 
10839
    ;;
 
10840
 
 
10841
  mingw* | pw32* | cegcc*)
 
10842
    lt_cv_dlopen="LoadLibrary"
 
10843
    lt_cv_dlopen_libs=
 
10844
    ;;
 
10845
 
 
10846
  cygwin*)
 
10847
    lt_cv_dlopen="dlopen"
 
10848
    lt_cv_dlopen_libs=
 
10849
    ;;
 
10850
 
 
10851
  darwin*)
 
10852
  # if libdl is installed we need to link against it
 
10853
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10854
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10855
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10856
  $as_echo_n "(cached) " >&6
 
10857
else
 
10858
  ac_check_lib_save_LIBS=$LIBS
 
10859
LIBS="-ldl  $LIBS"
 
10860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10861
/* end confdefs.h.  */
 
10862
 
 
10863
/* Override any GCC internal prototype to avoid an error.
 
10864
   Use char because int might match the return type of a GCC
 
10865
   builtin and then its argument prototype would still apply.  */
 
10866
#ifdef __cplusplus
 
10867
extern "C"
 
10868
#endif
 
10869
char dlopen ();
 
10870
int
 
10871
main ()
 
10872
{
 
10873
return dlopen ();
 
10874
  ;
 
10875
  return 0;
 
10876
}
 
10877
_ACEOF
 
10878
if ac_fn_c_try_link "$LINENO"; then :
 
10879
  ac_cv_lib_dl_dlopen=yes
 
10880
else
 
10881
  ac_cv_lib_dl_dlopen=no
 
10882
fi
 
10883
rm -f core conftest.err conftest.$ac_objext \
 
10884
    conftest$ac_exeext conftest.$ac_ext
 
10885
LIBS=$ac_check_lib_save_LIBS
 
10886
fi
 
10887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10888
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10889
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10890
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10891
else
 
10892
 
 
10893
    lt_cv_dlopen="dyld"
 
10894
    lt_cv_dlopen_libs=
 
10895
    lt_cv_dlopen_self=yes
 
10896
 
 
10897
fi
 
10898
 
 
10899
    ;;
 
10900
 
 
10901
  *)
 
10902
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10903
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
10904
  lt_cv_dlopen="shl_load"
 
10905
else
 
10906
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10907
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10908
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10909
  $as_echo_n "(cached) " >&6
 
10910
else
 
10911
  ac_check_lib_save_LIBS=$LIBS
 
10912
LIBS="-ldld  $LIBS"
 
10913
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10914
/* end confdefs.h.  */
 
10915
 
 
10916
/* Override any GCC internal prototype to avoid an error.
 
10917
   Use char because int might match the return type of a GCC
 
10918
   builtin and then its argument prototype would still apply.  */
 
10919
#ifdef __cplusplus
 
10920
extern "C"
 
10921
#endif
 
10922
char shl_load ();
 
10923
int
 
10924
main ()
 
10925
{
 
10926
return shl_load ();
 
10927
  ;
 
10928
  return 0;
 
10929
}
 
10930
_ACEOF
 
10931
if ac_fn_c_try_link "$LINENO"; then :
 
10932
  ac_cv_lib_dld_shl_load=yes
 
10933
else
 
10934
  ac_cv_lib_dld_shl_load=no
 
10935
fi
 
10936
rm -f core conftest.err conftest.$ac_objext \
 
10937
    conftest$ac_exeext conftest.$ac_ext
 
10938
LIBS=$ac_check_lib_save_LIBS
 
10939
fi
 
10940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10941
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10942
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10943
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10944
else
 
10945
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10946
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
10947
  lt_cv_dlopen="dlopen"
 
10948
else
 
10949
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10950
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10951
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10952
  $as_echo_n "(cached) " >&6
 
10953
else
 
10954
  ac_check_lib_save_LIBS=$LIBS
 
10955
LIBS="-ldl  $LIBS"
 
10956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10957
/* end confdefs.h.  */
 
10958
 
 
10959
/* Override any GCC internal prototype to avoid an error.
 
10960
   Use char because int might match the return type of a GCC
 
10961
   builtin and then its argument prototype would still apply.  */
 
10962
#ifdef __cplusplus
 
10963
extern "C"
 
10964
#endif
 
10965
char dlopen ();
 
10966
int
 
10967
main ()
 
10968
{
 
10969
return dlopen ();
 
10970
  ;
 
10971
  return 0;
 
10972
}
 
10973
_ACEOF
 
10974
if ac_fn_c_try_link "$LINENO"; then :
 
10975
  ac_cv_lib_dl_dlopen=yes
 
10976
else
 
10977
  ac_cv_lib_dl_dlopen=no
 
10978
fi
 
10979
rm -f core conftest.err conftest.$ac_objext \
 
10980
    conftest$ac_exeext conftest.$ac_ext
 
10981
LIBS=$ac_check_lib_save_LIBS
 
10982
fi
 
10983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10984
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10985
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10986
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10987
else
 
10988
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10989
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10990
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10991
  $as_echo_n "(cached) " >&6
 
10992
else
 
10993
  ac_check_lib_save_LIBS=$LIBS
 
10994
LIBS="-lsvld  $LIBS"
 
10995
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10996
/* end confdefs.h.  */
 
10997
 
 
10998
/* Override any GCC internal prototype to avoid an error.
 
10999
   Use char because int might match the return type of a GCC
 
11000
   builtin and then its argument prototype would still apply.  */
 
11001
#ifdef __cplusplus
 
11002
extern "C"
 
11003
#endif
 
11004
char dlopen ();
 
11005
int
 
11006
main ()
 
11007
{
 
11008
return dlopen ();
 
11009
  ;
 
11010
  return 0;
 
11011
}
 
11012
_ACEOF
 
11013
if ac_fn_c_try_link "$LINENO"; then :
 
11014
  ac_cv_lib_svld_dlopen=yes
 
11015
else
 
11016
  ac_cv_lib_svld_dlopen=no
 
11017
fi
 
11018
rm -f core conftest.err conftest.$ac_objext \
 
11019
    conftest$ac_exeext conftest.$ac_ext
 
11020
LIBS=$ac_check_lib_save_LIBS
 
11021
fi
 
11022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11023
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11024
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
11025
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11026
else
 
11027
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11028
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11029
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
11030
  $as_echo_n "(cached) " >&6
 
11031
else
 
11032
  ac_check_lib_save_LIBS=$LIBS
 
11033
LIBS="-ldld  $LIBS"
 
11034
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11035
/* end confdefs.h.  */
 
11036
 
 
11037
/* Override any GCC internal prototype to avoid an error.
 
11038
   Use char because int might match the return type of a GCC
 
11039
   builtin and then its argument prototype would still apply.  */
 
11040
#ifdef __cplusplus
 
11041
extern "C"
 
11042
#endif
 
11043
char dld_link ();
 
11044
int
 
11045
main ()
 
11046
{
 
11047
return dld_link ();
 
11048
  ;
 
11049
  return 0;
 
11050
}
 
11051
_ACEOF
 
11052
if ac_fn_c_try_link "$LINENO"; then :
 
11053
  ac_cv_lib_dld_dld_link=yes
 
11054
else
 
11055
  ac_cv_lib_dld_dld_link=no
 
11056
fi
 
11057
rm -f core conftest.err conftest.$ac_objext \
 
11058
    conftest$ac_exeext conftest.$ac_ext
 
11059
LIBS=$ac_check_lib_save_LIBS
 
11060
fi
 
11061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11062
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11063
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
11064
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11065
fi
 
11066
 
 
11067
 
 
11068
fi
 
11069
 
 
11070
 
 
11071
fi
 
11072
 
 
11073
 
 
11074
fi
 
11075
 
 
11076
 
 
11077
fi
 
11078
 
 
11079
 
 
11080
fi
 
11081
 
 
11082
    ;;
 
11083
  esac
 
11084
 
 
11085
  if test "x$lt_cv_dlopen" != xno; then
 
11086
    enable_dlopen=yes
 
11087
  else
 
11088
    enable_dlopen=no
 
11089
  fi
 
11090
 
 
11091
  case $lt_cv_dlopen in
 
11092
  dlopen)
 
11093
    save_CPPFLAGS="$CPPFLAGS"
 
11094
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11095
 
 
11096
    save_LDFLAGS="$LDFLAGS"
 
11097
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11098
 
 
11099
    save_LIBS="$LIBS"
 
11100
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11101
 
 
11102
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11103
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11104
if test "${lt_cv_dlopen_self+set}" = set; then :
 
11105
  $as_echo_n "(cached) " >&6
 
11106
else
 
11107
          if test "$cross_compiling" = yes; then :
 
11108
  lt_cv_dlopen_self=cross
 
11109
else
 
11110
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11111
  lt_status=$lt_dlunknown
 
11112
  cat > conftest.$ac_ext <<_LT_EOF
 
11113
#line 11113 "configure"
 
11114
#include "confdefs.h"
 
11115
 
 
11116
#if HAVE_DLFCN_H
 
11117
#include <dlfcn.h>
 
11118
#endif
 
11119
 
 
11120
#include <stdio.h>
 
11121
 
 
11122
#ifdef RTLD_GLOBAL
 
11123
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11124
#else
 
11125
#  ifdef DL_GLOBAL
 
11126
#    define LT_DLGLOBAL         DL_GLOBAL
 
11127
#  else
 
11128
#    define LT_DLGLOBAL         0
 
11129
#  endif
 
11130
#endif
 
11131
 
 
11132
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11133
   find out it does not work in some platform. */
 
11134
#ifndef LT_DLLAZY_OR_NOW
 
11135
#  ifdef RTLD_LAZY
 
11136
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11137
#  else
 
11138
#    ifdef DL_LAZY
 
11139
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11140
#    else
 
11141
#      ifdef RTLD_NOW
 
11142
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11143
#      else
 
11144
#        ifdef DL_NOW
 
11145
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11146
#        else
 
11147
#          define LT_DLLAZY_OR_NOW      0
 
11148
#        endif
 
11149
#      endif
 
11150
#    endif
 
11151
#  endif
 
11152
#endif
 
11153
 
 
11154
void fnord() { int i=42;}
 
11155
int main ()
 
11156
{
 
11157
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11158
  int status = $lt_dlunknown;
 
11159
 
 
11160
  if (self)
 
11161
    {
 
11162
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11163
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11164
      /* dlclose (self); */
 
11165
    }
 
11166
  else
 
11167
    puts (dlerror ());
 
11168
 
 
11169
  return status;
 
11170
}
 
11171
_LT_EOF
 
11172
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11173
  (eval $ac_link) 2>&5
 
11174
  ac_status=$?
 
11175
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11176
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11177
    (./conftest; exit; ) >&5 2>/dev/null
 
11178
    lt_status=$?
 
11179
    case x$lt_status in
 
11180
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11181
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11182
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11183
    esac
 
11184
  else :
 
11185
    # compilation failed
 
11186
    lt_cv_dlopen_self=no
 
11187
  fi
 
11188
fi
 
11189
rm -fr conftest*
 
11190
 
 
11191
 
 
11192
fi
 
11193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11194
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11195
 
 
11196
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11197
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11198
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11199
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11200
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
11201
  $as_echo_n "(cached) " >&6
 
11202
else
 
11203
          if test "$cross_compiling" = yes; then :
 
11204
  lt_cv_dlopen_self_static=cross
 
11205
else
 
11206
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11207
  lt_status=$lt_dlunknown
 
11208
  cat > conftest.$ac_ext <<_LT_EOF
 
11209
#line 11209 "configure"
 
11210
#include "confdefs.h"
 
11211
 
 
11212
#if HAVE_DLFCN_H
 
11213
#include <dlfcn.h>
 
11214
#endif
 
11215
 
 
11216
#include <stdio.h>
 
11217
 
 
11218
#ifdef RTLD_GLOBAL
 
11219
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11220
#else
 
11221
#  ifdef DL_GLOBAL
 
11222
#    define LT_DLGLOBAL         DL_GLOBAL
 
11223
#  else
 
11224
#    define LT_DLGLOBAL         0
 
11225
#  endif
 
11226
#endif
 
11227
 
 
11228
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11229
   find out it does not work in some platform. */
 
11230
#ifndef LT_DLLAZY_OR_NOW
 
11231
#  ifdef RTLD_LAZY
 
11232
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11233
#  else
 
11234
#    ifdef DL_LAZY
 
11235
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11236
#    else
 
11237
#      ifdef RTLD_NOW
 
11238
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11239
#      else
 
11240
#        ifdef DL_NOW
 
11241
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11242
#        else
 
11243
#          define LT_DLLAZY_OR_NOW      0
 
11244
#        endif
 
11245
#      endif
 
11246
#    endif
 
11247
#  endif
 
11248
#endif
 
11249
 
 
11250
void fnord() { int i=42;}
 
11251
int main ()
 
11252
{
 
11253
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11254
  int status = $lt_dlunknown;
 
11255
 
 
11256
  if (self)
 
11257
    {
 
11258
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11259
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11260
      /* dlclose (self); */
 
11261
    }
 
11262
  else
 
11263
    puts (dlerror ());
 
11264
 
 
11265
  return status;
 
11266
}
 
11267
_LT_EOF
 
11268
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11269
  (eval $ac_link) 2>&5
 
11270
  ac_status=$?
 
11271
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11272
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11273
    (./conftest; exit; ) >&5 2>/dev/null
 
11274
    lt_status=$?
 
11275
    case x$lt_status in
 
11276
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11277
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11278
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11279
    esac
 
11280
  else :
 
11281
    # compilation failed
 
11282
    lt_cv_dlopen_self_static=no
 
11283
  fi
 
11284
fi
 
11285
rm -fr conftest*
 
11286
 
 
11287
 
 
11288
fi
 
11289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11290
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11291
    fi
 
11292
 
 
11293
    CPPFLAGS="$save_CPPFLAGS"
 
11294
    LDFLAGS="$save_LDFLAGS"
 
11295
    LIBS="$save_LIBS"
 
11296
    ;;
 
11297
  esac
 
11298
 
 
11299
  case $lt_cv_dlopen_self in
 
11300
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11301
  *) enable_dlopen_self=unknown ;;
 
11302
  esac
 
11303
 
 
11304
  case $lt_cv_dlopen_self_static in
 
11305
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11306
  *) enable_dlopen_self_static=unknown ;;
 
11307
  esac
 
11308
fi
 
11309
 
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
 
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
 
 
11323
 
 
11324
 
 
11325
 
 
11326
striplib=
 
11327
old_striplib=
 
11328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11329
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11330
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11331
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11332
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11334
$as_echo "yes" >&6; }
 
11335
else
 
11336
# FIXME - insert some real tests, host_os isn't really good enough
 
11337
  case $host_os in
 
11338
  darwin*)
 
11339
    if test -n "$STRIP" ; then
 
11340
      striplib="$STRIP -x"
 
11341
      old_striplib="$STRIP -S"
 
11342
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11343
$as_echo "yes" >&6; }
 
11344
    else
 
11345
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11346
$as_echo "no" >&6; }
 
11347
    fi
 
11348
    ;;
 
11349
  *)
 
11350
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11351
$as_echo "no" >&6; }
 
11352
    ;;
 
11353
  esac
 
11354
fi
 
11355
 
 
11356
 
 
11357
 
 
11358
 
 
11359
 
 
11360
 
 
11361
 
 
11362
 
 
11363
 
 
11364
 
 
11365
 
 
11366
 
 
11367
  # Report which library types will actually be built
 
11368
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11369
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11371
$as_echo "$can_build_shared" >&6; }
 
11372
 
 
11373
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11374
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11375
  test "$can_build_shared" = "no" && enable_shared=no
 
11376
 
 
11377
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11378
  # are all built from PIC.
 
11379
  case $host_os in
 
11380
  aix3*)
 
11381
    test "$enable_shared" = yes && enable_static=no
 
11382
    if test -n "$RANLIB"; then
 
11383
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11384
      postinstall_cmds='$RANLIB $lib'
 
11385
    fi
 
11386
    ;;
 
11387
 
 
11388
  aix[4-9]*)
 
11389
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11390
      test "$enable_shared" = yes && enable_static=no
 
11391
    fi
 
11392
    ;;
 
11393
  esac
 
11394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11395
$as_echo "$enable_shared" >&6; }
 
11396
 
 
11397
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11398
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11399
  # Make sure either enable_shared or enable_static is yes.
 
11400
  test "$enable_shared" = yes || enable_static=yes
 
11401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11402
$as_echo "$enable_static" >&6; }
 
11403
 
 
11404
 
 
11405
 
 
11406
 
 
11407
fi
 
11408
ac_ext=c
 
11409
ac_cpp='$CPP $CPPFLAGS'
 
11410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11413
 
 
11414
CC="$lt_save_CC"
 
11415
 
 
11416
 
 
11417
ac_ext=cpp
 
11418
ac_cpp='$CXXCPP $CPPFLAGS'
 
11419
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11420
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11421
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11422
 
 
11423
archive_cmds_need_lc_CXX=no
 
11424
allow_undefined_flag_CXX=
 
11425
always_export_symbols_CXX=no
 
11426
archive_expsym_cmds_CXX=
 
11427
compiler_needs_object_CXX=no
 
11428
export_dynamic_flag_spec_CXX=
 
11429
hardcode_direct_CXX=no
 
11430
hardcode_direct_absolute_CXX=no
 
11431
hardcode_libdir_flag_spec_CXX=
 
11432
hardcode_libdir_flag_spec_ld_CXX=
 
11433
hardcode_libdir_separator_CXX=
 
11434
hardcode_minus_L_CXX=no
 
11435
hardcode_shlibpath_var_CXX=unsupported
 
11436
hardcode_automatic_CXX=no
 
11437
inherit_rpath_CXX=no
 
11438
module_cmds_CXX=
 
11439
module_expsym_cmds_CXX=
 
11440
link_all_deplibs_CXX=unknown
 
11441
old_archive_cmds_CXX=$old_archive_cmds
 
11442
no_undefined_flag_CXX=
 
11443
whole_archive_flag_spec_CXX=
 
11444
enable_shared_with_static_runtimes_CXX=no
 
11445
 
 
11446
# Source file extension for C++ test sources.
 
11447
ac_ext=cpp
 
11448
 
 
11449
# Object file extension for compiled C++ test sources.
 
11450
objext=o
 
11451
objext_CXX=$objext
 
11452
 
 
11453
# No sense in running all these tests if we already determined that
 
11454
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
11455
# are currently assumed to apply to all compilers on this platform,
 
11456
# and will be corrupted by setting them based on a non-working compiler.
 
11457
if test "$_lt_caught_CXX_error" != yes; then
 
11458
  # Code to be used in simple compile tests
 
11459
  lt_simple_compile_test_code="int some_variable = 0;"
 
11460
 
 
11461
  # Code to be used in simple link tests
 
11462
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11463
 
 
11464
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
 
 
11471
# If no C compiler was specified, use CC.
 
11472
LTCC=${LTCC-"$CC"}
 
11473
 
 
11474
# If no C compiler flags were specified, use CFLAGS.
 
11475
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11476
 
 
11477
# Allow CC to be a program name with arguments.
 
11478
compiler=$CC
 
11479
 
 
11480
 
 
11481
  # save warnings/boilerplate of simple test code
 
11482
  ac_outfile=conftest.$ac_objext
 
11483
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11484
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11485
_lt_compiler_boilerplate=`cat conftest.err`
 
11486
$RM conftest*
 
11487
 
 
11488
  ac_outfile=conftest.$ac_objext
 
11489
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11490
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11491
_lt_linker_boilerplate=`cat conftest.err`
 
11492
$RM -r conftest*
 
11493
 
 
11494
 
 
11495
  # Allow CC to be a program name with arguments.
 
11496
  lt_save_CC=$CC
 
11497
  lt_save_LD=$LD
 
11498
  lt_save_GCC=$GCC
 
11499
  GCC=$GXX
 
11500
  lt_save_with_gnu_ld=$with_gnu_ld
 
11501
  lt_save_path_LD=$lt_cv_path_LD
 
11502
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11503
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11504
  else
 
11505
    $as_unset lt_cv_prog_gnu_ld
 
11506
  fi
 
11507
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
11508
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
11509
  else
 
11510
    $as_unset lt_cv_path_LD
 
11511
  fi
 
11512
  test -z "${LDCXX+set}" || LD=$LDCXX
 
11513
  CC=${CXX-"c++"}
 
11514
  compiler=$CC
 
11515
  compiler_CXX=$CC
 
11516
  for cc_temp in $compiler""; do
 
11517
  case $cc_temp in
 
11518
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11519
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11520
    \-*) ;;
 
11521
    *) break;;
 
11522
  esac
 
11523
done
 
11524
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11525
 
 
11526
 
 
11527
  if test -n "$compiler"; then
 
11528
    # We don't want -fno-exception when compiling C++ code, so set the
 
11529
    # no_builtin_flag separately
 
11530
    if test "$GXX" = yes; then
 
11531
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11532
    else
 
11533
      lt_prog_compiler_no_builtin_flag_CXX=
 
11534
    fi
 
11535
 
 
11536
    if test "$GXX" = yes; then
 
11537
      # Set up default GNU C++ configuration
 
11538
 
 
11539
 
 
11540
 
 
11541
# Check whether --with-gnu-ld was given.
 
11542
if test "${with_gnu_ld+set}" = set; then :
 
11543
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11544
else
 
11545
  with_gnu_ld=no
 
11546
fi
 
11547
 
 
11548
ac_prog=ld
 
11549
if test "$GCC" = yes; then
 
11550
  # Check if gcc -print-prog-name=ld gives a path.
 
11551
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
11552
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11553
  case $host in
 
11554
  *-*-mingw*)
 
11555
    # gcc leaves a trailing carriage return which upsets mingw
 
11556
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11557
  *)
 
11558
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11559
  esac
 
11560
  case $ac_prog in
 
11561
    # Accept absolute paths.
 
11562
    [\\/]* | ?:[\\/]*)
 
11563
      re_direlt='/[^/][^/]*/\.\./'
 
11564
      # Canonicalize the pathname of ld
 
11565
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
11566
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
11567
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
11568
      done
 
11569
      test -z "$LD" && LD="$ac_prog"
 
11570
      ;;
 
11571
  "")
 
11572
    # If it fails, then pretend we aren't using GCC.
 
11573
    ac_prog=ld
 
11574
    ;;
 
11575
  *)
 
11576
    # If it is relative, then search for the first ld in PATH.
 
11577
    with_gnu_ld=unknown
 
11578
    ;;
 
11579
  esac
 
11580
elif test "$with_gnu_ld" = yes; then
 
11581
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
11582
$as_echo_n "checking for GNU ld... " >&6; }
 
11583
else
 
11584
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
11585
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11586
fi
 
11587
if test "${lt_cv_path_LD+set}" = set; then :
 
11588
  $as_echo_n "(cached) " >&6
 
11589
else
 
11590
  if test -z "$LD"; then
 
11591
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11592
  for ac_dir in $PATH; do
 
11593
    IFS="$lt_save_ifs"
 
11594
    test -z "$ac_dir" && ac_dir=.
 
11595
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11596
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11597
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11598
      # but apparently some variants of GNU ld only accept -v.
 
11599
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11600
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11601
      *GNU* | *'with BFD'*)
 
11602
        test "$with_gnu_ld" != no && break
 
11603
        ;;
 
11604
      *)
 
11605
        test "$with_gnu_ld" != yes && break
 
11606
        ;;
 
11607
      esac
 
11608
    fi
 
11609
  done
 
11610
  IFS="$lt_save_ifs"
 
11611
else
 
11612
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11613
fi
 
11614
fi
 
11615
 
 
11616
LD="$lt_cv_path_LD"
 
11617
if test -n "$LD"; then
 
11618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
11619
$as_echo "$LD" >&6; }
 
11620
else
 
11621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11622
$as_echo "no" >&6; }
 
11623
fi
 
11624
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
11625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
11626
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11627
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
11628
  $as_echo_n "(cached) " >&6
 
11629
else
 
11630
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11631
case `$LD -v 2>&1 </dev/null` in
 
11632
*GNU* | *'with BFD'*)
 
11633
  lt_cv_prog_gnu_ld=yes
 
11634
  ;;
 
11635
*)
 
11636
  lt_cv_prog_gnu_ld=no
 
11637
  ;;
 
11638
esac
 
11639
fi
 
11640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
11641
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11642
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11643
 
 
11644
 
 
11645
 
 
11646
 
 
11647
 
 
11648
 
 
11649
 
 
11650
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11651
      # archiving commands below assume that GNU ld is being used.
 
11652
      if test "$with_gnu_ld" = yes; then
 
11653
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11654
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11655
 
 
11656
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11657
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11658
 
 
11659
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
11660
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11661
        #     investigate it a little bit more. (MM)
 
11662
        wlarc='${wl}'
 
11663
 
 
11664
        # ancient GNU ld didn't support --whole-archive et. al.
 
11665
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
11666
          $GREP 'no-whole-archive' > /dev/null; then
 
11667
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11668
        else
 
11669
          whole_archive_flag_spec_CXX=
 
11670
        fi
 
11671
      else
 
11672
        with_gnu_ld=no
 
11673
        wlarc=
 
11674
 
 
11675
        # A generic and very simple default shared library creation
 
11676
        # command for GNU C++ for the case where it uses the native
 
11677
        # linker, instead of GNU ld.  If possible, this setting should
 
11678
        # overridden to take advantage of the native linker features on
 
11679
        # the platform it is being used on.
 
11680
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11681
      fi
 
11682
 
 
11683
      # Commands to make compiler produce verbose output that lists
 
11684
      # what "hidden" libraries, object files and flags are used when
 
11685
      # linking a shared library.
 
11686
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
11687
 
 
11688
    else
 
11689
      GXX=no
 
11690
      with_gnu_ld=no
 
11691
      wlarc=
 
11692
    fi
 
11693
 
 
11694
    # PORTME: fill in a description of your system's C++ link characteristics
 
11695
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11696
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11697
    ld_shlibs_CXX=yes
 
11698
    case $host_os in
 
11699
      aix3*)
 
11700
        # FIXME: insert proper C++ library support
 
11701
        ld_shlibs_CXX=no
 
11702
        ;;
 
11703
      aix[4-9]*)
 
11704
        if test "$host_cpu" = ia64; then
 
11705
          # On IA64, the linker does run time linking by default, so we don't
 
11706
          # have to do anything special.
 
11707
          aix_use_runtimelinking=no
 
11708
          exp_sym_flag='-Bexport'
 
11709
          no_entry_flag=""
 
11710
        else
 
11711
          aix_use_runtimelinking=no
 
11712
 
 
11713
          # Test if we are trying to use run time linking or normal
 
11714
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11715
          # need to do runtime linking.
 
11716
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11717
            for ld_flag in $LDFLAGS; do
 
11718
              case $ld_flag in
 
11719
              *-brtl*)
 
11720
                aix_use_runtimelinking=yes
 
11721
                break
 
11722
                ;;
 
11723
              esac
 
11724
            done
 
11725
            ;;
 
11726
          esac
 
11727
 
 
11728
          exp_sym_flag='-bexport'
 
11729
          no_entry_flag='-bnoentry'
 
11730
        fi
 
11731
 
 
11732
        # When large executables or shared objects are built, AIX ld can
 
11733
        # have problems creating the table of contents.  If linking a library
 
11734
        # or program results in "error TOC overflow" add -mminimal-toc to
 
11735
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11736
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11737
 
 
11738
        archive_cmds_CXX=''
 
11739
        hardcode_direct_CXX=yes
 
11740
        hardcode_direct_absolute_CXX=yes
 
11741
        hardcode_libdir_separator_CXX=':'
 
11742
        link_all_deplibs_CXX=yes
 
11743
        file_list_spec_CXX='${wl}-f,'
 
11744
 
 
11745
        if test "$GXX" = yes; then
 
11746
          case $host_os in aix4.[012]|aix4.[012].*)
 
11747
          # We only want to do this on AIX 4.2 and lower, the check
 
11748
          # below for broken collect2 doesn't work under 4.3+
 
11749
          collect2name=`${CC} -print-prog-name=collect2`
 
11750
          if test -f "$collect2name" &&
 
11751
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
11752
          then
 
11753
            # We have reworked collect2
 
11754
            :
 
11755
          else
 
11756
            # We have old collect2
 
11757
            hardcode_direct_CXX=unsupported
 
11758
            # It fails to find uninstalled libraries when the uninstalled
 
11759
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
11760
            # to unsupported forces relinking
 
11761
            hardcode_minus_L_CXX=yes
 
11762
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11763
            hardcode_libdir_separator_CXX=
 
11764
          fi
 
11765
          esac
 
11766
          shared_flag='-shared'
 
11767
          if test "$aix_use_runtimelinking" = yes; then
 
11768
            shared_flag="$shared_flag "'${wl}-G'
 
11769
          fi
 
11770
        else
 
11771
          # not using gcc
 
11772
          if test "$host_cpu" = ia64; then
 
11773
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11774
          # chokes on -Wl,-G. The following line is correct:
 
11775
          shared_flag='-G'
 
11776
          else
 
11777
            if test "$aix_use_runtimelinking" = yes; then
 
11778
              shared_flag='${wl}-G'
 
11779
            else
 
11780
              shared_flag='${wl}-bM:SRE'
 
11781
            fi
 
11782
          fi
 
11783
        fi
 
11784
 
 
11785
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
11786
        # It seems that -bexpall does not export symbols beginning with
 
11787
        # underscore (_), so it is better to generate a list of symbols to
 
11788
        # export.
 
11789
        always_export_symbols_CXX=yes
 
11790
        if test "$aix_use_runtimelinking" = yes; then
 
11791
          # Warning - without using the other runtime loading flags (-brtl),
 
11792
          # -berok will link without error, but may produce a broken library.
 
11793
          allow_undefined_flag_CXX='-berok'
 
11794
          # Determine the default libpath from the value encoded in an empty
 
11795
          # executable.
 
11796
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11797
/* end confdefs.h.  */
 
11798
 
 
11799
int
 
11800
main ()
 
11801
{
 
11802
 
 
11803
  ;
 
11804
  return 0;
 
11805
}
 
11806
_ACEOF
 
11807
if ac_fn_cxx_try_link "$LINENO"; then :
 
11808
 
 
11809
lt_aix_libpath_sed='
 
11810
    /Import File Strings/,/^$/ {
 
11811
        /^0/ {
 
11812
            s/^0  *\(.*\)$/\1/
 
11813
            p
 
11814
        }
 
11815
    }'
 
11816
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11817
# Check for a 64-bit object if we didn't find anything.
 
11818
if test -z "$aix_libpath"; then
 
11819
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11820
fi
 
11821
fi
 
11822
rm -f core conftest.err conftest.$ac_objext \
 
11823
    conftest$ac_exeext conftest.$ac_ext
 
11824
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11825
 
 
11826
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11827
 
 
11828
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11829
        else
 
11830
          if test "$host_cpu" = ia64; then
 
11831
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11832
            allow_undefined_flag_CXX="-z nodefs"
 
11833
            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"
 
11834
          else
 
11835
            # Determine the default libpath from the value encoded in an
 
11836
            # empty executable.
 
11837
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11838
/* end confdefs.h.  */
 
11839
 
 
11840
int
 
11841
main ()
 
11842
{
 
11843
 
 
11844
  ;
 
11845
  return 0;
 
11846
}
 
11847
_ACEOF
 
11848
if ac_fn_cxx_try_link "$LINENO"; then :
 
11849
 
 
11850
lt_aix_libpath_sed='
 
11851
    /Import File Strings/,/^$/ {
 
11852
        /^0/ {
 
11853
            s/^0  *\(.*\)$/\1/
 
11854
            p
 
11855
        }
 
11856
    }'
 
11857
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11858
# Check for a 64-bit object if we didn't find anything.
 
11859
if test -z "$aix_libpath"; then
 
11860
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11861
fi
 
11862
fi
 
11863
rm -f core conftest.err conftest.$ac_objext \
 
11864
    conftest$ac_exeext conftest.$ac_ext
 
11865
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11866
 
 
11867
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11868
            # Warning - without using the other run time loading flags,
 
11869
            # -berok will link without error, but may produce a broken library.
 
11870
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
11871
            allow_undefined_flag_CXX=' ${wl}-berok'
 
11872
            # Exported symbols can be pulled into shared objects from archives
 
11873
            whole_archive_flag_spec_CXX='$convenience'
 
11874
            archive_cmds_need_lc_CXX=yes
 
11875
            # This is similar to how AIX traditionally builds its shared
 
11876
            # libraries.
 
11877
            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'
 
11878
          fi
 
11879
        fi
 
11880
        ;;
 
11881
 
 
11882
      beos*)
 
11883
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
11884
          allow_undefined_flag_CXX=unsupported
 
11885
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11886
          # support --undefined.  This deserves some investigation.  FIXME
 
11887
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11888
        else
 
11889
          ld_shlibs_CXX=no
 
11890
        fi
 
11891
        ;;
 
11892
 
 
11893
      chorus*)
 
11894
        case $cc_basename in
 
11895
          *)
 
11896
          # FIXME: insert proper C++ library support
 
11897
          ld_shlibs_CXX=no
 
11898
          ;;
 
11899
        esac
 
11900
        ;;
 
11901
 
 
11902
      cygwin* | mingw* | pw32* | cegcc*)
 
11903
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11904
        # as there is no search path for DLLs.
 
11905
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11906
        allow_undefined_flag_CXX=unsupported
 
11907
        always_export_symbols_CXX=no
 
11908
        enable_shared_with_static_runtimes_CXX=yes
 
11909
 
 
11910
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
11911
          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'
 
11912
          # If the export-symbols file already is a .def file (1st line
 
11913
          # is EXPORTS), use it as is; otherwise, prepend...
 
11914
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11915
            cp $export_symbols $output_objdir/$soname.def;
 
11916
          else
 
11917
            echo EXPORTS > $output_objdir/$soname.def;
 
11918
            cat $export_symbols >> $output_objdir/$soname.def;
 
11919
          fi~
 
11920
          $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'
 
11921
        else
 
11922
          ld_shlibs_CXX=no
 
11923
        fi
 
11924
        ;;
 
11925
      darwin* | rhapsody*)
 
11926
 
 
11927
 
 
11928
  archive_cmds_need_lc_CXX=no
 
11929
  hardcode_direct_CXX=no
 
11930
  hardcode_automatic_CXX=yes
 
11931
  hardcode_shlibpath_var_CXX=unsupported
 
11932
  whole_archive_flag_spec_CXX=''
 
11933
  link_all_deplibs_CXX=yes
 
11934
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11935
  case $cc_basename in
 
11936
     ifort*) _lt_dar_can_shared=yes ;;
 
11937
     *) _lt_dar_can_shared=$GCC ;;
 
11938
  esac
 
11939
  if test "$_lt_dar_can_shared" = "yes"; then
 
11940
    output_verbose_link_cmd=echo
 
11941
    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}"
 
11942
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11943
    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}"
 
11944
    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}"
 
11945
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11946
      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}"
 
11947
      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}"
 
11948
    fi
 
11949
 
 
11950
  else
 
11951
  ld_shlibs_CXX=no
 
11952
  fi
 
11953
 
 
11954
        ;;
 
11955
 
 
11956
      dgux*)
 
11957
        case $cc_basename in
 
11958
          ec++*)
 
11959
            # FIXME: insert proper C++ library support
 
11960
            ld_shlibs_CXX=no
 
11961
            ;;
 
11962
          ghcx*)
 
11963
            # Green Hills C++ Compiler
 
11964
            # FIXME: insert proper C++ library support
 
11965
            ld_shlibs_CXX=no
 
11966
            ;;
 
11967
          *)
 
11968
            # FIXME: insert proper C++ library support
 
11969
            ld_shlibs_CXX=no
 
11970
            ;;
 
11971
        esac
 
11972
        ;;
 
11973
 
 
11974
      freebsd[12]*)
 
11975
        # C++ shared libraries reported to be fairly broken before
 
11976
        # switch to ELF
 
11977
        ld_shlibs_CXX=no
 
11978
        ;;
 
11979
 
 
11980
      freebsd-elf*)
 
11981
        archive_cmds_need_lc_CXX=no
 
11982
        ;;
 
11983
 
 
11984
      freebsd* | dragonfly*)
 
11985
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11986
        # conventions
 
11987
        ld_shlibs_CXX=yes
 
11988
        ;;
 
11989
 
 
11990
      gnu*)
 
11991
        ;;
 
11992
 
 
11993
      hpux9*)
 
11994
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11995
        hardcode_libdir_separator_CXX=:
 
11996
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11997
        hardcode_direct_CXX=yes
 
11998
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11999
                                             # but as the default
 
12000
                                             # location of the library.
 
12001
 
 
12002
        case $cc_basename in
 
12003
          CC*)
 
12004
            # FIXME: insert proper C++ library support
 
12005
            ld_shlibs_CXX=no
 
12006
            ;;
 
12007
          aCC*)
 
12008
            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'
 
12009
            # Commands to make compiler produce verbose output that lists
 
12010
            # what "hidden" libraries, object files and flags are used when
 
12011
            # linking a shared library.
 
12012
            #
 
12013
            # There doesn't appear to be a way to prevent this compiler from
 
12014
            # explicitly linking system object files so we need to strip them
 
12015
            # from the output so that they don't get included in the library
 
12016
            # dependencies.
 
12017
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12018
            ;;
 
12019
          *)
 
12020
            if test "$GXX" = yes; then
 
12021
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12022
            else
 
12023
              # FIXME: insert proper C++ library support
 
12024
              ld_shlibs_CXX=no
 
12025
            fi
 
12026
            ;;
 
12027
        esac
 
12028
        ;;
 
12029
 
 
12030
      hpux10*|hpux11*)
 
12031
        if test $with_gnu_ld = no; then
 
12032
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12033
          hardcode_libdir_separator_CXX=:
 
12034
 
 
12035
          case $host_cpu in
 
12036
            hppa*64*|ia64*)
 
12037
              ;;
 
12038
            *)
 
12039
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12040
              ;;
 
12041
          esac
 
12042
        fi
 
12043
        case $host_cpu in
 
12044
          hppa*64*|ia64*)
 
12045
            hardcode_direct_CXX=no
 
12046
            hardcode_shlibpath_var_CXX=no
 
12047
            ;;
 
12048
          *)
 
12049
            hardcode_direct_CXX=yes
 
12050
            hardcode_direct_absolute_CXX=yes
 
12051
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12052
                                                 # but as the default
 
12053
                                                 # location of the library.
 
12054
            ;;
 
12055
        esac
 
12056
 
 
12057
        case $cc_basename in
 
12058
          CC*)
 
12059
            # FIXME: insert proper C++ library support
 
12060
            ld_shlibs_CXX=no
 
12061
            ;;
 
12062
          aCC*)
 
12063
            case $host_cpu in
 
12064
              hppa*64*)
 
12065
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12066
                ;;
 
12067
              ia64*)
 
12068
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12069
                ;;
 
12070
              *)
 
12071
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12072
                ;;
 
12073
            esac
 
12074
            # Commands to make compiler produce verbose output that lists
 
12075
            # what "hidden" libraries, object files and flags are used when
 
12076
            # linking a shared library.
 
12077
            #
 
12078
            # There doesn't appear to be a way to prevent this compiler from
 
12079
            # explicitly linking system object files so we need to strip them
 
12080
            # from the output so that they don't get included in the library
 
12081
            # dependencies.
 
12082
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12083
            ;;
 
12084
          *)
 
12085
            if test "$GXX" = yes; then
 
12086
              if test $with_gnu_ld = no; then
 
12087
                case $host_cpu in
 
12088
                  hppa*64*)
 
12089
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12090
                    ;;
 
12091
                  ia64*)
 
12092
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12093
                    ;;
 
12094
                  *)
 
12095
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12096
                    ;;
 
12097
                esac
 
12098
              fi
 
12099
            else
 
12100
              # FIXME: insert proper C++ library support
 
12101
              ld_shlibs_CXX=no
 
12102
            fi
 
12103
            ;;
 
12104
        esac
 
12105
        ;;
 
12106
 
 
12107
      interix[3-9]*)
 
12108
        hardcode_direct_CXX=no
 
12109
        hardcode_shlibpath_var_CXX=no
 
12110
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12111
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12112
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12113
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12114
        # default) and relocated if they conflict, which is a slow very memory
 
12115
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12116
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12117
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12118
        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'
 
12119
        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'
 
12120
        ;;
 
12121
      irix5* | irix6*)
 
12122
        case $cc_basename in
 
12123
          CC*)
 
12124
            # SGI C++
 
12125
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12126
 
 
12127
            # Archives containing C++ object files must be created using
 
12128
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12129
            # necessary to make sure instantiated templates are included
 
12130
            # in the archive.
 
12131
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12132
            ;;
 
12133
          *)
 
12134
            if test "$GXX" = yes; then
 
12135
              if test "$with_gnu_ld" = no; then
 
12136
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12137
              else
 
12138
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
12139
              fi
 
12140
            fi
 
12141
            link_all_deplibs_CXX=yes
 
12142
            ;;
 
12143
        esac
 
12144
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12145
        hardcode_libdir_separator_CXX=:
 
12146
        inherit_rpath_CXX=yes
 
12147
        ;;
 
12148
 
 
12149
      linux* | k*bsd*-gnu)
 
12150
        case $cc_basename in
 
12151
          KCC*)
 
12152
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12153
 
 
12154
            # KCC will only create a shared library if the output file
 
12155
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12156
            # to its proper name (with version) after linking.
 
12157
            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'
 
12158
            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'
 
12159
            # Commands to make compiler produce verbose output that lists
 
12160
            # what "hidden" libraries, object files and flags are used when
 
12161
            # linking a shared library.
 
12162
            #
 
12163
            # There doesn't appear to be a way to prevent this compiler from
 
12164
            # explicitly linking system object files so we need to strip them
 
12165
            # from the output so that they don't get included in the library
 
12166
            # dependencies.
 
12167
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12168
 
 
12169
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12170
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12171
 
 
12172
            # Archives containing C++ object files must be created using
 
12173
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12174
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12175
            ;;
 
12176
          icpc* | ecpc* )
 
12177
            # Intel C++
 
12178
            with_gnu_ld=yes
 
12179
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12180
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12181
            # earlier do not add the objects themselves.
 
12182
            case `$CC -V 2>&1` in
 
12183
              *"Version 7."*)
 
12184
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12185
                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'
 
12186
                ;;
 
12187
              *)  # Version 8.0 or newer
 
12188
                tmp_idyn=
 
12189
                case $host_cpu in
 
12190
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12191
                esac
 
12192
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12193
                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'
 
12194
                ;;
 
12195
            esac
 
12196
            archive_cmds_need_lc_CXX=no
 
12197
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12198
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12199
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12200
            ;;
 
12201
          pgCC* | pgcpp*)
 
12202
            # Portland Group C++ compiler
 
12203
            case `$CC -V` in
 
12204
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
12205
              prelink_cmds_CXX='tpldir=Template.dir~
 
12206
                rm -rf $tpldir~
 
12207
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12208
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
12209
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12210
                rm -rf $tpldir~
 
12211
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12212
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
12213
                $RANLIB $oldlib'
 
12214
              archive_cmds_CXX='tpldir=Template.dir~
 
12215
                rm -rf $tpldir~
 
12216
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12217
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12218
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12219
                rm -rf $tpldir~
 
12220
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12221
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12222
              ;;
 
12223
            *) # Version 6 will use weak symbols
 
12224
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12225
              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'
 
12226
              ;;
 
12227
            esac
 
12228
 
 
12229
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12230
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12231
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12232
            ;;
 
12233
          cxx*)
 
12234
            # Compaq C++
 
12235
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12236
            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'
 
12237
 
 
12238
            runpath_var=LD_RUN_PATH
 
12239
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12240
            hardcode_libdir_separator_CXX=:
 
12241
 
 
12242
            # Commands to make compiler produce verbose output that lists
 
12243
            # what "hidden" libraries, object files and flags are used when
 
12244
            # linking a shared library.
 
12245
            #
 
12246
            # There doesn't appear to be a way to prevent this compiler from
 
12247
            # explicitly linking system object files so we need to strip them
 
12248
            # from the output so that they don't get included in the library
 
12249
            # dependencies.
 
12250
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12251
            ;;
 
12252
          xl*)
 
12253
            # IBM XL 8.0 on PPC, with GNU ld
 
12254
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12255
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12256
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12257
            if test "x$supports_anon_versioning" = xyes; then
 
12258
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
12259
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12260
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
12261
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12262
            fi
 
12263
            ;;
 
12264
          *)
 
12265
            case `$CC -V 2>&1 | sed 5q` in
 
12266
            *Sun\ C*)
 
12267
              # Sun C++ 5.9
 
12268
              no_undefined_flag_CXX=' -zdefs'
 
12269
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12270
              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'
 
12271
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12272
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
12273
              compiler_needs_object_CXX=yes
 
12274
 
 
12275
              # Not sure whether something based on
 
12276
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12277
              # would be better.
 
12278
              output_verbose_link_cmd='echo'
 
12279
 
 
12280
              # Archives containing C++ object files must be created using
 
12281
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12282
              # necessary to make sure instantiated templates are included
 
12283
              # in the archive.
 
12284
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12285
              ;;
 
12286
            esac
 
12287
            ;;
 
12288
        esac
 
12289
        ;;
 
12290
 
 
12291
      lynxos*)
 
12292
        # FIXME: insert proper C++ library support
 
12293
        ld_shlibs_CXX=no
 
12294
        ;;
 
12295
 
 
12296
      m88k*)
 
12297
        # FIXME: insert proper C++ library support
 
12298
        ld_shlibs_CXX=no
 
12299
        ;;
 
12300
 
 
12301
      mvs*)
 
12302
        case $cc_basename in
 
12303
          cxx*)
 
12304
            # FIXME: insert proper C++ library support
 
12305
            ld_shlibs_CXX=no
 
12306
            ;;
 
12307
          *)
 
12308
            # FIXME: insert proper C++ library support
 
12309
            ld_shlibs_CXX=no
 
12310
            ;;
 
12311
        esac
 
12312
        ;;
 
12313
 
 
12314
      netbsd*)
 
12315
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
12316
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12317
          wlarc=
 
12318
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12319
          hardcode_direct_CXX=yes
 
12320
          hardcode_shlibpath_var_CXX=no
 
12321
        fi
 
12322
        # Workaround some broken pre-1.5 toolchains
 
12323
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12324
        ;;
 
12325
 
 
12326
      *nto* | *qnx*)
 
12327
        ld_shlibs_CXX=yes
 
12328
        ;;
 
12329
 
 
12330
      openbsd2*)
 
12331
        # C++ shared libraries are fairly broken
 
12332
        ld_shlibs_CXX=no
 
12333
        ;;
 
12334
 
 
12335
      openbsd*)
 
12336
        if test -f /usr/libexec/ld.so; then
 
12337
          hardcode_direct_CXX=yes
 
12338
          hardcode_shlibpath_var_CXX=no
 
12339
          hardcode_direct_absolute_CXX=yes
 
12340
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12341
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12342
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12343
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12344
            export_dynamic_flag_spec_CXX='${wl}-E'
 
12345
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12346
          fi
 
12347
          output_verbose_link_cmd=echo
 
12348
        else
 
12349
          ld_shlibs_CXX=no
 
12350
        fi
 
12351
        ;;
 
12352
 
 
12353
      osf3* | osf4* | osf5*)
 
12354
        case $cc_basename in
 
12355
          KCC*)
 
12356
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12357
 
 
12358
            # KCC will only create a shared library if the output file
 
12359
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12360
            # to its proper name (with version) after linking.
 
12361
            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'
 
12362
 
 
12363
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12364
            hardcode_libdir_separator_CXX=:
 
12365
 
 
12366
            # Archives containing C++ object files must be created using
 
12367
            # the KAI C++ compiler.
 
12368
            case $host in
 
12369
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
12370
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
12371
            esac
 
12372
            ;;
 
12373
          RCC*)
 
12374
            # Rational C++ 2.4.1
 
12375
            # FIXME: insert proper C++ library support
 
12376
            ld_shlibs_CXX=no
 
12377
            ;;
 
12378
          cxx*)
 
12379
            case $host in
 
12380
              osf3*)
 
12381
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12382
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12383
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12384
                ;;
 
12385
              *)
 
12386
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12387
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
12388
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12389
                  echo "-hidden">> $lib.exp~
 
12390
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
12391
                  $RM $lib.exp'
 
12392
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12393
                ;;
 
12394
            esac
 
12395
 
 
12396
            hardcode_libdir_separator_CXX=:
 
12397
 
 
12398
            # Commands to make compiler produce verbose output that lists
 
12399
            # what "hidden" libraries, object files and flags are used when
 
12400
            # linking a shared library.
 
12401
            #
 
12402
            # There doesn't appear to be a way to prevent this compiler from
 
12403
            # explicitly linking system object files so we need to strip them
 
12404
            # from the output so that they don't get included in the library
 
12405
            # dependencies.
 
12406
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
12407
            ;;
 
12408
          *)
 
12409
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12410
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12411
              case $host in
 
12412
                osf3*)
 
12413
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12414
                  ;;
 
12415
                *)
 
12416
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12417
                  ;;
 
12418
              esac
 
12419
 
 
12420
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12421
              hardcode_libdir_separator_CXX=:
 
12422
 
 
12423
              # Commands to make compiler produce verbose output that lists
 
12424
              # what "hidden" libraries, object files and flags are used when
 
12425
              # linking a shared library.
 
12426
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12427
 
 
12428
            else
 
12429
              # FIXME: insert proper C++ library support
 
12430
              ld_shlibs_CXX=no
 
12431
            fi
 
12432
            ;;
 
12433
        esac
 
12434
        ;;
 
12435
 
 
12436
      psos*)
 
12437
        # FIXME: insert proper C++ library support
 
12438
        ld_shlibs_CXX=no
 
12439
        ;;
 
12440
 
 
12441
      sunos4*)
 
12442
        case $cc_basename in
 
12443
          CC*)
 
12444
            # Sun C++ 4.x
 
12445
            # FIXME: insert proper C++ library support
 
12446
            ld_shlibs_CXX=no
 
12447
            ;;
 
12448
          lcc*)
 
12449
            # Lucid
 
12450
            # FIXME: insert proper C++ library support
 
12451
            ld_shlibs_CXX=no
 
12452
            ;;
 
12453
          *)
 
12454
            # FIXME: insert proper C++ library support
 
12455
            ld_shlibs_CXX=no
 
12456
            ;;
 
12457
        esac
 
12458
        ;;
 
12459
 
 
12460
      solaris*)
 
12461
        case $cc_basename in
 
12462
          CC*)
 
12463
            # Sun C++ 4.2, 5.x and Centerline C++
 
12464
            archive_cmds_need_lc_CXX=yes
 
12465
            no_undefined_flag_CXX=' -zdefs'
 
12466
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12467
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12468
              $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'
 
12469
 
 
12470
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12471
            hardcode_shlibpath_var_CXX=no
 
12472
            case $host_os in
 
12473
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12474
              *)
 
12475
                # The compiler driver will combine and reorder linker options,
 
12476
                # but understands `-z linker_flag'.
 
12477
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12478
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12479
                ;;
 
12480
            esac
 
12481
            link_all_deplibs_CXX=yes
 
12482
 
 
12483
            output_verbose_link_cmd='echo'
 
12484
 
 
12485
            # Archives containing C++ object files must be created using
 
12486
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12487
            # necessary to make sure instantiated templates are included
 
12488
            # in the archive.
 
12489
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12490
            ;;
 
12491
          gcx*)
 
12492
            # Green Hills C++ Compiler
 
12493
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12494
 
 
12495
            # The C++ compiler must be used to create the archive.
 
12496
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12497
            ;;
 
12498
          *)
 
12499
            # GNU C++ compiler with Solaris linker
 
12500
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12501
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12502
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
12503
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12504
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12505
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12506
 
 
12507
                # Commands to make compiler produce verbose output that lists
 
12508
                # what "hidden" libraries, object files and flags are used when
 
12509
                # linking a shared library.
 
12510
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12511
              else
 
12512
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12513
                # platform.
 
12514
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12515
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
12516
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
12517
 
 
12518
                # Commands to make compiler produce verbose output that lists
 
12519
                # what "hidden" libraries, object files and flags are used when
 
12520
                # linking a shared library.
 
12521
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
12522
              fi
 
12523
 
 
12524
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12525
              case $host_os in
 
12526
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12527
                *)
 
12528
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12529
                  ;;
 
12530
              esac
 
12531
            fi
 
12532
            ;;
 
12533
        esac
 
12534
        ;;
 
12535
 
 
12536
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12537
      no_undefined_flag_CXX='${wl}-z,text'
 
12538
      archive_cmds_need_lc_CXX=no
 
12539
      hardcode_shlibpath_var_CXX=no
 
12540
      runpath_var='LD_RUN_PATH'
 
12541
 
 
12542
      case $cc_basename in
 
12543
        CC*)
 
12544
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12545
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12546
          ;;
 
12547
        *)
 
12548
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12549
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12550
          ;;
 
12551
      esac
 
12552
      ;;
 
12553
 
 
12554
      sysv5* | sco3.2v5* | sco5v6*)
 
12555
        # Note: We can NOT use -z defs as we might desire, because we do not
 
12556
        # link with -lc, and that would cause any symbols used from libc to
 
12557
        # always be unresolved, which means just about no library would
 
12558
        # ever link correctly.  If we're not using GNU ld we use -z text
 
12559
        # though, which does catch some bad symbols but isn't as heavy-handed
 
12560
        # as -z defs.
 
12561
        no_undefined_flag_CXX='${wl}-z,text'
 
12562
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12563
        archive_cmds_need_lc_CXX=no
 
12564
        hardcode_shlibpath_var_CXX=no
 
12565
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
12566
        hardcode_libdir_separator_CXX=':'
 
12567
        link_all_deplibs_CXX=yes
 
12568
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12569
        runpath_var='LD_RUN_PATH'
 
12570
 
 
12571
        case $cc_basename in
 
12572
          CC*)
 
12573
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12574
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12575
            ;;
 
12576
          *)
 
12577
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12578
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12579
            ;;
 
12580
        esac
 
12581
      ;;
 
12582
 
 
12583
      tandem*)
 
12584
        case $cc_basename in
 
12585
          NCC*)
 
12586
            # NonStop-UX NCC 3.20
 
12587
            # FIXME: insert proper C++ library support
 
12588
            ld_shlibs_CXX=no
 
12589
            ;;
 
12590
          *)
 
12591
            # FIXME: insert proper C++ library support
 
12592
            ld_shlibs_CXX=no
 
12593
            ;;
 
12594
        esac
 
12595
        ;;
 
12596
 
 
12597
      vxworks*)
 
12598
        # FIXME: insert proper C++ library support
 
12599
        ld_shlibs_CXX=no
 
12600
        ;;
 
12601
 
 
12602
      *)
 
12603
        # FIXME: insert proper C++ library support
 
12604
        ld_shlibs_CXX=no
 
12605
        ;;
 
12606
    esac
 
12607
 
 
12608
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
12609
$as_echo "$ld_shlibs_CXX" >&6; }
 
12610
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12611
 
 
12612
    GCC_CXX="$GXX"
 
12613
    LD_CXX="$LD"
 
12614
 
 
12615
    ## CAVEAT EMPTOR:
 
12616
    ## There is no encapsulation within the following macros, do not change
 
12617
    ## the running order or otherwise move them around unless you know exactly
 
12618
    ## what you are doing...
 
12619
    # Dependencies to place before and after the object being linked:
 
12620
predep_objects_CXX=
 
12621
postdep_objects_CXX=
 
12622
predeps_CXX=
 
12623
postdeps_CXX=
 
12624
compiler_lib_search_path_CXX=
 
12625
 
 
12626
cat > conftest.$ac_ext <<_LT_EOF
 
12627
class Foo
 
12628
{
 
12629
public:
 
12630
  Foo (void) { a = 0; }
 
12631
private:
 
12632
  int a;
 
12633
};
 
12634
_LT_EOF
 
12635
 
 
12636
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
12637
  (eval $ac_compile) 2>&5
 
12638
  ac_status=$?
 
12639
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12640
  test $ac_status = 0; }; then
 
12641
  # Parse the compiler output and extract the necessary
 
12642
  # objects, libraries and library flags.
 
12643
 
 
12644
  # Sentinel used to keep track of whether or not we are before
 
12645
  # the conftest object file.
 
12646
  pre_test_object_deps_done=no
 
12647
 
 
12648
  for p in `eval "$output_verbose_link_cmd"`; do
 
12649
    case $p in
 
12650
 
 
12651
    -L* | -R* | -l*)
 
12652
       # Some compilers place space between "-{L,R}" and the path.
 
12653
       # Remove the space.
 
12654
       if test $p = "-L" ||
 
12655
          test $p = "-R"; then
 
12656
         prev=$p
 
12657
         continue
 
12658
       else
 
12659
         prev=
 
12660
       fi
 
12661
 
 
12662
       if test "$pre_test_object_deps_done" = no; then
 
12663
         case $p in
 
12664
         -L* | -R*)
 
12665
           # Internal compiler library paths should come after those
 
12666
           # provided the user.  The postdeps already come after the
 
12667
           # user supplied libs so there is no need to process them.
 
12668
           if test -z "$compiler_lib_search_path_CXX"; then
 
12669
             compiler_lib_search_path_CXX="${prev}${p}"
 
12670
           else
 
12671
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12672
           fi
 
12673
           ;;
 
12674
         # The "-l" case would never come before the object being
 
12675
         # linked, so don't bother handling this case.
 
12676
         esac
 
12677
       else
 
12678
         if test -z "$postdeps_CXX"; then
 
12679
           postdeps_CXX="${prev}${p}"
 
12680
         else
 
12681
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12682
         fi
 
12683
       fi
 
12684
       ;;
 
12685
 
 
12686
    *.$objext)
 
12687
       # This assumes that the test object file only shows up
 
12688
       # once in the compiler output.
 
12689
       if test "$p" = "conftest.$objext"; then
 
12690
         pre_test_object_deps_done=yes
 
12691
         continue
 
12692
       fi
 
12693
 
 
12694
       if test "$pre_test_object_deps_done" = no; then
 
12695
         if test -z "$predep_objects_CXX"; then
 
12696
           predep_objects_CXX="$p"
 
12697
         else
 
12698
           predep_objects_CXX="$predep_objects_CXX $p"
 
12699
         fi
 
12700
       else
 
12701
         if test -z "$postdep_objects_CXX"; then
 
12702
           postdep_objects_CXX="$p"
 
12703
         else
 
12704
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12705
         fi
 
12706
       fi
 
12707
       ;;
 
12708
 
 
12709
    *) ;; # Ignore the rest.
 
12710
 
 
12711
    esac
 
12712
  done
 
12713
 
 
12714
  # Clean up.
 
12715
  rm -f a.out a.exe
 
12716
else
 
12717
  echo "libtool.m4: error: problem compiling CXX test program"
 
12718
fi
 
12719
 
 
12720
$RM -f confest.$objext
 
12721
 
 
12722
# PORTME: override above test on systems where it is broken
 
12723
case $host_os in
 
12724
interix[3-9]*)
 
12725
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12726
  # hack all around it, let's just trust "g++" to DTRT.
 
12727
  predep_objects_CXX=
 
12728
  postdep_objects_CXX=
 
12729
  postdeps_CXX=
 
12730
  ;;
 
12731
 
 
12732
linux*)
 
12733
  case `$CC -V 2>&1 | sed 5q` in
 
12734
  *Sun\ C*)
 
12735
    # Sun C++ 5.9
 
12736
 
 
12737
    # The more standards-conforming stlport4 library is
 
12738
    # incompatible with the Cstd library. Avoid specifying
 
12739
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12740
    # -library=stlport4 depends on it.
 
12741
    case " $CXX $CXXFLAGS " in
 
12742
    *" -library=stlport4 "*)
 
12743
      solaris_use_stlport4=yes
 
12744
      ;;
 
12745
    esac
 
12746
 
 
12747
    if test "$solaris_use_stlport4" != yes; then
 
12748
      postdeps_CXX='-library=Cstd -library=Crun'
 
12749
    fi
 
12750
    ;;
 
12751
  esac
 
12752
  ;;
 
12753
 
 
12754
solaris*)
 
12755
  case $cc_basename in
 
12756
  CC*)
 
12757
    # The more standards-conforming stlport4 library is
 
12758
    # incompatible with the Cstd library. Avoid specifying
 
12759
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12760
    # -library=stlport4 depends on it.
 
12761
    case " $CXX $CXXFLAGS " in
 
12762
    *" -library=stlport4 "*)
 
12763
      solaris_use_stlport4=yes
 
12764
      ;;
 
12765
    esac
 
12766
 
 
12767
    # Adding this requires a known-good setup of shared libraries for
 
12768
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12769
    # archive will be linked into the output, leading to subtle bugs.
 
12770
    if test "$solaris_use_stlport4" != yes; then
 
12771
      postdeps_CXX='-library=Cstd -library=Crun'
 
12772
    fi
 
12773
    ;;
 
12774
  esac
 
12775
  ;;
 
12776
esac
 
12777
 
 
12778
 
 
12779
case " $postdeps_CXX " in
 
12780
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12781
esac
 
12782
 compiler_lib_search_dirs_CXX=
 
12783
if test -n "${compiler_lib_search_path_CXX}"; then
 
12784
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12785
fi
 
12786
 
 
12787
 
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
 
 
12793
 
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
 
 
12800
 
 
12801
 
 
12802
 
 
12803
 
 
12804
 
 
12805
 
 
12806
 
 
12807
 
 
12808
 
 
12809
 
 
12810
 
 
12811
 
 
12812
 
 
12813
 
 
12814
 
 
12815
 
 
12816
 
 
12817
    lt_prog_compiler_wl_CXX=
 
12818
lt_prog_compiler_pic_CXX=
 
12819
lt_prog_compiler_static_CXX=
 
12820
 
 
12821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
12822
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12823
 
 
12824
  # C++ specific cases for pic, static, wl, etc.
 
12825
  if test "$GXX" = yes; then
 
12826
    lt_prog_compiler_wl_CXX='-Wl,'
 
12827
    lt_prog_compiler_static_CXX='-static'
 
12828
 
 
12829
    case $host_os in
 
12830
    aix*)
 
12831
      # All AIX code is PIC.
 
12832
      if test "$host_cpu" = ia64; then
 
12833
        # AIX 5 now supports IA64 processor
 
12834
        lt_prog_compiler_static_CXX='-Bstatic'
 
12835
      fi
 
12836
      ;;
 
12837
 
 
12838
    amigaos*)
 
12839
      case $host_cpu in
 
12840
      powerpc)
 
12841
            # see comment about AmigaOS4 .so support
 
12842
            lt_prog_compiler_pic_CXX='-fPIC'
 
12843
        ;;
 
12844
      m68k)
 
12845
            # FIXME: we need at least 68020 code to build shared libraries, but
 
12846
            # adding the `-m68020' flag to GCC prevents building anything better,
 
12847
            # like `-m68040'.
 
12848
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12849
        ;;
 
12850
      esac
 
12851
      ;;
 
12852
 
 
12853
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12854
      # PIC is the default for these OSes.
 
12855
      ;;
 
12856
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
12857
      # This hack is so that the source file can tell whether it is being
 
12858
      # built for inclusion in a dll (and should export symbols for example).
 
12859
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12860
      # (--disable-auto-import) libraries
 
12861
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12862
      ;;
 
12863
    darwin* | rhapsody*)
 
12864
      # PIC is the default on this platform
 
12865
      # Common symbols not allowed in MH_DYLIB files
 
12866
      lt_prog_compiler_pic_CXX='-fno-common'
 
12867
      ;;
 
12868
    *djgpp*)
 
12869
      # DJGPP does not support shared libraries at all
 
12870
      lt_prog_compiler_pic_CXX=
 
12871
      ;;
 
12872
    interix[3-9]*)
 
12873
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12874
      # Instead, we relocate shared libraries at runtime.
 
12875
      ;;
 
12876
    sysv4*MP*)
 
12877
      if test -d /usr/nec; then
 
12878
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12879
      fi
 
12880
      ;;
 
12881
    hpux*)
 
12882
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
12883
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
12884
      # sets the default TLS model and affects inlining.
 
12885
      case $host_cpu in
 
12886
      hppa*64*)
 
12887
        ;;
 
12888
      *)
 
12889
        lt_prog_compiler_pic_CXX='-fPIC'
 
12890
        ;;
 
12891
      esac
 
12892
      ;;
 
12893
    *qnx* | *nto*)
 
12894
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
12895
      # it will coredump.
 
12896
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
12897
      ;;
 
12898
    *)
 
12899
      lt_prog_compiler_pic_CXX='-fPIC'
 
12900
      ;;
 
12901
    esac
 
12902
  else
 
12903
    case $host_os in
 
12904
      aix[4-9]*)
 
12905
        # All AIX code is PIC.
 
12906
        if test "$host_cpu" = ia64; then
 
12907
          # AIX 5 now supports IA64 processor
 
12908
          lt_prog_compiler_static_CXX='-Bstatic'
 
12909
        else
 
12910
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12911
        fi
 
12912
        ;;
 
12913
      chorus*)
 
12914
        case $cc_basename in
 
12915
        cxch68*)
 
12916
          # Green Hills C++ Compiler
 
12917
          # _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"
 
12918
          ;;
 
12919
        esac
 
12920
        ;;
 
12921
      dgux*)
 
12922
        case $cc_basename in
 
12923
          ec++*)
 
12924
            lt_prog_compiler_pic_CXX='-KPIC'
 
12925
            ;;
 
12926
          ghcx*)
 
12927
            # Green Hills C++ Compiler
 
12928
            lt_prog_compiler_pic_CXX='-pic'
 
12929
            ;;
 
12930
          *)
 
12931
            ;;
 
12932
        esac
 
12933
        ;;
 
12934
      freebsd* | dragonfly*)
 
12935
        # FreeBSD uses GNU C++
 
12936
        ;;
 
12937
      hpux9* | hpux10* | hpux11*)
 
12938
        case $cc_basename in
 
12939
          CC*)
 
12940
            lt_prog_compiler_wl_CXX='-Wl,'
 
12941
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12942
            if test "$host_cpu" != ia64; then
 
12943
              lt_prog_compiler_pic_CXX='+Z'
 
12944
            fi
 
12945
            ;;
 
12946
          aCC*)
 
12947
            lt_prog_compiler_wl_CXX='-Wl,'
 
12948
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12949
            case $host_cpu in
 
12950
            hppa*64*|ia64*)
 
12951
              # +Z the default
 
12952
              ;;
 
12953
            *)
 
12954
              lt_prog_compiler_pic_CXX='+Z'
 
12955
              ;;
 
12956
            esac
 
12957
            ;;
 
12958
          *)
 
12959
            ;;
 
12960
        esac
 
12961
        ;;
 
12962
      interix*)
 
12963
        # This is c89, which is MS Visual C++ (no shared libs)
 
12964
        # Anyone wants to do a port?
 
12965
        ;;
 
12966
      irix5* | irix6* | nonstopux*)
 
12967
        case $cc_basename in
 
12968
          CC*)
 
12969
            lt_prog_compiler_wl_CXX='-Wl,'
 
12970
            lt_prog_compiler_static_CXX='-non_shared'
 
12971
            # CC pic flag -KPIC is the default.
 
12972
            ;;
 
12973
          *)
 
12974
            ;;
 
12975
        esac
 
12976
        ;;
 
12977
      linux* | k*bsd*-gnu)
 
12978
        case $cc_basename in
 
12979
          KCC*)
 
12980
            # KAI C++ Compiler
 
12981
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12982
            lt_prog_compiler_pic_CXX='-fPIC'
 
12983
            ;;
 
12984
          ecpc* )
 
12985
            # old Intel C++ for x86_64 which still supported -KPIC.
 
12986
            lt_prog_compiler_wl_CXX='-Wl,'
 
12987
            lt_prog_compiler_pic_CXX='-KPIC'
 
12988
            lt_prog_compiler_static_CXX='-static'
 
12989
            ;;
 
12990
          icpc* )
 
12991
            # Intel C++, used to be incompatible with GCC.
 
12992
            # ICC 10 doesn't accept -KPIC any more.
 
12993
            lt_prog_compiler_wl_CXX='-Wl,'
 
12994
            lt_prog_compiler_pic_CXX='-fPIC'
 
12995
            lt_prog_compiler_static_CXX='-static'
 
12996
            ;;
 
12997
          pgCC* | pgcpp*)
 
12998
            # Portland Group C++ compiler
 
12999
            lt_prog_compiler_wl_CXX='-Wl,'
 
13000
            lt_prog_compiler_pic_CXX='-fpic'
 
13001
            lt_prog_compiler_static_CXX='-Bstatic'
 
13002
            ;;
 
13003
          cxx*)
 
13004
            # Compaq C++
 
13005
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13006
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13007
            lt_prog_compiler_pic_CXX=
 
13008
            lt_prog_compiler_static_CXX='-non_shared'
 
13009
            ;;
 
13010
          xlc* | xlC*)
 
13011
            # IBM XL 8.0 on PPC
 
13012
            lt_prog_compiler_wl_CXX='-Wl,'
 
13013
            lt_prog_compiler_pic_CXX='-qpic'
 
13014
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13015
            ;;
 
13016
          *)
 
13017
            case `$CC -V 2>&1 | sed 5q` in
 
13018
            *Sun\ C*)
 
13019
              # Sun C++ 5.9
 
13020
              lt_prog_compiler_pic_CXX='-KPIC'
 
13021
              lt_prog_compiler_static_CXX='-Bstatic'
 
13022
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13023
              ;;
 
13024
            esac
 
13025
            ;;
 
13026
        esac
 
13027
        ;;
 
13028
      lynxos*)
 
13029
        ;;
 
13030
      m88k*)
 
13031
        ;;
 
13032
      mvs*)
 
13033
        case $cc_basename in
 
13034
          cxx*)
 
13035
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13036
            ;;
 
13037
          *)
 
13038
            ;;
 
13039
        esac
 
13040
        ;;
 
13041
      netbsd* | netbsdelf*-gnu)
 
13042
        ;;
 
13043
      *qnx* | *nto*)
 
13044
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13045
        # it will coredump.
 
13046
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13047
        ;;
 
13048
      osf3* | osf4* | osf5*)
 
13049
        case $cc_basename in
 
13050
          KCC*)
 
13051
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13052
            ;;
 
13053
          RCC*)
 
13054
            # Rational C++ 2.4.1
 
13055
            lt_prog_compiler_pic_CXX='-pic'
 
13056
            ;;
 
13057
          cxx*)
 
13058
            # Digital/Compaq C++
 
13059
            lt_prog_compiler_wl_CXX='-Wl,'
 
13060
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13061
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13062
            lt_prog_compiler_pic_CXX=
 
13063
            lt_prog_compiler_static_CXX='-non_shared'
 
13064
            ;;
 
13065
          *)
 
13066
            ;;
 
13067
        esac
 
13068
        ;;
 
13069
      psos*)
 
13070
        ;;
 
13071
      solaris*)
 
13072
        case $cc_basename in
 
13073
          CC*)
 
13074
            # Sun C++ 4.2, 5.x and Centerline C++
 
13075
            lt_prog_compiler_pic_CXX='-KPIC'
 
13076
            lt_prog_compiler_static_CXX='-Bstatic'
 
13077
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13078
            ;;
 
13079
          gcx*)
 
13080
            # Green Hills C++ Compiler
 
13081
            lt_prog_compiler_pic_CXX='-PIC'
 
13082
            ;;
 
13083
          *)
 
13084
            ;;
 
13085
        esac
 
13086
        ;;
 
13087
      sunos4*)
 
13088
        case $cc_basename in
 
13089
          CC*)
 
13090
            # Sun C++ 4.x
 
13091
            lt_prog_compiler_pic_CXX='-pic'
 
13092
            lt_prog_compiler_static_CXX='-Bstatic'
 
13093
            ;;
 
13094
          lcc*)
 
13095
            # Lucid
 
13096
            lt_prog_compiler_pic_CXX='-pic'
 
13097
            ;;
 
13098
          *)
 
13099
            ;;
 
13100
        esac
 
13101
        ;;
 
13102
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13103
        case $cc_basename in
 
13104
          CC*)
 
13105
            lt_prog_compiler_wl_CXX='-Wl,'
 
13106
            lt_prog_compiler_pic_CXX='-KPIC'
 
13107
            lt_prog_compiler_static_CXX='-Bstatic'
 
13108
            ;;
 
13109
        esac
 
13110
        ;;
 
13111
      tandem*)
 
13112
        case $cc_basename in
 
13113
          NCC*)
 
13114
            # NonStop-UX NCC 3.20
 
13115
            lt_prog_compiler_pic_CXX='-KPIC'
 
13116
            ;;
 
13117
          *)
 
13118
            ;;
 
13119
        esac
 
13120
        ;;
 
13121
      vxworks*)
 
13122
        ;;
 
13123
      *)
 
13124
        lt_prog_compiler_can_build_shared_CXX=no
 
13125
        ;;
 
13126
    esac
 
13127
  fi
 
13128
 
 
13129
case $host_os in
 
13130
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13131
  *djgpp*)
 
13132
    lt_prog_compiler_pic_CXX=
 
13133
    ;;
 
13134
  *)
 
13135
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13136
    ;;
 
13137
esac
 
13138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
 
13139
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13140
 
 
13141
 
 
13142
 
 
13143
#
 
13144
# Check to make sure the PIC flag actually works.
 
13145
#
 
13146
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13147
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13148
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13149
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
13150
  $as_echo_n "(cached) " >&6
 
13151
else
 
13152
  lt_cv_prog_compiler_pic_works_CXX=no
 
13153
   ac_outfile=conftest.$ac_objext
 
13154
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13155
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13156
   # Insert the option either (1) after the last *FLAGS variable, or
 
13157
   # (2) before a word containing "conftest.", or (3) at the end.
 
13158
   # Note that $ac_compile itself does not contain backslashes and begins
 
13159
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13160
   # The option is referenced via a variable to avoid confusing sed.
 
13161
   lt_compile=`echo "$ac_compile" | $SED \
 
13162
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13163
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13164
   -e 's:$: $lt_compiler_flag:'`
 
13165
   (eval echo "\"\$as_me:13165: $lt_compile\"" >&5)
 
13166
   (eval "$lt_compile" 2>conftest.err)
 
13167
   ac_status=$?
 
13168
   cat conftest.err >&5
 
13169
   echo "$as_me:13169: \$? = $ac_status" >&5
 
13170
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13171
     # The compiler can only warn and ignore the option if not recognized
 
13172
     # So say no if there are warnings other than the usual output.
 
13173
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13174
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13175
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13176
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13177
     fi
 
13178
   fi
 
13179
   $RM conftest*
 
13180
 
 
13181
fi
 
13182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13183
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13184
 
 
13185
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13186
    case $lt_prog_compiler_pic_CXX in
 
13187
     "" | " "*) ;;
 
13188
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13189
     esac
 
13190
else
 
13191
    lt_prog_compiler_pic_CXX=
 
13192
     lt_prog_compiler_can_build_shared_CXX=no
 
13193
fi
 
13194
 
 
13195
fi
 
13196
 
 
13197
 
 
13198
 
 
13199
#
 
13200
# Check to make sure the static flag actually works.
 
13201
#
 
13202
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13204
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13205
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
13206
  $as_echo_n "(cached) " >&6
 
13207
else
 
13208
  lt_cv_prog_compiler_static_works_CXX=no
 
13209
   save_LDFLAGS="$LDFLAGS"
 
13210
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13211
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13212
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13213
     # The linker can only warn and ignore the option if not recognized
 
13214
     # So say no if there are warnings
 
13215
     if test -s conftest.err; then
 
13216
       # Append any errors to the config.log.
 
13217
       cat conftest.err 1>&5
 
13218
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13219
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13220
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13221
         lt_cv_prog_compiler_static_works_CXX=yes
 
13222
       fi
 
13223
     else
 
13224
       lt_cv_prog_compiler_static_works_CXX=yes
 
13225
     fi
 
13226
   fi
 
13227
   $RM -r conftest*
 
13228
   LDFLAGS="$save_LDFLAGS"
 
13229
 
 
13230
fi
 
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13232
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13233
 
 
13234
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13235
    :
 
13236
else
 
13237
    lt_prog_compiler_static_CXX=
 
13238
fi
 
13239
 
 
13240
 
 
13241
 
 
13242
 
 
13243
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13244
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13245
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
13246
  $as_echo_n "(cached) " >&6
 
13247
else
 
13248
  lt_cv_prog_compiler_c_o_CXX=no
 
13249
   $RM -r conftest 2>/dev/null
 
13250
   mkdir conftest
 
13251
   cd conftest
 
13252
   mkdir out
 
13253
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13254
 
 
13255
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13256
   # Insert the option either (1) after the last *FLAGS variable, or
 
13257
   # (2) before a word containing "conftest.", or (3) at the end.
 
13258
   # Note that $ac_compile itself does not contain backslashes and begins
 
13259
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13260
   lt_compile=`echo "$ac_compile" | $SED \
 
13261
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13262
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13263
   -e 's:$: $lt_compiler_flag:'`
 
13264
   (eval echo "\"\$as_me:13264: $lt_compile\"" >&5)
 
13265
   (eval "$lt_compile" 2>out/conftest.err)
 
13266
   ac_status=$?
 
13267
   cat out/conftest.err >&5
 
13268
   echo "$as_me:13268: \$? = $ac_status" >&5
 
13269
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13270
   then
 
13271
     # The compiler can only warn and ignore the option if not recognized
 
13272
     # So say no if there are warnings
 
13273
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13274
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13275
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13276
       lt_cv_prog_compiler_c_o_CXX=yes
 
13277
     fi
 
13278
   fi
 
13279
   chmod u+w . 2>&5
 
13280
   $RM conftest*
 
13281
   # SGI C++ compiler will create directory out/ii_files/ for
 
13282
   # template instantiation
 
13283
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13284
   $RM out/* && rmdir out
 
13285
   cd ..
 
13286
   $RM -r conftest
 
13287
   $RM conftest*
 
13288
 
 
13289
fi
 
13290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13291
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13292
 
 
13293
 
 
13294
 
 
13295
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13296
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13297
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
13298
  $as_echo_n "(cached) " >&6
 
13299
else
 
13300
  lt_cv_prog_compiler_c_o_CXX=no
 
13301
   $RM -r conftest 2>/dev/null
 
13302
   mkdir conftest
 
13303
   cd conftest
 
13304
   mkdir out
 
13305
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13306
 
 
13307
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13308
   # Insert the option either (1) after the last *FLAGS variable, or
 
13309
   # (2) before a word containing "conftest.", or (3) at the end.
 
13310
   # Note that $ac_compile itself does not contain backslashes and begins
 
13311
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13312
   lt_compile=`echo "$ac_compile" | $SED \
 
13313
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13314
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13315
   -e 's:$: $lt_compiler_flag:'`
 
13316
   (eval echo "\"\$as_me:13316: $lt_compile\"" >&5)
 
13317
   (eval "$lt_compile" 2>out/conftest.err)
 
13318
   ac_status=$?
 
13319
   cat out/conftest.err >&5
 
13320
   echo "$as_me:13320: \$? = $ac_status" >&5
 
13321
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13322
   then
 
13323
     # The compiler can only warn and ignore the option if not recognized
 
13324
     # So say no if there are warnings
 
13325
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13326
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13327
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13328
       lt_cv_prog_compiler_c_o_CXX=yes
 
13329
     fi
 
13330
   fi
 
13331
   chmod u+w . 2>&5
 
13332
   $RM conftest*
 
13333
   # SGI C++ compiler will create directory out/ii_files/ for
 
13334
   # template instantiation
 
13335
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
13336
   $RM out/* && rmdir out
 
13337
   cd ..
 
13338
   $RM -r conftest
 
13339
   $RM conftest*
 
13340
 
 
13341
fi
 
13342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13343
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13344
 
 
13345
 
 
13346
 
 
13347
 
 
13348
hard_links="nottested"
 
13349
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13350
  # do not overwrite the value of need_locks provided by the user
 
13351
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
13352
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13353
  hard_links=yes
 
13354
  $RM conftest*
 
13355
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13356
  touch conftest.a
 
13357
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13358
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
13360
$as_echo "$hard_links" >&6; }
 
13361
  if test "$hard_links" = no; then
 
13362
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13363
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13364
    need_locks=warn
 
13365
  fi
 
13366
else
 
13367
  need_locks=no
 
13368
fi
 
13369
 
 
13370
 
 
13371
 
 
13372
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13373
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13374
 
 
13375
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13376
  case $host_os in
 
13377
  aix[4-9]*)
 
13378
    # If we're using GNU nm, then we don't want the "-C" option.
 
13379
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13380
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
13381
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
13382
    else
 
13383
      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'
 
13384
    fi
 
13385
    ;;
 
13386
  pw32*)
 
13387
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13388
  ;;
 
13389
  cygwin* | mingw* | cegcc*)
 
13390
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
13391
  ;;
 
13392
  linux* | k*bsd*-gnu)
 
13393
    link_all_deplibs_CXX=no
 
13394
  ;;
 
13395
  *)
 
13396
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13397
  ;;
 
13398
  esac
 
13399
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13400
 
 
13401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13402
$as_echo "$ld_shlibs_CXX" >&6; }
 
13403
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13404
 
 
13405
with_gnu_ld_CXX=$with_gnu_ld
 
13406
 
 
13407
 
 
13408
 
 
13409
 
 
13410
 
 
13411
 
 
13412
#
 
13413
# Do we need to explicitly link libc?
 
13414
#
 
13415
case "x$archive_cmds_need_lc_CXX" in
 
13416
x|xyes)
 
13417
  # Assume -lc should be added
 
13418
  archive_cmds_need_lc_CXX=yes
 
13419
 
 
13420
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13421
    case $archive_cmds_CXX in
 
13422
    *'~'*)
 
13423
      # FIXME: we may have to deal with multi-command sequences.
 
13424
      ;;
 
13425
    '$CC '*)
 
13426
      # Test whether the compiler implicitly links with -lc since on some
 
13427
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13428
      # to ld, don't add -lc before -lgcc.
 
13429
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
13430
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13431
      $RM conftest*
 
13432
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13433
 
 
13434
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13435
  (eval $ac_compile) 2>&5
 
13436
  ac_status=$?
 
13437
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13438
  test $ac_status = 0; } 2>conftest.err; then
 
13439
        soname=conftest
 
13440
        lib=conftest
 
13441
        libobjs=conftest.$ac_objext
 
13442
        deplibs=
 
13443
        wl=$lt_prog_compiler_wl_CXX
 
13444
        pic_flag=$lt_prog_compiler_pic_CXX
 
13445
        compiler_flags=-v
 
13446
        linker_flags=-v
 
13447
        verstring=
 
13448
        output_objdir=.
 
13449
        libname=conftest
 
13450
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13451
        allow_undefined_flag_CXX=
 
13452
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
13453
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13454
  ac_status=$?
 
13455
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13456
  test $ac_status = 0; }
 
13457
        then
 
13458
          archive_cmds_need_lc_CXX=no
 
13459
        else
 
13460
          archive_cmds_need_lc_CXX=yes
 
13461
        fi
 
13462
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13463
      else
 
13464
        cat conftest.err 1>&5
 
13465
      fi
 
13466
      $RM conftest*
 
13467
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
 
13468
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13469
      ;;
 
13470
    esac
 
13471
  fi
 
13472
  ;;
 
13473
esac
 
13474
 
 
13475
 
 
13476
 
 
13477
 
 
13478
 
 
13479
 
 
13480
 
 
13481
 
 
13482
 
 
13483
 
 
13484
 
 
13485
 
 
13486
 
 
13487
 
 
13488
 
 
13489
 
 
13490
 
 
13491
 
 
13492
 
 
13493
 
 
13494
 
 
13495
 
 
13496
 
 
13497
 
 
13498
 
 
13499
 
 
13500
 
 
13501
 
 
13502
 
 
13503
 
 
13504
 
 
13505
 
 
13506
 
 
13507
 
 
13508
 
 
13509
 
 
13510
 
 
13511
 
 
13512
 
 
13513
 
 
13514
 
 
13515
 
 
13516
 
 
13517
 
 
13518
 
 
13519
 
 
13520
 
 
13521
 
 
13522
 
 
13523
 
 
13524
 
 
13525
 
 
13526
 
 
13527
 
 
13528
 
 
13529
 
 
13530
 
 
13531
 
 
13532
 
 
13533
 
 
13534
 
 
13535
 
 
13536
 
 
13537
 
 
13538
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
13539
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13540
 
 
13541
library_names_spec=
 
13542
libname_spec='lib$name'
 
13543
soname_spec=
 
13544
shrext_cmds=".so"
 
13545
postinstall_cmds=
 
13546
postuninstall_cmds=
 
13547
finish_cmds=
 
13548
finish_eval=
 
13549
shlibpath_var=
 
13550
shlibpath_overrides_runpath=unknown
 
13551
version_type=none
 
13552
dynamic_linker="$host_os ld.so"
 
13553
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13554
need_lib_prefix=unknown
 
13555
hardcode_into_libs=no
 
13556
 
 
13557
# when you set need_version to no, make sure it does not cause -set_version
 
13558
# flags to be left without arguments
 
13559
need_version=unknown
 
13560
 
 
13561
case $host_os in
 
13562
aix3*)
 
13563
  version_type=linux
 
13564
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13565
  shlibpath_var=LIBPATH
 
13566
 
 
13567
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13568
  soname_spec='${libname}${release}${shared_ext}$major'
 
13569
  ;;
 
13570
 
 
13571
aix[4-9]*)
 
13572
  version_type=linux
 
13573
  need_lib_prefix=no
 
13574
  need_version=no
 
13575
  hardcode_into_libs=yes
 
13576
  if test "$host_cpu" = ia64; then
 
13577
    # AIX 5 supports IA64
 
13578
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13579
    shlibpath_var=LD_LIBRARY_PATH
 
13580
  else
 
13581
    # With GCC up to 2.95.x, collect2 would create an import file
 
13582
    # for dependence libraries.  The import file would start with
 
13583
    # the line `#! .'.  This would cause the generated library to
 
13584
    # depend on `.', always an invalid library.  This was fixed in
 
13585
    # development snapshots of GCC prior to 3.0.
 
13586
    case $host_os in
 
13587
      aix4 | aix4.[01] | aix4.[01].*)
 
13588
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13589
           echo ' yes '
 
13590
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
13591
        :
 
13592
      else
 
13593
        can_build_shared=no
 
13594
      fi
 
13595
      ;;
 
13596
    esac
 
13597
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13598
    # soname into executable. Probably we can add versioning support to
 
13599
    # collect2, so additional links can be useful in future.
 
13600
    if test "$aix_use_runtimelinking" = yes; then
 
13601
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13602
      # instead of lib<name>.a to let people know that these are not
 
13603
      # typical AIX shared libraries.
 
13604
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13605
    else
 
13606
      # We preserve .a as extension for shared libraries through AIX4.2
 
13607
      # and later when we are not doing run time linking.
 
13608
      library_names_spec='${libname}${release}.a $libname.a'
 
13609
      soname_spec='${libname}${release}${shared_ext}$major'
 
13610
    fi
 
13611
    shlibpath_var=LIBPATH
 
13612
  fi
 
13613
  ;;
 
13614
 
 
13615
amigaos*)
 
13616
  case $host_cpu in
 
13617
  powerpc)
 
13618
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
13619
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
13620
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13621
    ;;
 
13622
  m68k)
 
13623
    library_names_spec='$libname.ixlibrary $libname.a'
 
13624
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13625
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
13626
    ;;
 
13627
  esac
 
13628
  ;;
 
13629
 
 
13630
beos*)
 
13631
  library_names_spec='${libname}${shared_ext}'
 
13632
  dynamic_linker="$host_os ld.so"
 
13633
  shlibpath_var=LIBRARY_PATH
 
13634
  ;;
 
13635
 
 
13636
bsdi[45]*)
 
13637
  version_type=linux
 
13638
  need_version=no
 
13639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13640
  soname_spec='${libname}${release}${shared_ext}$major'
 
13641
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13642
  shlibpath_var=LD_LIBRARY_PATH
 
13643
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13644
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13645
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13646
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13647
  # libtool to hard-code these into programs
 
13648
  ;;
 
13649
 
 
13650
cygwin* | mingw* | pw32* | cegcc*)
 
13651
  version_type=windows
 
13652
  shrext_cmds=".dll"
 
13653
  need_version=no
 
13654
  need_lib_prefix=no
 
13655
 
 
13656
  case $GCC,$host_os in
 
13657
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
13658
    library_names_spec='$libname.dll.a'
 
13659
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13660
    postinstall_cmds='base_file=`basename \${file}`~
 
13661
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
13662
      dldir=$destdir/`dirname \$dlpath`~
 
13663
      test -d \$dldir || mkdir -p \$dldir~
 
13664
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13665
      chmod a+x \$dldir/$dlname~
 
13666
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
13667
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
13668
      fi'
 
13669
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13670
      dlpath=$dir/\$dldll~
 
13671
       $RM \$dlpath'
 
13672
    shlibpath_overrides_runpath=yes
 
13673
 
 
13674
    case $host_os in
 
13675
    cygwin*)
 
13676
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13677
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13678
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13679
      ;;
 
13680
    mingw* | cegcc*)
 
13681
      # MinGW DLLs use traditional 'lib' prefix
 
13682
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13683
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13684
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
13685
        # It is most probably a Windows format PATH printed by
 
13686
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13687
        # path with ; separators, and with drive letters. We can handle the
 
13688
        # drive letters (cygwin fileutils understands them), so leave them,
 
13689
        # especially as we might pass files found there to a mingw objdump,
 
13690
        # which wouldn't understand a cygwinified path. Ahh.
 
13691
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13692
      else
 
13693
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13694
      fi
 
13695
      ;;
 
13696
    pw32*)
 
13697
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13698
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13699
      ;;
 
13700
    esac
 
13701
    ;;
 
13702
 
 
13703
  *)
 
13704
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13705
    ;;
 
13706
  esac
 
13707
  dynamic_linker='Win32 ld.exe'
 
13708
  # FIXME: first we should search . and the directory the executable is in
 
13709
  shlibpath_var=PATH
 
13710
  ;;
 
13711
 
 
13712
darwin* | rhapsody*)
 
13713
  dynamic_linker="$host_os dyld"
 
13714
  version_type=darwin
 
13715
  need_lib_prefix=no
 
13716
  need_version=no
 
13717
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13718
  soname_spec='${libname}${release}${major}$shared_ext'
 
13719
  shlibpath_overrides_runpath=yes
 
13720
  shlibpath_var=DYLD_LIBRARY_PATH
 
13721
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13722
 
 
13723
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13724
  ;;
 
13725
 
 
13726
dgux*)
 
13727
  version_type=linux
 
13728
  need_lib_prefix=no
 
13729
  need_version=no
 
13730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13731
  soname_spec='${libname}${release}${shared_ext}$major'
 
13732
  shlibpath_var=LD_LIBRARY_PATH
 
13733
  ;;
 
13734
 
 
13735
freebsd1*)
 
13736
  dynamic_linker=no
 
13737
  ;;
 
13738
 
 
13739
freebsd* | dragonfly*)
 
13740
  # DragonFly does not have aout.  When/if they implement a new
 
13741
  # versioning mechanism, adjust this.
 
13742
  if test -x /usr/bin/objformat; then
 
13743
    objformat=`/usr/bin/objformat`
 
13744
  else
 
13745
    case $host_os in
 
13746
    freebsd[123]*) objformat=aout ;;
 
13747
    *) objformat=elf ;;
 
13748
    esac
 
13749
  fi
 
13750
  version_type=freebsd-$objformat
 
13751
  case $version_type in
 
13752
    freebsd-elf*)
 
13753
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13754
      need_version=no
 
13755
      need_lib_prefix=no
 
13756
      ;;
 
13757
    freebsd-*)
 
13758
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13759
      need_version=yes
 
13760
      ;;
 
13761
  esac
 
13762
  shlibpath_var=LD_LIBRARY_PATH
 
13763
  case $host_os in
 
13764
  freebsd2*)
 
13765
    shlibpath_overrides_runpath=yes
 
13766
    ;;
 
13767
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13768
    shlibpath_overrides_runpath=yes
 
13769
    hardcode_into_libs=yes
 
13770
    ;;
 
13771
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13772
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13773
    shlibpath_overrides_runpath=no
 
13774
    hardcode_into_libs=yes
 
13775
    ;;
 
13776
  *) # from 4.6 on, and DragonFly
 
13777
    shlibpath_overrides_runpath=yes
 
13778
    hardcode_into_libs=yes
 
13779
    ;;
 
13780
  esac
 
13781
  ;;
 
13782
 
 
13783
gnu*)
 
13784
  version_type=linux
 
13785
  need_lib_prefix=no
 
13786
  need_version=no
 
13787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13788
  soname_spec='${libname}${release}${shared_ext}$major'
 
13789
  shlibpath_var=LD_LIBRARY_PATH
 
13790
  hardcode_into_libs=yes
 
13791
  ;;
 
13792
 
 
13793
hpux9* | hpux10* | hpux11*)
 
13794
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13795
  # link against other versions.
 
13796
  version_type=sunos
 
13797
  need_lib_prefix=no
 
13798
  need_version=no
 
13799
  case $host_cpu in
 
13800
  ia64*)
 
13801
    shrext_cmds='.so'
 
13802
    hardcode_into_libs=yes
 
13803
    dynamic_linker="$host_os dld.so"
 
13804
    shlibpath_var=LD_LIBRARY_PATH
 
13805
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13806
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13807
    soname_spec='${libname}${release}${shared_ext}$major'
 
13808
    if test "X$HPUX_IA64_MODE" = X32; then
 
13809
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13810
    else
 
13811
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13812
    fi
 
13813
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13814
    ;;
 
13815
  hppa*64*)
 
13816
    shrext_cmds='.sl'
 
13817
    hardcode_into_libs=yes
 
13818
    dynamic_linker="$host_os dld.sl"
 
13819
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13820
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13821
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13822
    soname_spec='${libname}${release}${shared_ext}$major'
 
13823
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13824
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13825
    ;;
 
13826
  *)
 
13827
    shrext_cmds='.sl'
 
13828
    dynamic_linker="$host_os dld.sl"
 
13829
    shlibpath_var=SHLIB_PATH
 
13830
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13831
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13832
    soname_spec='${libname}${release}${shared_ext}$major'
 
13833
    ;;
 
13834
  esac
 
13835
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13836
  postinstall_cmds='chmod 555 $lib'
 
13837
  ;;
 
13838
 
 
13839
interix[3-9]*)
 
13840
  version_type=linux
 
13841
  need_lib_prefix=no
 
13842
  need_version=no
 
13843
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13844
  soname_spec='${libname}${release}${shared_ext}$major'
 
13845
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13846
  shlibpath_var=LD_LIBRARY_PATH
 
13847
  shlibpath_overrides_runpath=no
 
13848
  hardcode_into_libs=yes
 
13849
  ;;
 
13850
 
 
13851
irix5* | irix6* | nonstopux*)
 
13852
  case $host_os in
 
13853
    nonstopux*) version_type=nonstopux ;;
 
13854
    *)
 
13855
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13856
                version_type=linux
 
13857
        else
 
13858
                version_type=irix
 
13859
        fi ;;
 
13860
  esac
 
13861
  need_lib_prefix=no
 
13862
  need_version=no
 
13863
  soname_spec='${libname}${release}${shared_ext}$major'
 
13864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13865
  case $host_os in
 
13866
  irix5* | nonstopux*)
 
13867
    libsuff= shlibsuff=
 
13868
    ;;
 
13869
  *)
 
13870
    case $LD in # libtool.m4 will add one of these switches to LD
 
13871
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13872
      libsuff= shlibsuff= libmagic=32-bit;;
 
13873
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13874
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13875
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13876
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13877
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13878
    esac
 
13879
    ;;
 
13880
  esac
 
13881
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13882
  shlibpath_overrides_runpath=no
 
13883
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13884
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13885
  hardcode_into_libs=yes
 
13886
  ;;
 
13887
 
 
13888
# No shared lib support for Linux oldld, aout, or coff.
 
13889
linux*oldld* | linux*aout* | linux*coff*)
 
13890
  dynamic_linker=no
 
13891
  ;;
 
13892
 
 
13893
# This must be Linux ELF.
 
13894
linux* | k*bsd*-gnu)
 
13895
  version_type=linux
 
13896
  need_lib_prefix=no
 
13897
  need_version=no
 
13898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13899
  soname_spec='${libname}${release}${shared_ext}$major'
 
13900
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13901
  shlibpath_var=LD_LIBRARY_PATH
 
13902
  shlibpath_overrides_runpath=no
 
13903
  # Some binutils ld are patched to set DT_RUNPATH
 
13904
  save_LDFLAGS=$LDFLAGS
 
13905
  save_libdir=$libdir
 
13906
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
13907
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
13908
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13909
/* end confdefs.h.  */
 
13910
 
 
13911
int
 
13912
main ()
 
13913
{
 
13914
 
 
13915
  ;
 
13916
  return 0;
 
13917
}
 
13918
_ACEOF
 
13919
if ac_fn_cxx_try_link "$LINENO"; then :
 
13920
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
13921
  shlibpath_overrides_runpath=yes
 
13922
fi
 
13923
fi
 
13924
rm -f core conftest.err conftest.$ac_objext \
 
13925
    conftest$ac_exeext conftest.$ac_ext
 
13926
  LDFLAGS=$save_LDFLAGS
 
13927
  libdir=$save_libdir
 
13928
 
 
13929
  # This implies no fast_install, which is unacceptable.
 
13930
  # Some rework will be needed to allow for fast_install
 
13931
  # before this can be enabled.
 
13932
  hardcode_into_libs=yes
 
13933
 
 
13934
  # Append ld.so.conf contents to the search path
 
13935
  if test -f /etc/ld.so.conf; then
 
13936
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13937
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13938
  fi
 
13939
 
 
13940
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13941
  # powerpc, because MkLinux only supported shared libraries with the
 
13942
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13943
  # most powerpc-linux boxes support dynamic linking these days and
 
13944
  # people can always --disable-shared, the test was removed, and we
 
13945
  # assume the GNU/Linux dynamic linker is in use.
 
13946
  dynamic_linker='GNU/Linux ld.so'
 
13947
  ;;
 
13948
 
 
13949
netbsdelf*-gnu)
 
13950
  version_type=linux
 
13951
  need_lib_prefix=no
 
13952
  need_version=no
 
13953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13954
  soname_spec='${libname}${release}${shared_ext}$major'
 
13955
  shlibpath_var=LD_LIBRARY_PATH
 
13956
  shlibpath_overrides_runpath=no
 
13957
  hardcode_into_libs=yes
 
13958
  dynamic_linker='NetBSD ld.elf_so'
 
13959
  ;;
 
13960
 
 
13961
netbsd*)
 
13962
  version_type=sunos
 
13963
  need_lib_prefix=no
 
13964
  need_version=no
 
13965
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13966
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13967
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13968
    dynamic_linker='NetBSD (a.out) ld.so'
 
13969
  else
 
13970
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13971
    soname_spec='${libname}${release}${shared_ext}$major'
 
13972
    dynamic_linker='NetBSD ld.elf_so'
 
13973
  fi
 
13974
  shlibpath_var=LD_LIBRARY_PATH
 
13975
  shlibpath_overrides_runpath=yes
 
13976
  hardcode_into_libs=yes
 
13977
  ;;
 
13978
 
 
13979
newsos6)
 
13980
  version_type=linux
 
13981
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13982
  shlibpath_var=LD_LIBRARY_PATH
 
13983
  shlibpath_overrides_runpath=yes
 
13984
  ;;
 
13985
 
 
13986
*nto* | *qnx*)
 
13987
  version_type=qnx
 
13988
  need_lib_prefix=no
 
13989
  need_version=no
 
13990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13991
  soname_spec='${libname}${release}${shared_ext}$major'
 
13992
  shlibpath_var=LD_LIBRARY_PATH
 
13993
  shlibpath_overrides_runpath=no
 
13994
  hardcode_into_libs=yes
 
13995
  dynamic_linker='ldqnx.so'
 
13996
  ;;
 
13997
 
 
13998
openbsd*)
 
13999
  version_type=sunos
 
14000
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14001
  need_lib_prefix=no
 
14002
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14003
  case $host_os in
 
14004
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14005
    *)                          need_version=no  ;;
 
14006
  esac
 
14007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14008
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14009
  shlibpath_var=LD_LIBRARY_PATH
 
14010
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14011
    case $host_os in
 
14012
      openbsd2.[89] | openbsd2.[89].*)
 
14013
        shlibpath_overrides_runpath=no
 
14014
        ;;
 
14015
      *)
 
14016
        shlibpath_overrides_runpath=yes
 
14017
        ;;
 
14018
      esac
 
14019
  else
 
14020
    shlibpath_overrides_runpath=yes
 
14021
  fi
 
14022
  ;;
 
14023
 
 
14024
os2*)
 
14025
  libname_spec='$name'
 
14026
  shrext_cmds=".dll"
 
14027
  need_lib_prefix=no
 
14028
  library_names_spec='$libname${shared_ext} $libname.a'
 
14029
  dynamic_linker='OS/2 ld.exe'
 
14030
  shlibpath_var=LIBPATH
 
14031
  ;;
 
14032
 
 
14033
osf3* | osf4* | osf5*)
 
14034
  version_type=osf
 
14035
  need_lib_prefix=no
 
14036
  need_version=no
 
14037
  soname_spec='${libname}${release}${shared_ext}$major'
 
14038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14039
  shlibpath_var=LD_LIBRARY_PATH
 
14040
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14041
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14042
  ;;
 
14043
 
 
14044
rdos*)
 
14045
  dynamic_linker=no
 
14046
  ;;
 
14047
 
 
14048
solaris*)
 
14049
  version_type=linux
 
14050
  need_lib_prefix=no
 
14051
  need_version=no
 
14052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14053
  soname_spec='${libname}${release}${shared_ext}$major'
 
14054
  shlibpath_var=LD_LIBRARY_PATH
 
14055
  shlibpath_overrides_runpath=yes
 
14056
  hardcode_into_libs=yes
 
14057
  # ldd complains unless libraries are executable
 
14058
  postinstall_cmds='chmod +x $lib'
 
14059
  ;;
 
14060
 
 
14061
sunos4*)
 
14062
  version_type=sunos
 
14063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14064
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14065
  shlibpath_var=LD_LIBRARY_PATH
 
14066
  shlibpath_overrides_runpath=yes
 
14067
  if test "$with_gnu_ld" = yes; then
 
14068
    need_lib_prefix=no
 
14069
  fi
 
14070
  need_version=yes
 
14071
  ;;
 
14072
 
 
14073
sysv4 | sysv4.3*)
 
14074
  version_type=linux
 
14075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14076
  soname_spec='${libname}${release}${shared_ext}$major'
 
14077
  shlibpath_var=LD_LIBRARY_PATH
 
14078
  case $host_vendor in
 
14079
    sni)
 
14080
      shlibpath_overrides_runpath=no
 
14081
      need_lib_prefix=no
 
14082
      runpath_var=LD_RUN_PATH
 
14083
      ;;
 
14084
    siemens)
 
14085
      need_lib_prefix=no
 
14086
      ;;
 
14087
    motorola)
 
14088
      need_lib_prefix=no
 
14089
      need_version=no
 
14090
      shlibpath_overrides_runpath=no
 
14091
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14092
      ;;
 
14093
  esac
 
14094
  ;;
 
14095
 
 
14096
sysv4*MP*)
 
14097
  if test -d /usr/nec ;then
 
14098
    version_type=linux
 
14099
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14100
    soname_spec='$libname${shared_ext}.$major'
 
14101
    shlibpath_var=LD_LIBRARY_PATH
 
14102
  fi
 
14103
  ;;
 
14104
 
 
14105
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14106
  version_type=freebsd-elf
 
14107
  need_lib_prefix=no
 
14108
  need_version=no
 
14109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14110
  soname_spec='${libname}${release}${shared_ext}$major'
 
14111
  shlibpath_var=LD_LIBRARY_PATH
 
14112
  shlibpath_overrides_runpath=yes
 
14113
  hardcode_into_libs=yes
 
14114
  if test "$with_gnu_ld" = yes; then
 
14115
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14116
  else
 
14117
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14118
    case $host_os in
 
14119
      sco3.2v5*)
 
14120
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14121
        ;;
 
14122
    esac
 
14123
  fi
 
14124
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14125
  ;;
 
14126
 
 
14127
tpf*)
 
14128
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14129
  version_type=linux
 
14130
  need_lib_prefix=no
 
14131
  need_version=no
 
14132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14133
  shlibpath_var=LD_LIBRARY_PATH
 
14134
  shlibpath_overrides_runpath=no
 
14135
  hardcode_into_libs=yes
 
14136
  ;;
 
14137
 
 
14138
uts4*)
 
14139
  version_type=linux
 
14140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14141
  soname_spec='${libname}${release}${shared_ext}$major'
 
14142
  shlibpath_var=LD_LIBRARY_PATH
 
14143
  ;;
 
14144
 
 
14145
*)
 
14146
  dynamic_linker=no
 
14147
  ;;
 
14148
esac
 
14149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
14150
$as_echo "$dynamic_linker" >&6; }
 
14151
test "$dynamic_linker" = no && can_build_shared=no
 
14152
 
 
14153
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14154
if test "$GCC" = yes; then
 
14155
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14156
fi
 
14157
 
 
14158
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14159
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14160
fi
 
14161
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14162
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14163
fi
 
14164
 
 
14165
 
 
14166
 
 
14167
 
 
14168
 
 
14169
 
 
14170
 
 
14171
 
 
14172
 
 
14173
 
 
14174
 
 
14175
 
 
14176
 
 
14177
 
 
14178
 
 
14179
 
 
14180
 
 
14181
 
 
14182
 
 
14183
 
 
14184
 
 
14185
 
 
14186
 
 
14187
 
 
14188
 
 
14189
 
 
14190
 
 
14191
 
 
14192
 
 
14193
 
 
14194
 
 
14195
 
 
14196
 
 
14197
 
 
14198
 
 
14199
 
 
14200
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
14201
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14202
hardcode_action_CXX=
 
14203
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
14204
   test -n "$runpath_var_CXX" ||
 
14205
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14206
 
 
14207
  # We can hardcode non-existent directories.
 
14208
  if test "$hardcode_direct_CXX" != no &&
 
14209
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14210
     # have to relink, otherwise we might link with an installed library
 
14211
     # when we should be linking with a yet-to-be-installed one
 
14212
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14213
     test "$hardcode_minus_L_CXX" != no; then
 
14214
    # Linking always hardcodes the temporary library directory.
 
14215
    hardcode_action_CXX=relink
 
14216
  else
 
14217
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14218
    hardcode_action_CXX=immediate
 
14219
  fi
 
14220
else
 
14221
  # We cannot hardcode anything, or else we can only hardcode existing
 
14222
  # directories.
 
14223
  hardcode_action_CXX=unsupported
 
14224
fi
 
14225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
14226
$as_echo "$hardcode_action_CXX" >&6; }
 
14227
 
 
14228
if test "$hardcode_action_CXX" = relink ||
 
14229
   test "$inherit_rpath_CXX" = yes; then
 
14230
  # Fast installation is not supported
 
14231
  enable_fast_install=no
 
14232
elif test "$shlibpath_overrides_runpath" = yes ||
 
14233
     test "$enable_shared" = no; then
 
14234
  # Fast installation is not necessary
 
14235
  enable_fast_install=needless
 
14236
fi
 
14237
 
 
14238
 
 
14239
 
 
14240
 
 
14241
 
 
14242
 
 
14243
 
 
14244
  fi # test -n "$compiler"
 
14245
 
 
14246
  CC=$lt_save_CC
 
14247
  LDCXX=$LD
 
14248
  LD=$lt_save_LD
 
14249
  GCC=$lt_save_GCC
 
14250
  with_gnu_ld=$lt_save_with_gnu_ld
 
14251
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
14252
  lt_cv_path_LD=$lt_save_path_LD
 
14253
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14254
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14255
fi # test "$_lt_caught_CXX_error" != yes
 
14256
 
 
14257
ac_ext=c
 
14258
ac_cpp='$CPP $CPPFLAGS'
 
14259
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14260
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14261
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14262
 
 
14263
 
 
14264
 
 
14265
 
 
14266
 
 
14267
 
 
14268
 
 
14269
 
 
14270
 
 
14271
 
 
14272
 
 
14273
 
 
14274
 
 
14275
        ac_config_commands="$ac_config_commands libtool"
 
14276
 
 
14277
 
 
14278
 
 
14279
 
 
14280
# Only expand once:
 
14281
 
 
14282
 
 
14283
 
 
14284
 
 
14285
# checks for libraries.
 
14286
 
 
14287
# checks for header files.
 
14288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
14289
$as_echo_n "checking for ANSI C header files... " >&6; }
 
14290
if test "${ac_cv_header_stdc+set}" = set; then :
 
14291
  $as_echo_n "(cached) " >&6
 
14292
else
 
14293
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14294
/* end confdefs.h.  */
 
14295
#include <stdlib.h>
 
14296
#include <stdarg.h>
 
14297
#include <string.h>
 
14298
#include <float.h>
 
14299
 
 
14300
int
 
14301
main ()
 
14302
{
 
14303
 
 
14304
  ;
 
14305
  return 0;
 
14306
}
 
14307
_ACEOF
 
14308
if ac_fn_c_try_compile "$LINENO"; then :
 
14309
  ac_cv_header_stdc=yes
 
14310
else
 
14311
  ac_cv_header_stdc=no
 
14312
fi
 
14313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14314
 
 
14315
if test $ac_cv_header_stdc = yes; then
 
14316
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
14317
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14318
/* end confdefs.h.  */
 
14319
#include <string.h>
 
14320
 
 
14321
_ACEOF
 
14322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14323
  $EGREP "memchr" >/dev/null 2>&1; then :
 
14324
 
 
14325
else
 
14326
  ac_cv_header_stdc=no
 
14327
fi
 
14328
rm -f conftest*
 
14329
 
 
14330
fi
 
14331
 
 
14332
if test $ac_cv_header_stdc = yes; then
 
14333
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
14334
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14335
/* end confdefs.h.  */
 
14336
#include <stdlib.h>
 
14337
 
 
14338
_ACEOF
 
14339
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14340
  $EGREP "free" >/dev/null 2>&1; then :
 
14341
 
 
14342
else
 
14343
  ac_cv_header_stdc=no
 
14344
fi
 
14345
rm -f conftest*
 
14346
 
 
14347
fi
 
14348
 
 
14349
if test $ac_cv_header_stdc = yes; then
 
14350
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
14351
  if test "$cross_compiling" = yes; then :
 
14352
  :
 
14353
else
 
14354
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14355
/* end confdefs.h.  */
 
14356
#include <ctype.h>
 
14357
#include <stdlib.h>
 
14358
#if ((' ' & 0x0FF) == 0x020)
 
14359
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
14360
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
14361
#else
 
14362
# define ISLOWER(c) \
 
14363
                   (('a' <= (c) && (c) <= 'i') \
 
14364
                     || ('j' <= (c) && (c) <= 'r') \
 
14365
                     || ('s' <= (c) && (c) <= 'z'))
 
14366
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
14367
#endif
 
14368
 
 
14369
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
14370
int
 
14371
main ()
 
14372
{
 
14373
  int i;
 
14374
  for (i = 0; i < 256; i++)
 
14375
    if (XOR (islower (i), ISLOWER (i))
 
14376
        || toupper (i) != TOUPPER (i))
 
14377
      return 2;
 
14378
  return 0;
 
14379
}
 
14380
_ACEOF
 
14381
if ac_fn_c_try_run "$LINENO"; then :
 
14382
 
 
14383
else
 
14384
  ac_cv_header_stdc=no
 
14385
fi
 
14386
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14387
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14388
fi
 
14389
 
 
14390
fi
 
14391
fi
 
14392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
14393
$as_echo "$ac_cv_header_stdc" >&6; }
 
14394
if test $ac_cv_header_stdc = yes; then
 
14395
 
 
14396
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
14397
 
 
14398
fi
 
14399
 
 
14400
for ac_header in string.h
 
14401
do :
 
14402
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
14403
if test "x$ac_cv_header_string_h" = x""yes; then :
 
14404
  cat >>confdefs.h <<_ACEOF
 
14405
#define HAVE_STRING_H 1
 
14406
_ACEOF
 
14407
 
 
14408
fi
 
14409
 
 
14410
done
 
14411
 
 
14412
 
 
14413
# checks for typedefs, structures, and compiler characteristics.
 
14414
 
 
14415
# checks for library functions.
 
14416
 
 
14417
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile"
 
14418
 
 
14419
cat >confcache <<\_ACEOF
 
14420
# This file is a shell script that caches the results of configure
 
14421
# tests run on this system so they can be shared between configure
 
14422
# scripts and configure runs, see configure's option --config-cache.
 
14423
# It is not useful on other systems.  If it contains results you don't
 
14424
# want to keep, you may remove or edit it.
 
14425
#
 
14426
# config.status only pays attention to the cache file if you give it
 
14427
# the --recheck option to rerun configure.
 
14428
#
 
14429
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
14430
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
14431
# following values.
 
14432
 
 
14433
_ACEOF
 
14434
 
 
14435
# The following way of writing the cache mishandles newlines in values,
 
14436
# but we know of no workaround that is simple, portable, and efficient.
 
14437
# So, we kill variables containing newlines.
 
14438
# Ultrix sh set writes to stderr and can't be redirected directly,
 
14439
# and sets the high bit in the cache file unless we assign to the vars.
 
14440
(
 
14441
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
14442
    eval ac_val=\$$ac_var
 
14443
    case $ac_val in #(
 
14444
    *${as_nl}*)
 
14445
      case $ac_var in #(
 
14446
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
14447
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
14448
      esac
 
14449
      case $ac_var in #(
 
14450
      _ | IFS | as_nl) ;; #(
 
14451
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
14452
      *) { eval $ac_var=; unset $ac_var;} ;;
 
14453
      esac ;;
 
14454
    esac
 
14455
  done
 
14456
 
 
14457
  (set) 2>&1 |
 
14458
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
14459
    *${as_nl}ac_space=\ *)
 
14460
      # `set' does not quote correctly, so add quotes: double-quote
 
14461
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
14462
      sed -n \
 
14463
        "s/'/'\\\\''/g;
 
14464
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
14465
      ;; #(
 
14466
    *)
 
14467
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
14468
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
14469
      ;;
 
14470
    esac |
 
14471
    sort
 
14472
) |
 
14473
  sed '
 
14474
     /^ac_cv_env_/b end
 
14475
     t clear
 
14476
     :clear
 
14477
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
14478
     t end
 
14479
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
14480
     :end' >>confcache
 
14481
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
14482
  if test -w "$cache_file"; then
 
14483
    test "x$cache_file" != "x/dev/null" &&
 
14484
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
14485
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
14486
    cat confcache >$cache_file
 
14487
  else
 
14488
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
14489
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
14490
  fi
 
14491
fi
 
14492
rm -f confcache
 
14493
 
 
14494
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
14495
# Let make expand exec_prefix.
 
14496
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
14497
 
 
14498
DEFS=-DHAVE_CONFIG_H
 
14499
 
 
14500
ac_libobjs=
 
14501
ac_ltlibobjs=
 
14502
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
14503
  # 1. Remove the extension, and $U if already installed.
 
14504
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
14505
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
14506
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
14507
  #    will be set to the directory where LIBOBJS objects are built.
 
14508
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
14509
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
14510
done
 
14511
LIBOBJS=$ac_libobjs
 
14512
 
 
14513
LTLIBOBJS=$ac_ltlibobjs
 
14514
 
 
14515
 
 
14516
 if test -n "$EXEEXT"; then
 
14517
  am__EXEEXT_TRUE=
 
14518
  am__EXEEXT_FALSE='#'
 
14519
else
 
14520
  am__EXEEXT_TRUE='#'
 
14521
  am__EXEEXT_FALSE=
 
14522
fi
 
14523
 
 
14524
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
14525
  as_fn_error "conditional \"AMDEP\" was never defined.
 
14526
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14527
fi
 
14528
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
14529
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
14530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14531
fi
 
14532
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
14533
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
14534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14535
fi
 
14536
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
14537
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
14538
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
14539
fi
 
14540
 
 
14541
: ${CONFIG_STATUS=./config.status}
 
14542
ac_write_fail=0
 
14543
ac_clean_files_save=$ac_clean_files
 
14544
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
14545
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
14546
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
14547
as_write_fail=0
 
14548
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
14549
#! $SHELL
 
14550
# Generated by $as_me.
 
14551
# Run this file to recreate the current configuration.
 
14552
# Compiler output produced by configure, useful for debugging
 
14553
# configure, is in config.log if it exists.
 
14554
 
 
14555
debug=false
 
14556
ac_cs_recheck=false
 
14557
ac_cs_silent=false
 
14558
 
 
14559
SHELL=\${CONFIG_SHELL-$SHELL}
 
14560
export SHELL
 
14561
_ASEOF
 
14562
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
14563
## -------------------- ##
 
14564
## M4sh Initialization. ##
 
14565
## -------------------- ##
 
14566
 
 
14567
# Be more Bourne compatible
 
14568
DUALCASE=1; export DUALCASE # for MKS sh
 
14569
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
14570
  emulate sh
 
14571
  NULLCMD=:
 
14572
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
14573
  # is contrary to our usage.  Disable this feature.
 
14574
  alias -g '${1+"$@"}'='"$@"'
 
14575
  setopt NO_GLOB_SUBST
 
14576
else
 
14577
  case `(set -o) 2>/dev/null` in #(
 
14578
  *posix*) :
 
14579
    set -o posix ;; #(
 
14580
  *) :
 
14581
     ;;
 
14582
esac
 
14583
fi
 
14584
 
 
14585
 
 
14586
as_nl='
 
14587
'
 
14588
export as_nl
 
14589
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
14590
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
14591
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
14592
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
14593
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
14594
# but without wasting forks for bash or zsh.
 
14595
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
14596
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14597
  as_echo='print -r --'
 
14598
  as_echo_n='print -rn --'
 
14599
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
14600
  as_echo='printf %s\n'
 
14601
  as_echo_n='printf %s'
 
14602
else
 
14603
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
14604
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
14605
    as_echo_n='/usr/ucb/echo -n'
 
14606
  else
 
14607
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
14608
    as_echo_n_body='eval
 
14609
      arg=$1;
 
14610
      case $arg in #(
 
14611
      *"$as_nl"*)
 
14612
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
14613
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
14614
      esac;
 
14615
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
14616
    '
 
14617
    export as_echo_n_body
 
14618
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
14619
  fi
 
14620
  export as_echo_body
 
14621
  as_echo='sh -c $as_echo_body as_echo'
 
14622
fi
 
14623
 
 
14624
# The user is always right.
 
14625
if test "${PATH_SEPARATOR+set}" != set; then
 
14626
  PATH_SEPARATOR=:
 
14627
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
14628
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
14629
      PATH_SEPARATOR=';'
 
14630
  }
 
14631
fi
 
14632
 
 
14633
 
 
14634
# IFS
 
14635
# We need space, tab and new line, in precisely that order.  Quoting is
 
14636
# there to prevent editors from complaining about space-tab.
 
14637
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
14638
# splitting by setting IFS to empty value.)
 
14639
IFS=" ""        $as_nl"
 
14640
 
 
14641
# Find who we are.  Look in the path if we contain no directory separator.
 
14642
case $0 in #((
 
14643
  *[\\/]* ) as_myself=$0 ;;
 
14644
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14645
for as_dir in $PATH
 
14646
do
 
14647
  IFS=$as_save_IFS
 
14648
  test -z "$as_dir" && as_dir=.
 
14649
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
14650
  done
 
14651
IFS=$as_save_IFS
 
14652
 
 
14653
     ;;
 
14654
esac
 
14655
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
14656
# in which case we are not to be found in the path.
 
14657
if test "x$as_myself" = x; then
 
14658
  as_myself=$0
 
14659
fi
 
14660
if test ! -f "$as_myself"; then
 
14661
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
14662
  exit 1
 
14663
fi
 
14664
 
 
14665
# Unset variables that we do not need and which cause bugs (e.g. in
 
14666
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
14667
# suppresses any "Segmentation fault" message there.  '((' could
 
14668
# trigger a bug in pdksh 5.2.14.
 
14669
for as_var in BASH_ENV ENV MAIL MAILPATH
 
14670
do eval test x\${$as_var+set} = xset \
 
14671
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
14672
done
 
14673
PS1='$ '
 
14674
PS2='> '
 
14675
PS4='+ '
 
14676
 
 
14677
# NLS nuisances.
 
14678
LC_ALL=C
 
14679
export LC_ALL
 
14680
LANGUAGE=C
 
14681
export LANGUAGE
 
14682
 
 
14683
# CDPATH.
 
14684
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14685
 
 
14686
 
 
14687
# as_fn_error ERROR [LINENO LOG_FD]
 
14688
# ---------------------------------
 
14689
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
14690
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
14691
# script with status $?, using 1 if that was 0.
 
14692
as_fn_error ()
 
14693
{
 
14694
  as_status=$?; test $as_status -eq 0 && as_status=1
 
14695
  if test "$3"; then
 
14696
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
14697
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
14698
  fi
 
14699
  $as_echo "$as_me: error: $1" >&2
 
14700
  as_fn_exit $as_status
 
14701
} # as_fn_error
 
14702
 
 
14703
 
 
14704
# as_fn_set_status STATUS
 
14705
# -----------------------
 
14706
# Set $? to STATUS, without forking.
 
14707
as_fn_set_status ()
 
14708
{
 
14709
  return $1
 
14710
} # as_fn_set_status
 
14711
 
 
14712
# as_fn_exit STATUS
 
14713
# -----------------
 
14714
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
14715
as_fn_exit ()
 
14716
{
 
14717
  set +e
 
14718
  as_fn_set_status $1
 
14719
  exit $1
 
14720
} # as_fn_exit
 
14721
 
 
14722
# as_fn_unset VAR
 
14723
# ---------------
 
14724
# Portably unset VAR.
 
14725
as_fn_unset ()
 
14726
{
 
14727
  { eval $1=; unset $1;}
 
14728
}
 
14729
as_unset=as_fn_unset
 
14730
# as_fn_append VAR VALUE
 
14731
# ----------------------
 
14732
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
14733
# advantage of any shell optimizations that allow amortized linear growth over
 
14734
# repeated appends, instead of the typical quadratic growth present in naive
 
14735
# implementations.
 
14736
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
14737
  eval 'as_fn_append ()
 
14738
  {
 
14739
    eval $1+=\$2
 
14740
  }'
 
14741
else
 
14742
  as_fn_append ()
 
14743
  {
 
14744
    eval $1=\$$1\$2
 
14745
  }
 
14746
fi # as_fn_append
 
14747
 
 
14748
# as_fn_arith ARG...
 
14749
# ------------------
 
14750
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
14751
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
14752
# must be portable across $(()) and expr.
 
14753
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
14754
  eval 'as_fn_arith ()
 
14755
  {
 
14756
    as_val=$(( $* ))
 
14757
  }'
 
14758
else
 
14759
  as_fn_arith ()
 
14760
  {
 
14761
    as_val=`expr "$@" || test $? -eq 1`
 
14762
  }
 
14763
fi # as_fn_arith
 
14764
 
 
14765
 
 
14766
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
14767
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
14768
  as_expr=expr
 
14769
else
 
14770
  as_expr=false
 
14771
fi
 
14772
 
 
14773
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
14774
  as_basename=basename
 
14775
else
 
14776
  as_basename=false
 
14777
fi
 
14778
 
 
14779
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
14780
  as_dirname=dirname
 
14781
else
 
14782
  as_dirname=false
 
14783
fi
 
14784
 
 
14785
as_me=`$as_basename -- "$0" ||
 
14786
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
14787
         X"$0" : 'X\(//\)$' \| \
 
14788
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
14789
$as_echo X/"$0" |
 
14790
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
14791
            s//\1/
 
14792
            q
 
14793
          }
 
14794
          /^X\/\(\/\/\)$/{
 
14795
            s//\1/
 
14796
            q
 
14797
          }
 
14798
          /^X\/\(\/\).*/{
 
14799
            s//\1/
 
14800
            q
 
14801
          }
 
14802
          s/.*/./; q'`
 
14803
 
 
14804
# Avoid depending upon Character Ranges.
 
14805
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
14806
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
14807
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14808
as_cr_digits='0123456789'
 
14809
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
14810
 
 
14811
ECHO_C= ECHO_N= ECHO_T=
 
14812
case `echo -n x` in #(((((
 
14813
-n*)
 
14814
  case `echo 'xy\c'` in
 
14815
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
14816
  xy)  ECHO_C='\c';;
 
14817
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
14818
       ECHO_T=' ';;
 
14819
  esac;;
 
14820
*)
 
14821
  ECHO_N='-n';;
 
14822
esac
 
14823
 
 
14824
rm -f conf$$ conf$$.exe conf$$.file
 
14825
if test -d conf$$.dir; then
 
14826
  rm -f conf$$.dir/conf$$.file
 
14827
else
 
14828
  rm -f conf$$.dir
 
14829
  mkdir conf$$.dir 2>/dev/null
 
14830
fi
 
14831
if (echo >conf$$.file) 2>/dev/null; then
 
14832
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
14833
    as_ln_s='ln -s'
 
14834
    # ... but there are two gotchas:
 
14835
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
14836
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
14837
    # In both cases, we have to default to `cp -p'.
 
14838
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
14839
      as_ln_s='cp -p'
 
14840
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
14841
    as_ln_s=ln
 
14842
  else
 
14843
    as_ln_s='cp -p'
 
14844
  fi
 
14845
else
 
14846
  as_ln_s='cp -p'
 
14847
fi
 
14848
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
14849
rmdir conf$$.dir 2>/dev/null
 
14850
 
 
14851
 
 
14852
# as_fn_mkdir_p
 
14853
# -------------
 
14854
# Create "$as_dir" as a directory, including parents if necessary.
 
14855
as_fn_mkdir_p ()
 
14856
{
 
14857
 
 
14858
  case $as_dir in #(
 
14859
  -*) as_dir=./$as_dir;;
 
14860
  esac
 
14861
  test -d "$as_dir" || eval $as_mkdir_p || {
 
14862
    as_dirs=
 
14863
    while :; do
 
14864
      case $as_dir in #(
 
14865
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
14866
      *) as_qdir=$as_dir;;
 
14867
      esac
 
14868
      as_dirs="'$as_qdir' $as_dirs"
 
14869
      as_dir=`$as_dirname -- "$as_dir" ||
 
14870
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14871
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
14872
         X"$as_dir" : 'X\(//\)$' \| \
 
14873
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
14874
$as_echo X"$as_dir" |
 
14875
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14876
            s//\1/
 
14877
            q
 
14878
          }
 
14879
          /^X\(\/\/\)[^/].*/{
 
14880
            s//\1/
 
14881
            q
 
14882
          }
 
14883
          /^X\(\/\/\)$/{
 
14884
            s//\1/
 
14885
            q
 
14886
          }
 
14887
          /^X\(\/\).*/{
 
14888
            s//\1/
 
14889
            q
 
14890
          }
 
14891
          s/.*/./; q'`
 
14892
      test -d "$as_dir" && break
 
14893
    done
 
14894
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
14895
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
14896
 
 
14897
 
 
14898
} # as_fn_mkdir_p
 
14899
if mkdir -p . 2>/dev/null; then
 
14900
  as_mkdir_p='mkdir -p "$as_dir"'
 
14901
else
 
14902
  test -d ./-p && rmdir ./-p
 
14903
  as_mkdir_p=false
 
14904
fi
 
14905
 
 
14906
if test -x / >/dev/null 2>&1; then
 
14907
  as_test_x='test -x'
 
14908
else
 
14909
  if ls -dL / >/dev/null 2>&1; then
 
14910
    as_ls_L_option=L
 
14911
  else
 
14912
    as_ls_L_option=
 
14913
  fi
 
14914
  as_test_x='
 
14915
    eval sh -c '\''
 
14916
      if test -d "$1"; then
 
14917
        test -d "$1/.";
 
14918
      else
 
14919
        case $1 in #(
 
14920
        -*)set "./$1";;
 
14921
        esac;
 
14922
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
14923
        ???[sx]*):;;*)false;;esac;fi
 
14924
    '\'' sh
 
14925
  '
 
14926
fi
 
14927
as_executable_p=$as_test_x
 
14928
 
 
14929
# Sed expression to map a string onto a valid CPP name.
 
14930
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
14931
 
 
14932
# Sed expression to map a string onto a valid variable name.
 
14933
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
14934
 
 
14935
 
 
14936
exec 6>&1
 
14937
## ----------------------------------- ##
 
14938
## Main body of $CONFIG_STATUS script. ##
 
14939
## ----------------------------------- ##
 
14940
_ASEOF
 
14941
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
14942
 
 
14943
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14944
# Save the log message, to keep $0 and so on meaningful, and to
 
14945
# report actual input values of CONFIG_FILES etc. instead of their
 
14946
# values after options handling.
 
14947
ac_log="
 
14948
This file was extended by sqlite3cc $as_me 0.1.0, which was
 
14949
generated by GNU Autoconf 2.64.  Invocation command line was
 
14950
 
 
14951
  CONFIG_FILES    = $CONFIG_FILES
 
14952
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
14953
  CONFIG_LINKS    = $CONFIG_LINKS
 
14954
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
14955
  $ $0 $@
 
14956
 
 
14957
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
14958
"
 
14959
 
 
14960
_ACEOF
 
14961
 
 
14962
case $ac_config_files in *"
 
14963
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
14964
esac
 
14965
 
 
14966
case $ac_config_headers in *"
 
14967
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
14968
esac
 
14969
 
 
14970
 
 
14971
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14972
# Files that config.status was made for.
 
14973
config_files="$ac_config_files"
 
14974
config_headers="$ac_config_headers"
 
14975
config_commands="$ac_config_commands"
 
14976
 
 
14977
_ACEOF
 
14978
 
 
14979
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14980
ac_cs_usage="\
 
14981
\`$as_me' instantiates files and other configuration actions
 
14982
from templates according to the current configuration.  Unless the files
 
14983
and actions are specified as TAGs, all are instantiated by default.
 
14984
 
 
14985
Usage: $0 [OPTION]... [TAG]...
 
14986
 
 
14987
  -h, --help       print this help, then exit
 
14988
  -V, --version    print version number and configuration settings, then exit
 
14989
  -q, --quiet, --silent
 
14990
                   do not print progress messages
 
14991
  -d, --debug      don't remove temporary files
 
14992
      --recheck    update $as_me by reconfiguring in the same conditions
 
14993
      --file=FILE[:TEMPLATE]
 
14994
                   instantiate the configuration file FILE
 
14995
      --header=FILE[:TEMPLATE]
 
14996
                   instantiate the configuration header FILE
 
14997
 
 
14998
Configuration files:
 
14999
$config_files
 
15000
 
 
15001
Configuration headers:
 
15002
$config_headers
 
15003
 
 
15004
Configuration commands:
 
15005
$config_commands
 
15006
 
 
15007
Report bugs to <edam@waxworlds.org>."
 
15008
 
 
15009
_ACEOF
 
15010
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15011
ac_cs_version="\\
 
15012
sqlite3cc config.status 0.1.0
 
15013
configured by $0, generated by GNU Autoconf 2.64,
 
15014
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
15015
 
 
15016
Copyright (C) 2009 Free Software Foundation, Inc.
 
15017
This config.status script is free software; the Free Software Foundation
 
15018
gives unlimited permission to copy, distribute and modify it."
 
15019
 
 
15020
ac_pwd='$ac_pwd'
 
15021
srcdir='$srcdir'
 
15022
INSTALL='$INSTALL'
 
15023
MKDIR_P='$MKDIR_P'
 
15024
AWK='$AWK'
 
15025
test -n "\$AWK" || AWK=awk
 
15026
_ACEOF
 
15027
 
 
15028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15029
# The default lists apply if the user does not specify any file.
 
15030
ac_need_defaults=:
 
15031
while test $# != 0
 
15032
do
 
15033
  case $1 in
 
15034
  --*=*)
 
15035
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15036
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
15037
    ac_shift=:
 
15038
    ;;
 
15039
  *)
 
15040
    ac_option=$1
 
15041
    ac_optarg=$2
 
15042
    ac_shift=shift
 
15043
    ;;
 
15044
  esac
 
15045
 
 
15046
  case $ac_option in
 
15047
  # Handling of the options.
 
15048
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
15049
    ac_cs_recheck=: ;;
 
15050
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
15051
    $as_echo "$ac_cs_version"; exit ;;
 
15052
  --debug | --debu | --deb | --de | --d | -d )
 
15053
    debug=: ;;
 
15054
  --file | --fil | --fi | --f )
 
15055
    $ac_shift
 
15056
    case $ac_optarg in
 
15057
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15058
    esac
 
15059
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
15060
    ac_need_defaults=false;;
 
15061
  --header | --heade | --head | --hea )
 
15062
    $ac_shift
 
15063
    case $ac_optarg in
 
15064
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15065
    esac
 
15066
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
15067
    ac_need_defaults=false;;
 
15068
  --he | --h)
 
15069
    # Conflict between --help and --header
 
15070
    as_fn_error "ambiguous option: \`$1'
 
15071
Try \`$0 --help' for more information.";;
 
15072
  --help | --hel | -h )
 
15073
    $as_echo "$ac_cs_usage"; exit ;;
 
15074
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
15075
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
15076
    ac_cs_silent=: ;;
 
15077
 
 
15078
  # This is an error.
 
15079
  -*) as_fn_error "unrecognized option: \`$1'
 
15080
Try \`$0 --help' for more information." ;;
 
15081
 
 
15082
  *) as_fn_append ac_config_targets " $1"
 
15083
     ac_need_defaults=false ;;
 
15084
 
 
15085
  esac
 
15086
  shift
 
15087
done
 
15088
 
 
15089
ac_configure_extra_args=
 
15090
 
 
15091
if $ac_cs_silent; then
 
15092
  exec 6>/dev/null
 
15093
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
15094
fi
 
15095
 
 
15096
_ACEOF
 
15097
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15098
if \$ac_cs_recheck; then
 
15099
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15100
  shift
 
15101
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
15102
  CONFIG_SHELL='$SHELL'
 
15103
  export CONFIG_SHELL
 
15104
  exec "\$@"
 
15105
fi
 
15106
 
 
15107
_ACEOF
 
15108
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15109
exec 5>>config.log
 
15110
{
 
15111
  echo
 
15112
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15113
## Running $as_me. ##
 
15114
_ASBOX
 
15115
  $as_echo "$ac_log"
 
15116
} >&5
 
15117
 
 
15118
_ACEOF
 
15119
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15120
#
 
15121
# INIT-COMMANDS
 
15122
#
 
15123
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
15124
 
 
15125
 
 
15126
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
15127
# if CDPATH is set.
 
15128
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15129
 
 
15130
sed_quote_subst='$sed_quote_subst'
 
15131
double_quote_subst='$double_quote_subst'
 
15132
delay_variable_subst='$delay_variable_subst'
 
15133
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15134
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
15135
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
15136
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15137
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
15138
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
15139
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15140
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
15141
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15142
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15143
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
15144
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15145
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
15146
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
15147
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15148
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15149
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15150
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
15151
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
15152
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
15153
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
15154
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
15155
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
15156
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
15157
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
15158
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
15159
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15160
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15161
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
15162
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
15163
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
15164
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
15165
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15166
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
15167
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
15168
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15169
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15170
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15171
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
15172
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15173
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
15174
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
15175
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
15176
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
15177
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
15178
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15179
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
15180
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
15181
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
15182
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
15183
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15184
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
15185
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
15186
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15187
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
15188
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
15189
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
15190
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
15191
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
15192
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
15193
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
15194
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
15195
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15196
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15197
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
15198
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
15199
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15200
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15201
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
15202
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15203
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15204
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15205
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15206
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15207
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15208
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15209
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15210
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15211
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15212
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15213
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
15214
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
15215
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
15216
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
15217
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15218
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
15219
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15220
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
15221
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15222
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
15223
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15224
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15225
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15226
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15227
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15228
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
15229
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15230
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15231
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
15232
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15233
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15234
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15235
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15236
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15237
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15238
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15239
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15240
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15241
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
15242
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
15243
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15244
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15245
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
15246
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
15247
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
15248
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15249
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15250
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15251
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
15252
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
15253
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
15254
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
15255
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
15256
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15257
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15258
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15259
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15260
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15261
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15262
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15263
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15264
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15265
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15266
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15267
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15268
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15269
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15270
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15271
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15272
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15273
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15274
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15275
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15276
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15277
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15278
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15279
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15280
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15281
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15282
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15283
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15284
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15285
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15286
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15287
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15288
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15289
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15290
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15291
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15292
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15293
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15294
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15295
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15296
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15297
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15298
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15299
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15300
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15301
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15302
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15303
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
15304
 
 
15305
LTCC='$LTCC'
 
15306
LTCFLAGS='$LTCFLAGS'
 
15307
compiler='$compiler_DEFAULT'
 
15308
 
 
15309
# Quote evaled strings.
 
15310
for var in SED \
 
15311
GREP \
 
15312
EGREP \
 
15313
FGREP \
 
15314
LD \
 
15315
NM \
 
15316
LN_S \
 
15317
lt_SP2NL \
 
15318
lt_NL2SP \
 
15319
reload_flag \
 
15320
OBJDUMP \
 
15321
deplibs_check_method \
 
15322
file_magic_cmd \
 
15323
AR \
 
15324
AR_FLAGS \
 
15325
STRIP \
 
15326
RANLIB \
 
15327
CC \
 
15328
CFLAGS \
 
15329
compiler \
 
15330
lt_cv_sys_global_symbol_pipe \
 
15331
lt_cv_sys_global_symbol_to_cdecl \
 
15332
lt_cv_sys_global_symbol_to_c_name_address \
 
15333
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
15334
SHELL \
 
15335
ECHO \
 
15336
lt_prog_compiler_no_builtin_flag \
 
15337
lt_prog_compiler_wl \
 
15338
lt_prog_compiler_pic \
 
15339
lt_prog_compiler_static \
 
15340
lt_cv_prog_compiler_c_o \
 
15341
need_locks \
 
15342
DSYMUTIL \
 
15343
NMEDIT \
 
15344
LIPO \
 
15345
OTOOL \
 
15346
OTOOL64 \
 
15347
shrext_cmds \
 
15348
export_dynamic_flag_spec \
 
15349
whole_archive_flag_spec \
 
15350
compiler_needs_object \
 
15351
with_gnu_ld \
 
15352
allow_undefined_flag \
 
15353
no_undefined_flag \
 
15354
hardcode_libdir_flag_spec \
 
15355
hardcode_libdir_flag_spec_ld \
 
15356
hardcode_libdir_separator \
 
15357
fix_srcfile_path \
 
15358
exclude_expsyms \
 
15359
include_expsyms \
 
15360
file_list_spec \
 
15361
variables_saved_for_relink \
 
15362
libname_spec \
 
15363
library_names_spec \
 
15364
soname_spec \
 
15365
finish_eval \
 
15366
old_striplib \
 
15367
striplib \
 
15368
compiler_lib_search_dirs \
 
15369
predep_objects \
 
15370
postdep_objects \
 
15371
predeps \
 
15372
postdeps \
 
15373
compiler_lib_search_path \
 
15374
LD_CXX \
 
15375
compiler_CXX \
 
15376
lt_prog_compiler_no_builtin_flag_CXX \
 
15377
lt_prog_compiler_wl_CXX \
 
15378
lt_prog_compiler_pic_CXX \
 
15379
lt_prog_compiler_static_CXX \
 
15380
lt_cv_prog_compiler_c_o_CXX \
 
15381
export_dynamic_flag_spec_CXX \
 
15382
whole_archive_flag_spec_CXX \
 
15383
compiler_needs_object_CXX \
 
15384
with_gnu_ld_CXX \
 
15385
allow_undefined_flag_CXX \
 
15386
no_undefined_flag_CXX \
 
15387
hardcode_libdir_flag_spec_CXX \
 
15388
hardcode_libdir_flag_spec_ld_CXX \
 
15389
hardcode_libdir_separator_CXX \
 
15390
fix_srcfile_path_CXX \
 
15391
exclude_expsyms_CXX \
 
15392
include_expsyms_CXX \
 
15393
file_list_spec_CXX \
 
15394
compiler_lib_search_dirs_CXX \
 
15395
predep_objects_CXX \
 
15396
postdep_objects_CXX \
 
15397
predeps_CXX \
 
15398
postdeps_CXX \
 
15399
compiler_lib_search_path_CXX; do
 
15400
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
15401
    *[\\\\\\\`\\"\\\$]*)
 
15402
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
15403
      ;;
 
15404
    *)
 
15405
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15406
      ;;
 
15407
    esac
 
15408
done
 
15409
 
 
15410
# Double-quote double-evaled strings.
 
15411
for var in reload_cmds \
 
15412
old_postinstall_cmds \
 
15413
old_postuninstall_cmds \
 
15414
old_archive_cmds \
 
15415
extract_expsyms_cmds \
 
15416
old_archive_from_new_cmds \
 
15417
old_archive_from_expsyms_cmds \
 
15418
archive_cmds \
 
15419
archive_expsym_cmds \
 
15420
module_cmds \
 
15421
module_expsym_cmds \
 
15422
export_symbols_cmds \
 
15423
prelink_cmds \
 
15424
postinstall_cmds \
 
15425
postuninstall_cmds \
 
15426
finish_cmds \
 
15427
sys_lib_search_path_spec \
 
15428
sys_lib_dlsearch_path_spec \
 
15429
old_archive_cmds_CXX \
 
15430
old_archive_from_new_cmds_CXX \
 
15431
old_archive_from_expsyms_cmds_CXX \
 
15432
archive_cmds_CXX \
 
15433
archive_expsym_cmds_CXX \
 
15434
module_cmds_CXX \
 
15435
module_expsym_cmds_CXX \
 
15436
export_symbols_cmds_CXX \
 
15437
prelink_cmds_CXX; do
 
15438
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
15439
    *[\\\\\\\`\\"\\\$]*)
 
15440
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
15441
      ;;
 
15442
    *)
 
15443
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15444
      ;;
 
15445
    esac
 
15446
done
 
15447
 
 
15448
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
15449
case \$lt_ECHO in
 
15450
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
15451
  ;;
 
15452
esac
 
15453
 
 
15454
ac_aux_dir='$ac_aux_dir'
 
15455
xsi_shell='$xsi_shell'
 
15456
lt_shell_append='$lt_shell_append'
 
15457
 
 
15458
# See if we are running on zsh, and set the options which allow our
 
15459
# commands through without removal of \ escapes INIT.
 
15460
if test -n "\${ZSH_VERSION+set}" ; then
 
15461
   setopt NO_GLOB_SUBST
 
15462
fi
 
15463
 
 
15464
 
 
15465
    PACKAGE='$PACKAGE'
 
15466
    VERSION='$VERSION'
 
15467
    TIMESTAMP='$TIMESTAMP'
 
15468
    RM='$RM'
 
15469
    ofile='$ofile'
 
15470
 
 
15471
 
 
15472
 
 
15473
 
 
15474
 
 
15475
 
 
15476
_ACEOF
 
15477
 
 
15478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15479
 
 
15480
# Handling of arguments.
 
15481
for ac_config_target in $ac_config_targets
 
15482
do
 
15483
  case $ac_config_target in
 
15484
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
15485
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
15486
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
15487
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
15488
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
15489
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
15490
 
 
15491
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
15492
  esac
 
15493
done
 
15494
 
 
15495
 
 
15496
# If the user did not use the arguments to specify the items to instantiate,
 
15497
# then the envvar interface is used.  Set only those that are not.
 
15498
# We use the long form for the default assignment because of an extremely
 
15499
# bizarre bug on SunOS 4.1.3.
 
15500
if $ac_need_defaults; then
 
15501
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
15502
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
15503
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
15504
fi
 
15505
 
 
15506
# Have a temporary directory for convenience.  Make it in the build tree
 
15507
# simply because there is no reason against having it here, and in addition,
 
15508
# creating and moving files from /tmp can sometimes cause problems.
 
15509
# Hook for its removal unless debugging.
 
15510
# Note that there is a small window in which the directory will not be cleaned:
 
15511
# after its creation but before its name has been assigned to `$tmp'.
 
15512
$debug ||
 
15513
{
 
15514
  tmp=
 
15515
  trap 'exit_status=$?
 
15516
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
15517
' 0
 
15518
  trap 'as_fn_exit 1' 1 2 13 15
 
15519
}
 
15520
# Create a (secure) tmp directory for tmp files.
 
15521
 
 
15522
{
 
15523
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
15524
  test -n "$tmp" && test -d "$tmp"
 
15525
}  ||
 
15526
{
 
15527
  tmp=./conf$$-$RANDOM
 
15528
  (umask 077 && mkdir "$tmp")
 
15529
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
15530
 
 
15531
# Set up the scripts for CONFIG_FILES section.
 
15532
# No need to generate them if there are no CONFIG_FILES.
 
15533
# This happens for instance with `./config.status config.h'.
 
15534
if test -n "$CONFIG_FILES"; then
 
15535
 
 
15536
 
 
15537
ac_cr=`echo X | tr X '\015'`
 
15538
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
15539
# But we know of no other shell where ac_cr would be empty at this
 
15540
# point, so we can use a bashism as a fallback.
 
15541
if test "x$ac_cr" = x; then
 
15542
  eval ac_cr=\$\'\\r\'
 
15543
fi
 
15544
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
15545
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
15546
  ac_cs_awk_cr='\r'
 
15547
else
 
15548
  ac_cs_awk_cr=$ac_cr
 
15549
fi
 
15550
 
 
15551
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
15552
_ACEOF
 
15553
 
 
15554
 
 
15555
{
 
15556
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
15557
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
15558
  echo "_ACEOF"
 
15559
} >conf$$subs.sh ||
 
15560
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15561
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
15562
ac_delim='%!_!# '
 
15563
for ac_last_try in false false false false false :; do
 
15564
  . ./conf$$subs.sh ||
 
15565
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15566
 
 
15567
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
15568
  if test $ac_delim_n = $ac_delim_num; then
 
15569
    break
 
15570
  elif $ac_last_try; then
 
15571
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
15572
  else
 
15573
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15574
  fi
 
15575
done
 
15576
rm -f conf$$subs.sh
 
15577
 
 
15578
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15579
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
15580
_ACEOF
 
15581
sed -n '
 
15582
h
 
15583
s/^/S["/; s/!.*/"]=/
 
15584
p
 
15585
g
 
15586
s/^[^!]*!//
 
15587
:repl
 
15588
t repl
 
15589
s/'"$ac_delim"'$//
 
15590
t delim
 
15591
:nl
 
15592
h
 
15593
s/\(.\{148\}\).*/\1/
 
15594
t more1
 
15595
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
15596
p
 
15597
n
 
15598
b repl
 
15599
:more1
 
15600
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15601
p
 
15602
g
 
15603
s/.\{148\}//
 
15604
t nl
 
15605
:delim
 
15606
h
 
15607
s/\(.\{148\}\).*/\1/
 
15608
t more2
 
15609
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
15610
p
 
15611
b
 
15612
:more2
 
15613
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
15614
p
 
15615
g
 
15616
s/.\{148\}//
 
15617
t delim
 
15618
' <conf$$subs.awk | sed '
 
15619
/^[^""]/{
 
15620
  N
 
15621
  s/\n//
 
15622
}
 
15623
' >>$CONFIG_STATUS || ac_write_fail=1
 
15624
rm -f conf$$subs.awk
 
15625
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15626
_ACAWK
 
15627
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
15628
  for (key in S) S_is_set[key] = 1
 
15629
  FS = ""
 
15630
 
 
15631
}
 
15632
{
 
15633
  line = $ 0
 
15634
  nfields = split(line, field, "@")
 
15635
  substed = 0
 
15636
  len = length(field[1])
 
15637
  for (i = 2; i < nfields; i++) {
 
15638
    key = field[i]
 
15639
    keylen = length(key)
 
15640
    if (S_is_set[key]) {
 
15641
      value = S[key]
 
15642
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
15643
      len += length(value) + length(field[++i])
 
15644
      substed = 1
 
15645
    } else
 
15646
      len += 1 + keylen
 
15647
  }
 
15648
 
 
15649
  print line
 
15650
}
 
15651
 
 
15652
_ACAWK
 
15653
_ACEOF
 
15654
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15655
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
15656
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
15657
else
 
15658
  cat
 
15659
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
15660
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
15661
_ACEOF
 
15662
 
 
15663
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
15664
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
15665
# trailing colons and then remove the whole line if VPATH becomes empty
 
15666
# (actually we leave an empty line to preserve line numbers).
 
15667
if test "x$srcdir" = x.; then
 
15668
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
15669
s/:*\$(srcdir):*/:/
 
15670
s/:*\${srcdir}:*/:/
 
15671
s/:*@srcdir@:*/:/
 
15672
s/^\([^=]*=[     ]*\):*/\1/
 
15673
s/:*$//
 
15674
s/^[^=]*=[       ]*$//
 
15675
}'
 
15676
fi
 
15677
 
 
15678
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15679
fi # test -n "$CONFIG_FILES"
 
15680
 
 
15681
# Set up the scripts for CONFIG_HEADERS section.
 
15682
# No need to generate them if there are no CONFIG_HEADERS.
 
15683
# This happens for instance with `./config.status Makefile'.
 
15684
if test -n "$CONFIG_HEADERS"; then
 
15685
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
15686
BEGIN {
 
15687
_ACEOF
 
15688
 
 
15689
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
15690
# here-document in config.status, that substitutes the proper values into
 
15691
# config.h.in to produce config.h.
 
15692
 
 
15693
# Create a delimiter string that does not exist in confdefs.h, to ease
 
15694
# handling of long lines.
 
15695
ac_delim='%!_!# '
 
15696
for ac_last_try in false false :; do
 
15697
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
15698
  if test -z "$ac_t"; then
 
15699
    break
 
15700
  elif $ac_last_try; then
 
15701
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
15702
  else
 
15703
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
15704
  fi
 
15705
done
 
15706
 
 
15707
# For the awk script, D is an array of macro values keyed by name,
 
15708
# likewise P contains macro parameters if any.  Preserve backslash
 
15709
# newline sequences.
 
15710
 
 
15711
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
15712
sed -n '
 
15713
s/.\{148\}/&'"$ac_delim"'/g
 
15714
t rset
 
15715
:rset
 
15716
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
15717
t def
 
15718
d
 
15719
:def
 
15720
s/\\$//
 
15721
t bsnl
 
15722
s/["\\]/\\&/g
 
15723
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15724
D["\1"]=" \3"/p
 
15725
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
15726
d
 
15727
:bsnl
 
15728
s/["\\]/\\&/g
 
15729
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
15730
D["\1"]=" \3\\\\\\n"\\/p
 
15731
t cont
 
15732
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
15733
t cont
 
15734
d
 
15735
:cont
 
15736
n
 
15737
s/.\{148\}/&'"$ac_delim"'/g
 
15738
t clear
 
15739
:clear
 
15740
s/\\$//
 
15741
t bsnlc
 
15742
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
15743
d
 
15744
:bsnlc
 
15745
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
15746
b cont
 
15747
' <confdefs.h | sed '
 
15748
s/'"$ac_delim"'/"\\\
 
15749
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
15750
 
 
15751
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15752
  for (key in D) D_is_set[key] = 1
 
15753
  FS = ""
 
15754
}
 
15755
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
15756
  line = \$ 0
 
15757
  split(line, arg, " ")
 
15758
  if (arg[1] == "#") {
 
15759
    defundef = arg[2]
 
15760
    mac1 = arg[3]
 
15761
  } else {
 
15762
    defundef = substr(arg[1], 2)
 
15763
    mac1 = arg[2]
 
15764
  }
 
15765
  split(mac1, mac2, "(") #)
 
15766
  macro = mac2[1]
 
15767
  prefix = substr(line, 1, index(line, defundef) - 1)
 
15768
  if (D_is_set[macro]) {
 
15769
    # Preserve the white space surrounding the "#".
 
15770
    print prefix "define", macro P[macro] D[macro]
 
15771
    next
 
15772
  } else {
 
15773
    # Replace #undef with comments.  This is necessary, for example,
 
15774
    # in the case of _POSIX_SOURCE, which is predefined and required
 
15775
    # on some systems where configure will not decide to define it.
 
15776
    if (defundef == "undef") {
 
15777
      print "/*", prefix defundef, macro, "*/"
 
15778
      next
 
15779
    }
 
15780
  }
 
15781
}
 
15782
{ print }
 
15783
_ACAWK
 
15784
_ACEOF
 
15785
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15786
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
15787
fi # test -n "$CONFIG_HEADERS"
 
15788
 
 
15789
 
 
15790
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
15791
shift
 
15792
for ac_tag
 
15793
do
 
15794
  case $ac_tag in
 
15795
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
15796
  esac
 
15797
  case $ac_mode$ac_tag in
 
15798
  :[FHL]*:*);;
 
15799
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
15800
  :[FH]-) ac_tag=-:-;;
 
15801
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
15802
  esac
 
15803
  ac_save_IFS=$IFS
 
15804
  IFS=:
 
15805
  set x $ac_tag
 
15806
  IFS=$ac_save_IFS
 
15807
  shift
 
15808
  ac_file=$1
 
15809
  shift
 
15810
 
 
15811
  case $ac_mode in
 
15812
  :L) ac_source=$1;;
 
15813
  :[FH])
 
15814
    ac_file_inputs=
 
15815
    for ac_f
 
15816
    do
 
15817
      case $ac_f in
 
15818
      -) ac_f="$tmp/stdin";;
 
15819
      *) # Look for the file first in the build tree, then in the source tree
 
15820
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
15821
         # because $ac_f cannot contain `:'.
 
15822
         test -f "$ac_f" ||
 
15823
           case $ac_f in
 
15824
           [\\/$]*) false;;
 
15825
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
15826
           esac ||
 
15827
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
15828
      esac
 
15829
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
15830
      as_fn_append ac_file_inputs " '$ac_f'"
 
15831
    done
 
15832
 
 
15833
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
15834
    # use $as_me), people would be surprised to read:
 
15835
    #    /* config.h.  Generated by config.status.  */
 
15836
    configure_input='Generated from '`
 
15837
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
15838
        `' by configure.'
 
15839
    if test x"$ac_file" != x-; then
 
15840
      configure_input="$ac_file.  $configure_input"
 
15841
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
15842
$as_echo "$as_me: creating $ac_file" >&6;}
 
15843
    fi
 
15844
    # Neutralize special characters interpreted by sed in replacement strings.
 
15845
    case $configure_input in #(
 
15846
    *\&* | *\|* | *\\* )
 
15847
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
15848
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
15849
    *) ac_sed_conf_input=$configure_input;;
 
15850
    esac
 
15851
 
 
15852
    case $ac_tag in
 
15853
    *:-:* | *:-) cat >"$tmp/stdin" \
 
15854
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
15855
    esac
 
15856
    ;;
 
15857
  esac
 
15858
 
 
15859
  ac_dir=`$as_dirname -- "$ac_file" ||
 
15860
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15861
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
15862
         X"$ac_file" : 'X\(//\)$' \| \
 
15863
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
15864
$as_echo X"$ac_file" |
 
15865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15866
            s//\1/
 
15867
            q
 
15868
          }
 
15869
          /^X\(\/\/\)[^/].*/{
 
15870
            s//\1/
 
15871
            q
 
15872
          }
 
15873
          /^X\(\/\/\)$/{
 
15874
            s//\1/
 
15875
            q
 
15876
          }
 
15877
          /^X\(\/\).*/{
 
15878
            s//\1/
 
15879
            q
 
15880
          }
 
15881
          s/.*/./; q'`
 
15882
  as_dir="$ac_dir"; as_fn_mkdir_p
 
15883
  ac_builddir=.
 
15884
 
 
15885
case "$ac_dir" in
 
15886
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15887
*)
 
15888
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
15889
  # A ".." for each directory in $ac_dir_suffix.
 
15890
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
15891
  case $ac_top_builddir_sub in
 
15892
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
15893
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
15894
  esac ;;
 
15895
esac
 
15896
ac_abs_top_builddir=$ac_pwd
 
15897
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
15898
# for backward compatibility:
 
15899
ac_top_builddir=$ac_top_build_prefix
 
15900
 
 
15901
case $srcdir in
 
15902
  .)  # We are building in place.
 
15903
    ac_srcdir=.
 
15904
    ac_top_srcdir=$ac_top_builddir_sub
 
15905
    ac_abs_top_srcdir=$ac_pwd ;;
 
15906
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
15907
    ac_srcdir=$srcdir$ac_dir_suffix;
 
15908
    ac_top_srcdir=$srcdir
 
15909
    ac_abs_top_srcdir=$srcdir ;;
 
15910
  *) # Relative name.
 
15911
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
15912
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
15913
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
15914
esac
 
15915
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
15916
 
 
15917
 
 
15918
  case $ac_mode in
 
15919
  :F)
 
15920
  #
 
15921
  # CONFIG_FILE
 
15922
  #
 
15923
 
 
15924
  case $INSTALL in
 
15925
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
15926
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
15927
  esac
 
15928
  ac_MKDIR_P=$MKDIR_P
 
15929
  case $MKDIR_P in
 
15930
  [\\/$]* | ?:[\\/]* ) ;;
 
15931
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
15932
  esac
 
15933
_ACEOF
 
15934
 
 
15935
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15936
# If the template does not know about datarootdir, expand it.
 
15937
# FIXME: This hack should be removed a few years after 2.60.
 
15938
ac_datarootdir_hack=; ac_datarootdir_seen=
 
15939
ac_sed_dataroot='
 
15940
/datarootdir/ {
 
15941
  p
 
15942
  q
 
15943
}
 
15944
/@datadir@/p
 
15945
/@docdir@/p
 
15946
/@infodir@/p
 
15947
/@localedir@/p
 
15948
/@mandir@/p'
 
15949
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
15950
*datarootdir*) ac_datarootdir_seen=yes;;
 
15951
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
15952
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
15953
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
15954
_ACEOF
 
15955
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15956
  ac_datarootdir_hack='
 
15957
  s&@datadir@&$datadir&g
 
15958
  s&@docdir@&$docdir&g
 
15959
  s&@infodir@&$infodir&g
 
15960
  s&@localedir@&$localedir&g
 
15961
  s&@mandir@&$mandir&g
 
15962
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
15963
esac
 
15964
_ACEOF
 
15965
 
 
15966
# Neutralize VPATH when `$srcdir' = `.'.
 
15967
# Shell code in configure.ac might set extrasub.
 
15968
# FIXME: do we really want to maintain this feature?
 
15969
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15970
ac_sed_extra="$ac_vpsub
 
15971
$extrasub
 
15972
_ACEOF
 
15973
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15974
:t
 
15975
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
15976
s|@configure_input@|$ac_sed_conf_input|;t t
 
15977
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
15978
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
15979
s&@srcdir@&$ac_srcdir&;t t
 
15980
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
15981
s&@top_srcdir@&$ac_top_srcdir&;t t
 
15982
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
15983
s&@builddir@&$ac_builddir&;t t
 
15984
s&@abs_builddir@&$ac_abs_builddir&;t t
 
15985
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
15986
s&@INSTALL@&$ac_INSTALL&;t t
 
15987
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
15988
$ac_datarootdir_hack
 
15989
"
 
15990
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
15991
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
15992
 
 
15993
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
15994
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
15995
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
15996
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15997
which seems to be undefined.  Please make sure it is defined." >&5
 
15998
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
15999
which seems to be undefined.  Please make sure it is defined." >&2;}
 
16000
 
 
16001
  rm -f "$tmp/stdin"
 
16002
  case $ac_file in
 
16003
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
16004
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
16005
  esac \
 
16006
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16007
 ;;
 
16008
  :H)
 
16009
  #
 
16010
  # CONFIG_HEADER
 
16011
  #
 
16012
  if test x"$ac_file" != x-; then
 
16013
    {
 
16014
      $as_echo "/* $configure_input  */" \
 
16015
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
16016
    } >"$tmp/config.h" \
 
16017
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16018
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
16019
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
16020
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
16021
    else
 
16022
      rm -f "$ac_file"
 
16023
      mv "$tmp/config.h" "$ac_file" \
 
16024
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16025
    fi
 
16026
  else
 
16027
    $as_echo "/* $configure_input  */" \
 
16028
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
16029
      || as_fn_error "could not create -" "$LINENO" 5
 
16030
  fi
 
16031
# Compute "$ac_file"'s index in $config_headers.
 
16032
_am_arg="$ac_file"
 
16033
_am_stamp_count=1
 
16034
for _am_header in $config_headers :; do
 
16035
  case $_am_header in
 
16036
    $_am_arg | $_am_arg:* )
 
16037
      break ;;
 
16038
    * )
 
16039
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
16040
  esac
 
16041
done
 
16042
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
16043
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16044
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
16045
         X"$_am_arg" : 'X\(//\)$' \| \
 
16046
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
16047
$as_echo X"$_am_arg" |
 
16048
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16049
            s//\1/
 
16050
            q
 
16051
          }
 
16052
          /^X\(\/\/\)[^/].*/{
 
16053
            s//\1/
 
16054
            q
 
16055
          }
 
16056
          /^X\(\/\/\)$/{
 
16057
            s//\1/
 
16058
            q
 
16059
          }
 
16060
          /^X\(\/\).*/{
 
16061
            s//\1/
 
16062
            q
 
16063
          }
 
16064
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
16065
 ;;
 
16066
 
 
16067
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
16068
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
16069
 ;;
 
16070
  esac
 
16071
 
 
16072
 
 
16073
  case $ac_file$ac_mode in
 
16074
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
16075
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
16076
  # are listed without --file.  Let's play safe and only enable the eval
 
16077
  # if we detect the quoting.
 
16078
  case $CONFIG_FILES in
 
16079
  *\'*) eval set x "$CONFIG_FILES" ;;
 
16080
  *)   set x $CONFIG_FILES ;;
 
16081
  esac
 
16082
  shift
 
16083
  for mf
 
16084
  do
 
16085
    # Strip MF so we end up with the name of the file.
 
16086
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
16087
    # Check whether this is an Automake generated Makefile or not.
 
16088
    # We used to match only the files named `Makefile.in', but
 
16089
    # some people rename them; so instead we look at the file content.
 
16090
    # Grep'ing the first line is not enough: some people post-process
 
16091
    # each Makefile.in and add a new line on top of each file to say so.
 
16092
    # Grep'ing the whole file is not good either: AIX grep has a line
 
16093
    # limit of 2048, but all sed's we know have understand at least 4000.
 
16094
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
16095
      dirpart=`$as_dirname -- "$mf" ||
 
16096
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16097
         X"$mf" : 'X\(//\)[^/]' \| \
 
16098
         X"$mf" : 'X\(//\)$' \| \
 
16099
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
16100
$as_echo X"$mf" |
 
16101
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16102
            s//\1/
 
16103
            q
 
16104
          }
 
16105
          /^X\(\/\/\)[^/].*/{
 
16106
            s//\1/
 
16107
            q
 
16108
          }
 
16109
          /^X\(\/\/\)$/{
 
16110
            s//\1/
 
16111
            q
 
16112
          }
 
16113
          /^X\(\/\).*/{
 
16114
            s//\1/
 
16115
            q
 
16116
          }
 
16117
          s/.*/./; q'`
 
16118
    else
 
16119
      continue
 
16120
    fi
 
16121
    # Extract the definition of DEPDIR, am__include, and am__quote
 
16122
    # from the Makefile without running `make'.
 
16123
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
16124
    test -z "$DEPDIR" && continue
 
16125
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
16126
    test -z "am__include" && continue
 
16127
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
16128
    # When using ansi2knr, U may be empty or an underscore; expand it
 
16129
    U=`sed -n 's/^U = //p' < "$mf"`
 
16130
    # Find all dependency output files, they are included files with
 
16131
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
16132
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
16133
    # expansion.
 
16134
    for file in `sed -n "
 
16135
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
16136
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
16137
      # Make sure the directory exists.
 
16138
      test -f "$dirpart/$file" && continue
 
16139
      fdir=`$as_dirname -- "$file" ||
 
16140
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16141
         X"$file" : 'X\(//\)[^/]' \| \
 
16142
         X"$file" : 'X\(//\)$' \| \
 
16143
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
16144
$as_echo X"$file" |
 
16145
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16146
            s//\1/
 
16147
            q
 
16148
          }
 
16149
          /^X\(\/\/\)[^/].*/{
 
16150
            s//\1/
 
16151
            q
 
16152
          }
 
16153
          /^X\(\/\/\)$/{
 
16154
            s//\1/
 
16155
            q
 
16156
          }
 
16157
          /^X\(\/\).*/{
 
16158
            s//\1/
 
16159
            q
 
16160
          }
 
16161
          s/.*/./; q'`
 
16162
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
16163
      # echo "creating $dirpart/$file"
 
16164
      echo '# dummy' > "$dirpart/$file"
 
16165
    done
 
16166
  done
 
16167
}
 
16168
 ;;
 
16169
    "libtool":C)
 
16170
 
 
16171
    # See if we are running on zsh, and set the options which allow our
 
16172
    # commands through without removal of \ escapes.
 
16173
    if test -n "${ZSH_VERSION+set}" ; then
 
16174
      setopt NO_GLOB_SUBST
 
16175
    fi
 
16176
 
 
16177
    cfgfile="${ofile}T"
 
16178
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
16179
    $RM "$cfgfile"
 
16180
 
 
16181
    cat <<_LT_EOF >> "$cfgfile"
 
16182
#! $SHELL
 
16183
 
 
16184
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
16185
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
16186
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16187
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
16188
#
 
16189
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
16190
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
16191
#   Written by Gordon Matzigkeit, 1996
 
16192
#
 
16193
#   This file is part of GNU Libtool.
 
16194
#
 
16195
# GNU Libtool is free software; you can redistribute it and/or
 
16196
# modify it under the terms of the GNU General Public License as
 
16197
# published by the Free Software Foundation; either version 2 of
 
16198
# the License, or (at your option) any later version.
 
16199
#
 
16200
# As a special exception to the GNU General Public License,
 
16201
# if you distribute this file as part of a program or library that
 
16202
# is built using GNU Libtool, you may include this file under the
 
16203
# same distribution terms that you use for the rest of that program.
 
16204
#
 
16205
# GNU Libtool is distributed in the hope that it will be useful,
 
16206
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16207
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16208
# GNU General Public License for more details.
 
16209
#
 
16210
# You should have received a copy of the GNU General Public License
 
16211
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
16212
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
16213
# obtained by writing to the Free Software Foundation, Inc.,
 
16214
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16215
 
 
16216
 
 
16217
# The names of the tagged configurations supported by this script.
 
16218
available_tags="CXX "
 
16219
 
 
16220
# ### BEGIN LIBTOOL CONFIG
 
16221
 
 
16222
# Which release of libtool.m4 was used?
 
16223
macro_version=$macro_version
 
16224
macro_revision=$macro_revision
 
16225
 
 
16226
# Whether or not to build shared libraries.
 
16227
build_libtool_libs=$enable_shared
 
16228
 
 
16229
# Whether or not to build static libraries.
 
16230
build_old_libs=$enable_static
 
16231
 
 
16232
# What type of objects to build.
 
16233
pic_mode=$pic_mode
 
16234
 
 
16235
# Whether or not to optimize for fast installation.
 
16236
fast_install=$enable_fast_install
 
16237
 
 
16238
# The host system.
 
16239
host_alias=$host_alias
 
16240
host=$host
 
16241
host_os=$host_os
 
16242
 
 
16243
# The build system.
 
16244
build_alias=$build_alias
 
16245
build=$build
 
16246
build_os=$build_os
 
16247
 
 
16248
# A sed program that does not truncate output.
 
16249
SED=$lt_SED
 
16250
 
 
16251
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
16252
Xsed="\$SED -e 1s/^X//"
 
16253
 
 
16254
# A grep program that handles long lines.
 
16255
GREP=$lt_GREP
 
16256
 
 
16257
# An ERE matcher.
 
16258
EGREP=$lt_EGREP
 
16259
 
 
16260
# A literal string matcher.
 
16261
FGREP=$lt_FGREP
 
16262
 
 
16263
# A BSD- or MS-compatible name lister.
 
16264
NM=$lt_NM
 
16265
 
 
16266
# Whether we need soft or hard links.
 
16267
LN_S=$lt_LN_S
 
16268
 
 
16269
# What is the maximum length of a command?
 
16270
max_cmd_len=$max_cmd_len
 
16271
 
 
16272
# Object file suffix (normally "o").
 
16273
objext=$ac_objext
 
16274
 
 
16275
# Executable file suffix (normally "").
 
16276
exeext=$exeext
 
16277
 
 
16278
# whether the shell understands "unset".
 
16279
lt_unset=$lt_unset
 
16280
 
 
16281
# turn spaces into newlines.
 
16282
SP2NL=$lt_lt_SP2NL
 
16283
 
 
16284
# turn newlines into spaces.
 
16285
NL2SP=$lt_lt_NL2SP
 
16286
 
 
16287
# How to create reloadable object files.
 
16288
reload_flag=$lt_reload_flag
 
16289
reload_cmds=$lt_reload_cmds
 
16290
 
 
16291
# An object symbol dumper.
 
16292
OBJDUMP=$lt_OBJDUMP
 
16293
 
 
16294
# Method to check whether dependent libraries are shared objects.
 
16295
deplibs_check_method=$lt_deplibs_check_method
 
16296
 
 
16297
# Command to use when deplibs_check_method == "file_magic".
 
16298
file_magic_cmd=$lt_file_magic_cmd
 
16299
 
 
16300
# The archiver.
 
16301
AR=$lt_AR
 
16302
AR_FLAGS=$lt_AR_FLAGS
 
16303
 
 
16304
# A symbol stripping program.
 
16305
STRIP=$lt_STRIP
 
16306
 
 
16307
# Commands used to install an old-style archive.
 
16308
RANLIB=$lt_RANLIB
 
16309
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16311
 
 
16312
# A C compiler.
 
16313
LTCC=$lt_CC
 
16314
 
 
16315
# LTCC compiler flags.
 
16316
LTCFLAGS=$lt_CFLAGS
 
16317
 
 
16318
# Take the output of nm and produce a listing of raw symbols and C names.
 
16319
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16320
 
 
16321
# Transform the output of nm in a proper C declaration.
 
16322
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16323
 
 
16324
# Transform the output of nm in a C name address pair.
 
16325
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16326
 
 
16327
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
16328
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
16329
 
 
16330
# The name of the directory that contains temporary libtool files.
 
16331
objdir=$objdir
 
16332
 
 
16333
# Shell to use when invoking shell scripts.
 
16334
SHELL=$lt_SHELL
 
16335
 
 
16336
# An echo program that does not interpret backslashes.
 
16337
ECHO=$lt_ECHO
 
16338
 
 
16339
# Used to examine libraries when file_magic_cmd begins with "file".
 
16340
MAGIC_CMD=$MAGIC_CMD
 
16341
 
 
16342
# Must we lock files when doing compilation?
 
16343
need_locks=$lt_need_locks
 
16344
 
 
16345
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
16346
DSYMUTIL=$lt_DSYMUTIL
 
16347
 
 
16348
# Tool to change global to local symbols on Mac OS X.
 
16349
NMEDIT=$lt_NMEDIT
 
16350
 
 
16351
# Tool to manipulate fat objects and archives on Mac OS X.
 
16352
LIPO=$lt_LIPO
 
16353
 
 
16354
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
16355
OTOOL=$lt_OTOOL
 
16356
 
 
16357
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
16358
OTOOL64=$lt_OTOOL64
 
16359
 
 
16360
# Old archive suffix (normally "a").
 
16361
libext=$libext
 
16362
 
 
16363
# Shared library suffix (normally ".so").
 
16364
shrext_cmds=$lt_shrext_cmds
 
16365
 
 
16366
# The commands to extract the exported symbol list from a shared archive.
 
16367
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16368
 
 
16369
# Variables whose values should be saved in libtool wrapper scripts and
 
16370
# restored at link time.
 
16371
variables_saved_for_relink=$lt_variables_saved_for_relink
 
16372
 
 
16373
# Do we need the "lib" prefix for modules?
 
16374
need_lib_prefix=$need_lib_prefix
 
16375
 
 
16376
# Do we need a version for libraries?
 
16377
need_version=$need_version
 
16378
 
 
16379
# Library versioning type.
 
16380
version_type=$version_type
 
16381
 
 
16382
# Shared library runtime path variable.
 
16383
runpath_var=$runpath_var
 
16384
 
 
16385
# Shared library path variable.
 
16386
shlibpath_var=$shlibpath_var
 
16387
 
 
16388
# Is shlibpath searched before the hard-coded library search path?
 
16389
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16390
 
 
16391
# Format of library name prefix.
 
16392
libname_spec=$lt_libname_spec
 
16393
 
 
16394
# List of archive names.  First name is the real one, the rest are links.
 
16395
# The last name is the one that the linker finds with -lNAME
 
16396
library_names_spec=$lt_library_names_spec
 
16397
 
 
16398
# The coded name of the library, if different from the real name.
 
16399
soname_spec=$lt_soname_spec
 
16400
 
 
16401
# Command to use after installation of a shared archive.
 
16402
postinstall_cmds=$lt_postinstall_cmds
 
16403
 
 
16404
# Command to use after uninstallation of a shared archive.
 
16405
postuninstall_cmds=$lt_postuninstall_cmds
 
16406
 
 
16407
# Commands used to finish a libtool library installation in a directory.
 
16408
finish_cmds=$lt_finish_cmds
 
16409
 
 
16410
# As "finish_cmds", except a single script fragment to be evaled but
 
16411
# not shown.
 
16412
finish_eval=$lt_finish_eval
 
16413
 
 
16414
# Whether we should hardcode library paths into libraries.
 
16415
hardcode_into_libs=$hardcode_into_libs
 
16416
 
 
16417
# Compile-time system search path for libraries.
 
16418
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16419
 
 
16420
# Run-time system search path for libraries.
 
16421
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16422
 
 
16423
# Whether dlopen is supported.
 
16424
dlopen_support=$enable_dlopen
 
16425
 
 
16426
# Whether dlopen of programs is supported.
 
16427
dlopen_self=$enable_dlopen_self
 
16428
 
 
16429
# Whether dlopen of statically linked programs is supported.
 
16430
dlopen_self_static=$enable_dlopen_self_static
 
16431
 
 
16432
# Commands to strip libraries.
 
16433
old_striplib=$lt_old_striplib
 
16434
striplib=$lt_striplib
 
16435
 
 
16436
 
 
16437
# The linker used to build libraries.
 
16438
LD=$lt_LD
 
16439
 
 
16440
# Commands used to build an old-style archive.
 
16441
old_archive_cmds=$lt_old_archive_cmds
 
16442
 
 
16443
# A language specific compiler.
 
16444
CC=$lt_compiler
 
16445
 
 
16446
# Is the compiler the GNU compiler?
 
16447
with_gcc=$GCC
 
16448
 
 
16449
# Compiler flag to turn off builtin functions.
 
16450
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
16451
 
 
16452
# How to pass a linker flag through the compiler.
 
16453
wl=$lt_lt_prog_compiler_wl
 
16454
 
 
16455
# Additional compiler flags for building library objects.
 
16456
pic_flag=$lt_lt_prog_compiler_pic
 
16457
 
 
16458
# Compiler flag to prevent dynamic linking.
 
16459
link_static_flag=$lt_lt_prog_compiler_static
 
16460
 
 
16461
# Does compiler simultaneously support -c and -o options?
 
16462
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
16463
 
 
16464
# Whether or not to add -lc for building shared libraries.
 
16465
build_libtool_need_lc=$archive_cmds_need_lc
 
16466
 
 
16467
# Whether or not to disallow shared libs when runtime libs are static.
 
16468
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
16469
 
 
16470
# Compiler flag to allow reflexive dlopens.
 
16471
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
16472
 
 
16473
# Compiler flag to generate shared objects directly from archives.
 
16474
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
16475
 
 
16476
# Whether the compiler copes with passing no objects directly.
 
16477
compiler_needs_object=$lt_compiler_needs_object
 
16478
 
 
16479
# Create an old-style archive from a shared archive.
 
16480
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
16481
 
 
16482
# Create a temporary old-style archive to link instead of a shared archive.
 
16483
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
16484
 
 
16485
# Commands used to build a shared archive.
 
16486
archive_cmds=$lt_archive_cmds
 
16487
archive_expsym_cmds=$lt_archive_expsym_cmds
 
16488
 
 
16489
# Commands used to build a loadable module if different from building
 
16490
# a shared archive.
 
16491
module_cmds=$lt_module_cmds
 
16492
module_expsym_cmds=$lt_module_expsym_cmds
 
16493
 
 
16494
# Whether we are building with GNU ld or not.
 
16495
with_gnu_ld=$lt_with_gnu_ld
 
16496
 
 
16497
# Flag that allows shared libraries with undefined symbols to be built.
 
16498
allow_undefined_flag=$lt_allow_undefined_flag
 
16499
 
 
16500
# Flag that enforces no undefined symbols.
 
16501
no_undefined_flag=$lt_no_undefined_flag
 
16502
 
 
16503
# Flag to hardcode \$libdir into a binary during linking.
 
16504
# This must work even if \$libdir does not exist
 
16505
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
16506
 
 
16507
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
16508
# during linking.  This must work even if \$libdir does not exist.
 
16509
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
16510
 
 
16511
# Whether we need a single "-rpath" flag with a separated argument.
 
16512
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
16513
 
 
16514
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16515
# DIR into the resulting binary.
 
16516
hardcode_direct=$hardcode_direct
 
16517
 
 
16518
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16519
# DIR into the resulting binary and the resulting library dependency is
 
16520
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
16521
# library is relocated.
 
16522
hardcode_direct_absolute=$hardcode_direct_absolute
 
16523
 
 
16524
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
16525
# into the resulting binary.
 
16526
hardcode_minus_L=$hardcode_minus_L
 
16527
 
 
16528
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
16529
# into the resulting binary.
 
16530
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
16531
 
 
16532
# Set to "yes" if building a shared library automatically hardcodes DIR
 
16533
# into the library and all subsequent libraries and executables linked
 
16534
# against it.
 
16535
hardcode_automatic=$hardcode_automatic
 
16536
 
 
16537
# Set to yes if linker adds runtime paths of dependent libraries
 
16538
# to runtime path list.
 
16539
inherit_rpath=$inherit_rpath
 
16540
 
 
16541
# Whether libtool must link a program against all its dependency libraries.
 
16542
link_all_deplibs=$link_all_deplibs
 
16543
 
 
16544
# Fix the shell variable \$srcfile for the compiler.
 
16545
fix_srcfile_path=$lt_fix_srcfile_path
 
16546
 
 
16547
# Set to "yes" if exported symbols are required.
 
16548
always_export_symbols=$always_export_symbols
 
16549
 
 
16550
# The commands to list exported symbols.
 
16551
export_symbols_cmds=$lt_export_symbols_cmds
 
16552
 
 
16553
# Symbols that should not be listed in the preloaded symbols.
 
16554
exclude_expsyms=$lt_exclude_expsyms
 
16555
 
 
16556
# Symbols that must always be exported.
 
16557
include_expsyms=$lt_include_expsyms
 
16558
 
 
16559
# Commands necessary for linking programs (against libraries) with templates.
 
16560
prelink_cmds=$lt_prelink_cmds
 
16561
 
 
16562
# Specify filename containing input files.
 
16563
file_list_spec=$lt_file_list_spec
 
16564
 
 
16565
# How to hardcode a shared library path into an executable.
 
16566
hardcode_action=$hardcode_action
 
16567
 
 
16568
# The directories searched by this compiler when creating a shared library.
 
16569
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
16570
 
 
16571
# Dependencies to place before and after the objects being linked to
 
16572
# create a shared library.
 
16573
predep_objects=$lt_predep_objects
 
16574
postdep_objects=$lt_postdep_objects
 
16575
predeps=$lt_predeps
 
16576
postdeps=$lt_postdeps
 
16577
 
 
16578
# The library search path used internally by the compiler when linking
 
16579
# a shared library.
 
16580
compiler_lib_search_path=$lt_compiler_lib_search_path
 
16581
 
 
16582
# ### END LIBTOOL CONFIG
 
16583
 
 
16584
_LT_EOF
 
16585
 
 
16586
  case $host_os in
 
16587
  aix3*)
 
16588
    cat <<\_LT_EOF >> "$cfgfile"
 
16589
# AIX sometimes has problems with the GCC collect2 program.  For some
 
16590
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
16591
# vanish in a puff of smoke.
 
16592
if test "X${COLLECT_NAMES+set}" != Xset; then
 
16593
  COLLECT_NAMES=
 
16594
  export COLLECT_NAMES
 
16595
fi
 
16596
_LT_EOF
 
16597
    ;;
 
16598
  esac
 
16599
 
 
16600
 
 
16601
ltmain="$ac_aux_dir/ltmain.sh"
 
16602
 
 
16603
 
 
16604
  # We use sed instead of cat because bash on DJGPP gets confused if
 
16605
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
16606
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
16607
  # is reportedly fixed, but why not run on old versions too?
 
16608
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
16609
    || (rm -f "$cfgfile"; exit 1)
 
16610
 
 
16611
  case $xsi_shell in
 
16612
  yes)
 
16613
    cat << \_LT_EOF >> "$cfgfile"
 
16614
 
 
16615
# func_dirname file append nondir_replacement
 
16616
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
16617
# otherwise set result to NONDIR_REPLACEMENT.
 
16618
func_dirname ()
 
16619
{
 
16620
  case ${1} in
 
16621
    */*) func_dirname_result="${1%/*}${2}" ;;
 
16622
    *  ) func_dirname_result="${3}" ;;
 
16623
  esac
 
16624
}
 
16625
 
 
16626
# func_basename file
 
16627
func_basename ()
 
16628
{
 
16629
  func_basename_result="${1##*/}"
 
16630
}
 
16631
 
 
16632
# func_dirname_and_basename file append nondir_replacement
 
16633
# perform func_basename and func_dirname in a single function
 
16634
# call:
 
16635
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
16636
#             add APPEND to the result, otherwise set result
 
16637
#             to NONDIR_REPLACEMENT.
 
16638
#             value returned in "$func_dirname_result"
 
16639
#   basename: Compute filename of FILE.
 
16640
#             value retuned in "$func_basename_result"
 
16641
# Implementation must be kept synchronized with func_dirname
 
16642
# and func_basename. For efficiency, we do not delegate to
 
16643
# those functions but instead duplicate the functionality here.
 
16644
func_dirname_and_basename ()
 
16645
{
 
16646
  case ${1} in
 
16647
    */*) func_dirname_result="${1%/*}${2}" ;;
 
16648
    *  ) func_dirname_result="${3}" ;;
 
16649
  esac
 
16650
  func_basename_result="${1##*/}"
 
16651
}
 
16652
 
 
16653
# func_stripname prefix suffix name
 
16654
# strip PREFIX and SUFFIX off of NAME.
 
16655
# PREFIX and SUFFIX must not contain globbing or regex special
 
16656
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
16657
# dot (in which case that matches only a dot).
 
16658
func_stripname ()
 
16659
{
 
16660
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
16661
  # positional parameters, so assign one to ordinary parameter first.
 
16662
  func_stripname_result=${3}
 
16663
  func_stripname_result=${func_stripname_result#"${1}"}
 
16664
  func_stripname_result=${func_stripname_result%"${2}"}
 
16665
}
 
16666
 
 
16667
# func_opt_split
 
16668
func_opt_split ()
 
16669
{
 
16670
  func_opt_split_opt=${1%%=*}
 
16671
  func_opt_split_arg=${1#*=}
 
16672
}
 
16673
 
 
16674
# func_lo2o object
 
16675
func_lo2o ()
 
16676
{
 
16677
  case ${1} in
 
16678
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
16679
    *)    func_lo2o_result=${1} ;;
 
16680
  esac
 
16681
}
 
16682
 
 
16683
# func_xform libobj-or-source
 
16684
func_xform ()
 
16685
{
 
16686
  func_xform_result=${1%.*}.lo
 
16687
}
 
16688
 
 
16689
# func_arith arithmetic-term...
 
16690
func_arith ()
 
16691
{
 
16692
  func_arith_result=$(( $* ))
 
16693
}
 
16694
 
 
16695
# func_len string
 
16696
# STRING may not start with a hyphen.
 
16697
func_len ()
 
16698
{
 
16699
  func_len_result=${#1}
 
16700
}
 
16701
 
 
16702
_LT_EOF
 
16703
    ;;
 
16704
  *) # Bourne compatible functions.
 
16705
    cat << \_LT_EOF >> "$cfgfile"
 
16706
 
 
16707
# func_dirname file append nondir_replacement
 
16708
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
16709
# otherwise set result to NONDIR_REPLACEMENT.
 
16710
func_dirname ()
 
16711
{
 
16712
  # Extract subdirectory from the argument.
 
16713
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
16714
  if test "X$func_dirname_result" = "X${1}"; then
 
16715
    func_dirname_result="${3}"
 
16716
  else
 
16717
    func_dirname_result="$func_dirname_result${2}"
 
16718
  fi
 
16719
}
 
16720
 
 
16721
# func_basename file
 
16722
func_basename ()
 
16723
{
 
16724
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
16725
}
 
16726
 
 
16727
 
 
16728
# func_stripname prefix suffix name
 
16729
# strip PREFIX and SUFFIX off of NAME.
 
16730
# PREFIX and SUFFIX must not contain globbing or regex special
 
16731
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
16732
# dot (in which case that matches only a dot).
 
16733
# func_strip_suffix prefix name
 
16734
func_stripname ()
 
16735
{
 
16736
  case ${2} in
 
16737
    .*) func_stripname_result=`$ECHO "X${3}" \
 
16738
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
16739
    *)  func_stripname_result=`$ECHO "X${3}" \
 
16740
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
16741
  esac
 
16742
}
 
16743
 
 
16744
# sed scripts:
 
16745
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
16746
my_sed_long_arg='1s/^-[^=]*=//'
 
16747
 
 
16748
# func_opt_split
 
16749
func_opt_split ()
 
16750
{
 
16751
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
16752
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
16753
}
 
16754
 
 
16755
# func_lo2o object
 
16756
func_lo2o ()
 
16757
{
 
16758
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
16759
}
 
16760
 
 
16761
# func_xform libobj-or-source
 
16762
func_xform ()
 
16763
{
 
16764
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
16765
}
 
16766
 
 
16767
# func_arith arithmetic-term...
 
16768
func_arith ()
 
16769
{
 
16770
  func_arith_result=`expr "$@"`
 
16771
}
 
16772
 
 
16773
# func_len string
 
16774
# STRING may not start with a hyphen.
 
16775
func_len ()
 
16776
{
 
16777
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
16778
}
 
16779
 
 
16780
_LT_EOF
 
16781
esac
 
16782
 
 
16783
case $lt_shell_append in
 
16784
  yes)
 
16785
    cat << \_LT_EOF >> "$cfgfile"
 
16786
 
 
16787
# func_append var value
 
16788
# Append VALUE to the end of shell variable VAR.
 
16789
func_append ()
 
16790
{
 
16791
  eval "$1+=\$2"
 
16792
}
 
16793
_LT_EOF
 
16794
    ;;
 
16795
  *)
 
16796
    cat << \_LT_EOF >> "$cfgfile"
 
16797
 
 
16798
# func_append var value
 
16799
# Append VALUE to the end of shell variable VAR.
 
16800
func_append ()
 
16801
{
 
16802
  eval "$1=\$$1\$2"
 
16803
}
 
16804
 
 
16805
_LT_EOF
 
16806
    ;;
 
16807
  esac
 
16808
 
 
16809
 
 
16810
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
16811
    || (rm -f "$cfgfile"; exit 1)
 
16812
 
 
16813
  mv -f "$cfgfile" "$ofile" ||
 
16814
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
16815
  chmod +x "$ofile"
 
16816
 
 
16817
 
 
16818
    cat <<_LT_EOF >> "$ofile"
 
16819
 
 
16820
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
16821
 
 
16822
# The linker used to build libraries.
 
16823
LD=$lt_LD_CXX
 
16824
 
 
16825
# Commands used to build an old-style archive.
 
16826
old_archive_cmds=$lt_old_archive_cmds_CXX
 
16827
 
 
16828
# A language specific compiler.
 
16829
CC=$lt_compiler_CXX
 
16830
 
 
16831
# Is the compiler the GNU compiler?
 
16832
with_gcc=$GCC_CXX
 
16833
 
 
16834
# Compiler flag to turn off builtin functions.
 
16835
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
16836
 
 
16837
# How to pass a linker flag through the compiler.
 
16838
wl=$lt_lt_prog_compiler_wl_CXX
 
16839
 
 
16840
# Additional compiler flags for building library objects.
 
16841
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
16842
 
 
16843
# Compiler flag to prevent dynamic linking.
 
16844
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
16845
 
 
16846
# Does compiler simultaneously support -c and -o options?
 
16847
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
16848
 
 
16849
# Whether or not to add -lc for building shared libraries.
 
16850
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
16851
 
 
16852
# Whether or not to disallow shared libs when runtime libs are static.
 
16853
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
16854
 
 
16855
# Compiler flag to allow reflexive dlopens.
 
16856
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
16857
 
 
16858
# Compiler flag to generate shared objects directly from archives.
 
16859
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
16860
 
 
16861
# Whether the compiler copes with passing no objects directly.
 
16862
compiler_needs_object=$lt_compiler_needs_object_CXX
 
16863
 
 
16864
# Create an old-style archive from a shared archive.
 
16865
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
16866
 
 
16867
# Create a temporary old-style archive to link instead of a shared archive.
 
16868
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
16869
 
 
16870
# Commands used to build a shared archive.
 
16871
archive_cmds=$lt_archive_cmds_CXX
 
16872
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
16873
 
 
16874
# Commands used to build a loadable module if different from building
 
16875
# a shared archive.
 
16876
module_cmds=$lt_module_cmds_CXX
 
16877
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
16878
 
 
16879
# Whether we are building with GNU ld or not.
 
16880
with_gnu_ld=$lt_with_gnu_ld_CXX
 
16881
 
 
16882
# Flag that allows shared libraries with undefined symbols to be built.
 
16883
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
16884
 
 
16885
# Flag that enforces no undefined symbols.
 
16886
no_undefined_flag=$lt_no_undefined_flag_CXX
 
16887
 
 
16888
# Flag to hardcode \$libdir into a binary during linking.
 
16889
# This must work even if \$libdir does not exist
 
16890
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
16891
 
 
16892
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
16893
# during linking.  This must work even if \$libdir does not exist.
 
16894
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
16895
 
 
16896
# Whether we need a single "-rpath" flag with a separated argument.
 
16897
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
16898
 
 
16899
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16900
# DIR into the resulting binary.
 
16901
hardcode_direct=$hardcode_direct_CXX
 
16902
 
 
16903
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
16904
# DIR into the resulting binary and the resulting library dependency is
 
16905
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
16906
# library is relocated.
 
16907
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
16908
 
 
16909
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
16910
# into the resulting binary.
 
16911
hardcode_minus_L=$hardcode_minus_L_CXX
 
16912
 
 
16913
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
16914
# into the resulting binary.
 
16915
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
16916
 
 
16917
# Set to "yes" if building a shared library automatically hardcodes DIR
 
16918
# into the library and all subsequent libraries and executables linked
 
16919
# against it.
 
16920
hardcode_automatic=$hardcode_automatic_CXX
 
16921
 
 
16922
# Set to yes if linker adds runtime paths of dependent libraries
 
16923
# to runtime path list.
 
16924
inherit_rpath=$inherit_rpath_CXX
 
16925
 
 
16926
# Whether libtool must link a program against all its dependency libraries.
 
16927
link_all_deplibs=$link_all_deplibs_CXX
 
16928
 
 
16929
# Fix the shell variable \$srcfile for the compiler.
 
16930
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
16931
 
 
16932
# Set to "yes" if exported symbols are required.
 
16933
always_export_symbols=$always_export_symbols_CXX
 
16934
 
 
16935
# The commands to list exported symbols.
 
16936
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
16937
 
 
16938
# Symbols that should not be listed in the preloaded symbols.
 
16939
exclude_expsyms=$lt_exclude_expsyms_CXX
 
16940
 
 
16941
# Symbols that must always be exported.
 
16942
include_expsyms=$lt_include_expsyms_CXX
 
16943
 
 
16944
# Commands necessary for linking programs (against libraries) with templates.
 
16945
prelink_cmds=$lt_prelink_cmds_CXX
 
16946
 
 
16947
# Specify filename containing input files.
 
16948
file_list_spec=$lt_file_list_spec_CXX
 
16949
 
 
16950
# How to hardcode a shared library path into an executable.
 
16951
hardcode_action=$hardcode_action_CXX
 
16952
 
 
16953
# The directories searched by this compiler when creating a shared library.
 
16954
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
16955
 
 
16956
# Dependencies to place before and after the objects being linked to
 
16957
# create a shared library.
 
16958
predep_objects=$lt_predep_objects_CXX
 
16959
postdep_objects=$lt_postdep_objects_CXX
 
16960
predeps=$lt_predeps_CXX
 
16961
postdeps=$lt_postdeps_CXX
 
16962
 
 
16963
# The library search path used internally by the compiler when linking
 
16964
# a shared library.
 
16965
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
16966
 
 
16967
# ### END LIBTOOL TAG CONFIG: CXX
 
16968
_LT_EOF
 
16969
 
 
16970
 ;;
 
16971
 
 
16972
  esac
 
16973
done # for ac_tag
 
16974
 
 
16975
 
 
16976
as_fn_exit 0
 
16977
_ACEOF
 
16978
ac_clean_files=$ac_clean_files_save
 
16979
 
 
16980
test $ac_write_fail = 0 ||
 
16981
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
16982
 
 
16983
 
 
16984
# configure is writing to config.log, and then calls config.status.
 
16985
# config.status does its own redirection, appending to config.log.
 
16986
# Unfortunately, on DOS this fails, as config.log is still kept open
 
16987
# by configure, so config.status won't be able to write to it; its
 
16988
# output is simply discarded.  So we exec the FD to /dev/null,
 
16989
# effectively closing config.log, so it can be properly (re)opened and
 
16990
# appended to by config.status.  When coming back to configure, we
 
16991
# need to make the FD available again.
 
16992
if test "$no_create" != yes; then
 
16993
  ac_cs_success=:
 
16994
  ac_config_status_args=
 
16995
  test "$silent" = yes &&
 
16996
    ac_config_status_args="$ac_config_status_args --quiet"
 
16997
  exec 5>/dev/null
 
16998
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
16999
  exec 5>>config.log
 
17000
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
17001
  # would make configure fail if this is the last instruction.
 
17002
  $ac_cs_success || as_fn_exit $?
 
17003
fi
 
17004
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
17005
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
17006
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
17007
fi
 
17008