/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc
5 by edam
- updated README
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
6 by edam
- fixed .am files so the library gets built!
748
am__fastdepCXX_FALSE
749
am__fastdepCXX_TRUE
750
CXXDEPMODE
751
ac_ct_CXX
752
CXXFLAGS
753
CXX
5 by edam
- updated README
754
CPP
755
OTOOL64
756
OTOOL
757
LIPO
758
NMEDIT
759
DSYMUTIL
760
lt_ECHO
761
RANLIB
762
AR
763
OBJDUMP
764
LN_S
765
NM
766
ac_ct_DUMPBIN
767
DUMPBIN
768
LD
769
FGREP
770
EGREP
771
GREP
772
SED
773
am__fastdepCC_FALSE
774
am__fastdepCC_TRUE
775
CCDEPMODE
6 by edam
- fixed .am files so the library gets built!
776
AMDEPBACKSLASH
777
AMDEP_FALSE
778
AMDEP_TRUE
779
am__quote
780
am__include
781
DEPDIR
782
OBJEXT
783
EXEEXT
5 by edam
- updated README
784
ac_ct_CC
6 by edam
- fixed .am files so the library gets built!
785
CPPFLAGS
786
LDFLAGS
5 by edam
- updated README
787
CFLAGS
788
CC
789
host_os
790
host_vendor
791
host_cpu
792
host
793
build_os
794
build_vendor
795
build_cpu
796
build
797
LIBTOOL
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_shared
863
enable_static
864
with_pic
865
enable_fast_install
6 by edam
- fixed .am files so the library gets built!
866
enable_dependency_tracking
5 by edam
- updated README
867
with_gnu_ld
868
enable_libtool_lock
869
'
870
      ac_precious_vars='build_alias
871
host_alias
872
target_alias
6 by edam
- fixed .am files so the library gets built!
873
CC
874
CFLAGS
5 by edam
- updated README
875
LDFLAGS
876
LIBS
877
CPPFLAGS
6 by edam
- fixed .am files so the library gets built!
878
CPP
879
CXX
880
CXXFLAGS
5 by edam
- updated README
881
CCC
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
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1503
  --enable-static[=PKGS]  build static libraries [default=yes]
1504
  --enable-fast-install[=PKGS]
1505
                          optimize for fast installation [default=yes]
6 by edam
- fixed .am files so the library gets built!
1506
  --disable-dependency-tracking  speeds up one-time build
1507
  --enable-dependency-tracking   do not reject slow dependency extractors
5 by edam
- updated README
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:
6 by edam
- fixed .am files so the library gets built!
1518
  CC          C compiler command
1519
  CFLAGS      C compiler flags
5 by edam
- updated README
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
  CPP         C preprocessor
6 by edam
- fixed .am files so the library gets built!
1526
  CXX         C++ compiler command
1527
  CXXFLAGS    C++ compiler flags
5 by edam
- updated README
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_c_try_compile LINENO
1611
# --------------------------
1612
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613
ac_fn_c_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_c_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_c_try_compile
1647
1648
# ac_fn_c_try_link LINENO
1649
# -----------------------
1650
# Try to link conftest.$ac_ext, and return whether this succeeded.
1651
ac_fn_c_try_link ()
1652
{
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
  rm -f conftest.$ac_objext conftest$ac_exeext
1655
  if { { ac_try="$ac_link"
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_link") 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_exeext && {
1674
	 test "$cross_compiling" = yes ||
1675
	 $as_test_x conftest$ac_exeext
1676
       }; then :
1677
  ac_retval=0
1678
else
1679
  $as_echo "$as_me: failed program was:" >&5
1680
sed 's/^/| /' conftest.$ac_ext >&5
1681
1682
	ac_retval=1
1683
fi
1684
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686
  # interfere with the next link command; also delete a directory that is
1687
  # left behind by Apple's compiler.  We do this before executing the actions.
1688
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690
  return $ac_retval
1691
1692
} # ac_fn_c_try_link
1693
1694
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695
# -------------------------------------------------------
1696
# Tests whether HEADER exists and can be compiled using the include files in
1697
# INCLUDES, setting the cache variable VAR accordingly.
1698
ac_fn_c_check_header_compile ()
1699
{
1700
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702
$as_echo_n "checking for $2... " >&6; }
1703
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704
  $as_echo_n "(cached) " >&6
1705
else
1706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707
/* end confdefs.h.  */
1708
$4
1709
#include <$2>
1710
_ACEOF
1711
if ac_fn_c_try_compile "$LINENO"; then :
1712
  eval "$3=yes"
1713
else
1714
  eval "$3=no"
1715
fi
1716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717
fi
1718
eval ac_res=\$$3
1719
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720
$as_echo "$ac_res" >&6; }
1721
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723
} # ac_fn_c_check_header_compile
1724
1725
# ac_fn_c_try_cpp LINENO
1726
# ----------------------
1727
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728
ac_fn_c_try_cpp ()
1729
{
1730
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1732
case "(($ac_try" in
1733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734
  *) ac_try_echo=$ac_try;;
1735
esac
1736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737
$as_echo "$ac_try_echo"; } >&5
1738
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739
  ac_status=$?
1740
  if test -s conftest.err; then
1741
    grep -v '^ *+' conftest.err >conftest.er1
1742
    cat conftest.er1 >&5
1743
    mv -f conftest.er1 conftest.err
1744
  fi
1745
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746
  test $ac_status = 0; } >/dev/null && {
1747
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748
	 test ! -s conftest.err
1749
       }; then :
1750
  ac_retval=0
1751
else
1752
  $as_echo "$as_me: failed program was:" >&5
1753
sed 's/^/| /' conftest.$ac_ext >&5
1754
1755
    ac_retval=1
1756
fi
1757
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
  return $ac_retval
1759
1760
} # ac_fn_c_try_cpp
1761
1762
# ac_fn_c_try_run LINENO
1763
# ----------------------
1764
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765
# that executables *can* be run.
1766
ac_fn_c_try_run ()
1767
{
1768
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
  if { { ac_try="$ac_link"
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_link") 2>&5
1777
  ac_status=$?
1778
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780
  { { case "(($ac_try" in
1781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782
  *) ac_try_echo=$ac_try;;
1783
esac
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785
$as_echo "$ac_try_echo"; } >&5
1786
  (eval "$ac_try") 2>&5
1787
  ac_status=$?
1788
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789
  test $ac_status = 0; }; }; then :
1790
  ac_retval=0
1791
else
1792
  $as_echo "$as_me: program exited with status $ac_status" >&5
1793
       $as_echo "$as_me: failed program was:" >&5
1794
sed 's/^/| /' conftest.$ac_ext >&5
1795
1796
       ac_retval=$ac_status
1797
fi
1798
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800
  return $ac_retval
1801
1802
} # ac_fn_c_try_run
1803
1804
# ac_fn_c_check_func LINENO FUNC VAR
1805
# ----------------------------------
1806
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1807
ac_fn_c_check_func ()
1808
{
1809
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811
$as_echo_n "checking for $2... " >&6; }
1812
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813
  $as_echo_n "(cached) " >&6
1814
else
1815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
/* end confdefs.h.  */
1817
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1819
#define $2 innocuous_$2
1820
1821
/* System header to define __stub macros and hopefully few prototypes,
1822
    which can conflict with char $2 (); below.
1823
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824
    <limits.h> exists even on freestanding compilers.  */
1825
1826
#ifdef __STDC__
1827
# include <limits.h>
1828
#else
1829
# include <assert.h>
1830
#endif
1831
1832
#undef $2
1833
1834
/* Override any GCC internal prototype to avoid an error.
1835
   Use char because int might match the return type of a GCC
1836
   builtin and then its argument prototype would still apply.  */
1837
#ifdef __cplusplus
1838
extern "C"
1839
#endif
1840
char $2 ();
1841
/* The GNU C library defines this for functions which it implements
1842
    to always fail with ENOSYS.  Some functions are actually named
1843
    something starting with __ and the normal name is an alias.  */
1844
#if defined __stub_$2 || defined __stub___$2
1845
choke me
1846
#endif
1847
1848
int
1849
main ()
1850
{
1851
return $2 ();
1852
  ;
1853
  return 0;
1854
}
1855
_ACEOF
1856
if ac_fn_c_try_link "$LINENO"; then :
1857
  eval "$3=yes"
1858
else
1859
  eval "$3=no"
1860
fi
1861
rm -f core conftest.err conftest.$ac_objext \
1862
    conftest$ac_exeext conftest.$ac_ext
1863
fi
1864
eval ac_res=\$$3
1865
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866
$as_echo "$ac_res" >&6; }
1867
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869
} # ac_fn_c_check_func
1870
6 by edam
- fixed .am files so the library gets built!
1871
# ac_fn_cxx_try_compile LINENO
1872
# ----------------------------
1873
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1874
ac_fn_cxx_try_compile ()
1875
{
1876
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877
  rm -f conftest.$ac_objext
1878
  if { { ac_try="$ac_compile"
1879
case "(($ac_try" in
1880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881
  *) ac_try_echo=$ac_try;;
1882
esac
1883
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884
$as_echo "$ac_try_echo"; } >&5
1885
  (eval "$ac_compile") 2>conftest.err
1886
  ac_status=$?
1887
  if test -s conftest.err; then
1888
    grep -v '^ *+' conftest.err >conftest.er1
1889
    cat conftest.er1 >&5
1890
    mv -f conftest.er1 conftest.err
1891
  fi
1892
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893
  test $ac_status = 0; } && {
1894
	 test -z "$ac_cxx_werror_flag" ||
1895
	 test ! -s conftest.err
1896
       } && test -s conftest.$ac_objext; then :
1897
  ac_retval=0
1898
else
1899
  $as_echo "$as_me: failed program was:" >&5
1900
sed 's/^/| /' conftest.$ac_ext >&5
1901
1902
	ac_retval=1
1903
fi
1904
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
  return $ac_retval
1906
1907
} # ac_fn_cxx_try_compile
1908
5 by edam
- updated README
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
6 by edam
- fixed .am files so the library gets built!
2940
case `pwd` in
2941
  *\ * | *\	*)
2942
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2943
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2944
esac
2945
2946
2947
2948
macro_version='2.2.6'
2949
macro_revision='1.3012'
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
ltmain="$ac_aux_dir/ltmain.sh"
2964
2965
# Make sure we can run config.sub.
2966
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2967
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2968
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2970
$as_echo_n "checking build system type... " >&6; }
2971
if test "${ac_cv_build+set}" = set; then :
2972
  $as_echo_n "(cached) " >&6
2973
else
2974
  ac_build_alias=$build_alias
2975
test "x$ac_build_alias" = x &&
2976
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2977
test "x$ac_build_alias" = x &&
2978
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2979
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2980
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2981
2982
fi
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2984
$as_echo "$ac_cv_build" >&6; }
2985
case $ac_cv_build in
2986
*-*-*) ;;
2987
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2988
esac
2989
build=$ac_cv_build
2990
ac_save_IFS=$IFS; IFS='-'
2991
set x $ac_cv_build
2992
shift
2993
build_cpu=$1
2994
build_vendor=$2
2995
shift; shift
2996
# Remember, the first character of IFS is used to create $*,
2997
# except with old shells:
2998
build_os=$*
2999
IFS=$ac_save_IFS
3000
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3001
3002
3003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3004
$as_echo_n "checking host system type... " >&6; }
3005
if test "${ac_cv_host+set}" = set; then :
3006
  $as_echo_n "(cached) " >&6
3007
else
3008
  if test "x$host_alias" = x; then
3009
  ac_cv_host=$ac_cv_build
3010
else
3011
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3012
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3013
fi
3014
3015
fi
3016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3017
$as_echo "$ac_cv_host" >&6; }
3018
case $ac_cv_host in
3019
*-*-*) ;;
3020
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3021
esac
3022
host=$ac_cv_host
3023
ac_save_IFS=$IFS; IFS='-'
3024
set x $ac_cv_host
3025
shift
3026
host_cpu=$1
3027
host_vendor=$2
3028
shift; shift
3029
# Remember, the first character of IFS is used to create $*,
3030
# except with old shells:
3031
host_os=$*
3032
IFS=$ac_save_IFS
3033
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3034
3035
3036
DEPDIR="${am__leading_dot}deps"
3037
3038
ac_config_commands="$ac_config_commands depfiles"
3039
3040
3041
am_make=${MAKE-make}
3042
cat > confinc << 'END'
3043
am__doit:
3044
	@echo this is the am__doit target
3045
.PHONY: am__doit
3046
END
3047
# If we don't find an include directive, just comment out the code.
3048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3049
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3050
am__include="#"
3051
am__quote=
3052
_am_result=none
3053
# First try GNU make style include.
3054
echo "include confinc" > confmf
3055
# Ignore all kinds of additional output from `make'.
3056
case `$am_make -s -f confmf 2> /dev/null` in #(
3057
*the\ am__doit\ target*)
3058
  am__include=include
3059
  am__quote=
3060
  _am_result=GNU
3061
  ;;
3062
esac
3063
# Now try BSD make style include.
3064
if test "$am__include" = "#"; then
3065
   echo '.include "confinc"' > confmf
3066
   case `$am_make -s -f confmf 2> /dev/null` in #(
3067
   *the\ am__doit\ target*)
3068
     am__include=.include
3069
     am__quote="\""
3070
     _am_result=BSD
3071
     ;;
3072
   esac
3073
fi
3074
3075
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3077
$as_echo "$_am_result" >&6; }
3078
rm -f confinc confmf
3079
3080
# Check whether --enable-dependency-tracking was given.
3081
if test "${enable_dependency_tracking+set}" = set; then :
3082
  enableval=$enable_dependency_tracking;
3083
fi
3084
3085
if test "x$enable_dependency_tracking" != xno; then
3086
  am_depcomp="$ac_aux_dir/depcomp"
3087
  AMDEPBACKSLASH='\'
3088
fi
3089
 if test "x$enable_dependency_tracking" != xno; then
3090
  AMDEP_TRUE=
3091
  AMDEP_FALSE='#'
3092
else
3093
  AMDEP_TRUE='#'
3094
  AMDEP_FALSE=
3095
fi
3096
3097
3098
ac_ext=c
3099
ac_cpp='$CPP $CPPFLAGS'
3100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
if test -n "$ac_tool_prefix"; then
3104
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3105
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107
$as_echo_n "checking for $ac_word... " >&6; }
3108
if test "${ac_cv_prog_CC+set}" = set; then :
3109
  $as_echo_n "(cached) " >&6
3110
else
3111
  if test -n "$CC"; then
3112
  ac_cv_prog_CC="$CC" # Let the user override the test.
3113
else
3114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115
for as_dir in $PATH
3116
do
3117
  IFS=$as_save_IFS
3118
  test -z "$as_dir" && as_dir=.
3119
    for ac_exec_ext in '' $ac_executable_extensions; do
3120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123
    break 2
3124
  fi
3125
done
3126
  done
3127
IFS=$as_save_IFS
3128
3129
fi
3130
fi
3131
CC=$ac_cv_prog_CC
3132
if test -n "$CC"; then
3133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134
$as_echo "$CC" >&6; }
3135
else
3136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137
$as_echo "no" >&6; }
3138
fi
3139
3140
3141
fi
3142
if test -z "$ac_cv_prog_CC"; then
3143
  ac_ct_CC=$CC
3144
  # Extract the first word of "gcc", so it can be a program name with args.
3145
set dummy gcc; ac_word=$2
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147
$as_echo_n "checking for $ac_word... " >&6; }
3148
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3149
  $as_echo_n "(cached) " >&6
3150
else
3151
  if test -n "$ac_ct_CC"; then
3152
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153
else
3154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155
for as_dir in $PATH
3156
do
3157
  IFS=$as_save_IFS
3158
  test -z "$as_dir" && as_dir=.
3159
    for ac_exec_ext in '' $ac_executable_extensions; do
3160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161
    ac_cv_prog_ac_ct_CC="gcc"
3162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163
    break 2
3164
  fi
3165
done
3166
  done
3167
IFS=$as_save_IFS
3168
3169
fi
3170
fi
3171
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172
if test -n "$ac_ct_CC"; then
3173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174
$as_echo "$ac_ct_CC" >&6; }
3175
else
3176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177
$as_echo "no" >&6; }
3178
fi
3179
3180
  if test "x$ac_ct_CC" = x; then
3181
    CC=""
5 by edam
- updated README
3182
  else
6 by edam
- fixed .am files so the library gets built!
3183
    case $cross_compiling:$ac_tool_warned in
3184
yes:)
3185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187
ac_tool_warned=yes ;;
3188
esac
3189
    CC=$ac_ct_CC
3190
  fi
3191
else
3192
  CC="$ac_cv_prog_CC"
3193
fi
3194
3195
if test -z "$CC"; then
3196
          if test -n "$ac_tool_prefix"; then
3197
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3198
set dummy ${ac_tool_prefix}cc; ac_word=$2
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200
$as_echo_n "checking for $ac_word... " >&6; }
3201
if test "${ac_cv_prog_CC+set}" = set; then :
3202
  $as_echo_n "(cached) " >&6
3203
else
3204
  if test -n "$CC"; then
3205
  ac_cv_prog_CC="$CC" # Let the user override the test.
3206
else
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208
for as_dir in $PATH
3209
do
3210
  IFS=$as_save_IFS
3211
  test -z "$as_dir" && as_dir=.
3212
    for ac_exec_ext in '' $ac_executable_extensions; do
3213
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3215
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216
    break 2
3217
  fi
3218
done
3219
  done
3220
IFS=$as_save_IFS
3221
3222
fi
3223
fi
3224
CC=$ac_cv_prog_CC
3225
if test -n "$CC"; then
3226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227
$as_echo "$CC" >&6; }
3228
else
3229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230
$as_echo "no" >&6; }
3231
fi
3232
3233
3234
  fi
3235
fi
3236
if test -z "$CC"; then
3237
  # Extract the first word of "cc", so it can be a program name with args.
3238
set dummy cc; ac_word=$2
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240
$as_echo_n "checking for $ac_word... " >&6; }
3241
if test "${ac_cv_prog_CC+set}" = set; then :
3242
  $as_echo_n "(cached) " >&6
3243
else
3244
  if test -n "$CC"; then
3245
  ac_cv_prog_CC="$CC" # Let the user override the test.
3246
else
3247
  ac_prog_rejected=no
3248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249
for as_dir in $PATH
3250
do
3251
  IFS=$as_save_IFS
3252
  test -z "$as_dir" && as_dir=.
3253
    for ac_exec_ext in '' $ac_executable_extensions; do
3254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256
       ac_prog_rejected=yes
3257
       continue
3258
     fi
3259
    ac_cv_prog_CC="cc"
3260
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261
    break 2
3262
  fi
3263
done
3264
  done
3265
IFS=$as_save_IFS
3266
3267
if test $ac_prog_rejected = yes; then
3268
  # We found a bogon in the path, so make sure we never use it.
3269
  set dummy $ac_cv_prog_CC
3270
  shift
3271
  if test $# != 0; then
3272
    # We chose a different compiler from the bogus one.
3273
    # However, it has the same basename, so the bogon will be chosen
3274
    # first if we set CC to just the basename; use the full file name.
3275
    shift
3276
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3277
  fi
3278
fi
3279
fi
3280
fi
3281
CC=$ac_cv_prog_CC
3282
if test -n "$CC"; then
3283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284
$as_echo "$CC" >&6; }
3285
else
3286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287
$as_echo "no" >&6; }
3288
fi
3289
3290
3291
fi
3292
if test -z "$CC"; then
3293
  if test -n "$ac_tool_prefix"; then
3294
  for ac_prog in cl.exe
5 by edam
- updated README
3295
  do
3296
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299
$as_echo_n "checking for $ac_word... " >&6; }
6 by edam
- fixed .am files so the library gets built!
3300
if test "${ac_cv_prog_CC+set}" = set; then :
5 by edam
- updated README
3301
  $as_echo_n "(cached) " >&6
3302
else
6 by edam
- fixed .am files so the library gets built!
3303
  if test -n "$CC"; then
3304
  ac_cv_prog_CC="$CC" # Let the user override the test.
5 by edam
- updated README
3305
else
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307
for as_dir in $PATH
3308
do
3309
  IFS=$as_save_IFS
3310
  test -z "$as_dir" && as_dir=.
3311
    for ac_exec_ext in '' $ac_executable_extensions; do
3312
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6 by edam
- fixed .am files so the library gets built!
3313
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 by edam
- updated README
3314
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315
    break 2
3316
  fi
3317
done
3318
  done
3319
IFS=$as_save_IFS
3320
3321
fi
3322
fi
6 by edam
- fixed .am files so the library gets built!
3323
CC=$ac_cv_prog_CC
3324
if test -n "$CC"; then
3325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326
$as_echo "$CC" >&6; }
5 by edam
- updated README
3327
else
3328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329
$as_echo "no" >&6; }
3330
fi
3331
3332
6 by edam
- fixed .am files so the library gets built!
3333
    test -n "$CC" && break
5 by edam
- updated README
3334
  done
3335
fi
6 by edam
- fixed .am files so the library gets built!
3336
if test -z "$CC"; then
3337
  ac_ct_CC=$CC
3338
  for ac_prog in cl.exe
5 by edam
- updated README
3339
do
3340
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3341
set dummy $ac_prog; ac_word=$2
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343
$as_echo_n "checking for $ac_word... " >&6; }
6 by edam
- fixed .am files so the library gets built!
3344
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5 by edam
- updated README
3345
  $as_echo_n "(cached) " >&6
3346
else
6 by edam
- fixed .am files so the library gets built!
3347
  if test -n "$ac_ct_CC"; then
3348
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 by edam
- updated README
3349
else
3350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351
for as_dir in $PATH
3352
do
3353
  IFS=$as_save_IFS
3354
  test -z "$as_dir" && as_dir=.
3355
    for ac_exec_ext in '' $ac_executable_extensions; do
3356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6 by edam
- fixed .am files so the library gets built!
3357
    ac_cv_prog_ac_ct_CC="$ac_prog"
5 by edam
- updated README
3358
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359
    break 2
3360
  fi
3361
done
3362
  done
3363
IFS=$as_save_IFS
3364
3365
fi
3366
fi
6 by edam
- fixed .am files so the library gets built!
3367
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368
if test -n "$ac_ct_CC"; then
3369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370
$as_echo "$ac_ct_CC" >&6; }
5 by edam
- updated README
3371
else
3372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373
$as_echo "no" >&6; }
3374
fi
3375
3376
6 by edam
- fixed .am files so the library gets built!
3377
  test -n "$ac_ct_CC" && break
5 by edam
- updated README
3378
done
3379
6 by edam
- fixed .am files so the library gets built!
3380
  if test "x$ac_ct_CC" = x; then
3381
    CC=""
5 by edam
- updated README
3382
  else
3383
    case $cross_compiling:$ac_tool_warned in
3384
yes:)
3385
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387
ac_tool_warned=yes ;;
3388
esac
6 by edam
- fixed .am files so the library gets built!
3389
    CC=$ac_ct_CC
3390
  fi
3391
fi
3392
3393
fi
3394
3395
3396
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398
as_fn_error "no acceptable C compiler found in \$PATH
3399
See \`config.log' for more details." "$LINENO" 5; }
3400
5 by edam
- updated README
3401
# Provide some information about the compiler.
6 by edam
- fixed .am files so the library gets built!
3402
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5 by edam
- updated README
3403
set X $ac_compile
3404
ac_compiler=$2
3405
for ac_option in --version -v -V -qversion; do
3406
  { { ac_try="$ac_compiler $ac_option >&5"
3407
case "(($ac_try" in
3408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409
  *) ac_try_echo=$ac_try;;
3410
esac
3411
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412
$as_echo "$ac_try_echo"; } >&5
3413
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3414
  ac_status=$?
3415
  if test -s conftest.err; then
3416
    sed '10a\
3417
... rest of stderr output deleted ...
3418
         10q' conftest.err >conftest.er1
3419
    cat conftest.er1 >&5
3420
    rm -f conftest.er1 conftest.err
3421
  fi
3422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423
  test $ac_status = 0; }
3424
done
3425
3426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427
/* end confdefs.h.  */
3428
#include <stdio.h>
3429
int
3430
main ()
3431
{
3432
FILE *f = fopen ("conftest.out", "w");
3433
 return ferror (f) || fclose (f) != 0;
3434
3435
  ;
3436
  return 0;
3437
}
3438
_ACEOF
3439
ac_clean_files_save=$ac_clean_files
3440
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3441
# Try to create an executable without -o first, disregard a.out.
3442
# It will help us diagnose broken compilers, and finding out an intuition
3443
# of exeext.
6 by edam
- fixed .am files so the library gets built!
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445
$as_echo_n "checking for C compiler default output file name... " >&6; }
5 by edam
- updated README
3446
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3447
3448
# The possible output files:
3449
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3450
3451
ac_rmfiles=
3452
for ac_file in $ac_files
3453
do
3454
  case $ac_file in
3455
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3457
  esac
3458
done
3459
rm -f $ac_rmfiles
3460
3461
if { { ac_try="$ac_link_default"
3462
case "(($ac_try" in
3463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464
  *) ac_try_echo=$ac_try;;
3465
esac
3466
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467
$as_echo "$ac_try_echo"; } >&5
3468
  (eval "$ac_link_default") 2>&5
3469
  ac_status=$?
3470
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471
  test $ac_status = 0; }; then :
3472
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3475
# so that the user can short-circuit this test for compilers unknown to
3476
# Autoconf.
3477
for ac_file in $ac_files ''
3478
do
3479
  test -f "$ac_file" || continue
3480
  case $ac_file in
3481
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3482
	;;
3483
    [ab].out )
3484
	# We found the default executable, but exeext='' is most
3485
	# certainly right.
3486
	break;;
3487
    *.* )
3488
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3489
	then :; else
3490
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491
	fi
3492
	# We set ac_cv_exeext here because the later test for it is not
3493
	# safe: cross compilers may not add the suffix if given an `-o'
3494
	# argument, so we may need to know it at that point already.
3495
	# Even if this section looks crufty: it has the advantage of
3496
	# actually working.
3497
	break;;
3498
    * )
3499
	break;;
3500
  esac
3501
done
3502
test "$ac_cv_exeext" = no && ac_cv_exeext=
3503
3504
else
3505
  ac_file=''
3506
fi
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3508
$as_echo "$ac_file" >&6; }
3509
if test -z "$ac_file"; then :
3510
  $as_echo "$as_me: failed program was:" >&5
3511
sed 's/^/| /' conftest.$ac_ext >&5
3512
3513
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515
{ as_fn_set_status 77
6 by edam
- fixed .am files so the library gets built!
3516
as_fn_error "C compiler cannot create executables
5 by edam
- updated README
3517
See \`config.log' for more details." "$LINENO" 5; }; }
3518
fi
3519
ac_exeext=$ac_cv_exeext
3520
3521
# Check that the compiler produces executables we can run.  If not, either
3522
# the compiler is broken, or we cross compile.
6 by edam
- fixed .am files so the library gets built!
3523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3524
$as_echo_n "checking whether the C compiler works... " >&6; }
5 by edam
- updated README
3525
# If not cross compiling, check that we can run a simple program.
3526
if test "$cross_compiling" != yes; then
3527
  if { ac_try='./$ac_file'
3528
  { { case "(($ac_try" in
3529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530
  *) ac_try_echo=$ac_try;;
3531
esac
3532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533
$as_echo "$ac_try_echo"; } >&5
3534
  (eval "$ac_try") 2>&5
3535
  ac_status=$?
3536
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537
  test $ac_status = 0; }; }; then
3538
    cross_compiling=no
3539
  else
3540
    if test "$cross_compiling" = maybe; then
3541
	cross_compiling=yes
3542
    else
3543
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6 by edam
- fixed .am files so the library gets built!
3545
as_fn_error "cannot run C compiled programs.
5 by edam
- updated README
3546
If you meant to cross compile, use \`--host'.
3547
See \`config.log' for more details." "$LINENO" 5; }
3548
    fi
3549
  fi
3550
fi
3551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552
$as_echo "yes" >&6; }
3553
3554
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3555
ac_clean_files=$ac_clean_files_save
3556
# Check that the compiler produces executables we can run.  If not, either
3557
# the compiler is broken, or we cross compile.
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559
$as_echo_n "checking whether we are cross compiling... " >&6; }
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3561
$as_echo "$cross_compiling" >&6; }
3562
3563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564
$as_echo_n "checking for suffix of executables... " >&6; }
3565
if { { ac_try="$ac_link"
3566
case "(($ac_try" in
3567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568
  *) ac_try_echo=$ac_try;;
3569
esac
3570
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571
$as_echo "$ac_try_echo"; } >&5
3572
  (eval "$ac_link") 2>&5
3573
  ac_status=$?
3574
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575
  test $ac_status = 0; }; then :
3576
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3578
# work properly (i.e., refer to `conftest.exe'), while it won't with
3579
# `rm'.
3580
for ac_file in conftest.exe conftest conftest.*; do
3581
  test -f "$ac_file" || continue
3582
  case $ac_file in
3583
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585
	  break;;
3586
    * ) break;;
3587
  esac
3588
done
3589
else
3590
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592
as_fn_error "cannot compute suffix of executables: cannot compile and link
3593
See \`config.log' for more details." "$LINENO" 5; }
3594
fi
3595
rm -f conftest$ac_cv_exeext
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597
$as_echo "$ac_cv_exeext" >&6; }
3598
3599
rm -f conftest.$ac_ext
3600
EXEEXT=$ac_cv_exeext
3601
ac_exeext=$EXEEXT
3602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603
$as_echo_n "checking for suffix of object files... " >&6; }
3604
if test "${ac_cv_objext+set}" = set; then :
3605
  $as_echo_n "(cached) " >&6
3606
else
3607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608
/* end confdefs.h.  */
3609
3610
int
3611
main ()
3612
{
3613
3614
  ;
3615
  return 0;
3616
}
3617
_ACEOF
3618
rm -f conftest.o conftest.obj
3619
if { { ac_try="$ac_compile"
3620
case "(($ac_try" in
3621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622
  *) ac_try_echo=$ac_try;;
3623
esac
3624
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625
$as_echo "$ac_try_echo"; } >&5
3626
  (eval "$ac_compile") 2>&5
3627
  ac_status=$?
3628
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629
  test $ac_status = 0; }; then :
3630
  for ac_file in conftest.o conftest.obj conftest.*; do
3631
  test -f "$ac_file" || continue;
3632
  case $ac_file in
3633
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635
       break;;
3636
  esac
3637
done
3638
else
3639
  $as_echo "$as_me: failed program was:" >&5
3640
sed 's/^/| /' conftest.$ac_ext >&5
3641
3642
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644
as_fn_error "cannot compute suffix of object files: cannot compile
3645
See \`config.log' for more details." "$LINENO" 5; }
3646
fi
3647
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648
fi
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650
$as_echo "$ac_cv_objext" >&6; }
3651
OBJEXT=$ac_cv_objext
3652
ac_objext=$OBJEXT
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3656
  $as_echo_n "(cached) " >&6
3657
else
3658
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659
/* end confdefs.h.  */
3660
3661
int
3662
main ()
3663
{
3664
#ifndef __GNUC__
3665
       choke me
3666
#endif
3667
3668
  ;
3669
  return 0;
3670
}
3671
_ACEOF
3672
if ac_fn_c_try_compile "$LINENO"; then :
3673
  ac_compiler_gnu=yes
3674
else
3675
  ac_compiler_gnu=no
3676
fi
3677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680
fi
3681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683
if test $ac_compiler_gnu = yes; then
3684
  GCC=yes
3685
else
3686
  GCC=
3687
fi
3688
ac_test_CFLAGS=${CFLAGS+set}
3689
ac_save_CFLAGS=$CFLAGS
3690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3692
if test "${ac_cv_prog_cc_g+set}" = set; then :
3693
  $as_echo_n "(cached) " >&6
3694
else
3695
  ac_save_c_werror_flag=$ac_c_werror_flag
3696
   ac_c_werror_flag=yes
3697
   ac_cv_prog_cc_g=no
3698
   CFLAGS="-g"
3699
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700
/* end confdefs.h.  */
3701
3702
int
3703
main ()
3704
{
3705
3706
  ;
3707
  return 0;
3708
}
3709
_ACEOF
3710
if ac_fn_c_try_compile "$LINENO"; then :
3711
  ac_cv_prog_cc_g=yes
3712
else
3713
  CFLAGS=""
3714
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715
/* end confdefs.h.  */
3716
3717
int
3718
main ()
3719
{
3720
3721
  ;
3722
  return 0;
3723
}
3724
_ACEOF
3725
if ac_fn_c_try_compile "$LINENO"; then :
3726
3727
else
3728
  ac_c_werror_flag=$ac_save_c_werror_flag
3729
	 CFLAGS="-g"
3730
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731
/* end confdefs.h.  */
3732
3733
int
3734
main ()
3735
{
3736
3737
  ;
3738
  return 0;
3739
}
3740
_ACEOF
3741
if ac_fn_c_try_compile "$LINENO"; then :
3742
  ac_cv_prog_cc_g=yes
3743
fi
3744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745
fi
3746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747
fi
3748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749
   ac_c_werror_flag=$ac_save_c_werror_flag
3750
fi
3751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752
$as_echo "$ac_cv_prog_cc_g" >&6; }
3753
if test "$ac_test_CFLAGS" = set; then
3754
  CFLAGS=$ac_save_CFLAGS
3755
elif test $ac_cv_prog_cc_g = yes; then
3756
  if test "$GCC" = yes; then
3757
    CFLAGS="-g -O2"
3758
  else
3759
    CFLAGS="-g"
3760
  fi
3761
else
3762
  if test "$GCC" = yes; then
3763
    CFLAGS="-O2"
3764
  else
3765
    CFLAGS=
3766
  fi
3767
fi
3768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3771
  $as_echo_n "(cached) " >&6
3772
else
3773
  ac_cv_prog_cc_c89=no
3774
ac_save_CC=$CC
3775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776
/* end confdefs.h.  */
3777
#include <stdarg.h>
3778
#include <stdio.h>
3779
#include <sys/types.h>
3780
#include <sys/stat.h>
3781
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3782
struct buf { int x; };
3783
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3784
static char *e (p, i)
3785
     char **p;
3786
     int i;
3787
{
3788
  return p[i];
3789
}
3790
static char *f (char * (*g) (char **, int), char **p, ...)
3791
{
3792
  char *s;
3793
  va_list v;
3794
  va_start (v,p);
3795
  s = g (p, va_arg (v,int));
3796
  va_end (v);
3797
  return s;
3798
}
3799
3800
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3801
   function prototypes and stuff, but not '\xHH' hex character constants.
3802
   These don't provoke an error unfortunately, instead are silently treated
3803
   as 'x'.  The following induces an error, until -std is added to get
3804
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3805
   array size at least.  It's necessary to write '\x00'==0 to get something
3806
   that's true only with -std.  */
3807
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3808
3809
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3810
   inside strings and character constants.  */
3811
#define FOO(x) 'x'
3812
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3813
3814
int test (int i, double x);
3815
struct s1 {int (*f) (int a);};
3816
struct s2 {int (*f) (double a);};
3817
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3818
int argc;
3819
char **argv;
3820
int
3821
main ()
3822
{
3823
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3824
  ;
3825
  return 0;
3826
}
3827
_ACEOF
3828
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3829
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3830
do
3831
  CC="$ac_save_CC $ac_arg"
3832
  if ac_fn_c_try_compile "$LINENO"; then :
3833
  ac_cv_prog_cc_c89=$ac_arg
3834
fi
3835
rm -f core conftest.err conftest.$ac_objext
3836
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3837
done
3838
rm -f conftest.$ac_ext
3839
CC=$ac_save_CC
3840
3841
fi
3842
# AC_CACHE_VAL
3843
case "x$ac_cv_prog_cc_c89" in
3844
  x)
3845
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3846
$as_echo "none needed" >&6; } ;;
3847
  xno)
3848
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849
$as_echo "unsupported" >&6; } ;;
3850
  *)
3851
    CC="$CC $ac_cv_prog_cc_c89"
3852
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3853
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3854
esac
3855
if test "x$ac_cv_prog_cc_c89" != xno; then :
3856
3857
fi
3858
3859
ac_ext=c
3860
ac_cpp='$CPP $CPPFLAGS'
3861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865
depcc="$CC"   am_compiler_list=
3866
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3868
$as_echo_n "checking dependency style of $depcc... " >&6; }
3869
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3870
  $as_echo_n "(cached) " >&6
3871
else
3872
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873
  # We make a subdir and do the tests there.  Otherwise we can end up
3874
  # making bogus files that we don't know about and never remove.  For
3875
  # instance it was reported that on HP-UX the gcc test will end up
3876
  # making a dummy file named `D' -- because `-MD' means `put the output
3877
  # in D'.
3878
  mkdir conftest.dir
3879
  # Copy depcomp to subdir because otherwise we won't find it if we're
3880
  # using a relative directory.
3881
  cp "$am_depcomp" conftest.dir
3882
  cd conftest.dir
3883
  # We will build objects and dependencies in a subdirectory because
3884
  # it helps to detect inapplicable dependency modes.  For instance
3885
  # both Tru64's cc and ICC support -MD to output dependencies as a
3886
  # side effect of compilation, but ICC will put the dependencies in
3887
  # the current directory while Tru64 will put them in the object
3888
  # directory.
3889
  mkdir sub
3890
3891
  am_cv_CC_dependencies_compiler_type=none
3892
  if test "$am_compiler_list" = ""; then
3893
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3894
  fi
3895
  am__universal=false
3896
  case " $depcc " in #(
3897
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3898
     esac
3899
3900
  for depmode in $am_compiler_list; do
3901
    # Setup a source with many dependencies, because some compilers
3902
    # like to wrap large dependency lists on column 80 (with \), and
3903
    # we should not choose a depcomp mode which is confused by this.
3904
    #
3905
    # We need to recreate these files for each test, as the compiler may
3906
    # overwrite some of them when testing with obscure command lines.
3907
    # This happens at least with the AIX C compiler.
3908
    : > sub/conftest.c
3909
    for i in 1 2 3 4 5 6; do
3910
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3911
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3912
      # Solaris 8's {/usr,}/bin/sh.
3913
      touch sub/conftst$i.h
3914
    done
3915
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3916
3917
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3918
    # mode.  It turns out that the SunPro C++ compiler does not properly
3919
    # handle `-M -o', and we need to detect this.  Also, some Intel
3920
    # versions had trouble with output in subdirs
3921
    am__obj=sub/conftest.${OBJEXT-o}
3922
    am__minus_obj="-o $am__obj"
3923
    case $depmode in
3924
    gcc)
3925
      # This depmode causes a compiler race in universal mode.
3926
      test "$am__universal" = false || continue
3927
      ;;
3928
    nosideeffect)
3929
      # after this tag, mechanisms are not by side-effect, so they'll
3930
      # only be used when explicitly requested
3931
      if test "x$enable_dependency_tracking" = xyes; then
3932
	continue
3933
      else
3934
	break
3935
      fi
3936
      ;;
3937
    msvisualcpp | msvcmsys)
3938
      # This compiler won't grok `-c -o', but also, the minuso test has
3939
      # not run yet.  These depmodes are late enough in the game, and
3940
      # so weak that their functioning should not be impacted.
3941
      am__obj=conftest.${OBJEXT-o}
3942
      am__minus_obj=
3943
      ;;
3944
    none) break ;;
3945
    esac
3946
    if depmode=$depmode \
3947
       source=sub/conftest.c object=$am__obj \
3948
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3949
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3950
         >/dev/null 2>conftest.err &&
3951
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3952
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3953
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3954
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3955
      # icc doesn't choke on unknown options, it will just issue warnings
3956
      # or remarks (even with -Werror).  So we grep stderr for any message
3957
      # that says an option was ignored or not supported.
3958
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3959
      #   icc: Command line warning: ignoring option '-M'; no argument required
3960
      # The diagnosis changed in icc 8.0:
3961
      #   icc: Command line remark: option '-MP' not supported
3962
      if (grep 'ignoring option' conftest.err ||
3963
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3964
        am_cv_CC_dependencies_compiler_type=$depmode
3965
        break
3966
      fi
3967
    fi
3968
  done
3969
3970
  cd ..
3971
  rm -rf conftest.dir
3972
else
3973
  am_cv_CC_dependencies_compiler_type=none
3974
fi
3975
3976
fi
3977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3978
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3979
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3980
3981
 if
3982
  test "x$enable_dependency_tracking" != xno \
3983
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3984
  am__fastdepCC_TRUE=
3985
  am__fastdepCC_FALSE='#'
3986
else
3987
  am__fastdepCC_TRUE='#'
3988
  am__fastdepCC_FALSE=
3989
fi
3990
3991
3992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3993
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3994
if test "${ac_cv_path_SED+set}" = set; then :
3995
  $as_echo_n "(cached) " >&6
3996
else
3997
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3998
     for ac_i in 1 2 3 4 5 6 7; do
3999
       ac_script="$ac_script$as_nl$ac_script"
4000
     done
4001
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4002
     { ac_script=; unset ac_script;}
4003
     if test -z "$SED"; then
4004
  ac_path_SED_found=false
4005
  # Loop through the user's path and test for each of PROGNAME-LIST
4006
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007
for as_dir in $PATH
4008
do
4009
  IFS=$as_save_IFS
4010
  test -z "$as_dir" && as_dir=.
4011
    for ac_prog in sed gsed; do
4012
    for ac_exec_ext in '' $ac_executable_extensions; do
4013
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4014
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4015
# Check for GNU ac_path_SED and select it if it is found.
4016
  # Check for GNU $ac_path_SED
4017
case `"$ac_path_SED" --version 2>&1` in
4018
*GNU*)
4019
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4020
*)
4021
  ac_count=0
4022
  $as_echo_n 0123456789 >"conftest.in"
4023
  while :
4024
  do
4025
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4026
    mv "conftest.tmp" "conftest.in"
4027
    cp "conftest.in" "conftest.nl"
4028
    $as_echo '' >> "conftest.nl"
4029
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4032
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4033
      # Best one so far, save it but keep looking for a better one
4034
      ac_cv_path_SED="$ac_path_SED"
4035
      ac_path_SED_max=$ac_count
4036
    fi
4037
    # 10*(2^10) chars as input seems more than enough
4038
    test $ac_count -gt 10 && break
4039
  done
4040
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041
esac
4042
4043
      $ac_path_SED_found && break 3
4044
    done
4045
  done
4046
  done
4047
IFS=$as_save_IFS
4048
  if test -z "$ac_cv_path_SED"; then
4049
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4050
  fi
4051
else
4052
  ac_cv_path_SED=$SED
4053
fi
4054
4055
fi
4056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4057
$as_echo "$ac_cv_path_SED" >&6; }
4058
 SED="$ac_cv_path_SED"
4059
  rm -f conftest.sed
4060
4061
test -z "$SED" && SED=sed
4062
Xsed="$SED -e 1s/^X//"
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4075
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4076
if test "${ac_cv_path_GREP+set}" = set; then :
4077
  $as_echo_n "(cached) " >&6
4078
else
4079
  if test -z "$GREP"; then
4080
  ac_path_GREP_found=false
4081
  # Loop through the user's path and test for each of PROGNAME-LIST
4082
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4084
do
4085
  IFS=$as_save_IFS
4086
  test -z "$as_dir" && as_dir=.
4087
    for ac_prog in grep ggrep; do
4088
    for ac_exec_ext in '' $ac_executable_extensions; do
4089
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4090
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4091
# Check for GNU ac_path_GREP and select it if it is found.
4092
  # Check for GNU $ac_path_GREP
4093
case `"$ac_path_GREP" --version 2>&1` in
4094
*GNU*)
4095
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4096
*)
4097
  ac_count=0
4098
  $as_echo_n 0123456789 >"conftest.in"
4099
  while :
4100
  do
4101
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4102
    mv "conftest.tmp" "conftest.in"
4103
    cp "conftest.in" "conftest.nl"
4104
    $as_echo 'GREP' >> "conftest.nl"
4105
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4108
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4109
      # Best one so far, save it but keep looking for a better one
4110
      ac_cv_path_GREP="$ac_path_GREP"
4111
      ac_path_GREP_max=$ac_count
4112
    fi
4113
    # 10*(2^10) chars as input seems more than enough
4114
    test $ac_count -gt 10 && break
4115
  done
4116
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117
esac
4118
4119
      $ac_path_GREP_found && break 3
4120
    done
4121
  done
4122
  done
4123
IFS=$as_save_IFS
4124
  if test -z "$ac_cv_path_GREP"; then
4125
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4126
  fi
4127
else
4128
  ac_cv_path_GREP=$GREP
4129
fi
4130
4131
fi
4132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4133
$as_echo "$ac_cv_path_GREP" >&6; }
4134
 GREP="$ac_cv_path_GREP"
4135
4136
4137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4138
$as_echo_n "checking for egrep... " >&6; }
4139
if test "${ac_cv_path_EGREP+set}" = set; then :
4140
  $as_echo_n "(cached) " >&6
4141
else
4142
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4143
   then ac_cv_path_EGREP="$GREP -E"
4144
   else
4145
     if test -z "$EGREP"; then
4146
  ac_path_EGREP_found=false
4147
  # Loop through the user's path and test for each of PROGNAME-LIST
4148
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150
do
4151
  IFS=$as_save_IFS
4152
  test -z "$as_dir" && as_dir=.
4153
    for ac_prog in egrep; do
4154
    for ac_exec_ext in '' $ac_executable_extensions; do
4155
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4156
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4157
# Check for GNU ac_path_EGREP and select it if it is found.
4158
  # Check for GNU $ac_path_EGREP
4159
case `"$ac_path_EGREP" --version 2>&1` in
4160
*GNU*)
4161
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4162
*)
4163
  ac_count=0
4164
  $as_echo_n 0123456789 >"conftest.in"
4165
  while :
4166
  do
4167
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4168
    mv "conftest.tmp" "conftest.in"
4169
    cp "conftest.in" "conftest.nl"
4170
    $as_echo 'EGREP' >> "conftest.nl"
4171
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4174
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4175
      # Best one so far, save it but keep looking for a better one
4176
      ac_cv_path_EGREP="$ac_path_EGREP"
4177
      ac_path_EGREP_max=$ac_count
4178
    fi
4179
    # 10*(2^10) chars as input seems more than enough
4180
    test $ac_count -gt 10 && break
4181
  done
4182
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183
esac
4184
4185
      $ac_path_EGREP_found && break 3
4186
    done
4187
  done
4188
  done
4189
IFS=$as_save_IFS
4190
  if test -z "$ac_cv_path_EGREP"; then
4191
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192
  fi
4193
else
4194
  ac_cv_path_EGREP=$EGREP
4195
fi
4196
4197
   fi
4198
fi
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4200
$as_echo "$ac_cv_path_EGREP" >&6; }
4201
 EGREP="$ac_cv_path_EGREP"
4202
4203
4204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4205
$as_echo_n "checking for fgrep... " >&6; }
4206
if test "${ac_cv_path_FGREP+set}" = set; then :
4207
  $as_echo_n "(cached) " >&6
4208
else
4209
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4210
   then ac_cv_path_FGREP="$GREP -F"
4211
   else
4212
     if test -z "$FGREP"; then
4213
  ac_path_FGREP_found=false
4214
  # Loop through the user's path and test for each of PROGNAME-LIST
4215
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217
do
4218
  IFS=$as_save_IFS
4219
  test -z "$as_dir" && as_dir=.
4220
    for ac_prog in fgrep; do
4221
    for ac_exec_ext in '' $ac_executable_extensions; do
4222
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4223
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4224
# Check for GNU ac_path_FGREP and select it if it is found.
4225
  # Check for GNU $ac_path_FGREP
4226
case `"$ac_path_FGREP" --version 2>&1` in
4227
*GNU*)
4228
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4229
*)
4230
  ac_count=0
4231
  $as_echo_n 0123456789 >"conftest.in"
4232
  while :
4233
  do
4234
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4235
    mv "conftest.tmp" "conftest.in"
4236
    cp "conftest.in" "conftest.nl"
4237
    $as_echo 'FGREP' >> "conftest.nl"
4238
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4241
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4242
      # Best one so far, save it but keep looking for a better one
4243
      ac_cv_path_FGREP="$ac_path_FGREP"
4244
      ac_path_FGREP_max=$ac_count
4245
    fi
4246
    # 10*(2^10) chars as input seems more than enough
4247
    test $ac_count -gt 10 && break
4248
  done
4249
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250
esac
4251
4252
      $ac_path_FGREP_found && break 3
4253
    done
4254
  done
4255
  done
4256
IFS=$as_save_IFS
4257
  if test -z "$ac_cv_path_FGREP"; then
4258
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259
  fi
4260
else
4261
  ac_cv_path_FGREP=$FGREP
4262
fi
4263
4264
   fi
4265
fi
4266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4267
$as_echo "$ac_cv_path_FGREP" >&6; }
4268
 FGREP="$ac_cv_path_FGREP"
4269
4270
4271
test -z "$GREP" && GREP=grep
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
# Check whether --with-gnu-ld was given.
4292
if test "${with_gnu_ld+set}" = set; then :
4293
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4294
else
4295
  with_gnu_ld=no
4296
fi
4297
4298
ac_prog=ld
4299
if test "$GCC" = yes; then
4300
  # Check if gcc -print-prog-name=ld gives a path.
4301
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4302
$as_echo_n "checking for ld used by $CC... " >&6; }
4303
  case $host in
4304
  *-*-mingw*)
4305
    # gcc leaves a trailing carriage return which upsets mingw
4306
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4307
  *)
4308
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4309
  esac
4310
  case $ac_prog in
4311
    # Accept absolute paths.
4312
    [\\/]* | ?:[\\/]*)
4313
      re_direlt='/[^/][^/]*/\.\./'
4314
      # Canonicalize the pathname of ld
4315
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4316
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4317
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4318
      done
4319
      test -z "$LD" && LD="$ac_prog"
4320
      ;;
4321
  "")
4322
    # If it fails, then pretend we aren't using GCC.
4323
    ac_prog=ld
4324
    ;;
4325
  *)
4326
    # If it is relative, then search for the first ld in PATH.
4327
    with_gnu_ld=unknown
4328
    ;;
4329
  esac
4330
elif test "$with_gnu_ld" = yes; then
4331
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4332
$as_echo_n "checking for GNU ld... " >&6; }
4333
else
4334
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4335
$as_echo_n "checking for non-GNU ld... " >&6; }
4336
fi
4337
if test "${lt_cv_path_LD+set}" = set; then :
4338
  $as_echo_n "(cached) " >&6
4339
else
4340
  if test -z "$LD"; then
4341
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4342
  for ac_dir in $PATH; do
4343
    IFS="$lt_save_ifs"
4344
    test -z "$ac_dir" && ac_dir=.
4345
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4346
      lt_cv_path_LD="$ac_dir/$ac_prog"
4347
      # Check to see if the program is GNU ld.  I'd rather use --version,
4348
      # but apparently some variants of GNU ld only accept -v.
4349
      # Break only if it was the GNU/non-GNU ld that we prefer.
4350
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4351
      *GNU* | *'with BFD'*)
4352
	test "$with_gnu_ld" != no && break
4353
	;;
4354
      *)
4355
	test "$with_gnu_ld" != yes && break
4356
	;;
4357
      esac
4358
    fi
4359
  done
4360
  IFS="$lt_save_ifs"
4361
else
4362
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4363
fi
4364
fi
4365
4366
LD="$lt_cv_path_LD"
4367
if test -n "$LD"; then
4368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4369
$as_echo "$LD" >&6; }
4370
else
4371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372
$as_echo "no" >&6; }
4373
fi
4374
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4376
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4377
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4378
  $as_echo_n "(cached) " >&6
4379
else
4380
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4381
case `$LD -v 2>&1 </dev/null` in
4382
*GNU* | *'with BFD'*)
4383
  lt_cv_prog_gnu_ld=yes
4384
  ;;
4385
*)
4386
  lt_cv_prog_gnu_ld=no
4387
  ;;
4388
esac
4389
fi
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4391
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4392
with_gnu_ld=$lt_cv_prog_gnu_ld
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4403
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4404
if test "${lt_cv_path_NM+set}" = set; then :
4405
  $as_echo_n "(cached) " >&6
4406
else
4407
  if test -n "$NM"; then
4408
  # Let the user override the test.
4409
  lt_cv_path_NM="$NM"
4410
else
4411
  lt_nm_to_check="${ac_tool_prefix}nm"
4412
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4413
    lt_nm_to_check="$lt_nm_to_check nm"
4414
  fi
4415
  for lt_tmp_nm in $lt_nm_to_check; do
4416
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4417
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4418
      IFS="$lt_save_ifs"
4419
      test -z "$ac_dir" && ac_dir=.
4420
      tmp_nm="$ac_dir/$lt_tmp_nm"
4421
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4422
	# Check to see if the nm accepts a BSD-compat flag.
4423
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4424
	#   nm: unknown option "B" ignored
4425
	# Tru64's nm complains that /dev/null is an invalid object file
4426
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4427
	*/dev/null* | *'Invalid file or object type'*)
4428
	  lt_cv_path_NM="$tmp_nm -B"
4429
	  break
4430
	  ;;
4431
	*)
4432
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4433
	  */dev/null*)
4434
	    lt_cv_path_NM="$tmp_nm -p"
4435
	    break
4436
	    ;;
4437
	  *)
4438
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4439
	    continue # so that we can try to find one that supports BSD flags
4440
	    ;;
4441
	  esac
4442
	  ;;
4443
	esac
4444
      fi
4445
    done
4446
    IFS="$lt_save_ifs"
4447
  done
4448
  : ${lt_cv_path_NM=no}
4449
fi
4450
fi
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4452
$as_echo "$lt_cv_path_NM" >&6; }
4453
if test "$lt_cv_path_NM" != "no"; then
4454
  NM="$lt_cv_path_NM"
4455
else
4456
  # Didn't find any BSD compatible name lister, look for dumpbin.
4457
  if test -n "$ac_tool_prefix"; then
4458
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4459
  do
4460
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4461
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463
$as_echo_n "checking for $ac_word... " >&6; }
4464
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4465
  $as_echo_n "(cached) " >&6
4466
else
4467
  if test -n "$DUMPBIN"; then
4468
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4469
else
4470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471
for as_dir in $PATH
4472
do
4473
  IFS=$as_save_IFS
4474
  test -z "$as_dir" && as_dir=.
4475
    for ac_exec_ext in '' $ac_executable_extensions; do
4476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4478
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479
    break 2
4480
  fi
4481
done
4482
  done
4483
IFS=$as_save_IFS
4484
4485
fi
4486
fi
4487
DUMPBIN=$ac_cv_prog_DUMPBIN
4488
if test -n "$DUMPBIN"; then
4489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4490
$as_echo "$DUMPBIN" >&6; }
4491
else
4492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493
$as_echo "no" >&6; }
4494
fi
4495
4496
4497
    test -n "$DUMPBIN" && break
4498
  done
4499
fi
4500
if test -z "$DUMPBIN"; then
4501
  ac_ct_DUMPBIN=$DUMPBIN
4502
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4503
do
4504
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4505
set dummy $ac_prog; ac_word=$2
4506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507
$as_echo_n "checking for $ac_word... " >&6; }
4508
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4509
  $as_echo_n "(cached) " >&6
4510
else
4511
  if test -n "$ac_ct_DUMPBIN"; then
4512
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4513
else
4514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515
for as_dir in $PATH
4516
do
4517
  IFS=$as_save_IFS
4518
  test -z "$as_dir" && as_dir=.
4519
    for ac_exec_ext in '' $ac_executable_extensions; do
4520
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4522
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523
    break 2
4524
  fi
4525
done
4526
  done
4527
IFS=$as_save_IFS
4528
4529
fi
4530
fi
4531
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4532
if test -n "$ac_ct_DUMPBIN"; then
4533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4534
$as_echo "$ac_ct_DUMPBIN" >&6; }
4535
else
4536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537
$as_echo "no" >&6; }
4538
fi
4539
4540
4541
  test -n "$ac_ct_DUMPBIN" && break
4542
done
4543
4544
  if test "x$ac_ct_DUMPBIN" = x; then
4545
    DUMPBIN=":"
4546
  else
4547
    case $cross_compiling:$ac_tool_warned in
4548
yes:)
4549
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4550
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4551
ac_tool_warned=yes ;;
4552
esac
4553
    DUMPBIN=$ac_ct_DUMPBIN
4554
  fi
4555
fi
4556
4557
4558
  if test "$DUMPBIN" != ":"; then
4559
    NM="$DUMPBIN"
4560
  fi
4561
fi
4562
test -z "$NM" && NM=nm
4563
4564
4565
4566
4567
4568
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4570
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4571
if test "${lt_cv_nm_interface+set}" = set; then :
4572
  $as_echo_n "(cached) " >&6
4573
else
4574
  lt_cv_nm_interface="BSD nm"
4575
  echo "int some_variable = 0;" > conftest.$ac_ext
6 by edam
- fixed .am files so the library gets built!
4576
  (eval echo "\"\$as_me:4576: $ac_compile\"" >&5)
5 by edam
- updated README
4577
  (eval "$ac_compile" 2>conftest.err)
4578
  cat conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
4579
  (eval echo "\"\$as_me:4579: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5 by edam
- updated README
4580
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4581
  cat conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
4582
  (eval echo "\"\$as_me:4582: output\"" >&5)
5 by edam
- updated README
4583
  cat conftest.out >&5
4584
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4585
    lt_cv_nm_interface="MS dumpbin"
4586
  fi
4587
  rm -f conftest*
4588
fi
4589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4590
$as_echo "$lt_cv_nm_interface" >&6; }
4591
4592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4593
$as_echo_n "checking whether ln -s works... " >&6; }
4594
LN_S=$as_ln_s
4595
if test "$LN_S" = "ln -s"; then
4596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597
$as_echo "yes" >&6; }
4598
else
4599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4600
$as_echo "no, using $LN_S" >&6; }
4601
fi
4602
4603
# find the maximum length of command line arguments
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4605
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4606
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4607
  $as_echo_n "(cached) " >&6
4608
else
4609
    i=0
4610
  teststring="ABCD"
4611
4612
  case $build_os in
4613
  msdosdjgpp*)
4614
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4615
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4616
    # during glob expansion).  Even if it were fixed, the result of this
4617
    # check would be larger than it should be.
4618
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4619
    ;;
4620
4621
  gnu*)
4622
    # Under GNU Hurd, this test is not required because there is
4623
    # no limit to the length of command line arguments.
4624
    # Libtool will interpret -1 as no limit whatsoever
4625
    lt_cv_sys_max_cmd_len=-1;
4626
    ;;
4627
4628
  cygwin* | mingw* | cegcc*)
4629
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4630
    # about 5 minutes as the teststring grows exponentially.
4631
    # Worse, since 9x/ME are not pre-emptively multitasking,
4632
    # you end up with a "frozen" computer, even though with patience
4633
    # the test eventually succeeds (with a max line length of 256k).
4634
    # Instead, let's just punt: use the minimum linelength reported by
4635
    # all of the supported platforms: 8192 (on NT/2K/XP).
4636
    lt_cv_sys_max_cmd_len=8192;
4637
    ;;
4638
4639
  amigaos*)
4640
    # On AmigaOS with pdksh, this test takes hours, literally.
4641
    # So we just punt and use a minimum line length of 8192.
4642
    lt_cv_sys_max_cmd_len=8192;
4643
    ;;
4644
4645
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4646
    # This has been around since 386BSD, at least.  Likely further.
4647
    if test -x /sbin/sysctl; then
4648
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4649
    elif test -x /usr/sbin/sysctl; then
4650
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4651
    else
4652
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4653
    fi
4654
    # And add a safety zone
4655
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4656
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4657
    ;;
4658
4659
  interix*)
4660
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4661
    lt_cv_sys_max_cmd_len=196608
4662
    ;;
4663
4664
  osf*)
4665
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4666
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4667
    # nice to cause kernel panics so lets avoid the loop below.
4668
    # First set a reasonable default.
4669
    lt_cv_sys_max_cmd_len=16384
4670
    #
4671
    if test -x /sbin/sysconfig; then
4672
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4673
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4674
      esac
4675
    fi
4676
    ;;
4677
  sco3.2v5*)
4678
    lt_cv_sys_max_cmd_len=102400
4679
    ;;
4680
  sysv5* | sco5v6* | sysv4.2uw2*)
4681
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4682
    if test -n "$kargmax"; then
4683
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4684
    else
4685
      lt_cv_sys_max_cmd_len=32768
4686
    fi
4687
    ;;
4688
  *)
4689
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4690
    if test -n "$lt_cv_sys_max_cmd_len"; then
4691
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4693
    else
4694
      # Make teststring a little bigger before we do anything with it.
4695
      # a 1K string should be a reasonable start.
4696
      for i in 1 2 3 4 5 6 7 8 ; do
4697
        teststring=$teststring$teststring
4698
      done
4699
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4700
      # If test is not a shell built-in, we'll probably end up computing a
4701
      # maximum length that is only half of the actual maximum length, but
4702
      # we can't tell.
4703
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4704
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4705
	      test $i != 17 # 1/2 MB should be enough
4706
      do
4707
        i=`expr $i + 1`
4708
        teststring=$teststring$teststring
4709
      done
4710
      # Only check the string length outside the loop.
4711
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4712
      teststring=
4713
      # Add a significant safety factor because C++ compilers can tack on
4714
      # massive amounts of additional arguments before passing them to the
4715
      # linker.  It appears as though 1/2 is a usable value.
4716
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4717
    fi
4718
    ;;
4719
  esac
4720
4721
fi
4722
4723
if test -n $lt_cv_sys_max_cmd_len ; then
4724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4725
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4726
else
4727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4728
$as_echo "none" >&6; }
4729
fi
4730
max_cmd_len=$lt_cv_sys_max_cmd_len
4731
4732
4733
4734
4735
4736
4737
: ${CP="cp -f"}
4738
: ${MV="mv -f"}
4739
: ${RM="rm -f"}
4740
4741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4742
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4743
# Try some XSI features
4744
xsi_shell=no
4745
( _lt_dummy="a/b/c"
4746
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4747
      = c,a/b,, \
4748
    && eval 'test $(( 1 + 1 )) -eq 2 \
4749
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4750
  && xsi_shell=yes
4751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4752
$as_echo "$xsi_shell" >&6; }
4753
4754
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4756
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4757
lt_shell_append=no
4758
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4759
    >/dev/null 2>&1 \
4760
  && lt_shell_append=yes
4761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4762
$as_echo "$lt_shell_append" >&6; }
4763
4764
4765
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4766
  lt_unset=unset
4767
else
4768
  lt_unset=false
4769
fi
4770
4771
4772
4773
4774
4775
# test EBCDIC or ASCII
4776
case `echo X|tr X '\101'` in
4777
 A) # ASCII based system
4778
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4779
  lt_SP2NL='tr \040 \012'
4780
  lt_NL2SP='tr \015\012 \040\040'
4781
  ;;
4782
 *) # EBCDIC based system
4783
  lt_SP2NL='tr \100 \n'
4784
  lt_NL2SP='tr \r\n \100\100'
4785
  ;;
4786
esac
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4797
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4798
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4799
  $as_echo_n "(cached) " >&6
4800
else
4801
  lt_cv_ld_reload_flag='-r'
4802
fi
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4804
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4805
reload_flag=$lt_cv_ld_reload_flag
4806
case $reload_flag in
4807
"" | " "*) ;;
4808
*) reload_flag=" $reload_flag" ;;
4809
esac
4810
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811
case $host_os in
4812
  darwin*)
4813
    if test "$GCC" = yes; then
4814
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4815
    else
4816
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4817
    fi
4818
    ;;
4819
esac
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
if test -n "$ac_tool_prefix"; then
4830
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4831
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833
$as_echo_n "checking for $ac_word... " >&6; }
4834
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4835
  $as_echo_n "(cached) " >&6
4836
else
4837
  if test -n "$OBJDUMP"; then
4838
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4839
else
4840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841
for as_dir in $PATH
4842
do
4843
  IFS=$as_save_IFS
4844
  test -z "$as_dir" && as_dir=.
4845
    for ac_exec_ext in '' $ac_executable_extensions; do
4846
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4848
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849
    break 2
4850
  fi
4851
done
4852
  done
4853
IFS=$as_save_IFS
4854
4855
fi
4856
fi
4857
OBJDUMP=$ac_cv_prog_OBJDUMP
4858
if test -n "$OBJDUMP"; then
4859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4860
$as_echo "$OBJDUMP" >&6; }
4861
else
4862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863
$as_echo "no" >&6; }
4864
fi
4865
4866
4867
fi
4868
if test -z "$ac_cv_prog_OBJDUMP"; then
4869
  ac_ct_OBJDUMP=$OBJDUMP
4870
  # Extract the first word of "objdump", so it can be a program name with args.
4871
set dummy objdump; ac_word=$2
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873
$as_echo_n "checking for $ac_word... " >&6; }
4874
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4875
  $as_echo_n "(cached) " >&6
4876
else
4877
  if test -n "$ac_ct_OBJDUMP"; then
4878
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4879
else
4880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881
for as_dir in $PATH
4882
do
4883
  IFS=$as_save_IFS
4884
  test -z "$as_dir" && as_dir=.
4885
    for ac_exec_ext in '' $ac_executable_extensions; do
4886
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4888
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889
    break 2
4890
  fi
4891
done
4892
  done
4893
IFS=$as_save_IFS
4894
4895
fi
4896
fi
4897
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4898
if test -n "$ac_ct_OBJDUMP"; then
4899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4900
$as_echo "$ac_ct_OBJDUMP" >&6; }
4901
else
4902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903
$as_echo "no" >&6; }
4904
fi
4905
4906
  if test "x$ac_ct_OBJDUMP" = x; then
4907
    OBJDUMP="false"
4908
  else
4909
    case $cross_compiling:$ac_tool_warned in
4910
yes:)
4911
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913
ac_tool_warned=yes ;;
4914
esac
4915
    OBJDUMP=$ac_ct_OBJDUMP
4916
  fi
4917
else
4918
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4919
fi
4920
4921
test -z "$OBJDUMP" && OBJDUMP=objdump
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4932
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4933
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4934
  $as_echo_n "(cached) " >&6
4935
else
4936
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4937
lt_cv_file_magic_test_file=
4938
lt_cv_deplibs_check_method='unknown'
4939
# Need to set the preceding variable on all platforms that support
4940
# interlibrary dependencies.
4941
# 'none' -- dependencies not supported.
4942
# `unknown' -- same as none, but documents that we really don't know.
4943
# 'pass_all' -- all dependencies passed with no checks.
4944
# 'test_compile' -- check by making test program.
4945
# 'file_magic [[regex]]' -- check by looking for files in library path
4946
# which responds to the $file_magic_cmd with a given extended regex.
4947
# If you have `file' or equivalent on your system and you're not sure
4948
# whether `pass_all' will *always* work, you probably want this one.
4949
4950
case $host_os in
4951
aix[4-9]*)
4952
  lt_cv_deplibs_check_method=pass_all
4953
  ;;
4954
4955
beos*)
4956
  lt_cv_deplibs_check_method=pass_all
4957
  ;;
4958
4959
bsdi[45]*)
4960
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4961
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4962
  lt_cv_file_magic_test_file=/shlib/libc.so
4963
  ;;
4964
4965
cygwin*)
4966
  # func_win32_libid is a shell function defined in ltmain.sh
4967
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968
  lt_cv_file_magic_cmd='func_win32_libid'
4969
  ;;
4970
4971
mingw* | pw32*)
4972
  # Base MSYS/MinGW do not provide the 'file' command needed by
4973
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4974
  # unless we find 'file', for example because we are cross-compiling.
4975
  if ( file / ) >/dev/null 2>&1; then
4976
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4977
    lt_cv_file_magic_cmd='func_win32_libid'
4978
  else
4979
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4980
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4981
  fi
4982
  ;;
4983
4984
cegcc)
4985
  # use the weaker test based on 'objdump'. See mingw*.
4986
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4987
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4988
  ;;
4989
4990
darwin* | rhapsody*)
4991
  lt_cv_deplibs_check_method=pass_all
4992
  ;;
4993
4994
freebsd* | dragonfly*)
4995
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4996
    case $host_cpu in
4997
    i*86 )
4998
      # Not sure whether the presence of OpenBSD here was a mistake.
4999
      # Let's accept both of them until this is cleared up.
5000
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5001
      lt_cv_file_magic_cmd=/usr/bin/file
5002
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5003
      ;;
5004
    esac
5005
  else
5006
    lt_cv_deplibs_check_method=pass_all
5007
  fi
5008
  ;;
5009
5010
gnu*)
5011
  lt_cv_deplibs_check_method=pass_all
5012
  ;;
5013
5014
hpux10.20* | hpux11*)
5015
  lt_cv_file_magic_cmd=/usr/bin/file
5016
  case $host_cpu in
5017
  ia64*)
5018
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5019
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5020
    ;;
5021
  hppa*64*)
5022
    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]'
5023
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5024
    ;;
5025
  *)
5026
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5027
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5028
    ;;
5029
  esac
5030
  ;;
5031
5032
interix[3-9]*)
5033
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5034
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5035
  ;;
5036
5037
irix5* | irix6* | nonstopux*)
5038
  case $LD in
5039
  *-32|*"-32 ") libmagic=32-bit;;
5040
  *-n32|*"-n32 ") libmagic=N32;;
5041
  *-64|*"-64 ") libmagic=64-bit;;
5042
  *) libmagic=never-match;;
5043
  esac
5044
  lt_cv_deplibs_check_method=pass_all
5045
  ;;
5046
5047
# This must be Linux ELF.
5048
linux* | k*bsd*-gnu)
5049
  lt_cv_deplibs_check_method=pass_all
5050
  ;;
5051
5052
netbsd* | netbsdelf*-gnu)
5053
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5054
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055
  else
5056
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5057
  fi
5058
  ;;
5059
5060
newos6*)
5061
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5062
  lt_cv_file_magic_cmd=/usr/bin/file
5063
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5064
  ;;
5065
5066
*nto* | *qnx*)
5067
  lt_cv_deplibs_check_method=pass_all
5068
  ;;
5069
5070
openbsd*)
5071
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5072
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5073
  else
5074
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5075
  fi
5076
  ;;
5077
5078
osf3* | osf4* | osf5*)
5079
  lt_cv_deplibs_check_method=pass_all
5080
  ;;
5081
5082
rdos*)
5083
  lt_cv_deplibs_check_method=pass_all
5084
  ;;
5085
5086
solaris*)
5087
  lt_cv_deplibs_check_method=pass_all
5088
  ;;
5089
5090
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5091
  lt_cv_deplibs_check_method=pass_all
5092
  ;;
5093
5094
sysv4 | sysv4.3*)
5095
  case $host_vendor in
5096
  motorola)
5097
    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]'
5098
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5099
    ;;
5100
  ncr)
5101
    lt_cv_deplibs_check_method=pass_all
5102
    ;;
5103
  sequent)
5104
    lt_cv_file_magic_cmd='/bin/file'
5105
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5106
    ;;
5107
  sni)
5108
    lt_cv_file_magic_cmd='/bin/file'
5109
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5110
    lt_cv_file_magic_test_file=/lib/libc.so
5111
    ;;
5112
  siemens)
5113
    lt_cv_deplibs_check_method=pass_all
5114
    ;;
5115
  pc)
5116
    lt_cv_deplibs_check_method=pass_all
5117
    ;;
5118
  esac
5119
  ;;
5120
5121
tpf*)
5122
  lt_cv_deplibs_check_method=pass_all
5123
  ;;
5124
esac
5125
5126
fi
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5128
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5129
file_magic_cmd=$lt_cv_file_magic_cmd
5130
deplibs_check_method=$lt_cv_deplibs_check_method
5131
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
if test -n "$ac_tool_prefix"; then
5145
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5146
set dummy ${ac_tool_prefix}ar; ac_word=$2
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148
$as_echo_n "checking for $ac_word... " >&6; }
5149
if test "${ac_cv_prog_AR+set}" = set; then :
5150
  $as_echo_n "(cached) " >&6
5151
else
5152
  if test -n "$AR"; then
5153
  ac_cv_prog_AR="$AR" # Let the user override the test.
5154
else
5155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156
for as_dir in $PATH
5157
do
5158
  IFS=$as_save_IFS
5159
  test -z "$as_dir" && as_dir=.
5160
    for ac_exec_ext in '' $ac_executable_extensions; do
5161
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5163
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164
    break 2
5165
  fi
5166
done
5167
  done
5168
IFS=$as_save_IFS
5169
5170
fi
5171
fi
5172
AR=$ac_cv_prog_AR
5173
if test -n "$AR"; then
5174
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5175
$as_echo "$AR" >&6; }
5176
else
5177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178
$as_echo "no" >&6; }
5179
fi
5180
5181
5182
fi
5183
if test -z "$ac_cv_prog_AR"; then
5184
  ac_ct_AR=$AR
5185
  # Extract the first word of "ar", so it can be a program name with args.
5186
set dummy ar; ac_word=$2
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188
$as_echo_n "checking for $ac_word... " >&6; }
5189
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5190
  $as_echo_n "(cached) " >&6
5191
else
5192
  if test -n "$ac_ct_AR"; then
5193
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5194
else
5195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196
for as_dir in $PATH
5197
do
5198
  IFS=$as_save_IFS
5199
  test -z "$as_dir" && as_dir=.
5200
    for ac_exec_ext in '' $ac_executable_extensions; do
5201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202
    ac_cv_prog_ac_ct_AR="ar"
5203
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204
    break 2
5205
  fi
5206
done
5207
  done
5208
IFS=$as_save_IFS
5209
5210
fi
5211
fi
5212
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5213
if test -n "$ac_ct_AR"; then
5214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5215
$as_echo "$ac_ct_AR" >&6; }
5216
else
5217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218
$as_echo "no" >&6; }
5219
fi
5220
5221
  if test "x$ac_ct_AR" = x; then
5222
    AR="false"
5223
  else
5224
    case $cross_compiling:$ac_tool_warned in
5225
yes:)
5226
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228
ac_tool_warned=yes ;;
5229
esac
5230
    AR=$ac_ct_AR
5231
  fi
5232
else
5233
  AR="$ac_cv_prog_AR"
5234
fi
5235
5236
test -z "$AR" && AR=ar
5237
test -z "$AR_FLAGS" && AR_FLAGS=cru
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
if test -n "$ac_tool_prefix"; then
5250
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5251
set dummy ${ac_tool_prefix}strip; ac_word=$2
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253
$as_echo_n "checking for $ac_word... " >&6; }
5254
if test "${ac_cv_prog_STRIP+set}" = set; then :
5255
  $as_echo_n "(cached) " >&6
5256
else
5257
  if test -n "$STRIP"; then
5258
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5259
else
5260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261
for as_dir in $PATH
5262
do
5263
  IFS=$as_save_IFS
5264
  test -z "$as_dir" && as_dir=.
5265
    for ac_exec_ext in '' $ac_executable_extensions; do
5266
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5268
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269
    break 2
5270
  fi
5271
done
5272
  done
5273
IFS=$as_save_IFS
5274
5275
fi
5276
fi
5277
STRIP=$ac_cv_prog_STRIP
5278
if test -n "$STRIP"; then
5279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5280
$as_echo "$STRIP" >&6; }
5281
else
5282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283
$as_echo "no" >&6; }
5284
fi
5285
5286
5287
fi
5288
if test -z "$ac_cv_prog_STRIP"; then
5289
  ac_ct_STRIP=$STRIP
5290
  # Extract the first word of "strip", so it can be a program name with args.
5291
set dummy strip; ac_word=$2
5292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293
$as_echo_n "checking for $ac_word... " >&6; }
5294
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5295
  $as_echo_n "(cached) " >&6
5296
else
5297
  if test -n "$ac_ct_STRIP"; then
5298
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5299
else
5300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301
for as_dir in $PATH
5302
do
5303
  IFS=$as_save_IFS
5304
  test -z "$as_dir" && as_dir=.
5305
    for ac_exec_ext in '' $ac_executable_extensions; do
5306
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307
    ac_cv_prog_ac_ct_STRIP="strip"
5308
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309
    break 2
5310
  fi
5311
done
5312
  done
5313
IFS=$as_save_IFS
5314
5315
fi
5316
fi
5317
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5318
if test -n "$ac_ct_STRIP"; then
5319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5320
$as_echo "$ac_ct_STRIP" >&6; }
5321
else
5322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323
$as_echo "no" >&6; }
5324
fi
5325
5326
  if test "x$ac_ct_STRIP" = x; then
5327
    STRIP=":"
5328
  else
5329
    case $cross_compiling:$ac_tool_warned in
5330
yes:)
5331
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333
ac_tool_warned=yes ;;
5334
esac
5335
    STRIP=$ac_ct_STRIP
5336
  fi
5337
else
5338
  STRIP="$ac_cv_prog_STRIP"
5339
fi
5340
5341
test -z "$STRIP" && STRIP=:
5342
5343
5344
5345
5346
5347
5348
if test -n "$ac_tool_prefix"; then
5349
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352
$as_echo_n "checking for $ac_word... " >&6; }
5353
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5354
  $as_echo_n "(cached) " >&6
5355
else
5356
  if test -n "$RANLIB"; then
5357
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5358
else
5359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360
for as_dir in $PATH
5361
do
5362
  IFS=$as_save_IFS
5363
  test -z "$as_dir" && as_dir=.
5364
    for ac_exec_ext in '' $ac_executable_extensions; do
5365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368
    break 2
5369
  fi
5370
done
5371
  done
5372
IFS=$as_save_IFS
5373
5374
fi
5375
fi
5376
RANLIB=$ac_cv_prog_RANLIB
5377
if test -n "$RANLIB"; then
5378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5379
$as_echo "$RANLIB" >&6; }
5380
else
5381
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382
$as_echo "no" >&6; }
5383
fi
5384
5385
5386
fi
5387
if test -z "$ac_cv_prog_RANLIB"; then
5388
  ac_ct_RANLIB=$RANLIB
5389
  # Extract the first word of "ranlib", so it can be a program name with args.
5390
set dummy ranlib; ac_word=$2
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392
$as_echo_n "checking for $ac_word... " >&6; }
5393
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5394
  $as_echo_n "(cached) " >&6
5395
else
5396
  if test -n "$ac_ct_RANLIB"; then
5397
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398
else
5399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400
for as_dir in $PATH
5401
do
5402
  IFS=$as_save_IFS
5403
  test -z "$as_dir" && as_dir=.
5404
    for ac_exec_ext in '' $ac_executable_extensions; do
5405
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5407
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408
    break 2
5409
  fi
5410
done
5411
  done
5412
IFS=$as_save_IFS
5413
5414
fi
5415
fi
5416
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417
if test -n "$ac_ct_RANLIB"; then
5418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5419
$as_echo "$ac_ct_RANLIB" >&6; }
5420
else
5421
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422
$as_echo "no" >&6; }
5423
fi
5424
5425
  if test "x$ac_ct_RANLIB" = x; then
5426
    RANLIB=":"
5427
  else
5428
    case $cross_compiling:$ac_tool_warned in
5429
yes:)
5430
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432
ac_tool_warned=yes ;;
5433
esac
5434
    RANLIB=$ac_ct_RANLIB
5435
  fi
5436
else
5437
  RANLIB="$ac_cv_prog_RANLIB"
5438
fi
5439
5440
test -z "$RANLIB" && RANLIB=:
5441
5442
5443
5444
5445
5446
5447
# Determine commands to create old-style static archives.
5448
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5449
old_postinstall_cmds='chmod 644 $oldlib'
5450
old_postuninstall_cmds=
5451
5452
if test -n "$RANLIB"; then
5453
  case $host_os in
5454
  openbsd*)
5455
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5456
    ;;
5457
  *)
5458
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5459
    ;;
5460
  esac
5461
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5462
fi
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
# If no C compiler was specified, use CC.
5498
LTCC=${LTCC-"$CC"}
5499
5500
# If no C compiler flags were specified, use CFLAGS.
5501
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5502
5503
# Allow CC to be a program name with arguments.
5504
compiler=$CC
5505
5506
5507
# Check for command to grab the raw symbol name followed by C symbol from nm.
5508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5509
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5510
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5511
  $as_echo_n "(cached) " >&6
5512
else
5513
5514
# These are sane defaults that work on at least a few old systems.
5515
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5516
5517
# Character class describing NM global symbol codes.
5518
symcode='[BCDEGRST]'
5519
5520
# Regexp to match symbols that can be accessed directly from C.
5521
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5522
5523
# Define system-specific variables.
5524
case $host_os in
5525
aix*)
5526
  symcode='[BCDT]'
5527
  ;;
5528
cygwin* | mingw* | pw32* | cegcc*)
5529
  symcode='[ABCDGISTW]'
5530
  ;;
5531
hpux*)
5532
  if test "$host_cpu" = ia64; then
5533
    symcode='[ABCDEGRST]'
5534
  fi
5535
  ;;
5536
irix* | nonstopux*)
5537
  symcode='[BCDEGRST]'
5538
  ;;
5539
osf*)
5540
  symcode='[BCDEGQRST]'
5541
  ;;
5542
solaris*)
5543
  symcode='[BDRT]'
5544
  ;;
5545
sco3.2v5*)
5546
  symcode='[DT]'
5547
  ;;
5548
sysv4.2uw2*)
5549
  symcode='[DT]'
5550
  ;;
5551
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5552
  symcode='[ABDT]'
5553
  ;;
5554
sysv4)
5555
  symcode='[DFNSTU]'
5556
  ;;
5557
esac
5558
5559
# If we're using GNU nm, then use its standard symbol codes.
5560
case `$NM -V 2>&1` in
5561
*GNU* | *'with BFD'*)
5562
  symcode='[ABCDGIRSTW]' ;;
5563
esac
5564
5565
# Transform an extracted symbol line into a proper C declaration.
5566
# Some systems (esp. on ia64) link data and code symbols differently,
5567
# so use this general approach.
5568
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5569
5570
# Transform an extracted symbol line into symbol name and symbol address
5571
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5572
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'"
5573
5574
# Handle CRLF in mingw tool chain
5575
opt_cr=
5576
case $build_os in
5577
mingw*)
5578
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5579
  ;;
5580
esac
5581
5582
# Try without a prefix underscore, then with it.
5583
for ac_symprfx in "" "_"; do
5584
5585
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5586
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5587
5588
  # Write the raw and C identifiers.
5589
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5590
    # Fake it for dumpbin and say T for any non-static function
5591
    # and D for any global variable.
5592
    # Also find C++ and __fastcall symbols from MSVC++,
5593
    # which start with @ or ?.
5594
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5595
"     {last_section=section; section=\$ 3};"\
5596
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5597
"     \$ 0!~/External *\|/{next};"\
5598
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5599
"     {if(hide[section]) next};"\
5600
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5601
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5602
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5603
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5604
"     ' prfx=^$ac_symprfx"
5605
  else
5606
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5607
  fi
5608
5609
  # Check to see that the pipe works correctly.
5610
  pipe_works=no
5611
5612
  rm -f conftest*
5613
  cat > conftest.$ac_ext <<_LT_EOF
5614
#ifdef __cplusplus
5615
extern "C" {
5616
#endif
5617
char nm_test_var;
5618
void nm_test_func(void);
5619
void nm_test_func(void){}
5620
#ifdef __cplusplus
5621
}
5622
#endif
5623
int main(){nm_test_var='a';nm_test_func();return(0);}
5624
_LT_EOF
5625
5626
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5627
  (eval $ac_compile) 2>&5
5628
  ac_status=$?
5629
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630
  test $ac_status = 0; }; then
5631
    # Now try to grab the symbols.
5632
    nlist=conftest.nm
5633
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5634
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5635
  ac_status=$?
5636
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637
  test $ac_status = 0; } && test -s "$nlist"; then
5638
      # Try sorting and uniquifying the output.
5639
      if sort "$nlist" | uniq > "$nlist"T; then
5640
	mv -f "$nlist"T "$nlist"
5641
      else
5642
	rm -f "$nlist"T
5643
      fi
5644
5645
      # Make sure that we snagged all the symbols we need.
5646
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5647
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5648
	  cat <<_LT_EOF > conftest.$ac_ext
5649
#ifdef __cplusplus
5650
extern "C" {
5651
#endif
5652
5653
_LT_EOF
5654
	  # Now generate the symbol file.
5655
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5656
5657
	  cat <<_LT_EOF >> conftest.$ac_ext
5658
5659
/* The mapping between symbol names and symbols.  */
5660
const struct {
5661
  const char *name;
5662
  void       *address;
5663
}
5664
lt__PROGRAM__LTX_preloaded_symbols[] =
5665
{
5666
  { "@PROGRAM@", (void *) 0 },
5667
_LT_EOF
5668
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5669
	  cat <<\_LT_EOF >> conftest.$ac_ext
5670
  {0, (void *) 0}
5671
};
5672
5673
/* This works around a problem in FreeBSD linker */
5674
#ifdef FREEBSD_WORKAROUND
5675
static const void *lt_preloaded_setup() {
5676
  return lt__PROGRAM__LTX_preloaded_symbols;
5677
}
5678
#endif
5679
5680
#ifdef __cplusplus
5681
}
5682
#endif
5683
_LT_EOF
5684
	  # Now try linking the two files.
5685
	  mv conftest.$ac_objext conftstm.$ac_objext
5686
	  lt_save_LIBS="$LIBS"
5687
	  lt_save_CFLAGS="$CFLAGS"
5688
	  LIBS="conftstm.$ac_objext"
5689
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5690
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5691
  (eval $ac_link) 2>&5
5692
  ac_status=$?
5693
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5695
	    pipe_works=yes
5696
	  fi
5697
	  LIBS="$lt_save_LIBS"
5698
	  CFLAGS="$lt_save_CFLAGS"
5699
	else
5700
	  echo "cannot find nm_test_func in $nlist" >&5
5701
	fi
5702
      else
5703
	echo "cannot find nm_test_var in $nlist" >&5
5704
      fi
5705
    else
5706
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5707
    fi
5708
  else
5709
    echo "$progname: failed program was:" >&5
5710
    cat conftest.$ac_ext >&5
5711
  fi
5712
  rm -rf conftest* conftst*
5713
5714
  # Do not use the global_symbol_pipe unless it works.
5715
  if test "$pipe_works" = yes; then
5716
    break
5717
  else
5718
    lt_cv_sys_global_symbol_pipe=
5719
  fi
5720
done
5721
5722
fi
5723
5724
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5725
  lt_cv_sys_global_symbol_to_cdecl=
5726
fi
5727
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5728
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5729
$as_echo "failed" >&6; }
5730
else
5731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5732
$as_echo "ok" >&6; }
5733
fi
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
# Check whether --enable-libtool-lock was given.
5758
if test "${enable_libtool_lock+set}" = set; then :
5759
  enableval=$enable_libtool_lock;
5760
fi
5761
5762
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5763
5764
# Some flags need to be propagated to the compiler or linker for good
5765
# libtool support.
5766
case $host in
5767
ia64-*-hpux*)
5768
  # Find out which ABI we are using.
5769
  echo 'int i;' > conftest.$ac_ext
5770
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5771
  (eval $ac_compile) 2>&5
5772
  ac_status=$?
5773
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774
  test $ac_status = 0; }; then
5775
    case `/usr/bin/file conftest.$ac_objext` in
5776
      *ELF-32*)
5777
	HPUX_IA64_MODE="32"
5778
	;;
5779
      *ELF-64*)
5780
	HPUX_IA64_MODE="64"
5781
	;;
5782
    esac
5783
  fi
5784
  rm -rf conftest*
5785
  ;;
5786
*-*-irix6*)
5787
  # Find out which ABI we are using.
6 by edam
- fixed .am files so the library gets built!
5788
  echo '#line 5788 "configure"' > conftest.$ac_ext
5 by edam
- updated README
5789
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5790
  (eval $ac_compile) 2>&5
5791
  ac_status=$?
5792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793
  test $ac_status = 0; }; then
5794
    if test "$lt_cv_prog_gnu_ld" = yes; then
5795
      case `/usr/bin/file conftest.$ac_objext` in
5796
	*32-bit*)
5797
	  LD="${LD-ld} -melf32bsmip"
5798
	  ;;
5799
	*N32*)
5800
	  LD="${LD-ld} -melf32bmipn32"
5801
	  ;;
5802
	*64-bit*)
5803
	  LD="${LD-ld} -melf64bmip"
5804
	;;
5805
      esac
5806
    else
5807
      case `/usr/bin/file conftest.$ac_objext` in
5808
	*32-bit*)
5809
	  LD="${LD-ld} -32"
5810
	  ;;
5811
	*N32*)
5812
	  LD="${LD-ld} -n32"
5813
	  ;;
5814
	*64-bit*)
5815
	  LD="${LD-ld} -64"
5816
	  ;;
5817
      esac
5818
    fi
5819
  fi
5820
  rm -rf conftest*
5821
  ;;
5822
5823
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5824
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5825
  # Find out which ABI we are using.
5826
  echo 'int i;' > conftest.$ac_ext
5827
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5828
  (eval $ac_compile) 2>&5
5829
  ac_status=$?
5830
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5831
  test $ac_status = 0; }; then
5832
    case `/usr/bin/file conftest.o` in
5833
      *32-bit*)
5834
	case $host in
5835
	  x86_64-*kfreebsd*-gnu)
5836
	    LD="${LD-ld} -m elf_i386_fbsd"
5837
	    ;;
5838
	  x86_64-*linux*)
5839
	    LD="${LD-ld} -m elf_i386"
5840
	    ;;
5841
	  ppc64-*linux*|powerpc64-*linux*)
5842
	    LD="${LD-ld} -m elf32ppclinux"
5843
	    ;;
5844
	  s390x-*linux*)
5845
	    LD="${LD-ld} -m elf_s390"
5846
	    ;;
5847
	  sparc64-*linux*)
5848
	    LD="${LD-ld} -m elf32_sparc"
5849
	    ;;
5850
	esac
5851
	;;
5852
      *64-bit*)
5853
	case $host in
5854
	  x86_64-*kfreebsd*-gnu)
5855
	    LD="${LD-ld} -m elf_x86_64_fbsd"
5856
	    ;;
5857
	  x86_64-*linux*)
5858
	    LD="${LD-ld} -m elf_x86_64"
5859
	    ;;
5860
	  ppc*-*linux*|powerpc*-*linux*)
5861
	    LD="${LD-ld} -m elf64ppc"
5862
	    ;;
5863
	  s390*-*linux*|s390*-*tpf*)
5864
	    LD="${LD-ld} -m elf64_s390"
5865
	    ;;
5866
	  sparc*-*linux*)
5867
	    LD="${LD-ld} -m elf64_sparc"
5868
	    ;;
5869
	esac
5870
	;;
5871
    esac
5872
  fi
5873
  rm -rf conftest*
5874
  ;;
5875
5876
*-*-sco3.2v5*)
5877
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5878
  SAVE_CFLAGS="$CFLAGS"
5879
  CFLAGS="$CFLAGS -belf"
5880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5881
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5882
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5883
  $as_echo_n "(cached) " >&6
5884
else
5885
  ac_ext=c
5886
ac_cpp='$CPP $CPPFLAGS'
5887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890
5891
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892
/* end confdefs.h.  */
5893
5894
int
5895
main ()
5896
{
5897
5898
  ;
5899
  return 0;
5900
}
5901
_ACEOF
5902
if ac_fn_c_try_link "$LINENO"; then :
5903
  lt_cv_cc_needs_belf=yes
5904
else
5905
  lt_cv_cc_needs_belf=no
5906
fi
5907
rm -f core conftest.err conftest.$ac_objext \
5908
    conftest$ac_exeext conftest.$ac_ext
5909
     ac_ext=c
5910
ac_cpp='$CPP $CPPFLAGS'
5911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5914
5915
fi
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5917
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5918
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5919
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5920
    CFLAGS="$SAVE_CFLAGS"
5921
  fi
5922
  ;;
5923
sparc*-*solaris*)
5924
  # Find out which ABI we are using.
5925
  echo 'int i;' > conftest.$ac_ext
5926
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5927
  (eval $ac_compile) 2>&5
5928
  ac_status=$?
5929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5930
  test $ac_status = 0; }; then
5931
    case `/usr/bin/file conftest.o` in
5932
    *64-bit*)
5933
      case $lt_cv_prog_gnu_ld in
5934
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5935
      *)
5936
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5937
	  LD="${LD-ld} -64"
5938
	fi
5939
	;;
5940
      esac
5941
      ;;
5942
    esac
5943
  fi
5944
  rm -rf conftest*
5945
  ;;
5946
esac
5947
5948
need_locks="$enable_libtool_lock"
5949
5950
5951
  case $host_os in
5952
    rhapsody* | darwin*)
5953
    if test -n "$ac_tool_prefix"; then
5954
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5955
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957
$as_echo_n "checking for $ac_word... " >&6; }
5958
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5959
  $as_echo_n "(cached) " >&6
5960
else
5961
  if test -n "$DSYMUTIL"; then
5962
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5963
else
5964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965
for as_dir in $PATH
5966
do
5967
  IFS=$as_save_IFS
5968
  test -z "$as_dir" && as_dir=.
5969
    for ac_exec_ext in '' $ac_executable_extensions; do
5970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973
    break 2
5974
  fi
5975
done
5976
  done
5977
IFS=$as_save_IFS
5978
5979
fi
5980
fi
5981
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5982
if test -n "$DSYMUTIL"; then
5983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5984
$as_echo "$DSYMUTIL" >&6; }
5985
else
5986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987
$as_echo "no" >&6; }
5988
fi
5989
5990
5991
fi
5992
if test -z "$ac_cv_prog_DSYMUTIL"; then
5993
  ac_ct_DSYMUTIL=$DSYMUTIL
5994
  # Extract the first word of "dsymutil", so it can be a program name with args.
5995
set dummy dsymutil; ac_word=$2
5996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997
$as_echo_n "checking for $ac_word... " >&6; }
5998
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5999
  $as_echo_n "(cached) " >&6
6000
else
6001
  if test -n "$ac_ct_DSYMUTIL"; then
6002
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6003
else
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005
for as_dir in $PATH
6006
do
6007
  IFS=$as_save_IFS
6008
  test -z "$as_dir" && as_dir=.
6009
    for ac_exec_ext in '' $ac_executable_extensions; do
6010
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6012
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013
    break 2
6014
  fi
6015
done
6016
  done
6017
IFS=$as_save_IFS
6018
6019
fi
6020
fi
6021
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6022
if test -n "$ac_ct_DSYMUTIL"; then
6023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6024
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6025
else
6026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027
$as_echo "no" >&6; }
6028
fi
6029
6030
  if test "x$ac_ct_DSYMUTIL" = x; then
6031
    DSYMUTIL=":"
6032
  else
6033
    case $cross_compiling:$ac_tool_warned in
6034
yes:)
6035
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037
ac_tool_warned=yes ;;
6038
esac
6039
    DSYMUTIL=$ac_ct_DSYMUTIL
6040
  fi
6041
else
6042
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6043
fi
6044
6045
    if test -n "$ac_tool_prefix"; then
6046
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6047
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049
$as_echo_n "checking for $ac_word... " >&6; }
6050
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6051
  $as_echo_n "(cached) " >&6
6052
else
6053
  if test -n "$NMEDIT"; then
6054
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6055
else
6056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057
for as_dir in $PATH
6058
do
6059
  IFS=$as_save_IFS
6060
  test -z "$as_dir" && as_dir=.
6061
    for ac_exec_ext in '' $ac_executable_extensions; do
6062
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6064
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065
    break 2
6066
  fi
6067
done
6068
  done
6069
IFS=$as_save_IFS
6070
6071
fi
6072
fi
6073
NMEDIT=$ac_cv_prog_NMEDIT
6074
if test -n "$NMEDIT"; then
6075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6076
$as_echo "$NMEDIT" >&6; }
6077
else
6078
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079
$as_echo "no" >&6; }
6080
fi
6081
6082
6083
fi
6084
if test -z "$ac_cv_prog_NMEDIT"; then
6085
  ac_ct_NMEDIT=$NMEDIT
6086
  # Extract the first word of "nmedit", so it can be a program name with args.
6087
set dummy nmedit; ac_word=$2
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089
$as_echo_n "checking for $ac_word... " >&6; }
6090
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6091
  $as_echo_n "(cached) " >&6
6092
else
6093
  if test -n "$ac_ct_NMEDIT"; then
6094
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6095
else
6096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097
for as_dir in $PATH
6098
do
6099
  IFS=$as_save_IFS
6100
  test -z "$as_dir" && as_dir=.
6101
    for ac_exec_ext in '' $ac_executable_extensions; do
6102
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6104
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105
    break 2
6106
  fi
6107
done
6108
  done
6109
IFS=$as_save_IFS
6110
6111
fi
6112
fi
6113
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6114
if test -n "$ac_ct_NMEDIT"; then
6115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6116
$as_echo "$ac_ct_NMEDIT" >&6; }
6117
else
6118
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119
$as_echo "no" >&6; }
6120
fi
6121
6122
  if test "x$ac_ct_NMEDIT" = x; then
6123
    NMEDIT=":"
6124
  else
6125
    case $cross_compiling:$ac_tool_warned in
6126
yes:)
6127
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129
ac_tool_warned=yes ;;
6130
esac
6131
    NMEDIT=$ac_ct_NMEDIT
6132
  fi
6133
else
6134
  NMEDIT="$ac_cv_prog_NMEDIT"
6135
fi
6136
6137
    if test -n "$ac_tool_prefix"; then
6138
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6139
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141
$as_echo_n "checking for $ac_word... " >&6; }
6142
if test "${ac_cv_prog_LIPO+set}" = set; then :
6143
  $as_echo_n "(cached) " >&6
6144
else
6145
  if test -n "$LIPO"; then
6146
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6147
else
6148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149
for as_dir in $PATH
6150
do
6151
  IFS=$as_save_IFS
6152
  test -z "$as_dir" && as_dir=.
6153
    for ac_exec_ext in '' $ac_executable_extensions; do
6154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6156
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157
    break 2
6158
  fi
6159
done
6160
  done
6161
IFS=$as_save_IFS
6162
6163
fi
6164
fi
6165
LIPO=$ac_cv_prog_LIPO
6166
if test -n "$LIPO"; then
6167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6168
$as_echo "$LIPO" >&6; }
6169
else
6170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171
$as_echo "no" >&6; }
6172
fi
6173
6174
6175
fi
6176
if test -z "$ac_cv_prog_LIPO"; then
6177
  ac_ct_LIPO=$LIPO
6178
  # Extract the first word of "lipo", so it can be a program name with args.
6179
set dummy lipo; ac_word=$2
6180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181
$as_echo_n "checking for $ac_word... " >&6; }
6182
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6183
  $as_echo_n "(cached) " >&6
6184
else
6185
  if test -n "$ac_ct_LIPO"; then
6186
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6187
else
6188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189
for as_dir in $PATH
6190
do
6191
  IFS=$as_save_IFS
6192
  test -z "$as_dir" && as_dir=.
6193
    for ac_exec_ext in '' $ac_executable_extensions; do
6194
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195
    ac_cv_prog_ac_ct_LIPO="lipo"
6196
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197
    break 2
6198
  fi
6199
done
6200
  done
6201
IFS=$as_save_IFS
6202
6203
fi
6204
fi
6205
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6206
if test -n "$ac_ct_LIPO"; then
6207
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6208
$as_echo "$ac_ct_LIPO" >&6; }
6209
else
6210
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211
$as_echo "no" >&6; }
6212
fi
6213
6214
  if test "x$ac_ct_LIPO" = x; then
6215
    LIPO=":"
6216
  else
6217
    case $cross_compiling:$ac_tool_warned in
6218
yes:)
6219
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221
ac_tool_warned=yes ;;
6222
esac
6223
    LIPO=$ac_ct_LIPO
6224
  fi
6225
else
6226
  LIPO="$ac_cv_prog_LIPO"
6227
fi
6228
6229
    if test -n "$ac_tool_prefix"; then
6230
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6231
set dummy ${ac_tool_prefix}otool; ac_word=$2
6232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233
$as_echo_n "checking for $ac_word... " >&6; }
6234
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6235
  $as_echo_n "(cached) " >&6
6236
else
6237
  if test -n "$OTOOL"; then
6238
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6239
else
6240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241
for as_dir in $PATH
6242
do
6243
  IFS=$as_save_IFS
6244
  test -z "$as_dir" && as_dir=.
6245
    for ac_exec_ext in '' $ac_executable_extensions; do
6246
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249
    break 2
6250
  fi
6251
done
6252
  done
6253
IFS=$as_save_IFS
6254
6255
fi
6256
fi
6257
OTOOL=$ac_cv_prog_OTOOL
6258
if test -n "$OTOOL"; then
6259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6260
$as_echo "$OTOOL" >&6; }
6261
else
6262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263
$as_echo "no" >&6; }
6264
fi
6265
6266
6267
fi
6268
if test -z "$ac_cv_prog_OTOOL"; then
6269
  ac_ct_OTOOL=$OTOOL
6270
  # Extract the first word of "otool", so it can be a program name with args.
6271
set dummy otool; ac_word=$2
6272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273
$as_echo_n "checking for $ac_word... " >&6; }
6274
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6275
  $as_echo_n "(cached) " >&6
6276
else
6277
  if test -n "$ac_ct_OTOOL"; then
6278
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6279
else
6280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281
for as_dir in $PATH
6282
do
6283
  IFS=$as_save_IFS
6284
  test -z "$as_dir" && as_dir=.
6285
    for ac_exec_ext in '' $ac_executable_extensions; do
6286
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287
    ac_cv_prog_ac_ct_OTOOL="otool"
6288
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289
    break 2
6290
  fi
6291
done
6292
  done
6293
IFS=$as_save_IFS
6294
6295
fi
6296
fi
6297
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6298
if test -n "$ac_ct_OTOOL"; then
6299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6300
$as_echo "$ac_ct_OTOOL" >&6; }
6301
else
6302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303
$as_echo "no" >&6; }
6304
fi
6305
6306
  if test "x$ac_ct_OTOOL" = x; then
6307
    OTOOL=":"
6308
  else
6309
    case $cross_compiling:$ac_tool_warned in
6310
yes:)
6311
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313
ac_tool_warned=yes ;;
6314
esac
6315
    OTOOL=$ac_ct_OTOOL
6316
  fi
6317
else
6318
  OTOOL="$ac_cv_prog_OTOOL"
6319
fi
6320
6321
    if test -n "$ac_tool_prefix"; then
6322
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6323
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325
$as_echo_n "checking for $ac_word... " >&6; }
6326
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6327
  $as_echo_n "(cached) " >&6
6328
else
6329
  if test -n "$OTOOL64"; then
6330
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6331
else
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333
for as_dir in $PATH
6334
do
6335
  IFS=$as_save_IFS
6336
  test -z "$as_dir" && as_dir=.
6337
    for ac_exec_ext in '' $ac_executable_extensions; do
6338
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6340
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341
    break 2
6342
  fi
6343
done
6344
  done
6345
IFS=$as_save_IFS
6346
6347
fi
6348
fi
6349
OTOOL64=$ac_cv_prog_OTOOL64
6350
if test -n "$OTOOL64"; then
6351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6352
$as_echo "$OTOOL64" >&6; }
6353
else
6354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355
$as_echo "no" >&6; }
6356
fi
6357
6358
6359
fi
6360
if test -z "$ac_cv_prog_OTOOL64"; then
6361
  ac_ct_OTOOL64=$OTOOL64
6362
  # Extract the first word of "otool64", so it can be a program name with args.
6363
set dummy otool64; ac_word=$2
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365
$as_echo_n "checking for $ac_word... " >&6; }
6366
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6367
  $as_echo_n "(cached) " >&6
6368
else
6369
  if test -n "$ac_ct_OTOOL64"; then
6370
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6371
else
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373
for as_dir in $PATH
6374
do
6375
  IFS=$as_save_IFS
6376
  test -z "$as_dir" && as_dir=.
6377
    for ac_exec_ext in '' $ac_executable_extensions; do
6378
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381
    break 2
6382
  fi
6383
done
6384
  done
6385
IFS=$as_save_IFS
6386
6387
fi
6388
fi
6389
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6390
if test -n "$ac_ct_OTOOL64"; then
6391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6392
$as_echo "$ac_ct_OTOOL64" >&6; }
6393
else
6394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395
$as_echo "no" >&6; }
6396
fi
6397
6398
  if test "x$ac_ct_OTOOL64" = x; then
6399
    OTOOL64=":"
6400
  else
6401
    case $cross_compiling:$ac_tool_warned in
6402
yes:)
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405
ac_tool_warned=yes ;;
6406
esac
6407
    OTOOL64=$ac_ct_OTOOL64
6408
  fi
6409
else
6410
  OTOOL64="$ac_cv_prog_OTOOL64"
6411
fi
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6440
$as_echo_n "checking for -single_module linker flag... " >&6; }
6441
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6442
  $as_echo_n "(cached) " >&6
6443
else
6444
  lt_cv_apple_cc_single_mod=no
6445
      if test -z "${LT_MULTI_MODULE}"; then
6446
	# By default we will add the -single_module flag. You can override
6447
	# by either setting the environment variable LT_MULTI_MODULE
6448
	# non-empty at configure time, or by adding -multi_module to the
6449
	# link flags.
6450
	rm -rf libconftest.dylib*
6451
	echo "int foo(void){return 1;}" > conftest.c
6452
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6453
-dynamiclib -Wl,-single_module conftest.c" >&5
6454
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6455
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6456
        _lt_result=$?
6457
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6458
	  lt_cv_apple_cc_single_mod=yes
6459
	else
6460
	  cat conftest.err >&5
6461
	fi
6462
	rm -rf libconftest.dylib*
6463
	rm -f conftest.*
6464
      fi
6465
fi
6466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6467
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6468
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6469
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6470
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6471
  $as_echo_n "(cached) " >&6
6472
else
6473
  lt_cv_ld_exported_symbols_list=no
6474
      save_LDFLAGS=$LDFLAGS
6475
      echo "_main" > conftest.sym
6476
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6477
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478
/* end confdefs.h.  */
6479
6480
int
6481
main ()
6482
{
6483
6484
  ;
6485
  return 0;
6486
}
6487
_ACEOF
6488
if ac_fn_c_try_link "$LINENO"; then :
6489
  lt_cv_ld_exported_symbols_list=yes
6490
else
6491
  lt_cv_ld_exported_symbols_list=no
6492
fi
6493
rm -f core conftest.err conftest.$ac_objext \
6494
    conftest$ac_exeext conftest.$ac_ext
6495
	LDFLAGS="$save_LDFLAGS"
6496
6497
fi
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6499
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6500
    case $host_os in
6501
    rhapsody* | darwin1.[012])
6502
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6503
    darwin1.*)
6504
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505
    darwin*) # darwin 5.x on
6506
      # if running on 10.5 or later, the deployment target defaults
6507
      # to the OS version, if on x86, and 10.4, the deployment
6508
      # target defaults to 10.4. Don't you love it?
6509
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6512
	10.[012]*)
6513
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6514
	10.*)
6515
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516
      esac
6517
    ;;
6518
  esac
6519
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520
      _lt_dar_single_mod='$single_module'
6521
    fi
6522
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6524
    else
6525
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6526
    fi
6527
    if test "$DSYMUTIL" != ":"; then
6528
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6529
    else
6530
      _lt_dsymutil=
6531
    fi
6532
    ;;
6533
  esac
6534
6535
ac_ext=c
6536
ac_cpp='$CPP $CPPFLAGS'
6537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6541
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6542
# On Suns, sometimes $CPP names a directory.
6543
if test -n "$CPP" && test -d "$CPP"; then
6544
  CPP=
6545
fi
6546
if test -z "$CPP"; then
6547
  if test "${ac_cv_prog_CPP+set}" = set; then :
6548
  $as_echo_n "(cached) " >&6
6549
else
6550
      # Double quotes because CPP needs to be expanded
6551
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6552
    do
6553
      ac_preproc_ok=false
6554
for ac_c_preproc_warn_flag in '' yes
6555
do
6556
  # Use a header file that comes with gcc, so configuring glibc
6557
  # with a fresh cross-compiler works.
6558
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559
  # <limits.h> exists even on freestanding compilers.
6560
  # On the NeXT, cc -E runs the code through the compiler's parser,
6561
  # not just through cpp. "Syntax error" is here to catch this case.
6562
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563
/* end confdefs.h.  */
6564
#ifdef __STDC__
6565
# include <limits.h>
6566
#else
6567
# include <assert.h>
6568
#endif
6569
		     Syntax error
6570
_ACEOF
6571
if ac_fn_c_try_cpp "$LINENO"; then :
6572
6573
else
6574
  # Broken: fails on valid input.
6575
continue
6576
fi
6577
rm -f conftest.err conftest.$ac_ext
6578
6579
  # OK, works on sane cases.  Now check whether nonexistent headers
6580
  # can be detected and how.
6581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582
/* end confdefs.h.  */
6583
#include <ac_nonexistent.h>
6584
_ACEOF
6585
if ac_fn_c_try_cpp "$LINENO"; then :
6586
  # Broken: success on invalid input.
6587
continue
6588
else
6589
  # Passes both tests.
6590
ac_preproc_ok=:
6591
break
6592
fi
6593
rm -f conftest.err conftest.$ac_ext
6594
6595
done
6596
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6597
rm -f conftest.err conftest.$ac_ext
6598
if $ac_preproc_ok; then :
6599
  break
6600
fi
6601
6602
    done
6603
    ac_cv_prog_CPP=$CPP
6604
6605
fi
6606
  CPP=$ac_cv_prog_CPP
6607
else
6608
  ac_cv_prog_CPP=$CPP
6609
fi
6610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6611
$as_echo "$CPP" >&6; }
6612
ac_preproc_ok=false
6613
for ac_c_preproc_warn_flag in '' yes
6614
do
6615
  # Use a header file that comes with gcc, so configuring glibc
6616
  # with a fresh cross-compiler works.
6617
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6618
  # <limits.h> exists even on freestanding compilers.
6619
  # On the NeXT, cc -E runs the code through the compiler's parser,
6620
  # not just through cpp. "Syntax error" is here to catch this case.
6621
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622
/* end confdefs.h.  */
6623
#ifdef __STDC__
6624
# include <limits.h>
6625
#else
6626
# include <assert.h>
6627
#endif
6628
		     Syntax error
6629
_ACEOF
6630
if ac_fn_c_try_cpp "$LINENO"; then :
6631
6632
else
6633
  # Broken: fails on valid input.
6634
continue
6635
fi
6636
rm -f conftest.err conftest.$ac_ext
6637
6638
  # OK, works on sane cases.  Now check whether nonexistent headers
6639
  # can be detected and how.
6640
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641
/* end confdefs.h.  */
6642
#include <ac_nonexistent.h>
6643
_ACEOF
6644
if ac_fn_c_try_cpp "$LINENO"; then :
6645
  # Broken: success on invalid input.
6646
continue
6647
else
6648
  # Passes both tests.
6649
ac_preproc_ok=:
6650
break
6651
fi
6652
rm -f conftest.err conftest.$ac_ext
6653
6654
done
6655
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6656
rm -f conftest.err conftest.$ac_ext
6657
if $ac_preproc_ok; then :
6658
6659
else
6660
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6661
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6662
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6663
See \`config.log' for more details." "$LINENO" 5; }
6664
fi
6665
6666
ac_ext=c
6667
ac_cpp='$CPP $CPPFLAGS'
6668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
6672
6673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6674
$as_echo_n "checking for ANSI C header files... " >&6; }
6675
if test "${ac_cv_header_stdc+set}" = set; then :
6676
  $as_echo_n "(cached) " >&6
6677
else
6678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679
/* end confdefs.h.  */
6680
#include <stdlib.h>
6681
#include <stdarg.h>
6682
#include <string.h>
6683
#include <float.h>
6684
6685
int
6686
main ()
6687
{
6688
6689
  ;
6690
  return 0;
6691
}
6692
_ACEOF
6693
if ac_fn_c_try_compile "$LINENO"; then :
6694
  ac_cv_header_stdc=yes
6695
else
6696
  ac_cv_header_stdc=no
6697
fi
6698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699
6700
if test $ac_cv_header_stdc = yes; then
6701
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6702
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703
/* end confdefs.h.  */
6704
#include <string.h>
6705
6706
_ACEOF
6707
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6708
  $EGREP "memchr" >/dev/null 2>&1; then :
6709
6710
else
6711
  ac_cv_header_stdc=no
6712
fi
6713
rm -f conftest*
6714
6715
fi
6716
6717
if test $ac_cv_header_stdc = yes; then
6718
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6719
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720
/* end confdefs.h.  */
6721
#include <stdlib.h>
6722
6723
_ACEOF
6724
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725
  $EGREP "free" >/dev/null 2>&1; then :
6726
6727
else
6728
  ac_cv_header_stdc=no
6729
fi
6730
rm -f conftest*
6731
6732
fi
6733
6734
if test $ac_cv_header_stdc = yes; then
6735
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6736
  if test "$cross_compiling" = yes; then :
6737
  :
6738
else
6739
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740
/* end confdefs.h.  */
6741
#include <ctype.h>
6742
#include <stdlib.h>
6743
#if ((' ' & 0x0FF) == 0x020)
6744
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6745
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6746
#else
6747
# define ISLOWER(c) \
6748
		   (('a' <= (c) && (c) <= 'i') \
6749
		     || ('j' <= (c) && (c) <= 'r') \
6750
		     || ('s' <= (c) && (c) <= 'z'))
6751
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6752
#endif
6753
6754
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6755
int
6756
main ()
6757
{
6758
  int i;
6759
  for (i = 0; i < 256; i++)
6760
    if (XOR (islower (i), ISLOWER (i))
6761
	|| toupper (i) != TOUPPER (i))
6762
      return 2;
6763
  return 0;
6764
}
6765
_ACEOF
6766
if ac_fn_c_try_run "$LINENO"; then :
6767
6768
else
6769
  ac_cv_header_stdc=no
6770
fi
6771
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6772
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6773
fi
6774
6775
fi
6776
fi
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6778
$as_echo "$ac_cv_header_stdc" >&6; }
6779
if test $ac_cv_header_stdc = yes; then
6780
6781
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6782
6783
fi
6784
6785
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6786
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6787
		  inttypes.h stdint.h unistd.h
6788
do :
6789
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6790
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6791
"
6792
eval as_val=\$$as_ac_Header
6793
   if test "x$as_val" = x""yes; then :
6794
  cat >>confdefs.h <<_ACEOF
6795
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6796
_ACEOF
6797
6798
fi
6799
6800
done
6801
6802
6803
for ac_header in dlfcn.h
6804
do :
6805
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6806
"
6807
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6808
  cat >>confdefs.h <<_ACEOF
6809
#define HAVE_DLFCN_H 1
6810
_ACEOF
6811
6812
fi
6813
6814
done
6815
6816
6817
6818
# Set options
6819
6820
6821
6822
        enable_dlopen=no
6823
6824
6825
  enable_win32_dll=no
6826
6827
6828
            # Check whether --enable-shared was given.
6829
if test "${enable_shared+set}" = set; then :
6830
  enableval=$enable_shared; p=${PACKAGE-default}
6831
    case $enableval in
6832
    yes) enable_shared=yes ;;
6833
    no) enable_shared=no ;;
6834
    *)
6835
      enable_shared=no
6836
      # Look at the argument we got.  We use all the common list separators.
6837
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6838
      for pkg in $enableval; do
6839
	IFS="$lt_save_ifs"
6840
	if test "X$pkg" = "X$p"; then
6841
	  enable_shared=yes
6842
	fi
6843
      done
6844
      IFS="$lt_save_ifs"
6845
      ;;
6846
    esac
6847
else
6848
  enable_shared=yes
6849
fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
  # Check whether --enable-static was given.
6860
if test "${enable_static+set}" = set; then :
6861
  enableval=$enable_static; p=${PACKAGE-default}
6862
    case $enableval in
6863
    yes) enable_static=yes ;;
6864
    no) enable_static=no ;;
6865
    *)
6866
     enable_static=no
6867
      # Look at the argument we got.  We use all the common list separators.
6868
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6869
      for pkg in $enableval; do
6870
	IFS="$lt_save_ifs"
6871
	if test "X$pkg" = "X$p"; then
6872
	  enable_static=yes
6873
	fi
6874
      done
6875
      IFS="$lt_save_ifs"
6876
      ;;
6877
    esac
6878
else
6879
  enable_static=yes
6880
fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
# Check whether --with-pic was given.
6892
if test "${with_pic+set}" = set; then :
6893
  withval=$with_pic; pic_mode="$withval"
6894
else
6895
  pic_mode=default
6896
fi
6897
6898
6899
test -z "$pic_mode" && pic_mode=default
6900
6901
6902
6903
6904
6905
6906
6907
  # Check whether --enable-fast-install was given.
6908
if test "${enable_fast_install+set}" = set; then :
6909
  enableval=$enable_fast_install; p=${PACKAGE-default}
6910
    case $enableval in
6911
    yes) enable_fast_install=yes ;;
6912
    no) enable_fast_install=no ;;
6913
    *)
6914
      enable_fast_install=no
6915
      # Look at the argument we got.  We use all the common list separators.
6916
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6917
      for pkg in $enableval; do
6918
	IFS="$lt_save_ifs"
6919
	if test "X$pkg" = "X$p"; then
6920
	  enable_fast_install=yes
6921
	fi
6922
      done
6923
      IFS="$lt_save_ifs"
6924
      ;;
6925
    esac
6926
else
6927
  enable_fast_install=yes
6928
fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
# This can be used to rebuild libtool when needed
6941
LIBTOOL_DEPS="$ltmain"
6942
6943
# Always use our own libtool.
6944
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
test -z "$LN_S" && LN_S="ln -s"
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
if test -n "${ZSH_VERSION+set}" ; then
6986
   setopt NO_GLOB_SUBST
6987
fi
6988
6989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6990
$as_echo_n "checking for objdir... " >&6; }
6991
if test "${lt_cv_objdir+set}" = set; then :
6992
  $as_echo_n "(cached) " >&6
6993
else
6994
  rm -f .libs 2>/dev/null
6995
mkdir .libs 2>/dev/null
6996
if test -d .libs; then
6997
  lt_cv_objdir=.libs
6998
else
6999
  # MS-DOS does not allow filenames that begin with a dot.
7000
  lt_cv_objdir=_libs
7001
fi
7002
rmdir .libs 2>/dev/null
7003
fi
7004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7005
$as_echo "$lt_cv_objdir" >&6; }
7006
objdir=$lt_cv_objdir
7007
7008
7009
7010
7011
7012
cat >>confdefs.h <<_ACEOF
7013
#define LT_OBJDIR "$lt_cv_objdir/"
7014
_ACEOF
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
case $host_os in
7033
aix3*)
7034
  # AIX sometimes has problems with the GCC collect2 program.  For some
7035
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7036
  # vanish in a puff of smoke.
7037
  if test "X${COLLECT_NAMES+set}" != Xset; then
7038
    COLLECT_NAMES=
7039
    export COLLECT_NAMES
7040
  fi
7041
  ;;
7042
esac
7043
7044
# Sed substitution that helps us do robust quoting.  It backslashifies
7045
# metacharacters that are still active within double-quoted strings.
7046
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7047
7048
# Same as above, but do not quote variable references.
7049
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7050
7051
# Sed substitution to delay expansion of an escaped shell variable in a
7052
# double_quote_subst'ed string.
7053
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7054
7055
# Sed substitution to delay expansion of an escaped single quote.
7056
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7057
7058
# Sed substitution to avoid accidental globbing in evaled expressions
7059
no_glob_subst='s/\*/\\\*/g'
7060
7061
# Global variables:
7062
ofile=libtool
7063
can_build_shared=yes
7064
7065
# All known linkers require a `.a' archive for static linking (except MSVC,
7066
# which needs '.lib').
7067
libext=a
7068
7069
with_gnu_ld="$lt_cv_prog_gnu_ld"
7070
7071
old_CC="$CC"
7072
old_CFLAGS="$CFLAGS"
7073
7074
# Set sane defaults for various variables
7075
test -z "$CC" && CC=cc
7076
test -z "$LTCC" && LTCC=$CC
7077
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7078
test -z "$LD" && LD=ld
7079
test -z "$ac_objext" && ac_objext=o
7080
7081
for cc_temp in $compiler""; do
7082
  case $cc_temp in
7083
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7084
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7085
    \-*) ;;
7086
    *) break;;
7087
  esac
7088
done
7089
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7090
7091
7092
# Only perform the check for file, if the check method requires it
7093
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7094
case $deplibs_check_method in
7095
file_magic*)
7096
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7097
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7098
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7099
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7100
  $as_echo_n "(cached) " >&6
7101
else
7102
  case $MAGIC_CMD in
7103
[\\/*] |  ?:[\\/]*)
7104
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7105
  ;;
7106
*)
7107
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7108
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110
  for ac_dir in $ac_dummy; do
7111
    IFS="$lt_save_ifs"
7112
    test -z "$ac_dir" && ac_dir=.
7113
    if test -f $ac_dir/${ac_tool_prefix}file; then
7114
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7115
      if test -n "$file_magic_test_file"; then
7116
	case $deplibs_check_method in
7117
	"file_magic "*)
7118
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7119
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121
	    $EGREP "$file_magic_regex" > /dev/null; then
7122
	    :
7123
	  else
7124
	    cat <<_LT_EOF 1>&2
7125
7126
*** Warning: the command libtool uses to detect shared libraries,
7127
*** $file_magic_cmd, produces output that libtool cannot recognize.
7128
*** The result is that libtool may fail to recognize shared libraries
7129
*** as such.  This will affect the creation of libtool libraries that
7130
*** depend on shared libraries, but programs linked with such libtool
7131
*** libraries will work regardless of this problem.  Nevertheless, you
7132
*** may want to report the problem to your system manager and/or to
7133
*** bug-libtool@gnu.org
7134
7135
_LT_EOF
7136
	  fi ;;
7137
	esac
7138
      fi
7139
      break
7140
    fi
7141
  done
7142
  IFS="$lt_save_ifs"
7143
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7144
  ;;
7145
esac
7146
fi
7147
7148
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149
if test -n "$MAGIC_CMD"; then
7150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7151
$as_echo "$MAGIC_CMD" >&6; }
7152
else
7153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154
$as_echo "no" >&6; }
7155
fi
7156
7157
7158
7159
7160
7161
if test -z "$lt_cv_path_MAGIC_CMD"; then
7162
  if test -n "$ac_tool_prefix"; then
7163
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7164
$as_echo_n "checking for file... " >&6; }
7165
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7166
  $as_echo_n "(cached) " >&6
7167
else
7168
  case $MAGIC_CMD in
7169
[\\/*] |  ?:[\\/]*)
7170
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7171
  ;;
7172
*)
7173
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7174
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7175
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7176
  for ac_dir in $ac_dummy; do
7177
    IFS="$lt_save_ifs"
7178
    test -z "$ac_dir" && ac_dir=.
7179
    if test -f $ac_dir/file; then
7180
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7181
      if test -n "$file_magic_test_file"; then
7182
	case $deplibs_check_method in
7183
	"file_magic "*)
7184
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7185
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7186
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7187
	    $EGREP "$file_magic_regex" > /dev/null; then
7188
	    :
7189
	  else
7190
	    cat <<_LT_EOF 1>&2
7191
7192
*** Warning: the command libtool uses to detect shared libraries,
7193
*** $file_magic_cmd, produces output that libtool cannot recognize.
7194
*** The result is that libtool may fail to recognize shared libraries
7195
*** as such.  This will affect the creation of libtool libraries that
7196
*** depend on shared libraries, but programs linked with such libtool
7197
*** libraries will work regardless of this problem.  Nevertheless, you
7198
*** may want to report the problem to your system manager and/or to
7199
*** bug-libtool@gnu.org
7200
7201
_LT_EOF
7202
	  fi ;;
7203
	esac
7204
      fi
7205
      break
7206
    fi
7207
  done
7208
  IFS="$lt_save_ifs"
7209
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7210
  ;;
7211
esac
7212
fi
7213
7214
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7215
if test -n "$MAGIC_CMD"; then
7216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7217
$as_echo "$MAGIC_CMD" >&6; }
7218
else
7219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220
$as_echo "no" >&6; }
7221
fi
7222
7223
7224
  else
7225
    MAGIC_CMD=:
7226
  fi
7227
fi
7228
7229
  fi
7230
  ;;
7231
esac
7232
7233
# Use C for the default configuration in the libtool script
7234
7235
lt_save_CC="$CC"
7236
ac_ext=c
7237
ac_cpp='$CPP $CPPFLAGS'
7238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7241
7242
7243
# Source file extension for C test sources.
7244
ac_ext=c
7245
7246
# Object file extension for compiled C test sources.
7247
objext=o
7248
objext=$objext
7249
7250
# Code to be used in simple compile tests
7251
lt_simple_compile_test_code="int some_variable = 0;"
7252
7253
# Code to be used in simple link tests
7254
lt_simple_link_test_code='int main(){return(0);}'
7255
7256
7257
7258
7259
7260
7261
7262
# If no C compiler was specified, use CC.
7263
LTCC=${LTCC-"$CC"}
7264
7265
# If no C compiler flags were specified, use CFLAGS.
7266
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7267
7268
# Allow CC to be a program name with arguments.
7269
compiler=$CC
7270
7271
# Save the default compiler, since it gets overwritten when the other
7272
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7273
compiler_DEFAULT=$CC
7274
7275
# save warnings/boilerplate of simple test code
7276
ac_outfile=conftest.$ac_objext
7277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7279
_lt_compiler_boilerplate=`cat conftest.err`
7280
$RM conftest*
7281
7282
ac_outfile=conftest.$ac_objext
7283
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7284
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7285
_lt_linker_boilerplate=`cat conftest.err`
7286
$RM -r conftest*
7287
7288
7289
## CAVEAT EMPTOR:
7290
## There is no encapsulation within the following macros, do not change
7291
## the running order or otherwise move them around unless you know exactly
7292
## what you are doing...
7293
if test -n "$compiler"; then
7294
7295
lt_prog_compiler_no_builtin_flag=
7296
7297
if test "$GCC" = yes; then
7298
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7299
7300
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7301
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7302
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7303
  $as_echo_n "(cached) " >&6
7304
else
7305
  lt_cv_prog_compiler_rtti_exceptions=no
7306
   ac_outfile=conftest.$ac_objext
7307
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7308
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7309
   # Insert the option either (1) after the last *FLAGS variable, or
7310
   # (2) before a word containing "conftest.", or (3) at the end.
7311
   # Note that $ac_compile itself does not contain backslashes and begins
7312
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7313
   # The option is referenced via a variable to avoid confusing sed.
7314
   lt_compile=`echo "$ac_compile" | $SED \
7315
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7316
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7317
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
7318
   (eval echo "\"\$as_me:7318: $lt_compile\"" >&5)
5 by edam
- updated README
7319
   (eval "$lt_compile" 2>conftest.err)
7320
   ac_status=$?
7321
   cat conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
7322
   echo "$as_me:7322: \$? = $ac_status" >&5
5 by edam
- updated README
7323
   if (exit $ac_status) && test -s "$ac_outfile"; then
7324
     # The compiler can only warn and ignore the option if not recognized
7325
     # So say no if there are warnings other than the usual output.
7326
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7327
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7328
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7329
       lt_cv_prog_compiler_rtti_exceptions=yes
7330
     fi
7331
   fi
7332
   $RM conftest*
7333
7334
fi
7335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7336
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7337
7338
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7339
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7340
else
7341
    :
7342
fi
7343
7344
fi
7345
7346
7347
7348
7349
7350
7351
  lt_prog_compiler_wl=
7352
lt_prog_compiler_pic=
7353
lt_prog_compiler_static=
7354
7355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7356
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7357
7358
  if test "$GCC" = yes; then
7359
    lt_prog_compiler_wl='-Wl,'
7360
    lt_prog_compiler_static='-static'
7361
7362
    case $host_os in
7363
      aix*)
7364
      # All AIX code is PIC.
7365
      if test "$host_cpu" = ia64; then
7366
	# AIX 5 now supports IA64 processor
7367
	lt_prog_compiler_static='-Bstatic'
7368
      fi
7369
      ;;
7370
7371
    amigaos*)
7372
      case $host_cpu in
7373
      powerpc)
7374
            # see comment about AmigaOS4 .so support
7375
            lt_prog_compiler_pic='-fPIC'
7376
        ;;
7377
      m68k)
7378
            # FIXME: we need at least 68020 code to build shared libraries, but
7379
            # adding the `-m68020' flag to GCC prevents building anything better,
7380
            # like `-m68040'.
7381
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7382
        ;;
7383
      esac
7384
      ;;
7385
7386
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7387
      # PIC is the default for these OSes.
7388
      ;;
7389
7390
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7391
      # This hack is so that the source file can tell whether it is being
7392
      # built for inclusion in a dll (and should export symbols for example).
7393
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7394
      # (--disable-auto-import) libraries
7395
      lt_prog_compiler_pic='-DDLL_EXPORT'
7396
      ;;
7397
7398
    darwin* | rhapsody*)
7399
      # PIC is the default on this platform
7400
      # Common symbols not allowed in MH_DYLIB files
7401
      lt_prog_compiler_pic='-fno-common'
7402
      ;;
7403
7404
    hpux*)
7405
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7406
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7407
      # sets the default TLS model and affects inlining.
7408
      case $host_cpu in
7409
      hppa*64*)
7410
	# +Z the default
7411
	;;
7412
      *)
7413
	lt_prog_compiler_pic='-fPIC'
7414
	;;
7415
      esac
7416
      ;;
7417
7418
    interix[3-9]*)
7419
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7420
      # Instead, we relocate shared libraries at runtime.
7421
      ;;
7422
7423
    msdosdjgpp*)
7424
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7425
      # on systems that don't support them.
7426
      lt_prog_compiler_can_build_shared=no
7427
      enable_shared=no
7428
      ;;
7429
7430
    *nto* | *qnx*)
7431
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7432
      # it will coredump.
7433
      lt_prog_compiler_pic='-fPIC -shared'
7434
      ;;
7435
7436
    sysv4*MP*)
7437
      if test -d /usr/nec; then
7438
	lt_prog_compiler_pic=-Kconform_pic
7439
      fi
7440
      ;;
7441
7442
    *)
7443
      lt_prog_compiler_pic='-fPIC'
7444
      ;;
7445
    esac
7446
  else
7447
    # PORTME Check for flag to pass linker flags through the system compiler.
7448
    case $host_os in
7449
    aix*)
7450
      lt_prog_compiler_wl='-Wl,'
7451
      if test "$host_cpu" = ia64; then
7452
	# AIX 5 now supports IA64 processor
7453
	lt_prog_compiler_static='-Bstatic'
7454
      else
7455
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7456
      fi
7457
      ;;
7458
7459
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7460
      # This hack is so that the source file can tell whether it is being
7461
      # built for inclusion in a dll (and should export symbols for example).
7462
      lt_prog_compiler_pic='-DDLL_EXPORT'
7463
      ;;
7464
7465
    hpux9* | hpux10* | hpux11*)
7466
      lt_prog_compiler_wl='-Wl,'
7467
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7468
      # not for PA HP-UX.
7469
      case $host_cpu in
7470
      hppa*64*|ia64*)
7471
	# +Z the default
7472
	;;
7473
      *)
7474
	lt_prog_compiler_pic='+Z'
7475
	;;
7476
      esac
7477
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7478
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7479
      ;;
7480
7481
    irix5* | irix6* | nonstopux*)
7482
      lt_prog_compiler_wl='-Wl,'
7483
      # PIC (with -KPIC) is the default.
7484
      lt_prog_compiler_static='-non_shared'
7485
      ;;
7486
7487
    linux* | k*bsd*-gnu)
7488
      case $cc_basename in
7489
      # old Intel for x86_64 which still supported -KPIC.
7490
      ecc*)
7491
	lt_prog_compiler_wl='-Wl,'
7492
	lt_prog_compiler_pic='-KPIC'
7493
	lt_prog_compiler_static='-static'
7494
        ;;
7495
      # icc used to be incompatible with GCC.
7496
      # ICC 10 doesn't accept -KPIC any more.
7497
      icc* | ifort*)
7498
	lt_prog_compiler_wl='-Wl,'
7499
	lt_prog_compiler_pic='-fPIC'
7500
	lt_prog_compiler_static='-static'
7501
        ;;
7502
      # Lahey Fortran 8.1.
7503
      lf95*)
7504
	lt_prog_compiler_wl='-Wl,'
7505
	lt_prog_compiler_pic='--shared'
7506
	lt_prog_compiler_static='--static'
7507
	;;
7508
      pgcc* | pgf77* | pgf90* | pgf95*)
7509
        # Portland Group compilers (*not* the Pentium gcc compiler,
7510
	# which looks to be a dead project)
7511
	lt_prog_compiler_wl='-Wl,'
7512
	lt_prog_compiler_pic='-fpic'
7513
	lt_prog_compiler_static='-Bstatic'
7514
        ;;
7515
      ccc*)
7516
        lt_prog_compiler_wl='-Wl,'
7517
        # All Alpha code is PIC.
7518
        lt_prog_compiler_static='-non_shared'
7519
        ;;
7520
      xl*)
7521
	# IBM XL C 8.0/Fortran 10.1 on PPC
7522
	lt_prog_compiler_wl='-Wl,'
7523
	lt_prog_compiler_pic='-qpic'
7524
	lt_prog_compiler_static='-qstaticlink'
7525
	;;
7526
      *)
7527
	case `$CC -V 2>&1 | sed 5q` in
7528
	*Sun\ C*)
7529
	  # Sun C 5.9
7530
	  lt_prog_compiler_pic='-KPIC'
7531
	  lt_prog_compiler_static='-Bstatic'
7532
	  lt_prog_compiler_wl='-Wl,'
7533
	  ;;
7534
	*Sun\ F*)
7535
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7536
	  lt_prog_compiler_pic='-KPIC'
7537
	  lt_prog_compiler_static='-Bstatic'
7538
	  lt_prog_compiler_wl=''
7539
	  ;;
7540
	esac
7541
	;;
7542
      esac
7543
      ;;
7544
7545
    newsos6)
7546
      lt_prog_compiler_pic='-KPIC'
7547
      lt_prog_compiler_static='-Bstatic'
7548
      ;;
7549
7550
    *nto* | *qnx*)
7551
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7552
      # it will coredump.
7553
      lt_prog_compiler_pic='-fPIC -shared'
7554
      ;;
7555
7556
    osf3* | osf4* | osf5*)
7557
      lt_prog_compiler_wl='-Wl,'
7558
      # All OSF/1 code is PIC.
7559
      lt_prog_compiler_static='-non_shared'
7560
      ;;
7561
7562
    rdos*)
7563
      lt_prog_compiler_static='-non_shared'
7564
      ;;
7565
7566
    solaris*)
7567
      lt_prog_compiler_pic='-KPIC'
7568
      lt_prog_compiler_static='-Bstatic'
7569
      case $cc_basename in
7570
      f77* | f90* | f95*)
7571
	lt_prog_compiler_wl='-Qoption ld ';;
7572
      *)
7573
	lt_prog_compiler_wl='-Wl,';;
7574
      esac
7575
      ;;
7576
7577
    sunos4*)
7578
      lt_prog_compiler_wl='-Qoption ld '
7579
      lt_prog_compiler_pic='-PIC'
7580
      lt_prog_compiler_static='-Bstatic'
7581
      ;;
7582
7583
    sysv4 | sysv4.2uw2* | sysv4.3*)
7584
      lt_prog_compiler_wl='-Wl,'
7585
      lt_prog_compiler_pic='-KPIC'
7586
      lt_prog_compiler_static='-Bstatic'
7587
      ;;
7588
7589
    sysv4*MP*)
7590
      if test -d /usr/nec ;then
7591
	lt_prog_compiler_pic='-Kconform_pic'
7592
	lt_prog_compiler_static='-Bstatic'
7593
      fi
7594
      ;;
7595
7596
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7597
      lt_prog_compiler_wl='-Wl,'
7598
      lt_prog_compiler_pic='-KPIC'
7599
      lt_prog_compiler_static='-Bstatic'
7600
      ;;
7601
7602
    unicos*)
7603
      lt_prog_compiler_wl='-Wl,'
7604
      lt_prog_compiler_can_build_shared=no
7605
      ;;
7606
7607
    uts4*)
7608
      lt_prog_compiler_pic='-pic'
7609
      lt_prog_compiler_static='-Bstatic'
7610
      ;;
7611
7612
    *)
7613
      lt_prog_compiler_can_build_shared=no
7614
      ;;
7615
    esac
7616
  fi
7617
7618
case $host_os in
7619
  # For platforms which do not support PIC, -DPIC is meaningless:
7620
  *djgpp*)
7621
    lt_prog_compiler_pic=
7622
    ;;
7623
  *)
7624
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7625
    ;;
7626
esac
7627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7628
$as_echo "$lt_prog_compiler_pic" >&6; }
7629
7630
7631
7632
7633
7634
7635
#
7636
# Check to make sure the PIC flag actually works.
7637
#
7638
if test -n "$lt_prog_compiler_pic"; then
7639
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7640
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7641
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7642
  $as_echo_n "(cached) " >&6
7643
else
7644
  lt_cv_prog_compiler_pic_works=no
7645
   ac_outfile=conftest.$ac_objext
7646
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7647
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7648
   # Insert the option either (1) after the last *FLAGS variable, or
7649
   # (2) before a word containing "conftest.", or (3) at the end.
7650
   # Note that $ac_compile itself does not contain backslashes and begins
7651
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7652
   # The option is referenced via a variable to avoid confusing sed.
7653
   lt_compile=`echo "$ac_compile" | $SED \
7654
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7655
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7656
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
7657
   (eval echo "\"\$as_me:7657: $lt_compile\"" >&5)
5 by edam
- updated README
7658
   (eval "$lt_compile" 2>conftest.err)
7659
   ac_status=$?
7660
   cat conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
7661
   echo "$as_me:7661: \$? = $ac_status" >&5
5 by edam
- updated README
7662
   if (exit $ac_status) && test -s "$ac_outfile"; then
7663
     # The compiler can only warn and ignore the option if not recognized
7664
     # So say no if there are warnings other than the usual output.
7665
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7666
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7667
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7668
       lt_cv_prog_compiler_pic_works=yes
7669
     fi
7670
   fi
7671
   $RM conftest*
7672
7673
fi
7674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7675
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7676
7677
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7678
    case $lt_prog_compiler_pic in
7679
     "" | " "*) ;;
7680
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7681
     esac
7682
else
7683
    lt_prog_compiler_pic=
7684
     lt_prog_compiler_can_build_shared=no
7685
fi
7686
7687
fi
7688
7689
7690
7691
7692
7693
7694
#
7695
# Check to make sure the static flag actually works.
7696
#
7697
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7699
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7700
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7701
  $as_echo_n "(cached) " >&6
7702
else
7703
  lt_cv_prog_compiler_static_works=no
7704
   save_LDFLAGS="$LDFLAGS"
7705
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7706
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7707
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7708
     # The linker can only warn and ignore the option if not recognized
7709
     # So say no if there are warnings
7710
     if test -s conftest.err; then
7711
       # Append any errors to the config.log.
7712
       cat conftest.err 1>&5
7713
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7714
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7715
       if diff conftest.exp conftest.er2 >/dev/null; then
7716
         lt_cv_prog_compiler_static_works=yes
7717
       fi
7718
     else
7719
       lt_cv_prog_compiler_static_works=yes
7720
     fi
7721
   fi
7722
   $RM -r conftest*
7723
   LDFLAGS="$save_LDFLAGS"
7724
7725
fi
7726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7727
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7728
7729
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7730
    :
7731
else
7732
    lt_prog_compiler_static=
7733
fi
7734
7735
7736
7737
7738
7739
7740
7741
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7742
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7743
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7744
  $as_echo_n "(cached) " >&6
7745
else
7746
  lt_cv_prog_compiler_c_o=no
7747
   $RM -r conftest 2>/dev/null
7748
   mkdir conftest
7749
   cd conftest
7750
   mkdir out
7751
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7752
7753
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7754
   # Insert the option either (1) after the last *FLAGS variable, or
7755
   # (2) before a word containing "conftest.", or (3) at the end.
7756
   # Note that $ac_compile itself does not contain backslashes and begins
7757
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7758
   lt_compile=`echo "$ac_compile" | $SED \
7759
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
7762
   (eval echo "\"\$as_me:7762: $lt_compile\"" >&5)
5 by edam
- updated README
7763
   (eval "$lt_compile" 2>out/conftest.err)
7764
   ac_status=$?
7765
   cat out/conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
7766
   echo "$as_me:7766: \$? = $ac_status" >&5
5 by edam
- updated README
7767
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7768
   then
7769
     # The compiler can only warn and ignore the option if not recognized
7770
     # So say no if there are warnings
7771
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7772
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7773
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7774
       lt_cv_prog_compiler_c_o=yes
7775
     fi
7776
   fi
7777
   chmod u+w . 2>&5
7778
   $RM conftest*
7779
   # SGI C++ compiler will create directory out/ii_files/ for
7780
   # template instantiation
7781
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7782
   $RM out/* && rmdir out
7783
   cd ..
7784
   $RM -r conftest
7785
   $RM conftest*
7786
7787
fi
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7789
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7790
7791
7792
7793
7794
7795
7796
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7797
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7798
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7799
  $as_echo_n "(cached) " >&6
7800
else
7801
  lt_cv_prog_compiler_c_o=no
7802
   $RM -r conftest 2>/dev/null
7803
   mkdir conftest
7804
   cd conftest
7805
   mkdir out
7806
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7807
7808
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7809
   # Insert the option either (1) after the last *FLAGS variable, or
7810
   # (2) before a word containing "conftest.", or (3) at the end.
7811
   # Note that $ac_compile itself does not contain backslashes and begins
7812
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7813
   lt_compile=`echo "$ac_compile" | $SED \
7814
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
7817
   (eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
5 by edam
- updated README
7818
   (eval "$lt_compile" 2>out/conftest.err)
7819
   ac_status=$?
7820
   cat out/conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
7821
   echo "$as_me:7821: \$? = $ac_status" >&5
5 by edam
- updated README
7822
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7823
   then
7824
     # The compiler can only warn and ignore the option if not recognized
7825
     # So say no if there are warnings
7826
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7827
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7828
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7829
       lt_cv_prog_compiler_c_o=yes
7830
     fi
7831
   fi
7832
   chmod u+w . 2>&5
7833
   $RM conftest*
7834
   # SGI C++ compiler will create directory out/ii_files/ for
7835
   # template instantiation
7836
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7837
   $RM out/* && rmdir out
7838
   cd ..
7839
   $RM -r conftest
7840
   $RM conftest*
7841
7842
fi
7843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7844
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7845
7846
7847
7848
7849
hard_links="nottested"
7850
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7851
  # do not overwrite the value of need_locks provided by the user
7852
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7853
$as_echo_n "checking if we can lock with hard links... " >&6; }
7854
  hard_links=yes
7855
  $RM conftest*
7856
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7857
  touch conftest.a
7858
  ln conftest.a conftest.b 2>&5 || hard_links=no
7859
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7861
$as_echo "$hard_links" >&6; }
7862
  if test "$hard_links" = no; then
7863
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7864
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7865
    need_locks=warn
7866
  fi
7867
else
7868
  need_locks=no
7869
fi
7870
7871
7872
7873
7874
7875
7876
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7877
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7878
7879
  runpath_var=
7880
  allow_undefined_flag=
7881
  always_export_symbols=no
7882
  archive_cmds=
7883
  archive_expsym_cmds=
7884
  compiler_needs_object=no
7885
  enable_shared_with_static_runtimes=no
7886
  export_dynamic_flag_spec=
7887
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7888
  hardcode_automatic=no
7889
  hardcode_direct=no
7890
  hardcode_direct_absolute=no
7891
  hardcode_libdir_flag_spec=
7892
  hardcode_libdir_flag_spec_ld=
7893
  hardcode_libdir_separator=
7894
  hardcode_minus_L=no
7895
  hardcode_shlibpath_var=unsupported
7896
  inherit_rpath=no
7897
  link_all_deplibs=unknown
7898
  module_cmds=
7899
  module_expsym_cmds=
7900
  old_archive_from_new_cmds=
7901
  old_archive_from_expsyms_cmds=
7902
  thread_safe_flag_spec=
7903
  whole_archive_flag_spec=
7904
  # include_expsyms should be a list of space-separated symbols to be *always*
7905
  # included in the symbol list
7906
  include_expsyms=
7907
  # exclude_expsyms can be an extended regexp of symbols to exclude
7908
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7909
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7910
  # as well as any symbol that contains `d'.
7911
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7912
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7913
  # platforms (ab)use it in PIC code, but their linkers get confused if
7914
  # the symbol is explicitly referenced.  Since portable code cannot
7915
  # rely on this symbol name, it's probably fine to never include it in
7916
  # preloaded symbol tables.
7917
  # Exclude shared library initialization/finalization symbols.
7918
  extract_expsyms_cmds=
7919
7920
  case $host_os in
7921
  cygwin* | mingw* | pw32* | cegcc*)
7922
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7923
    # When not using gcc, we currently assume that we are using
7924
    # Microsoft Visual C++.
7925
    if test "$GCC" != yes; then
7926
      with_gnu_ld=no
7927
    fi
7928
    ;;
7929
  interix*)
7930
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7931
    with_gnu_ld=yes
7932
    ;;
7933
  openbsd*)
7934
    with_gnu_ld=no
7935
    ;;
7936
  linux* | k*bsd*-gnu)
7937
    link_all_deplibs=no
7938
    ;;
7939
  esac
7940
7941
  ld_shlibs=yes
7942
  if test "$with_gnu_ld" = yes; then
7943
    # If archive_cmds runs LD, not CC, wlarc should be empty
7944
    wlarc='${wl}'
7945
7946
    # Set some defaults for GNU ld with shared library support. These
7947
    # are reset later if shared libraries are not supported. Putting them
7948
    # here allows them to be overridden if necessary.
7949
    runpath_var=LD_RUN_PATH
7950
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7951
    export_dynamic_flag_spec='${wl}--export-dynamic'
7952
    # ancient GNU ld didn't support --whole-archive et. al.
7953
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7954
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7955
    else
7956
      whole_archive_flag_spec=
7957
    fi
7958
    supports_anon_versioning=no
7959
    case `$LD -v 2>&1` in
7960
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7961
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7962
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7963
      *\ 2.11.*) ;; # other 2.11 versions
7964
      *) supports_anon_versioning=yes ;;
7965
    esac
7966
7967
    # See if GNU ld supports shared libraries.
7968
    case $host_os in
7969
    aix[3-9]*)
7970
      # On AIX/PPC, the GNU linker is very broken
7971
      if test "$host_cpu" != ia64; then
7972
	ld_shlibs=no
7973
	cat <<_LT_EOF 1>&2
7974
7975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7976
*** to be unable to reliably create shared libraries on AIX.
7977
*** Therefore, libtool is disabling shared libraries support.  If you
7978
*** really care for shared libraries, you may want to modify your PATH
7979
*** so that a non-GNU linker is found, and then restart.
7980
7981
_LT_EOF
7982
      fi
7983
      ;;
7984
7985
    amigaos*)
7986
      case $host_cpu in
7987
      powerpc)
7988
            # see comment about AmigaOS4 .so support
7989
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990
            archive_expsym_cmds=''
7991
        ;;
7992
      m68k)
7993
            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)'
7994
            hardcode_libdir_flag_spec='-L$libdir'
7995
            hardcode_minus_L=yes
7996
        ;;
7997
      esac
7998
      ;;
7999
8000
    beos*)
8001
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8002
	allow_undefined_flag=unsupported
8003
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8004
	# support --undefined.  This deserves some investigation.  FIXME
8005
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8006
      else
8007
	ld_shlibs=no
8008
      fi
8009
      ;;
8010
8011
    cygwin* | mingw* | pw32* | cegcc*)
8012
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8013
      # as there is no search path for DLLs.
8014
      hardcode_libdir_flag_spec='-L$libdir'
8015
      allow_undefined_flag=unsupported
8016
      always_export_symbols=no
8017
      enable_shared_with_static_runtimes=yes
8018
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8019
8020
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8021
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8022
	# If the export-symbols file already is a .def file (1st line
8023
	# is EXPORTS), use it as is; otherwise, prepend...
8024
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8025
	  cp $export_symbols $output_objdir/$soname.def;
8026
	else
8027
	  echo EXPORTS > $output_objdir/$soname.def;
8028
	  cat $export_symbols >> $output_objdir/$soname.def;
8029
	fi~
8030
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8031
      else
8032
	ld_shlibs=no
8033
      fi
8034
      ;;
8035
8036
    interix[3-9]*)
8037
      hardcode_direct=no
8038
      hardcode_shlibpath_var=no
8039
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8040
      export_dynamic_flag_spec='${wl}-E'
8041
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8042
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8043
      # default) and relocated if they conflict, which is a slow very memory
8044
      # consuming and fragmenting process.  To avoid this, we pick a random,
8045
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8046
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8047
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8048
      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'
8049
      ;;
8050
8051
    gnu* | linux* | tpf* | k*bsd*-gnu)
8052
      tmp_diet=no
8053
      if test "$host_os" = linux-dietlibc; then
8054
	case $cc_basename in
8055
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8056
	esac
8057
      fi
8058
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8059
	 && test "$tmp_diet" = no
8060
      then
8061
	tmp_addflag=
8062
	tmp_sharedflag='-shared'
8063
	case $cc_basename,$host_cpu in
8064
        pgcc*)				# Portland Group C compiler
8065
	  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'
8066
	  tmp_addflag=' $pic_flag'
8067
	  ;;
8068
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8069
	  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'
8070
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8071
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8072
	  tmp_addflag=' -i_dynamic' ;;
8073
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8074
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8075
	ifc* | ifort*)			# Intel Fortran compiler
8076
	  tmp_addflag=' -nofor_main' ;;
8077
	lf95*)				# Lahey Fortran 8.1
8078
	  whole_archive_flag_spec=
8079
	  tmp_sharedflag='--shared' ;;
8080
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8081
	  tmp_sharedflag='-qmkshrobj'
8082
	  tmp_addflag= ;;
8083
	esac
8084
	case `$CC -V 2>&1 | sed 5q` in
8085
	*Sun\ C*)			# Sun C 5.9
8086
	  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'
8087
	  compiler_needs_object=yes
8088
	  tmp_sharedflag='-G' ;;
8089
	*Sun\ F*)			# Sun Fortran 8.3
8090
	  tmp_sharedflag='-G' ;;
8091
	esac
8092
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093
8094
        if test "x$supports_anon_versioning" = xyes; then
8095
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8096
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8097
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8098
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8099
        fi
8100
8101
	case $cc_basename in
8102
	xlf*)
8103
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8104
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8105
	  hardcode_libdir_flag_spec=
8106
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8107
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8108
	  if test "x$supports_anon_versioning" = xyes; then
8109
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8110
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8111
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8112
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8113
	  fi
8114
	  ;;
8115
	esac
8116
      else
8117
        ld_shlibs=no
8118
      fi
8119
      ;;
8120
8121
    netbsd* | netbsdelf*-gnu)
8122
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8123
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8124
	wlarc=
8125
      else
8126
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8128
      fi
8129
      ;;
8130
8131
    solaris*)
8132
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8133
	ld_shlibs=no
8134
	cat <<_LT_EOF 1>&2
8135
8136
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8137
*** create shared libraries on Solaris systems.  Therefore, libtool
8138
*** is disabling shared libraries support.  We urge you to upgrade GNU
8139
*** binutils to release 2.9.1 or newer.  Another option is to modify
8140
*** your PATH or compiler configuration so that the native linker is
8141
*** used, and then restart.
8142
8143
_LT_EOF
8144
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8145
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147
      else
8148
	ld_shlibs=no
8149
      fi
8150
      ;;
8151
8152
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8153
      case `$LD -v 2>&1` in
8154
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8155
	ld_shlibs=no
8156
	cat <<_LT_EOF 1>&2
8157
8158
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8159
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8160
*** is disabling shared libraries support.  We urge you to upgrade GNU
8161
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8162
*** your PATH or compiler configuration so that the native linker is
8163
*** used, and then restart.
8164
8165
_LT_EOF
8166
	;;
8167
	*)
8168
	  # For security reasons, it is highly recommended that you always
8169
	  # use absolute paths for naming shared libraries, and exclude the
8170
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8171
	  # requires that you compile everything twice, which is a pain.
8172
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8174
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8176
	  else
8177
	    ld_shlibs=no
8178
	  fi
8179
	;;
8180
      esac
8181
      ;;
8182
8183
    sunos4*)
8184
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8185
      wlarc=
8186
      hardcode_direct=yes
8187
      hardcode_shlibpath_var=no
8188
      ;;
8189
8190
    *)
8191
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8192
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8194
      else
8195
	ld_shlibs=no
8196
      fi
8197
      ;;
8198
    esac
8199
8200
    if test "$ld_shlibs" = no; then
8201
      runpath_var=
8202
      hardcode_libdir_flag_spec=
8203
      export_dynamic_flag_spec=
8204
      whole_archive_flag_spec=
8205
    fi
8206
  else
8207
    # PORTME fill in a description of your system's linker (not GNU ld)
8208
    case $host_os in
8209
    aix3*)
8210
      allow_undefined_flag=unsupported
8211
      always_export_symbols=yes
8212
      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'
8213
      # Note: this linker hardcodes the directories in LIBPATH if there
8214
      # are no directories specified by -L.
8215
      hardcode_minus_L=yes
8216
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8217
	# Neither direct hardcoding nor static linking is supported with a
8218
	# broken collect2.
8219
	hardcode_direct=unsupported
8220
      fi
8221
      ;;
8222
8223
    aix[4-9]*)
8224
      if test "$host_cpu" = ia64; then
8225
	# On IA64, the linker does run time linking by default, so we don't
8226
	# have to do anything special.
8227
	aix_use_runtimelinking=no
8228
	exp_sym_flag='-Bexport'
8229
	no_entry_flag=""
8230
      else
8231
	# If we're using GNU nm, then we don't want the "-C" option.
8232
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8233
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8234
	  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'
8235
	else
8236
	  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'
8237
	fi
8238
	aix_use_runtimelinking=no
8239
8240
	# Test if we are trying to use run time linking or normal
8241
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8242
	# need to do runtime linking.
8243
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8244
	  for ld_flag in $LDFLAGS; do
8245
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8246
	    aix_use_runtimelinking=yes
8247
	    break
8248
	  fi
8249
	  done
8250
	  ;;
8251
	esac
8252
8253
	exp_sym_flag='-bexport'
8254
	no_entry_flag='-bnoentry'
8255
      fi
8256
8257
      # When large executables or shared objects are built, AIX ld can
8258
      # have problems creating the table of contents.  If linking a library
8259
      # or program results in "error TOC overflow" add -mminimal-toc to
8260
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8261
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8262
8263
      archive_cmds=''
8264
      hardcode_direct=yes
8265
      hardcode_direct_absolute=yes
8266
      hardcode_libdir_separator=':'
8267
      link_all_deplibs=yes
8268
      file_list_spec='${wl}-f,'
8269
8270
      if test "$GCC" = yes; then
8271
	case $host_os in aix4.[012]|aix4.[012].*)
8272
	# We only want to do this on AIX 4.2 and lower, the check
8273
	# below for broken collect2 doesn't work under 4.3+
8274
	  collect2name=`${CC} -print-prog-name=collect2`
8275
	  if test -f "$collect2name" &&
8276
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8277
	  then
8278
	  # We have reworked collect2
8279
	  :
8280
	  else
8281
	  # We have old collect2
8282
	  hardcode_direct=unsupported
8283
	  # It fails to find uninstalled libraries when the uninstalled
8284
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8285
	  # to unsupported forces relinking
8286
	  hardcode_minus_L=yes
8287
	  hardcode_libdir_flag_spec='-L$libdir'
8288
	  hardcode_libdir_separator=
8289
	  fi
8290
	  ;;
8291
	esac
8292
	shared_flag='-shared'
8293
	if test "$aix_use_runtimelinking" = yes; then
8294
	  shared_flag="$shared_flag "'${wl}-G'
8295
	fi
8296
	link_all_deplibs=no
8297
      else
8298
	# not using gcc
8299
	if test "$host_cpu" = ia64; then
8300
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8301
	# chokes on -Wl,-G. The following line is correct:
8302
	  shared_flag='-G'
8303
	else
8304
	  if test "$aix_use_runtimelinking" = yes; then
8305
	    shared_flag='${wl}-G'
8306
	  else
8307
	    shared_flag='${wl}-bM:SRE'
8308
	  fi
8309
	fi
8310
      fi
8311
8312
      export_dynamic_flag_spec='${wl}-bexpall'
8313
      # It seems that -bexpall does not export symbols beginning with
8314
      # underscore (_), so it is better to generate a list of symbols to export.
8315
      always_export_symbols=yes
8316
      if test "$aix_use_runtimelinking" = yes; then
8317
	# Warning - without using the other runtime loading flags (-brtl),
8318
	# -berok will link without error, but may produce a broken library.
8319
	allow_undefined_flag='-berok'
8320
        # Determine the default libpath from the value encoded in an
8321
        # empty executable.
8322
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323
/* end confdefs.h.  */
8324
8325
int
8326
main ()
8327
{
8328
8329
  ;
8330
  return 0;
8331
}
8332
_ACEOF
8333
if ac_fn_c_try_link "$LINENO"; then :
8334
8335
lt_aix_libpath_sed='
8336
    /Import File Strings/,/^$/ {
8337
	/^0/ {
8338
	    s/^0  *\(.*\)$/\1/
8339
	    p
8340
	}
8341
    }'
8342
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8343
# Check for a 64-bit object if we didn't find anything.
8344
if test -z "$aix_libpath"; then
8345
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346
fi
8347
fi
8348
rm -f core conftest.err conftest.$ac_objext \
8349
    conftest$ac_exeext conftest.$ac_ext
8350
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8351
8352
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8353
        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"
8354
      else
8355
	if test "$host_cpu" = ia64; then
8356
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8357
	  allow_undefined_flag="-z nodefs"
8358
	  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"
8359
	else
8360
	 # Determine the default libpath from the value encoded in an
8361
	 # empty executable.
8362
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363
/* end confdefs.h.  */
8364
8365
int
8366
main ()
8367
{
8368
8369
  ;
8370
  return 0;
8371
}
8372
_ACEOF
8373
if ac_fn_c_try_link "$LINENO"; then :
8374
8375
lt_aix_libpath_sed='
8376
    /Import File Strings/,/^$/ {
8377
	/^0/ {
8378
	    s/^0  *\(.*\)$/\1/
8379
	    p
8380
	}
8381
    }'
8382
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8383
# Check for a 64-bit object if we didn't find anything.
8384
if test -z "$aix_libpath"; then
8385
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8386
fi
8387
fi
8388
rm -f core conftest.err conftest.$ac_objext \
8389
    conftest$ac_exeext conftest.$ac_ext
8390
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8391
8392
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8393
	  # Warning - without using the other run time loading flags,
8394
	  # -berok will link without error, but may produce a broken library.
8395
	  no_undefined_flag=' ${wl}-bernotok'
8396
	  allow_undefined_flag=' ${wl}-berok'
8397
	  # Exported symbols can be pulled into shared objects from archives
8398
	  whole_archive_flag_spec='$convenience'
8399
	  archive_cmds_need_lc=yes
8400
	  # This is similar to how AIX traditionally builds its shared libraries.
8401
	  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'
8402
	fi
8403
      fi
8404
      ;;
8405
8406
    amigaos*)
8407
      case $host_cpu in
8408
      powerpc)
8409
            # see comment about AmigaOS4 .so support
8410
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411
            archive_expsym_cmds=''
8412
        ;;
8413
      m68k)
8414
            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)'
8415
            hardcode_libdir_flag_spec='-L$libdir'
8416
            hardcode_minus_L=yes
8417
        ;;
8418
      esac
8419
      ;;
8420
8421
    bsdi[45]*)
8422
      export_dynamic_flag_spec=-rdynamic
8423
      ;;
8424
8425
    cygwin* | mingw* | pw32* | cegcc*)
8426
      # When not using gcc, we currently assume that we are using
8427
      # Microsoft Visual C++.
8428
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8429
      # no search path for DLLs.
8430
      hardcode_libdir_flag_spec=' '
8431
      allow_undefined_flag=unsupported
8432
      # Tell ltmain to make .lib files, not .a files.
8433
      libext=lib
8434
      # Tell ltmain to make .dll files, not .so files.
8435
      shrext_cmds=".dll"
8436
      # FIXME: Setting linknames here is a bad hack.
8437
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8438
      # The linker will automatically build a .lib file if we build a DLL.
8439
      old_archive_from_new_cmds='true'
8440
      # FIXME: Should let the user specify the lib program.
8441
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8442
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8443
      enable_shared_with_static_runtimes=yes
8444
      ;;
8445
8446
    darwin* | rhapsody*)
8447
8448
8449
  archive_cmds_need_lc=no
8450
  hardcode_direct=no
8451
  hardcode_automatic=yes
8452
  hardcode_shlibpath_var=unsupported
8453
  whole_archive_flag_spec=''
8454
  link_all_deplibs=yes
8455
  allow_undefined_flag="$_lt_dar_allow_undefined"
8456
  case $cc_basename in
8457
     ifort*) _lt_dar_can_shared=yes ;;
8458
     *) _lt_dar_can_shared=$GCC ;;
8459
  esac
8460
  if test "$_lt_dar_can_shared" = "yes"; then
8461
    output_verbose_link_cmd=echo
8462
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8463
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8464
    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}"
8465
    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}"
8466
8467
  else
8468
  ld_shlibs=no
8469
  fi
8470
8471
      ;;
8472
8473
    dgux*)
8474
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8475
      hardcode_libdir_flag_spec='-L$libdir'
8476
      hardcode_shlibpath_var=no
8477
      ;;
8478
8479
    freebsd1*)
8480
      ld_shlibs=no
8481
      ;;
8482
8483
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8484
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8485
    # does not break anything, and helps significantly (at the cost of a little
8486
    # extra space).
8487
    freebsd2.2*)
8488
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8489
      hardcode_libdir_flag_spec='-R$libdir'
8490
      hardcode_direct=yes
8491
      hardcode_shlibpath_var=no
8492
      ;;
8493
8494
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8495
    freebsd2*)
8496
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8497
      hardcode_direct=yes
8498
      hardcode_minus_L=yes
8499
      hardcode_shlibpath_var=no
8500
      ;;
8501
8502
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8503
    freebsd* | dragonfly*)
8504
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8505
      hardcode_libdir_flag_spec='-R$libdir'
8506
      hardcode_direct=yes
8507
      hardcode_shlibpath_var=no
8508
      ;;
8509
8510
    hpux9*)
8511
      if test "$GCC" = yes; then
8512
	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'
8513
      else
8514
	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'
8515
      fi
8516
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8517
      hardcode_libdir_separator=:
8518
      hardcode_direct=yes
8519
8520
      # hardcode_minus_L: Not really in the search PATH,
8521
      # but as the default location of the library.
8522
      hardcode_minus_L=yes
8523
      export_dynamic_flag_spec='${wl}-E'
8524
      ;;
8525
8526
    hpux10*)
8527
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8528
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8529
      else
8530
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8531
      fi
8532
      if test "$with_gnu_ld" = no; then
8533
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8534
	hardcode_libdir_flag_spec_ld='+b $libdir'
8535
	hardcode_libdir_separator=:
8536
	hardcode_direct=yes
8537
	hardcode_direct_absolute=yes
8538
	export_dynamic_flag_spec='${wl}-E'
8539
	# hardcode_minus_L: Not really in the search PATH,
8540
	# but as the default location of the library.
8541
	hardcode_minus_L=yes
8542
      fi
8543
      ;;
8544
8545
    hpux11*)
8546
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8547
	case $host_cpu in
8548
	hppa*64*)
8549
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550
	  ;;
8551
	ia64*)
8552
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8553
	  ;;
8554
	*)
8555
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556
	  ;;
8557
	esac
8558
      else
8559
	case $host_cpu in
8560
	hppa*64*)
8561
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8562
	  ;;
8563
	ia64*)
8564
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8565
	  ;;
8566
	*)
8567
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8568
	  ;;
8569
	esac
8570
      fi
8571
      if test "$with_gnu_ld" = no; then
8572
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8573
	hardcode_libdir_separator=:
8574
8575
	case $host_cpu in
8576
	hppa*64*|ia64*)
8577
	  hardcode_direct=no
8578
	  hardcode_shlibpath_var=no
8579
	  ;;
8580
	*)
8581
	  hardcode_direct=yes
8582
	  hardcode_direct_absolute=yes
8583
	  export_dynamic_flag_spec='${wl}-E'
8584
8585
	  # hardcode_minus_L: Not really in the search PATH,
8586
	  # but as the default location of the library.
8587
	  hardcode_minus_L=yes
8588
	  ;;
8589
	esac
8590
      fi
8591
      ;;
8592
8593
    irix5* | irix6* | nonstopux*)
8594
      if test "$GCC" = yes; then
8595
	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'
8596
	# Try to use the -exported_symbol ld option, if it does not
8597
	# work, assume that -exports_file does not work either and
8598
	# implicitly export all symbols.
8599
        save_LDFLAGS="$LDFLAGS"
8600
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8601
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602
/* end confdefs.h.  */
8603
int foo(void) {}
8604
_ACEOF
8605
if ac_fn_c_try_link "$LINENO"; then :
8606
  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'
8607
8608
fi
8609
rm -f core conftest.err conftest.$ac_objext \
8610
    conftest$ac_exeext conftest.$ac_ext
8611
        LDFLAGS="$save_LDFLAGS"
8612
      else
8613
	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'
8614
	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'
8615
      fi
8616
      archive_cmds_need_lc='no'
8617
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8618
      hardcode_libdir_separator=:
8619
      inherit_rpath=yes
8620
      link_all_deplibs=yes
8621
      ;;
8622
8623
    netbsd* | netbsdelf*-gnu)
8624
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8625
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8626
      else
8627
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8628
      fi
8629
      hardcode_libdir_flag_spec='-R$libdir'
8630
      hardcode_direct=yes
8631
      hardcode_shlibpath_var=no
8632
      ;;
8633
8634
    newsos6)
8635
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8636
      hardcode_direct=yes
8637
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638
      hardcode_libdir_separator=:
8639
      hardcode_shlibpath_var=no
8640
      ;;
8641
8642
    *nto* | *qnx*)
8643
      ;;
8644
8645
    openbsd*)
8646
      if test -f /usr/libexec/ld.so; then
8647
	hardcode_direct=yes
8648
	hardcode_shlibpath_var=no
8649
	hardcode_direct_absolute=yes
8650
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8651
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8652
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8653
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654
	  export_dynamic_flag_spec='${wl}-E'
8655
	else
8656
	  case $host_os in
8657
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8658
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659
	     hardcode_libdir_flag_spec='-R$libdir'
8660
	     ;;
8661
	   *)
8662
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664
	     ;;
8665
	  esac
8666
	fi
8667
      else
8668
	ld_shlibs=no
8669
      fi
8670
      ;;
8671
8672
    os2*)
8673
      hardcode_libdir_flag_spec='-L$libdir'
8674
      hardcode_minus_L=yes
8675
      allow_undefined_flag=unsupported
8676
      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'
8677
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8678
      ;;
8679
8680
    osf3*)
8681
      if test "$GCC" = yes; then
8682
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683
	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'
8684
      else
8685
	allow_undefined_flag=' -expect_unresolved \*'
8686
	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'
8687
      fi
8688
      archive_cmds_need_lc='no'
8689
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690
      hardcode_libdir_separator=:
8691
      ;;
8692
8693
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8694
      if test "$GCC" = yes; then
8695
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696
	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'
8697
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698
      else
8699
	allow_undefined_flag=' -expect_unresolved \*'
8700
	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'
8701
	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~
8702
	$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'
8703
8704
	# Both c and cxx compiler support -rpath directly
8705
	hardcode_libdir_flag_spec='-rpath $libdir'
8706
      fi
8707
      archive_cmds_need_lc='no'
8708
      hardcode_libdir_separator=:
8709
      ;;
8710
8711
    solaris*)
8712
      no_undefined_flag=' -z defs'
8713
      if test "$GCC" = yes; then
8714
	wlarc='${wl}'
8715
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8717
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8718
      else
8719
	case `$CC -V 2>&1` in
8720
	*"Compilers 5.0"*)
8721
	  wlarc=''
8722
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8724
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8725
	  ;;
8726
	*)
8727
	  wlarc='${wl}'
8728
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8729
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8730
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8731
	  ;;
8732
	esac
8733
      fi
8734
      hardcode_libdir_flag_spec='-R$libdir'
8735
      hardcode_shlibpath_var=no
8736
      case $host_os in
8737
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8738
      *)
8739
	# The compiler driver will combine and reorder linker options,
8740
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8741
	# but is careful enough not to reorder.
8742
	# Supported since Solaris 2.6 (maybe 2.5.1?)
8743
	if test "$GCC" = yes; then
8744
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8745
	else
8746
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8747
	fi
8748
	;;
8749
      esac
8750
      link_all_deplibs=yes
8751
      ;;
8752
8753
    sunos4*)
8754
      if test "x$host_vendor" = xsequent; then
8755
	# Use $CC to link under sequent, because it throws in some extra .o
8756
	# files that make .init and .fini sections work.
8757
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8758
      else
8759
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8760
      fi
8761
      hardcode_libdir_flag_spec='-L$libdir'
8762
      hardcode_direct=yes
8763
      hardcode_minus_L=yes
8764
      hardcode_shlibpath_var=no
8765
      ;;
8766
8767
    sysv4)
8768
      case $host_vendor in
8769
	sni)
8770
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771
	  hardcode_direct=yes # is this really true???
8772
	;;
8773
	siemens)
8774
	  ## LD is ld it makes a PLAMLIB
8775
	  ## CC just makes a GrossModule.
8776
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8777
	  reload_cmds='$CC -r -o $output$reload_objs'
8778
	  hardcode_direct=no
8779
        ;;
8780
	motorola)
8781
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8783
	;;
8784
      esac
8785
      runpath_var='LD_RUN_PATH'
8786
      hardcode_shlibpath_var=no
8787
      ;;
8788
8789
    sysv4.3*)
8790
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791
      hardcode_shlibpath_var=no
8792
      export_dynamic_flag_spec='-Bexport'
8793
      ;;
8794
8795
    sysv4*MP*)
8796
      if test -d /usr/nec; then
8797
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798
	hardcode_shlibpath_var=no
8799
	runpath_var=LD_RUN_PATH
8800
	hardcode_runpath_var=yes
8801
	ld_shlibs=yes
8802
      fi
8803
      ;;
8804
8805
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8806
      no_undefined_flag='${wl}-z,text'
8807
      archive_cmds_need_lc=no
8808
      hardcode_shlibpath_var=no
8809
      runpath_var='LD_RUN_PATH'
8810
8811
      if test "$GCC" = yes; then
8812
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814
      else
8815
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817
      fi
8818
      ;;
8819
8820
    sysv5* | sco3.2v5* | sco5v6*)
8821
      # Note: We can NOT use -z defs as we might desire, because we do not
8822
      # link with -lc, and that would cause any symbols used from libc to
8823
      # always be unresolved, which means just about no library would
8824
      # ever link correctly.  If we're not using GNU ld we use -z text
8825
      # though, which does catch some bad symbols but isn't as heavy-handed
8826
      # as -z defs.
8827
      no_undefined_flag='${wl}-z,text'
8828
      allow_undefined_flag='${wl}-z,nodefs'
8829
      archive_cmds_need_lc=no
8830
      hardcode_shlibpath_var=no
8831
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8832
      hardcode_libdir_separator=':'
8833
      link_all_deplibs=yes
8834
      export_dynamic_flag_spec='${wl}-Bexport'
8835
      runpath_var='LD_RUN_PATH'
8836
8837
      if test "$GCC" = yes; then
8838
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840
      else
8841
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8842
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843
      fi
8844
      ;;
8845
8846
    uts4*)
8847
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848
      hardcode_libdir_flag_spec='-L$libdir'
8849
      hardcode_shlibpath_var=no
8850
      ;;
8851
8852
    *)
8853
      ld_shlibs=no
8854
      ;;
8855
    esac
8856
8857
    if test x$host_vendor = xsni; then
8858
      case $host in
8859
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8860
	export_dynamic_flag_spec='${wl}-Blargedynsym'
8861
	;;
8862
      esac
8863
    fi
8864
  fi
8865
8866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8867
$as_echo "$ld_shlibs" >&6; }
8868
test "$ld_shlibs" = no && can_build_shared=no
8869
8870
with_gnu_ld=$with_gnu_ld
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
#
8887
# Do we need to explicitly link libc?
8888
#
8889
case "x$archive_cmds_need_lc" in
8890
x|xyes)
8891
  # Assume -lc should be added
8892
  archive_cmds_need_lc=yes
8893
8894
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8895
    case $archive_cmds in
8896
    *'~'*)
8897
      # FIXME: we may have to deal with multi-command sequences.
8898
      ;;
8899
    '$CC '*)
8900
      # Test whether the compiler implicitly links with -lc since on some
8901
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8902
      # to ld, don't add -lc before -lgcc.
8903
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8904
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8905
      $RM conftest*
8906
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907
8908
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8909
  (eval $ac_compile) 2>&5
8910
  ac_status=$?
8911
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912
  test $ac_status = 0; } 2>conftest.err; then
8913
        soname=conftest
8914
        lib=conftest
8915
        libobjs=conftest.$ac_objext
8916
        deplibs=
8917
        wl=$lt_prog_compiler_wl
8918
	pic_flag=$lt_prog_compiler_pic
8919
        compiler_flags=-v
8920
        linker_flags=-v
8921
        verstring=
8922
        output_objdir=.
8923
        libname=conftest
8924
        lt_save_allow_undefined_flag=$allow_undefined_flag
8925
        allow_undefined_flag=
8926
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8927
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8928
  ac_status=$?
8929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8930
  test $ac_status = 0; }
8931
        then
8932
	  archive_cmds_need_lc=no
8933
        else
8934
	  archive_cmds_need_lc=yes
8935
        fi
8936
        allow_undefined_flag=$lt_save_allow_undefined_flag
8937
      else
8938
        cat conftest.err 1>&5
8939
      fi
8940
      $RM conftest*
8941
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8942
$as_echo "$archive_cmds_need_lc" >&6; }
8943
      ;;
8944
    esac
8945
  fi
8946
  ;;
8947
esac
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9106
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9107
9108
if test "$GCC" = yes; then
9109
  case $host_os in
9110
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9111
    *) lt_awk_arg="/^libraries:/" ;;
9112
  esac
9113
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9114
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9115
    # if the path contains ";" then we assume it to be the separator
9116
    # otherwise default to the standard path separator (i.e. ":") - it is
9117
    # assumed that no part of a normal pathname contains ";" but that should
9118
    # okay in the real world where ";" in dirpaths is itself problematic.
9119
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9120
  else
9121
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9122
  fi
9123
  # Ok, now we have the path, separated by spaces, we can step through it
9124
  # and add multilib dir if necessary.
9125
  lt_tmp_lt_search_path_spec=
9126
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9127
  for lt_sys_path in $lt_search_path_spec; do
9128
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9129
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9130
    else
9131
      test -d "$lt_sys_path" && \
9132
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9133
    fi
9134
  done
9135
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9136
BEGIN {RS=" "; FS="/|\n";} {
9137
  lt_foo="";
9138
  lt_count=0;
9139
  for (lt_i = NF; lt_i > 0; lt_i--) {
9140
    if ($lt_i != "" && $lt_i != ".") {
9141
      if ($lt_i == "..") {
9142
        lt_count++;
9143
      } else {
9144
        if (lt_count == 0) {
9145
          lt_foo="/" $lt_i lt_foo;
9146
        } else {
9147
          lt_count--;
9148
        }
9149
      }
9150
    }
9151
  }
9152
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9153
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9154
}'`
9155
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9156
else
9157
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9158
fi
9159
library_names_spec=
9160
libname_spec='lib$name'
9161
soname_spec=
9162
shrext_cmds=".so"
9163
postinstall_cmds=
9164
postuninstall_cmds=
9165
finish_cmds=
9166
finish_eval=
9167
shlibpath_var=
9168
shlibpath_overrides_runpath=unknown
9169
version_type=none
9170
dynamic_linker="$host_os ld.so"
9171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9172
need_lib_prefix=unknown
9173
hardcode_into_libs=no
9174
9175
# when you set need_version to no, make sure it does not cause -set_version
9176
# flags to be left without arguments
9177
need_version=unknown
9178
9179
case $host_os in
9180
aix3*)
9181
  version_type=linux
9182
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9183
  shlibpath_var=LIBPATH
9184
9185
  # AIX 3 has no versioning support, so we append a major version to the name.
9186
  soname_spec='${libname}${release}${shared_ext}$major'
9187
  ;;
9188
9189
aix[4-9]*)
9190
  version_type=linux
9191
  need_lib_prefix=no
9192
  need_version=no
9193
  hardcode_into_libs=yes
9194
  if test "$host_cpu" = ia64; then
9195
    # AIX 5 supports IA64
9196
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9197
    shlibpath_var=LD_LIBRARY_PATH
9198
  else
9199
    # With GCC up to 2.95.x, collect2 would create an import file
9200
    # for dependence libraries.  The import file would start with
9201
    # the line `#! .'.  This would cause the generated library to
9202
    # depend on `.', always an invalid library.  This was fixed in
9203
    # development snapshots of GCC prior to 3.0.
9204
    case $host_os in
9205
      aix4 | aix4.[01] | aix4.[01].*)
9206
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9207
	   echo ' yes '
9208
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9209
	:
9210
      else
9211
	can_build_shared=no
9212
      fi
9213
      ;;
9214
    esac
9215
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9216
    # soname into executable. Probably we can add versioning support to
9217
    # collect2, so additional links can be useful in future.
9218
    if test "$aix_use_runtimelinking" = yes; then
9219
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9220
      # instead of lib<name>.a to let people know that these are not
9221
      # typical AIX shared libraries.
9222
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223
    else
9224
      # We preserve .a as extension for shared libraries through AIX4.2
9225
      # and later when we are not doing run time linking.
9226
      library_names_spec='${libname}${release}.a $libname.a'
9227
      soname_spec='${libname}${release}${shared_ext}$major'
9228
    fi
9229
    shlibpath_var=LIBPATH
9230
  fi
9231
  ;;
9232
9233
amigaos*)
9234
  case $host_cpu in
9235
  powerpc)
9236
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9237
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9238
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239
    ;;
9240
  m68k)
9241
    library_names_spec='$libname.ixlibrary $libname.a'
9242
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9243
    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'
9244
    ;;
9245
  esac
9246
  ;;
9247
9248
beos*)
9249
  library_names_spec='${libname}${shared_ext}'
9250
  dynamic_linker="$host_os ld.so"
9251
  shlibpath_var=LIBRARY_PATH
9252
  ;;
9253
9254
bsdi[45]*)
9255
  version_type=linux
9256
  need_version=no
9257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258
  soname_spec='${libname}${release}${shared_ext}$major'
9259
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9260
  shlibpath_var=LD_LIBRARY_PATH
9261
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9262
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9263
  # the default ld.so.conf also contains /usr/contrib/lib and
9264
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9265
  # libtool to hard-code these into programs
9266
  ;;
9267
9268
cygwin* | mingw* | pw32* | cegcc*)
9269
  version_type=windows
9270
  shrext_cmds=".dll"
9271
  need_version=no
9272
  need_lib_prefix=no
9273
9274
  case $GCC,$host_os in
9275
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9276
    library_names_spec='$libname.dll.a'
9277
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9278
    postinstall_cmds='base_file=`basename \${file}`~
9279
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9280
      dldir=$destdir/`dirname \$dlpath`~
9281
      test -d \$dldir || mkdir -p \$dldir~
9282
      $install_prog $dir/$dlname \$dldir/$dlname~
9283
      chmod a+x \$dldir/$dlname~
9284
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9285
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9286
      fi'
9287
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9288
      dlpath=$dir/\$dldll~
9289
       $RM \$dlpath'
9290
    shlibpath_overrides_runpath=yes
9291
9292
    case $host_os in
9293
    cygwin*)
9294
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9295
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9296
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9297
      ;;
9298
    mingw* | cegcc*)
9299
      # MinGW DLLs use traditional 'lib' prefix
9300
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9301
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9302
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9303
        # It is most probably a Windows format PATH printed by
9304
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9305
        # path with ; separators, and with drive letters. We can handle the
9306
        # drive letters (cygwin fileutils understands them), so leave them,
9307
        # especially as we might pass files found there to a mingw objdump,
9308
        # which wouldn't understand a cygwinified path. Ahh.
9309
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9310
      else
9311
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9312
      fi
9313
      ;;
9314
    pw32*)
9315
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9316
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317
      ;;
9318
    esac
9319
    ;;
9320
9321
  *)
9322
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9323
    ;;
9324
  esac
9325
  dynamic_linker='Win32 ld.exe'
9326
  # FIXME: first we should search . and the directory the executable is in
9327
  shlibpath_var=PATH
9328
  ;;
9329
9330
darwin* | rhapsody*)
9331
  dynamic_linker="$host_os dyld"
9332
  version_type=darwin
9333
  need_lib_prefix=no
9334
  need_version=no
9335
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9336
  soname_spec='${libname}${release}${major}$shared_ext'
9337
  shlibpath_overrides_runpath=yes
9338
  shlibpath_var=DYLD_LIBRARY_PATH
9339
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9340
9341
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9342
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9343
  ;;
9344
9345
dgux*)
9346
  version_type=linux
9347
  need_lib_prefix=no
9348
  need_version=no
9349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9350
  soname_spec='${libname}${release}${shared_ext}$major'
9351
  shlibpath_var=LD_LIBRARY_PATH
9352
  ;;
9353
9354
freebsd1*)
9355
  dynamic_linker=no
9356
  ;;
9357
9358
freebsd* | dragonfly*)
9359
  # DragonFly does not have aout.  When/if they implement a new
9360
  # versioning mechanism, adjust this.
9361
  if test -x /usr/bin/objformat; then
9362
    objformat=`/usr/bin/objformat`
9363
  else
9364
    case $host_os in
9365
    freebsd[123]*) objformat=aout ;;
9366
    *) objformat=elf ;;
9367
    esac
9368
  fi
9369
  version_type=freebsd-$objformat
9370
  case $version_type in
9371
    freebsd-elf*)
9372
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9373
      need_version=no
9374
      need_lib_prefix=no
9375
      ;;
9376
    freebsd-*)
9377
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9378
      need_version=yes
9379
      ;;
9380
  esac
9381
  shlibpath_var=LD_LIBRARY_PATH
9382
  case $host_os in
9383
  freebsd2*)
9384
    shlibpath_overrides_runpath=yes
9385
    ;;
9386
  freebsd3.[01]* | freebsdelf3.[01]*)
9387
    shlibpath_overrides_runpath=yes
9388
    hardcode_into_libs=yes
9389
    ;;
9390
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9391
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9392
    shlibpath_overrides_runpath=no
9393
    hardcode_into_libs=yes
9394
    ;;
9395
  *) # from 4.6 on, and DragonFly
9396
    shlibpath_overrides_runpath=yes
9397
    hardcode_into_libs=yes
9398
    ;;
9399
  esac
9400
  ;;
9401
9402
gnu*)
9403
  version_type=linux
9404
  need_lib_prefix=no
9405
  need_version=no
9406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9407
  soname_spec='${libname}${release}${shared_ext}$major'
9408
  shlibpath_var=LD_LIBRARY_PATH
9409
  hardcode_into_libs=yes
9410
  ;;
9411
9412
hpux9* | hpux10* | hpux11*)
9413
  # Give a soname corresponding to the major version so that dld.sl refuses to
9414
  # link against other versions.
9415
  version_type=sunos
9416
  need_lib_prefix=no
9417
  need_version=no
9418
  case $host_cpu in
9419
  ia64*)
9420
    shrext_cmds='.so'
9421
    hardcode_into_libs=yes
9422
    dynamic_linker="$host_os dld.so"
9423
    shlibpath_var=LD_LIBRARY_PATH
9424
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9425
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426
    soname_spec='${libname}${release}${shared_ext}$major'
9427
    if test "X$HPUX_IA64_MODE" = X32; then
9428
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9429
    else
9430
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9431
    fi
9432
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9433
    ;;
9434
  hppa*64*)
9435
    shrext_cmds='.sl'
9436
    hardcode_into_libs=yes
9437
    dynamic_linker="$host_os dld.sl"
9438
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9439
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9440
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441
    soname_spec='${libname}${release}${shared_ext}$major'
9442
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9443
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444
    ;;
9445
  *)
9446
    shrext_cmds='.sl'
9447
    dynamic_linker="$host_os dld.sl"
9448
    shlibpath_var=SHLIB_PATH
9449
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9450
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451
    soname_spec='${libname}${release}${shared_ext}$major'
9452
    ;;
9453
  esac
9454
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9455
  postinstall_cmds='chmod 555 $lib'
9456
  ;;
9457
9458
interix[3-9]*)
9459
  version_type=linux
9460
  need_lib_prefix=no
9461
  need_version=no
9462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463
  soname_spec='${libname}${release}${shared_ext}$major'
9464
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9465
  shlibpath_var=LD_LIBRARY_PATH
9466
  shlibpath_overrides_runpath=no
9467
  hardcode_into_libs=yes
9468
  ;;
9469
9470
irix5* | irix6* | nonstopux*)
9471
  case $host_os in
9472
    nonstopux*) version_type=nonstopux ;;
9473
    *)
9474
	if test "$lt_cv_prog_gnu_ld" = yes; then
9475
		version_type=linux
9476
	else
9477
		version_type=irix
9478
	fi ;;
9479
  esac
9480
  need_lib_prefix=no
9481
  need_version=no
9482
  soname_spec='${libname}${release}${shared_ext}$major'
9483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9484
  case $host_os in
9485
  irix5* | nonstopux*)
9486
    libsuff= shlibsuff=
9487
    ;;
9488
  *)
9489
    case $LD in # libtool.m4 will add one of these switches to LD
9490
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9491
      libsuff= shlibsuff= libmagic=32-bit;;
9492
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9493
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9494
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9495
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9496
    *) libsuff= shlibsuff= libmagic=never-match;;
9497
    esac
9498
    ;;
9499
  esac
9500
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9501
  shlibpath_overrides_runpath=no
9502
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9503
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9504
  hardcode_into_libs=yes
9505
  ;;
9506
9507
# No shared lib support for Linux oldld, aout, or coff.
9508
linux*oldld* | linux*aout* | linux*coff*)
9509
  dynamic_linker=no
9510
  ;;
9511
9512
# This must be Linux ELF.
9513
linux* | k*bsd*-gnu)
9514
  version_type=linux
9515
  need_lib_prefix=no
9516
  need_version=no
9517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518
  soname_spec='${libname}${release}${shared_ext}$major'
9519
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9520
  shlibpath_var=LD_LIBRARY_PATH
9521
  shlibpath_overrides_runpath=no
9522
  # Some binutils ld are patched to set DT_RUNPATH
9523
  save_LDFLAGS=$LDFLAGS
9524
  save_libdir=$libdir
9525
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9526
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528
/* end confdefs.h.  */
9529
9530
int
9531
main ()
9532
{
9533
9534
  ;
9535
  return 0;
9536
}
9537
_ACEOF
9538
if ac_fn_c_try_link "$LINENO"; then :
9539
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9540
  shlibpath_overrides_runpath=yes
9541
fi
9542
fi
9543
rm -f core conftest.err conftest.$ac_objext \
9544
    conftest$ac_exeext conftest.$ac_ext
9545
  LDFLAGS=$save_LDFLAGS
9546
  libdir=$save_libdir
9547
9548
  # This implies no fast_install, which is unacceptable.
9549
  # Some rework will be needed to allow for fast_install
9550
  # before this can be enabled.
9551
  hardcode_into_libs=yes
9552
9553
  # Append ld.so.conf contents to the search path
9554
  if test -f /etc/ld.so.conf; then
9555
    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' ' '`
9556
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9557
  fi
9558
9559
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9560
  # powerpc, because MkLinux only supported shared libraries with the
9561
  # GNU dynamic linker.  Since this was broken with cross compilers,
9562
  # most powerpc-linux boxes support dynamic linking these days and
9563
  # people can always --disable-shared, the test was removed, and we
9564
  # assume the GNU/Linux dynamic linker is in use.
9565
  dynamic_linker='GNU/Linux ld.so'
9566
  ;;
9567
9568
netbsdelf*-gnu)
9569
  version_type=linux
9570
  need_lib_prefix=no
9571
  need_version=no
9572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9573
  soname_spec='${libname}${release}${shared_ext}$major'
9574
  shlibpath_var=LD_LIBRARY_PATH
9575
  shlibpath_overrides_runpath=no
9576
  hardcode_into_libs=yes
9577
  dynamic_linker='NetBSD ld.elf_so'
9578
  ;;
9579
9580
netbsd*)
9581
  version_type=sunos
9582
  need_lib_prefix=no
9583
  need_version=no
9584
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9587
    dynamic_linker='NetBSD (a.out) ld.so'
9588
  else
9589
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9590
    soname_spec='${libname}${release}${shared_ext}$major'
9591
    dynamic_linker='NetBSD ld.elf_so'
9592
  fi
9593
  shlibpath_var=LD_LIBRARY_PATH
9594
  shlibpath_overrides_runpath=yes
9595
  hardcode_into_libs=yes
9596
  ;;
9597
9598
newsos6)
9599
  version_type=linux
9600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601
  shlibpath_var=LD_LIBRARY_PATH
9602
  shlibpath_overrides_runpath=yes
9603
  ;;
9604
9605
*nto* | *qnx*)
9606
  version_type=qnx
9607
  need_lib_prefix=no
9608
  need_version=no
9609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610
  soname_spec='${libname}${release}${shared_ext}$major'
9611
  shlibpath_var=LD_LIBRARY_PATH
9612
  shlibpath_overrides_runpath=no
9613
  hardcode_into_libs=yes
9614
  dynamic_linker='ldqnx.so'
9615
  ;;
9616
9617
openbsd*)
9618
  version_type=sunos
9619
  sys_lib_dlsearch_path_spec="/usr/lib"
9620
  need_lib_prefix=no
9621
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9622
  case $host_os in
9623
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9624
    *)				need_version=no  ;;
9625
  esac
9626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9627
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9628
  shlibpath_var=LD_LIBRARY_PATH
9629
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9630
    case $host_os in
9631
      openbsd2.[89] | openbsd2.[89].*)
9632
	shlibpath_overrides_runpath=no
9633
	;;
9634
      *)
9635
	shlibpath_overrides_runpath=yes
9636
	;;
9637
      esac
9638
  else
9639
    shlibpath_overrides_runpath=yes
9640
  fi
9641
  ;;
9642
9643
os2*)
9644
  libname_spec='$name'
9645
  shrext_cmds=".dll"
9646
  need_lib_prefix=no
9647
  library_names_spec='$libname${shared_ext} $libname.a'
9648
  dynamic_linker='OS/2 ld.exe'
9649
  shlibpath_var=LIBPATH
9650
  ;;
9651
9652
osf3* | osf4* | osf5*)
9653
  version_type=osf
9654
  need_lib_prefix=no
9655
  need_version=no
9656
  soname_spec='${libname}${release}${shared_ext}$major'
9657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658
  shlibpath_var=LD_LIBRARY_PATH
9659
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9660
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9661
  ;;
9662
9663
rdos*)
9664
  dynamic_linker=no
9665
  ;;
9666
9667
solaris*)
9668
  version_type=linux
9669
  need_lib_prefix=no
9670
  need_version=no
9671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672
  soname_spec='${libname}${release}${shared_ext}$major'
9673
  shlibpath_var=LD_LIBRARY_PATH
9674
  shlibpath_overrides_runpath=yes
9675
  hardcode_into_libs=yes
9676
  # ldd complains unless libraries are executable
9677
  postinstall_cmds='chmod +x $lib'
9678
  ;;
9679
9680
sunos4*)
9681
  version_type=sunos
9682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9683
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9684
  shlibpath_var=LD_LIBRARY_PATH
9685
  shlibpath_overrides_runpath=yes
9686
  if test "$with_gnu_ld" = yes; then
9687
    need_lib_prefix=no
9688
  fi
9689
  need_version=yes
9690
  ;;
9691
9692
sysv4 | sysv4.3*)
9693
  version_type=linux
9694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695
  soname_spec='${libname}${release}${shared_ext}$major'
9696
  shlibpath_var=LD_LIBRARY_PATH
9697
  case $host_vendor in
9698
    sni)
9699
      shlibpath_overrides_runpath=no
9700
      need_lib_prefix=no
9701
      runpath_var=LD_RUN_PATH
9702
      ;;
9703
    siemens)
9704
      need_lib_prefix=no
9705
      ;;
9706
    motorola)
9707
      need_lib_prefix=no
9708
      need_version=no
9709
      shlibpath_overrides_runpath=no
9710
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9711
      ;;
9712
  esac
9713
  ;;
9714
9715
sysv4*MP*)
9716
  if test -d /usr/nec ;then
9717
    version_type=linux
9718
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9719
    soname_spec='$libname${shared_ext}.$major'
9720
    shlibpath_var=LD_LIBRARY_PATH
9721
  fi
9722
  ;;
9723
9724
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9725
  version_type=freebsd-elf
9726
  need_lib_prefix=no
9727
  need_version=no
9728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9729
  soname_spec='${libname}${release}${shared_ext}$major'
9730
  shlibpath_var=LD_LIBRARY_PATH
9731
  shlibpath_overrides_runpath=yes
9732
  hardcode_into_libs=yes
9733
  if test "$with_gnu_ld" = yes; then
9734
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9735
  else
9736
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9737
    case $host_os in
9738
      sco3.2v5*)
9739
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9740
	;;
9741
    esac
9742
  fi
9743
  sys_lib_dlsearch_path_spec='/usr/lib'
9744
  ;;
9745
9746
tpf*)
9747
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9748
  version_type=linux
9749
  need_lib_prefix=no
9750
  need_version=no
9751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752
  shlibpath_var=LD_LIBRARY_PATH
9753
  shlibpath_overrides_runpath=no
9754
  hardcode_into_libs=yes
9755
  ;;
9756
9757
uts4*)
9758
  version_type=linux
9759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760
  soname_spec='${libname}${release}${shared_ext}$major'
9761
  shlibpath_var=LD_LIBRARY_PATH
9762
  ;;
9763
9764
*)
9765
  dynamic_linker=no
9766
  ;;
9767
esac
9768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9769
$as_echo "$dynamic_linker" >&6; }
9770
test "$dynamic_linker" = no && can_build_shared=no
9771
9772
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9773
if test "$GCC" = yes; then
9774
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9775
fi
9776
9777
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9778
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9779
fi
9780
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9781
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9782
fi
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9871
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9872
hardcode_action=
9873
if test -n "$hardcode_libdir_flag_spec" ||
9874
   test -n "$runpath_var" ||
9875
   test "X$hardcode_automatic" = "Xyes" ; then
9876
9877
  # We can hardcode non-existent directories.
9878
  if test "$hardcode_direct" != no &&
9879
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9880
     # have to relink, otherwise we might link with an installed library
9881
     # when we should be linking with a yet-to-be-installed one
9882
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9883
     test "$hardcode_minus_L" != no; then
9884
    # Linking always hardcodes the temporary library directory.
9885
    hardcode_action=relink
9886
  else
9887
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9888
    hardcode_action=immediate
9889
  fi
9890
else
9891
  # We cannot hardcode anything, or else we can only hardcode existing
9892
  # directories.
9893
  hardcode_action=unsupported
9894
fi
9895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9896
$as_echo "$hardcode_action" >&6; }
9897
9898
if test "$hardcode_action" = relink ||
9899
   test "$inherit_rpath" = yes; then
9900
  # Fast installation is not supported
9901
  enable_fast_install=no
9902
elif test "$shlibpath_overrides_runpath" = yes ||
9903
     test "$enable_shared" = no; then
9904
  # Fast installation is not necessary
9905
  enable_fast_install=needless
9906
fi
9907
9908
9909
9910
9911
9912
9913
  if test "x$enable_dlopen" != xyes; then
9914
  enable_dlopen=unknown
9915
  enable_dlopen_self=unknown
9916
  enable_dlopen_self_static=unknown
9917
else
9918
  lt_cv_dlopen=no
9919
  lt_cv_dlopen_libs=
9920
9921
  case $host_os in
9922
  beos*)
9923
    lt_cv_dlopen="load_add_on"
9924
    lt_cv_dlopen_libs=
9925
    lt_cv_dlopen_self=yes
9926
    ;;
9927
9928
  mingw* | pw32* | cegcc*)
9929
    lt_cv_dlopen="LoadLibrary"
9930
    lt_cv_dlopen_libs=
9931
    ;;
9932
9933
  cygwin*)
9934
    lt_cv_dlopen="dlopen"
9935
    lt_cv_dlopen_libs=
9936
    ;;
9937
9938
  darwin*)
9939
  # if libdl is installed we need to link against it
9940
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9941
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9942
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9943
  $as_echo_n "(cached) " >&6
9944
else
9945
  ac_check_lib_save_LIBS=$LIBS
9946
LIBS="-ldl  $LIBS"
9947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948
/* end confdefs.h.  */
9949
9950
/* Override any GCC internal prototype to avoid an error.
9951
   Use char because int might match the return type of a GCC
9952
   builtin and then its argument prototype would still apply.  */
9953
#ifdef __cplusplus
9954
extern "C"
9955
#endif
9956
char dlopen ();
9957
int
9958
main ()
9959
{
9960
return dlopen ();
9961
  ;
9962
  return 0;
9963
}
9964
_ACEOF
9965
if ac_fn_c_try_link "$LINENO"; then :
9966
  ac_cv_lib_dl_dlopen=yes
9967
else
9968
  ac_cv_lib_dl_dlopen=no
9969
fi
9970
rm -f core conftest.err conftest.$ac_objext \
9971
    conftest$ac_exeext conftest.$ac_ext
9972
LIBS=$ac_check_lib_save_LIBS
9973
fi
9974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9975
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9976
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9977
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9978
else
9979
9980
    lt_cv_dlopen="dyld"
9981
    lt_cv_dlopen_libs=
9982
    lt_cv_dlopen_self=yes
9983
9984
fi
9985
9986
    ;;
9987
9988
  *)
9989
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9990
if test "x$ac_cv_func_shl_load" = x""yes; then :
9991
  lt_cv_dlopen="shl_load"
9992
else
9993
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9994
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9995
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9996
  $as_echo_n "(cached) " >&6
9997
else
9998
  ac_check_lib_save_LIBS=$LIBS
9999
LIBS="-ldld  $LIBS"
10000
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001
/* end confdefs.h.  */
10002
10003
/* Override any GCC internal prototype to avoid an error.
10004
   Use char because int might match the return type of a GCC
10005
   builtin and then its argument prototype would still apply.  */
10006
#ifdef __cplusplus
10007
extern "C"
10008
#endif
10009
char shl_load ();
10010
int
10011
main ()
10012
{
10013
return shl_load ();
10014
  ;
10015
  return 0;
10016
}
10017
_ACEOF
10018
if ac_fn_c_try_link "$LINENO"; then :
10019
  ac_cv_lib_dld_shl_load=yes
10020
else
10021
  ac_cv_lib_dld_shl_load=no
10022
fi
10023
rm -f core conftest.err conftest.$ac_objext \
10024
    conftest$ac_exeext conftest.$ac_ext
10025
LIBS=$ac_check_lib_save_LIBS
10026
fi
10027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10028
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10029
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10030
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10031
else
10032
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10033
if test "x$ac_cv_func_dlopen" = x""yes; then :
10034
  lt_cv_dlopen="dlopen"
10035
else
10036
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10037
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10038
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10039
  $as_echo_n "(cached) " >&6
10040
else
10041
  ac_check_lib_save_LIBS=$LIBS
10042
LIBS="-ldl  $LIBS"
10043
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044
/* end confdefs.h.  */
10045
10046
/* Override any GCC internal prototype to avoid an error.
10047
   Use char because int might match the return type of a GCC
10048
   builtin and then its argument prototype would still apply.  */
10049
#ifdef __cplusplus
10050
extern "C"
10051
#endif
10052
char dlopen ();
10053
int
10054
main ()
10055
{
10056
return dlopen ();
10057
  ;
10058
  return 0;
10059
}
10060
_ACEOF
10061
if ac_fn_c_try_link "$LINENO"; then :
10062
  ac_cv_lib_dl_dlopen=yes
10063
else
10064
  ac_cv_lib_dl_dlopen=no
10065
fi
10066
rm -f core conftest.err conftest.$ac_objext \
10067
    conftest$ac_exeext conftest.$ac_ext
10068
LIBS=$ac_check_lib_save_LIBS
10069
fi
10070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10071
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10072
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10073
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10074
else
10075
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10076
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10077
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10078
  $as_echo_n "(cached) " >&6
10079
else
10080
  ac_check_lib_save_LIBS=$LIBS
10081
LIBS="-lsvld  $LIBS"
10082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083
/* end confdefs.h.  */
10084
10085
/* Override any GCC internal prototype to avoid an error.
10086
   Use char because int might match the return type of a GCC
10087
   builtin and then its argument prototype would still apply.  */
10088
#ifdef __cplusplus
10089
extern "C"
10090
#endif
10091
char dlopen ();
10092
int
10093
main ()
10094
{
10095
return dlopen ();
10096
  ;
10097
  return 0;
10098
}
10099
_ACEOF
10100
if ac_fn_c_try_link "$LINENO"; then :
10101
  ac_cv_lib_svld_dlopen=yes
10102
else
10103
  ac_cv_lib_svld_dlopen=no
10104
fi
10105
rm -f core conftest.err conftest.$ac_objext \
10106
    conftest$ac_exeext conftest.$ac_ext
10107
LIBS=$ac_check_lib_save_LIBS
10108
fi
10109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10110
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10111
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10112
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10113
else
10114
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10115
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10116
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10117
  $as_echo_n "(cached) " >&6
10118
else
10119
  ac_check_lib_save_LIBS=$LIBS
10120
LIBS="-ldld  $LIBS"
10121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122
/* end confdefs.h.  */
10123
10124
/* Override any GCC internal prototype to avoid an error.
10125
   Use char because int might match the return type of a GCC
10126
   builtin and then its argument prototype would still apply.  */
10127
#ifdef __cplusplus
10128
extern "C"
10129
#endif
10130
char dld_link ();
10131
int
10132
main ()
10133
{
10134
return dld_link ();
10135
  ;
10136
  return 0;
10137
}
10138
_ACEOF
10139
if ac_fn_c_try_link "$LINENO"; then :
10140
  ac_cv_lib_dld_dld_link=yes
10141
else
10142
  ac_cv_lib_dld_dld_link=no
10143
fi
10144
rm -f core conftest.err conftest.$ac_objext \
10145
    conftest$ac_exeext conftest.$ac_ext
10146
LIBS=$ac_check_lib_save_LIBS
10147
fi
10148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10149
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10150
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10151
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10152
fi
10153
10154
10155
fi
10156
10157
10158
fi
10159
10160
10161
fi
10162
10163
10164
fi
10165
10166
10167
fi
10168
10169
    ;;
10170
  esac
10171
10172
  if test "x$lt_cv_dlopen" != xno; then
10173
    enable_dlopen=yes
10174
  else
10175
    enable_dlopen=no
10176
  fi
10177
10178
  case $lt_cv_dlopen in
10179
  dlopen)
10180
    save_CPPFLAGS="$CPPFLAGS"
10181
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10182
10183
    save_LDFLAGS="$LDFLAGS"
10184
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10185
10186
    save_LIBS="$LIBS"
10187
    LIBS="$lt_cv_dlopen_libs $LIBS"
10188
10189
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10190
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10191
if test "${lt_cv_dlopen_self+set}" = set; then :
10192
  $as_echo_n "(cached) " >&6
10193
else
10194
  	  if test "$cross_compiling" = yes; then :
10195
  lt_cv_dlopen_self=cross
10196
else
10197
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10198
  lt_status=$lt_dlunknown
10199
  cat > conftest.$ac_ext <<_LT_EOF
6 by edam
- fixed .am files so the library gets built!
10200
#line 10200 "configure"
5 by edam
- updated README
10201
#include "confdefs.h"
10202
10203
#if HAVE_DLFCN_H
10204
#include <dlfcn.h>
10205
#endif
10206
10207
#include <stdio.h>
10208
10209
#ifdef RTLD_GLOBAL
10210
#  define LT_DLGLOBAL		RTLD_GLOBAL
10211
#else
10212
#  ifdef DL_GLOBAL
10213
#    define LT_DLGLOBAL		DL_GLOBAL
10214
#  else
10215
#    define LT_DLGLOBAL		0
10216
#  endif
10217
#endif
10218
10219
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10220
   find out it does not work in some platform. */
10221
#ifndef LT_DLLAZY_OR_NOW
10222
#  ifdef RTLD_LAZY
10223
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10224
#  else
10225
#    ifdef DL_LAZY
10226
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10227
#    else
10228
#      ifdef RTLD_NOW
10229
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10230
#      else
10231
#        ifdef DL_NOW
10232
#          define LT_DLLAZY_OR_NOW	DL_NOW
10233
#        else
10234
#          define LT_DLLAZY_OR_NOW	0
10235
#        endif
10236
#      endif
10237
#    endif
10238
#  endif
10239
#endif
10240
10241
void fnord() { int i=42;}
10242
int main ()
10243
{
10244
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10245
  int status = $lt_dlunknown;
10246
10247
  if (self)
10248
    {
10249
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10250
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10251
      /* dlclose (self); */
10252
    }
10253
  else
10254
    puts (dlerror ());
10255
10256
  return status;
10257
}
10258
_LT_EOF
10259
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10260
  (eval $ac_link) 2>&5
10261
  ac_status=$?
10262
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10264
    (./conftest; exit; ) >&5 2>/dev/null
10265
    lt_status=$?
10266
    case x$lt_status in
10267
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10268
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10269
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10270
    esac
10271
  else :
10272
    # compilation failed
10273
    lt_cv_dlopen_self=no
10274
  fi
10275
fi
10276
rm -fr conftest*
10277
10278
10279
fi
10280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10281
$as_echo "$lt_cv_dlopen_self" >&6; }
10282
10283
    if test "x$lt_cv_dlopen_self" = xyes; then
10284
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10285
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10286
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10287
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10288
  $as_echo_n "(cached) " >&6
10289
else
10290
  	  if test "$cross_compiling" = yes; then :
10291
  lt_cv_dlopen_self_static=cross
10292
else
10293
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10294
  lt_status=$lt_dlunknown
10295
  cat > conftest.$ac_ext <<_LT_EOF
6 by edam
- fixed .am files so the library gets built!
10296
#line 10296 "configure"
5 by edam
- updated README
10297
#include "confdefs.h"
10298
10299
#if HAVE_DLFCN_H
10300
#include <dlfcn.h>
10301
#endif
10302
10303
#include <stdio.h>
10304
10305
#ifdef RTLD_GLOBAL
10306
#  define LT_DLGLOBAL		RTLD_GLOBAL
10307
#else
10308
#  ifdef DL_GLOBAL
10309
#    define LT_DLGLOBAL		DL_GLOBAL
10310
#  else
10311
#    define LT_DLGLOBAL		0
10312
#  endif
10313
#endif
10314
10315
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10316
   find out it does not work in some platform. */
10317
#ifndef LT_DLLAZY_OR_NOW
10318
#  ifdef RTLD_LAZY
10319
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10320
#  else
10321
#    ifdef DL_LAZY
10322
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10323
#    else
10324
#      ifdef RTLD_NOW
10325
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10326
#      else
10327
#        ifdef DL_NOW
10328
#          define LT_DLLAZY_OR_NOW	DL_NOW
10329
#        else
10330
#          define LT_DLLAZY_OR_NOW	0
10331
#        endif
10332
#      endif
10333
#    endif
10334
#  endif
10335
#endif
10336
10337
void fnord() { int i=42;}
10338
int main ()
10339
{
10340
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341
  int status = $lt_dlunknown;
10342
10343
  if (self)
10344
    {
10345
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10346
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347
      /* dlclose (self); */
10348
    }
10349
  else
10350
    puts (dlerror ());
10351
10352
  return status;
10353
}
10354
_LT_EOF
10355
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10356
  (eval $ac_link) 2>&5
10357
  ac_status=$?
10358
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10360
    (./conftest; exit; ) >&5 2>/dev/null
10361
    lt_status=$?
10362
    case x$lt_status in
10363
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10364
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10365
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10366
    esac
10367
  else :
10368
    # compilation failed
10369
    lt_cv_dlopen_self_static=no
10370
  fi
10371
fi
10372
rm -fr conftest*
10373
10374
10375
fi
10376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10377
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10378
    fi
10379
10380
    CPPFLAGS="$save_CPPFLAGS"
10381
    LDFLAGS="$save_LDFLAGS"
10382
    LIBS="$save_LIBS"
10383
    ;;
10384
  esac
10385
10386
  case $lt_cv_dlopen_self in
10387
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10388
  *) enable_dlopen_self=unknown ;;
10389
  esac
10390
10391
  case $lt_cv_dlopen_self_static in
10392
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10393
  *) enable_dlopen_self_static=unknown ;;
10394
  esac
10395
fi
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
striplib=
10414
old_striplib=
10415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10416
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10417
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10418
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10419
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10420
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10421
$as_echo "yes" >&6; }
10422
else
10423
# FIXME - insert some real tests, host_os isn't really good enough
10424
  case $host_os in
10425
  darwin*)
10426
    if test -n "$STRIP" ; then
10427
      striplib="$STRIP -x"
10428
      old_striplib="$STRIP -S"
10429
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430
$as_echo "yes" >&6; }
10431
    else
10432
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433
$as_echo "no" >&6; }
10434
    fi
10435
    ;;
10436
  *)
10437
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438
$as_echo "no" >&6; }
10439
    ;;
10440
  esac
10441
fi
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
  # Report which library types will actually be built
10455
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10456
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10458
$as_echo "$can_build_shared" >&6; }
10459
10460
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10461
$as_echo_n "checking whether to build shared libraries... " >&6; }
10462
  test "$can_build_shared" = "no" && enable_shared=no
10463
10464
  # On AIX, shared libraries and static libraries use the same namespace, and
10465
  # are all built from PIC.
10466
  case $host_os in
10467
  aix3*)
10468
    test "$enable_shared" = yes && enable_static=no
10469
    if test -n "$RANLIB"; then
10470
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10471
      postinstall_cmds='$RANLIB $lib'
10472
    fi
10473
    ;;
10474
10475
  aix[4-9]*)
10476
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10477
      test "$enable_shared" = yes && enable_static=no
10478
    fi
10479
    ;;
10480
  esac
10481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10482
$as_echo "$enable_shared" >&6; }
10483
10484
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10485
$as_echo_n "checking whether to build static libraries... " >&6; }
10486
  # Make sure either enable_shared or enable_static is yes.
10487
  test "$enable_shared" = yes || enable_static=yes
10488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10489
$as_echo "$enable_static" >&6; }
10490
10491
10492
10493
10494
fi
10495
ac_ext=c
10496
ac_cpp='$CPP $CPPFLAGS'
10497
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10498
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10499
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10500
10501
CC="$lt_save_CC"
10502
10503
6 by edam
- fixed .am files so the library gets built!
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
        ac_config_commands="$ac_config_commands libtool"
10516
10517
10518
10519
10520
# Only expand once:
10521
10522
10523
10524
# checks for programs.
10525
ac_ext=cpp
10526
ac_cpp='$CXXCPP $CPPFLAGS'
10527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10530
if test -z "$CXX"; then
10531
  if test -n "$CCC"; then
10532
    CXX=$CCC
10533
  else
10534
    if test -n "$ac_tool_prefix"; then
10535
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10536
  do
10537
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10538
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540
$as_echo_n "checking for $ac_word... " >&6; }
10541
if test "${ac_cv_prog_CXX+set}" = set; then :
10542
  $as_echo_n "(cached) " >&6
10543
else
10544
  if test -n "$CXX"; then
10545
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10546
else
10547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548
for as_dir in $PATH
10549
do
10550
  IFS=$as_save_IFS
10551
  test -z "$as_dir" && as_dir=.
10552
    for ac_exec_ext in '' $ac_executable_extensions; do
10553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10555
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556
    break 2
10557
  fi
10558
done
10559
  done
10560
IFS=$as_save_IFS
10561
10562
fi
10563
fi
10564
CXX=$ac_cv_prog_CXX
10565
if test -n "$CXX"; then
10566
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10567
$as_echo "$CXX" >&6; }
10568
else
10569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570
$as_echo "no" >&6; }
10571
fi
10572
10573
10574
    test -n "$CXX" && break
10575
  done
10576
fi
10577
if test -z "$CXX"; then
10578
  ac_ct_CXX=$CXX
10579
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10580
do
10581
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10582
set dummy $ac_prog; ac_word=$2
10583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584
$as_echo_n "checking for $ac_word... " >&6; }
10585
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10586
  $as_echo_n "(cached) " >&6
10587
else
10588
  if test -n "$ac_ct_CXX"; then
10589
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10590
else
10591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592
for as_dir in $PATH
10593
do
10594
  IFS=$as_save_IFS
10595
  test -z "$as_dir" && as_dir=.
10596
    for ac_exec_ext in '' $ac_executable_extensions; do
10597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598
    ac_cv_prog_ac_ct_CXX="$ac_prog"
10599
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600
    break 2
10601
  fi
10602
done
10603
  done
10604
IFS=$as_save_IFS
10605
10606
fi
10607
fi
10608
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10609
if test -n "$ac_ct_CXX"; then
10610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10611
$as_echo "$ac_ct_CXX" >&6; }
10612
else
10613
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614
$as_echo "no" >&6; }
10615
fi
10616
10617
10618
  test -n "$ac_ct_CXX" && break
10619
done
10620
10621
  if test "x$ac_ct_CXX" = x; then
10622
    CXX="g++"
10623
  else
10624
    case $cross_compiling:$ac_tool_warned in
10625
yes:)
10626
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10627
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10628
ac_tool_warned=yes ;;
10629
esac
10630
    CXX=$ac_ct_CXX
10631
  fi
10632
fi
10633
10634
  fi
10635
fi
10636
# Provide some information about the compiler.
10637
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10638
set X $ac_compile
10639
ac_compiler=$2
10640
for ac_option in --version -v -V -qversion; do
10641
  { { ac_try="$ac_compiler $ac_option >&5"
10642
case "(($ac_try" in
10643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644
  *) ac_try_echo=$ac_try;;
10645
esac
10646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10647
$as_echo "$ac_try_echo"; } >&5
10648
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10649
  ac_status=$?
10650
  if test -s conftest.err; then
10651
    sed '10a\
10652
... rest of stderr output deleted ...
10653
         10q' conftest.err >conftest.er1
10654
    cat conftest.er1 >&5
10655
    rm -f conftest.er1 conftest.err
10656
  fi
10657
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658
  test $ac_status = 0; }
10659
done
10660
10661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10662
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10663
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10664
  $as_echo_n "(cached) " >&6
10665
else
10666
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667
/* end confdefs.h.  */
10668
10669
int
10670
main ()
10671
{
10672
#ifndef __GNUC__
10673
       choke me
10674
#endif
10675
10676
  ;
10677
  return 0;
10678
}
10679
_ACEOF
10680
if ac_fn_cxx_try_compile "$LINENO"; then :
10681
  ac_compiler_gnu=yes
10682
else
10683
  ac_compiler_gnu=no
10684
fi
10685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10687
10688
fi
10689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10690
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10691
if test $ac_compiler_gnu = yes; then
10692
  GXX=yes
10693
else
10694
  GXX=
10695
fi
10696
ac_test_CXXFLAGS=${CXXFLAGS+set}
10697
ac_save_CXXFLAGS=$CXXFLAGS
10698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10699
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10700
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10701
  $as_echo_n "(cached) " >&6
10702
else
10703
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10704
   ac_cxx_werror_flag=yes
10705
   ac_cv_prog_cxx_g=no
10706
   CXXFLAGS="-g"
10707
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708
/* end confdefs.h.  */
10709
10710
int
10711
main ()
10712
{
10713
10714
  ;
10715
  return 0;
10716
}
10717
_ACEOF
10718
if ac_fn_cxx_try_compile "$LINENO"; then :
10719
  ac_cv_prog_cxx_g=yes
10720
else
10721
  CXXFLAGS=""
10722
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723
/* end confdefs.h.  */
10724
10725
int
10726
main ()
10727
{
10728
10729
  ;
10730
  return 0;
10731
}
10732
_ACEOF
10733
if ac_fn_cxx_try_compile "$LINENO"; then :
10734
10735
else
10736
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10737
	 CXXFLAGS="-g"
10738
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739
/* end confdefs.h.  */
10740
10741
int
10742
main ()
10743
{
10744
10745
  ;
10746
  return 0;
10747
}
10748
_ACEOF
10749
if ac_fn_cxx_try_compile "$LINENO"; then :
10750
  ac_cv_prog_cxx_g=yes
10751
fi
10752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753
fi
10754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755
fi
10756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10758
fi
10759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10760
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10761
if test "$ac_test_CXXFLAGS" = set; then
10762
  CXXFLAGS=$ac_save_CXXFLAGS
10763
elif test $ac_cv_prog_cxx_g = yes; then
10764
  if test "$GXX" = yes; then
10765
    CXXFLAGS="-g -O2"
10766
  else
10767
    CXXFLAGS="-g"
10768
  fi
10769
else
10770
  if test "$GXX" = yes; then
10771
    CXXFLAGS="-O2"
10772
  else
10773
    CXXFLAGS=
10774
  fi
10775
fi
10776
ac_ext=c
10777
ac_cpp='$CPP $CPPFLAGS'
10778
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10781
10782
depcc="$CXX"  am_compiler_list=
10783
10784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10785
$as_echo_n "checking dependency style of $depcc... " >&6; }
10786
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10787
  $as_echo_n "(cached) " >&6
10788
else
10789
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10790
  # We make a subdir and do the tests there.  Otherwise we can end up
10791
  # making bogus files that we don't know about and never remove.  For
10792
  # instance it was reported that on HP-UX the gcc test will end up
10793
  # making a dummy file named `D' -- because `-MD' means `put the output
10794
  # in D'.
10795
  mkdir conftest.dir
10796
  # Copy depcomp to subdir because otherwise we won't find it if we're
10797
  # using a relative directory.
10798
  cp "$am_depcomp" conftest.dir
10799
  cd conftest.dir
10800
  # We will build objects and dependencies in a subdirectory because
10801
  # it helps to detect inapplicable dependency modes.  For instance
10802
  # both Tru64's cc and ICC support -MD to output dependencies as a
10803
  # side effect of compilation, but ICC will put the dependencies in
10804
  # the current directory while Tru64 will put them in the object
10805
  # directory.
10806
  mkdir sub
10807
10808
  am_cv_CXX_dependencies_compiler_type=none
10809
  if test "$am_compiler_list" = ""; then
10810
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10811
  fi
10812
  am__universal=false
10813
  case " $depcc " in #(
10814
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10815
     esac
10816
10817
  for depmode in $am_compiler_list; do
10818
    # Setup a source with many dependencies, because some compilers
10819
    # like to wrap large dependency lists on column 80 (with \), and
10820
    # we should not choose a depcomp mode which is confused by this.
10821
    #
10822
    # We need to recreate these files for each test, as the compiler may
10823
    # overwrite some of them when testing with obscure command lines.
10824
    # This happens at least with the AIX C compiler.
10825
    : > sub/conftest.c
10826
    for i in 1 2 3 4 5 6; do
10827
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10828
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10829
      # Solaris 8's {/usr,}/bin/sh.
10830
      touch sub/conftst$i.h
10831
    done
10832
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10833
10834
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10835
    # mode.  It turns out that the SunPro C++ compiler does not properly
10836
    # handle `-M -o', and we need to detect this.  Also, some Intel
10837
    # versions had trouble with output in subdirs
10838
    am__obj=sub/conftest.${OBJEXT-o}
10839
    am__minus_obj="-o $am__obj"
10840
    case $depmode in
10841
    gcc)
10842
      # This depmode causes a compiler race in universal mode.
10843
      test "$am__universal" = false || continue
10844
      ;;
10845
    nosideeffect)
10846
      # after this tag, mechanisms are not by side-effect, so they'll
10847
      # only be used when explicitly requested
10848
      if test "x$enable_dependency_tracking" = xyes; then
10849
	continue
10850
      else
10851
	break
10852
      fi
10853
      ;;
10854
    msvisualcpp | msvcmsys)
10855
      # This compiler won't grok `-c -o', but also, the minuso test has
10856
      # not run yet.  These depmodes are late enough in the game, and
10857
      # so weak that their functioning should not be impacted.
10858
      am__obj=conftest.${OBJEXT-o}
10859
      am__minus_obj=
10860
      ;;
10861
    none) break ;;
10862
    esac
10863
    if depmode=$depmode \
10864
       source=sub/conftest.c object=$am__obj \
10865
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10866
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10867
         >/dev/null 2>conftest.err &&
10868
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10869
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10870
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10871
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10872
      # icc doesn't choke on unknown options, it will just issue warnings
10873
      # or remarks (even with -Werror).  So we grep stderr for any message
10874
      # that says an option was ignored or not supported.
10875
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10876
      #   icc: Command line warning: ignoring option '-M'; no argument required
10877
      # The diagnosis changed in icc 8.0:
10878
      #   icc: Command line remark: option '-MP' not supported
10879
      if (grep 'ignoring option' conftest.err ||
10880
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10881
        am_cv_CXX_dependencies_compiler_type=$depmode
10882
        break
10883
      fi
10884
    fi
10885
  done
10886
10887
  cd ..
10888
  rm -rf conftest.dir
10889
else
10890
  am_cv_CXX_dependencies_compiler_type=none
10891
fi
10892
10893
fi
10894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10895
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10896
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10897
10898
 if
10899
  test "x$enable_dependency_tracking" != xno \
10900
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10901
  am__fastdepCXX_TRUE=
10902
  am__fastdepCXX_FALSE='#'
10903
else
10904
  am__fastdepCXX_TRUE='#'
10905
  am__fastdepCXX_FALSE=
10906
fi
10907
10908
10909
10910
ac_ext=cpp
10911
ac_cpp='$CXXCPP $CPPFLAGS'
10912
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10915
if test -z "$CXX"; then
10916
  if test -n "$CCC"; then
10917
    CXX=$CCC
10918
  else
10919
    if test -n "$ac_tool_prefix"; then
10920
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10921
  do
10922
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10923
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925
$as_echo_n "checking for $ac_word... " >&6; }
10926
if test "${ac_cv_prog_CXX+set}" = set; then :
10927
  $as_echo_n "(cached) " >&6
10928
else
10929
  if test -n "$CXX"; then
10930
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10931
else
10932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933
for as_dir in $PATH
10934
do
10935
  IFS=$as_save_IFS
10936
  test -z "$as_dir" && as_dir=.
10937
    for ac_exec_ext in '' $ac_executable_extensions; do
10938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10940
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941
    break 2
10942
  fi
10943
done
10944
  done
10945
IFS=$as_save_IFS
10946
10947
fi
10948
fi
10949
CXX=$ac_cv_prog_CXX
10950
if test -n "$CXX"; then
10951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10952
$as_echo "$CXX" >&6; }
10953
else
10954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955
$as_echo "no" >&6; }
10956
fi
10957
10958
10959
    test -n "$CXX" && break
10960
  done
10961
fi
10962
if test -z "$CXX"; then
10963
  ac_ct_CXX=$CXX
10964
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10965
do
10966
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10967
set dummy $ac_prog; ac_word=$2
10968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969
$as_echo_n "checking for $ac_word... " >&6; }
10970
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10971
  $as_echo_n "(cached) " >&6
10972
else
10973
  if test -n "$ac_ct_CXX"; then
10974
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10975
else
10976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977
for as_dir in $PATH
10978
do
10979
  IFS=$as_save_IFS
10980
  test -z "$as_dir" && as_dir=.
10981
    for ac_exec_ext in '' $ac_executable_extensions; do
10982
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983
    ac_cv_prog_ac_ct_CXX="$ac_prog"
10984
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985
    break 2
10986
  fi
10987
done
10988
  done
10989
IFS=$as_save_IFS
10990
10991
fi
10992
fi
10993
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10994
if test -n "$ac_ct_CXX"; then
10995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10996
$as_echo "$ac_ct_CXX" >&6; }
10997
else
10998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999
$as_echo "no" >&6; }
11000
fi
11001
11002
11003
  test -n "$ac_ct_CXX" && break
11004
done
11005
11006
  if test "x$ac_ct_CXX" = x; then
11007
    CXX="g++"
11008
  else
11009
    case $cross_compiling:$ac_tool_warned in
11010
yes:)
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11012
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11013
ac_tool_warned=yes ;;
11014
esac
11015
    CXX=$ac_ct_CXX
11016
  fi
11017
fi
11018
11019
  fi
11020
fi
11021
# Provide some information about the compiler.
11022
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11023
set X $ac_compile
11024
ac_compiler=$2
11025
for ac_option in --version -v -V -qversion; do
11026
  { { ac_try="$ac_compiler $ac_option >&5"
11027
case "(($ac_try" in
11028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029
  *) ac_try_echo=$ac_try;;
11030
esac
11031
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11032
$as_echo "$ac_try_echo"; } >&5
11033
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11034
  ac_status=$?
11035
  if test -s conftest.err; then
11036
    sed '10a\
11037
... rest of stderr output deleted ...
11038
         10q' conftest.err >conftest.er1
11039
    cat conftest.er1 >&5
11040
    rm -f conftest.er1 conftest.err
11041
  fi
11042
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043
  test $ac_status = 0; }
11044
done
11045
11046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11047
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11048
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11049
  $as_echo_n "(cached) " >&6
11050
else
11051
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052
/* end confdefs.h.  */
11053
11054
int
11055
main ()
11056
{
11057
#ifndef __GNUC__
11058
       choke me
11059
#endif
11060
11061
  ;
11062
  return 0;
11063
}
11064
_ACEOF
11065
if ac_fn_cxx_try_compile "$LINENO"; then :
11066
  ac_compiler_gnu=yes
11067
else
11068
  ac_compiler_gnu=no
11069
fi
11070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11072
11073
fi
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11075
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11076
if test $ac_compiler_gnu = yes; then
11077
  GXX=yes
11078
else
11079
  GXX=
11080
fi
11081
ac_test_CXXFLAGS=${CXXFLAGS+set}
11082
ac_save_CXXFLAGS=$CXXFLAGS
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11084
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11085
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11086
  $as_echo_n "(cached) " >&6
11087
else
11088
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11089
   ac_cxx_werror_flag=yes
11090
   ac_cv_prog_cxx_g=no
11091
   CXXFLAGS="-g"
11092
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093
/* end confdefs.h.  */
11094
11095
int
11096
main ()
11097
{
11098
11099
  ;
11100
  return 0;
11101
}
11102
_ACEOF
11103
if ac_fn_cxx_try_compile "$LINENO"; then :
11104
  ac_cv_prog_cxx_g=yes
11105
else
11106
  CXXFLAGS=""
11107
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108
/* end confdefs.h.  */
11109
11110
int
11111
main ()
11112
{
11113
11114
  ;
11115
  return 0;
11116
}
11117
_ACEOF
11118
if ac_fn_cxx_try_compile "$LINENO"; then :
11119
11120
else
11121
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11122
	 CXXFLAGS="-g"
11123
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124
/* end confdefs.h.  */
11125
11126
int
11127
main ()
11128
{
11129
11130
  ;
11131
  return 0;
11132
}
11133
_ACEOF
11134
if ac_fn_cxx_try_compile "$LINENO"; then :
11135
  ac_cv_prog_cxx_g=yes
11136
fi
11137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138
fi
11139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140
fi
11141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11143
fi
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11145
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11146
if test "$ac_test_CXXFLAGS" = set; then
11147
  CXXFLAGS=$ac_save_CXXFLAGS
11148
elif test $ac_cv_prog_cxx_g = yes; then
11149
  if test "$GXX" = yes; then
11150
    CXXFLAGS="-g -O2"
11151
  else
11152
    CXXFLAGS="-g"
11153
  fi
11154
else
11155
  if test "$GXX" = yes; then
11156
    CXXFLAGS="-O2"
11157
  else
11158
    CXXFLAGS=
11159
  fi
11160
fi
11161
ac_ext=c
11162
ac_cpp='$CPP $CPPFLAGS'
11163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166
11167
depcc="$CXX"  am_compiler_list=
11168
11169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11170
$as_echo_n "checking dependency style of $depcc... " >&6; }
11171
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11172
  $as_echo_n "(cached) " >&6
11173
else
11174
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11175
  # We make a subdir and do the tests there.  Otherwise we can end up
11176
  # making bogus files that we don't know about and never remove.  For
11177
  # instance it was reported that on HP-UX the gcc test will end up
11178
  # making a dummy file named `D' -- because `-MD' means `put the output
11179
  # in D'.
11180
  mkdir conftest.dir
11181
  # Copy depcomp to subdir because otherwise we won't find it if we're
11182
  # using a relative directory.
11183
  cp "$am_depcomp" conftest.dir
11184
  cd conftest.dir
11185
  # We will build objects and dependencies in a subdirectory because
11186
  # it helps to detect inapplicable dependency modes.  For instance
11187
  # both Tru64's cc and ICC support -MD to output dependencies as a
11188
  # side effect of compilation, but ICC will put the dependencies in
11189
  # the current directory while Tru64 will put them in the object
11190
  # directory.
11191
  mkdir sub
11192
11193
  am_cv_CXX_dependencies_compiler_type=none
11194
  if test "$am_compiler_list" = ""; then
11195
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11196
  fi
11197
  am__universal=false
11198
  case " $depcc " in #(
11199
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11200
     esac
11201
11202
  for depmode in $am_compiler_list; do
11203
    # Setup a source with many dependencies, because some compilers
11204
    # like to wrap large dependency lists on column 80 (with \), and
11205
    # we should not choose a depcomp mode which is confused by this.
11206
    #
11207
    # We need to recreate these files for each test, as the compiler may
11208
    # overwrite some of them when testing with obscure command lines.
11209
    # This happens at least with the AIX C compiler.
11210
    : > sub/conftest.c
11211
    for i in 1 2 3 4 5 6; do
11212
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11213
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11214
      # Solaris 8's {/usr,}/bin/sh.
11215
      touch sub/conftst$i.h
11216
    done
11217
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11218
11219
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11220
    # mode.  It turns out that the SunPro C++ compiler does not properly
11221
    # handle `-M -o', and we need to detect this.  Also, some Intel
11222
    # versions had trouble with output in subdirs
11223
    am__obj=sub/conftest.${OBJEXT-o}
11224
    am__minus_obj="-o $am__obj"
11225
    case $depmode in
11226
    gcc)
11227
      # This depmode causes a compiler race in universal mode.
11228
      test "$am__universal" = false || continue
11229
      ;;
11230
    nosideeffect)
11231
      # after this tag, mechanisms are not by side-effect, so they'll
11232
      # only be used when explicitly requested
11233
      if test "x$enable_dependency_tracking" = xyes; then
11234
	continue
11235
      else
11236
	break
11237
      fi
11238
      ;;
11239
    msvisualcpp | msvcmsys)
11240
      # This compiler won't grok `-c -o', but also, the minuso test has
11241
      # not run yet.  These depmodes are late enough in the game, and
11242
      # so weak that their functioning should not be impacted.
11243
      am__obj=conftest.${OBJEXT-o}
11244
      am__minus_obj=
11245
      ;;
11246
    none) break ;;
11247
    esac
11248
    if depmode=$depmode \
11249
       source=sub/conftest.c object=$am__obj \
11250
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11251
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11252
         >/dev/null 2>conftest.err &&
11253
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11254
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11255
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11256
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11257
      # icc doesn't choke on unknown options, it will just issue warnings
11258
      # or remarks (even with -Werror).  So we grep stderr for any message
11259
      # that says an option was ignored or not supported.
11260
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11261
      #   icc: Command line warning: ignoring option '-M'; no argument required
11262
      # The diagnosis changed in icc 8.0:
11263
      #   icc: Command line remark: option '-MP' not supported
11264
      if (grep 'ignoring option' conftest.err ||
11265
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11266
        am_cv_CXX_dependencies_compiler_type=$depmode
11267
        break
11268
      fi
11269
    fi
11270
  done
11271
11272
  cd ..
11273
  rm -rf conftest.dir
11274
else
11275
  am_cv_CXX_dependencies_compiler_type=none
11276
fi
11277
11278
fi
11279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11280
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11281
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11282
11283
 if
11284
  test "x$enable_dependency_tracking" != xno \
11285
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11286
  am__fastdepCXX_TRUE=
11287
  am__fastdepCXX_FALSE='#'
11288
else
11289
  am__fastdepCXX_TRUE='#'
11290
  am__fastdepCXX_FALSE=
11291
fi
11292
11293
11294
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11295
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11296
    (test "X$CXX" != "Xg++"))) ; then
11297
  ac_ext=cpp
11298
ac_cpp='$CXXCPP $CPPFLAGS'
11299
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11300
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11301
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11303
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11304
if test -z "$CXXCPP"; then
11305
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11306
  $as_echo_n "(cached) " >&6
11307
else
11308
      # Double quotes because CXXCPP needs to be expanded
11309
    for CXXCPP in "$CXX -E" "/lib/cpp"
11310
    do
11311
      ac_preproc_ok=false
11312
for ac_cxx_preproc_warn_flag in '' yes
11313
do
11314
  # Use a header file that comes with gcc, so configuring glibc
11315
  # with a fresh cross-compiler works.
11316
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11317
  # <limits.h> exists even on freestanding compilers.
11318
  # On the NeXT, cc -E runs the code through the compiler's parser,
11319
  # not just through cpp. "Syntax error" is here to catch this case.
11320
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321
/* end confdefs.h.  */
11322
#ifdef __STDC__
11323
# include <limits.h>
11324
#else
11325
# include <assert.h>
11326
#endif
11327
		     Syntax error
11328
_ACEOF
11329
if ac_fn_cxx_try_cpp "$LINENO"; then :
11330
11331
else
11332
  # Broken: fails on valid input.
11333
continue
11334
fi
11335
rm -f conftest.err conftest.$ac_ext
11336
11337
  # OK, works on sane cases.  Now check whether nonexistent headers
11338
  # can be detected and how.
11339
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340
/* end confdefs.h.  */
11341
#include <ac_nonexistent.h>
11342
_ACEOF
11343
if ac_fn_cxx_try_cpp "$LINENO"; then :
11344
  # Broken: success on invalid input.
11345
continue
11346
else
11347
  # Passes both tests.
11348
ac_preproc_ok=:
11349
break
11350
fi
11351
rm -f conftest.err conftest.$ac_ext
11352
11353
done
11354
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11355
rm -f conftest.err conftest.$ac_ext
11356
if $ac_preproc_ok; then :
11357
  break
11358
fi
11359
11360
    done
11361
    ac_cv_prog_CXXCPP=$CXXCPP
11362
11363
fi
11364
  CXXCPP=$ac_cv_prog_CXXCPP
11365
else
11366
  ac_cv_prog_CXXCPP=$CXXCPP
11367
fi
11368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11369
$as_echo "$CXXCPP" >&6; }
11370
ac_preproc_ok=false
11371
for ac_cxx_preproc_warn_flag in '' yes
11372
do
11373
  # Use a header file that comes with gcc, so configuring glibc
11374
  # with a fresh cross-compiler works.
11375
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376
  # <limits.h> exists even on freestanding compilers.
11377
  # On the NeXT, cc -E runs the code through the compiler's parser,
11378
  # not just through cpp. "Syntax error" is here to catch this case.
11379
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380
/* end confdefs.h.  */
11381
#ifdef __STDC__
11382
# include <limits.h>
11383
#else
11384
# include <assert.h>
11385
#endif
11386
		     Syntax error
11387
_ACEOF
11388
if ac_fn_cxx_try_cpp "$LINENO"; then :
11389
11390
else
11391
  # Broken: fails on valid input.
11392
continue
11393
fi
11394
rm -f conftest.err conftest.$ac_ext
11395
11396
  # OK, works on sane cases.  Now check whether nonexistent headers
11397
  # can be detected and how.
11398
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399
/* end confdefs.h.  */
11400
#include <ac_nonexistent.h>
11401
_ACEOF
11402
if ac_fn_cxx_try_cpp "$LINENO"; then :
11403
  # Broken: success on invalid input.
11404
continue
11405
else
11406
  # Passes both tests.
11407
ac_preproc_ok=:
11408
break
11409
fi
11410
rm -f conftest.err conftest.$ac_ext
11411
11412
done
11413
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11414
rm -f conftest.err conftest.$ac_ext
11415
if $ac_preproc_ok; then :
11416
11417
else
11418
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11420
_lt_caught_CXX_error=yes; }
11421
fi
11422
11423
ac_ext=c
11424
ac_cpp='$CPP $CPPFLAGS'
11425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429
else
11430
  _lt_caught_CXX_error=yes
11431
fi
11432
11433
11434
11435
5 by edam
- updated README
11436
ac_ext=cpp
11437
ac_cpp='$CXXCPP $CPPFLAGS'
11438
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11441
11442
archive_cmds_need_lc_CXX=no
11443
allow_undefined_flag_CXX=
11444
always_export_symbols_CXX=no
11445
archive_expsym_cmds_CXX=
11446
compiler_needs_object_CXX=no
11447
export_dynamic_flag_spec_CXX=
11448
hardcode_direct_CXX=no
11449
hardcode_direct_absolute_CXX=no
11450
hardcode_libdir_flag_spec_CXX=
11451
hardcode_libdir_flag_spec_ld_CXX=
11452
hardcode_libdir_separator_CXX=
11453
hardcode_minus_L_CXX=no
11454
hardcode_shlibpath_var_CXX=unsupported
11455
hardcode_automatic_CXX=no
11456
inherit_rpath_CXX=no
11457
module_cmds_CXX=
11458
module_expsym_cmds_CXX=
11459
link_all_deplibs_CXX=unknown
11460
old_archive_cmds_CXX=$old_archive_cmds
11461
no_undefined_flag_CXX=
11462
whole_archive_flag_spec_CXX=
11463
enable_shared_with_static_runtimes_CXX=no
11464
11465
# Source file extension for C++ test sources.
11466
ac_ext=cpp
11467
11468
# Object file extension for compiled C++ test sources.
11469
objext=o
11470
objext_CXX=$objext
11471
11472
# No sense in running all these tests if we already determined that
11473
# the CXX compiler isn't working.  Some variables (like enable_shared)
11474
# are currently assumed to apply to all compilers on this platform,
11475
# and will be corrupted by setting them based on a non-working compiler.
11476
if test "$_lt_caught_CXX_error" != yes; then
11477
  # Code to be used in simple compile tests
11478
  lt_simple_compile_test_code="int some_variable = 0;"
11479
11480
  # Code to be used in simple link tests
11481
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11482
11483
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11484
11485
11486
11487
11488
11489
11490
# If no C compiler was specified, use CC.
11491
LTCC=${LTCC-"$CC"}
11492
11493
# If no C compiler flags were specified, use CFLAGS.
11494
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11495
11496
# Allow CC to be a program name with arguments.
11497
compiler=$CC
11498
11499
11500
  # save warnings/boilerplate of simple test code
11501
  ac_outfile=conftest.$ac_objext
11502
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11503
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11504
_lt_compiler_boilerplate=`cat conftest.err`
11505
$RM conftest*
11506
11507
  ac_outfile=conftest.$ac_objext
11508
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11509
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11510
_lt_linker_boilerplate=`cat conftest.err`
11511
$RM -r conftest*
11512
11513
11514
  # Allow CC to be a program name with arguments.
11515
  lt_save_CC=$CC
11516
  lt_save_LD=$LD
11517
  lt_save_GCC=$GCC
11518
  GCC=$GXX
11519
  lt_save_with_gnu_ld=$with_gnu_ld
11520
  lt_save_path_LD=$lt_cv_path_LD
11521
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11522
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11523
  else
11524
    $as_unset lt_cv_prog_gnu_ld
11525
  fi
11526
  if test -n "${lt_cv_path_LDCXX+set}"; then
11527
    lt_cv_path_LD=$lt_cv_path_LDCXX
11528
  else
11529
    $as_unset lt_cv_path_LD
11530
  fi
11531
  test -z "${LDCXX+set}" || LD=$LDCXX
11532
  CC=${CXX-"c++"}
11533
  compiler=$CC
11534
  compiler_CXX=$CC
11535
  for cc_temp in $compiler""; do
11536
  case $cc_temp in
11537
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11538
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11539
    \-*) ;;
11540
    *) break;;
11541
  esac
11542
done
11543
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11544
11545
11546
  if test -n "$compiler"; then
11547
    # We don't want -fno-exception when compiling C++ code, so set the
11548
    # no_builtin_flag separately
11549
    if test "$GXX" = yes; then
11550
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11551
    else
11552
      lt_prog_compiler_no_builtin_flag_CXX=
11553
    fi
11554
11555
    if test "$GXX" = yes; then
11556
      # Set up default GNU C++ configuration
11557
11558
11559
11560
# Check whether --with-gnu-ld was given.
11561
if test "${with_gnu_ld+set}" = set; then :
11562
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11563
else
11564
  with_gnu_ld=no
11565
fi
11566
11567
ac_prog=ld
11568
if test "$GCC" = yes; then
11569
  # Check if gcc -print-prog-name=ld gives a path.
11570
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11571
$as_echo_n "checking for ld used by $CC... " >&6; }
11572
  case $host in
11573
  *-*-mingw*)
11574
    # gcc leaves a trailing carriage return which upsets mingw
11575
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11576
  *)
11577
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11578
  esac
11579
  case $ac_prog in
11580
    # Accept absolute paths.
11581
    [\\/]* | ?:[\\/]*)
11582
      re_direlt='/[^/][^/]*/\.\./'
11583
      # Canonicalize the pathname of ld
11584
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11585
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11586
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11587
      done
11588
      test -z "$LD" && LD="$ac_prog"
11589
      ;;
11590
  "")
11591
    # If it fails, then pretend we aren't using GCC.
11592
    ac_prog=ld
11593
    ;;
11594
  *)
11595
    # If it is relative, then search for the first ld in PATH.
11596
    with_gnu_ld=unknown
11597
    ;;
11598
  esac
11599
elif test "$with_gnu_ld" = yes; then
11600
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11601
$as_echo_n "checking for GNU ld... " >&6; }
11602
else
11603
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11604
$as_echo_n "checking for non-GNU ld... " >&6; }
11605
fi
11606
if test "${lt_cv_path_LD+set}" = set; then :
11607
  $as_echo_n "(cached) " >&6
11608
else
11609
  if test -z "$LD"; then
11610
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11611
  for ac_dir in $PATH; do
11612
    IFS="$lt_save_ifs"
11613
    test -z "$ac_dir" && ac_dir=.
11614
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11615
      lt_cv_path_LD="$ac_dir/$ac_prog"
11616
      # Check to see if the program is GNU ld.  I'd rather use --version,
11617
      # but apparently some variants of GNU ld only accept -v.
11618
      # Break only if it was the GNU/non-GNU ld that we prefer.
11619
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11620
      *GNU* | *'with BFD'*)
11621
	test "$with_gnu_ld" != no && break
11622
	;;
11623
      *)
11624
	test "$with_gnu_ld" != yes && break
11625
	;;
11626
      esac
11627
    fi
11628
  done
11629
  IFS="$lt_save_ifs"
11630
else
11631
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11632
fi
11633
fi
11634
11635
LD="$lt_cv_path_LD"
11636
if test -n "$LD"; then
11637
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11638
$as_echo "$LD" >&6; }
11639
else
11640
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641
$as_echo "no" >&6; }
11642
fi
11643
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11645
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11646
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11647
  $as_echo_n "(cached) " >&6
11648
else
11649
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11650
case `$LD -v 2>&1 </dev/null` in
11651
*GNU* | *'with BFD'*)
11652
  lt_cv_prog_gnu_ld=yes
11653
  ;;
11654
*)
11655
  lt_cv_prog_gnu_ld=no
11656
  ;;
11657
esac
11658
fi
11659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11660
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11661
with_gnu_ld=$lt_cv_prog_gnu_ld
11662
11663
11664
11665
11666
11667
11668
11669
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11670
      # archiving commands below assume that GNU ld is being used.
11671
      if test "$with_gnu_ld" = yes; then
11672
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11673
        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'
11674
11675
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11676
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11677
11678
        # If archive_cmds runs LD, not CC, wlarc should be empty
11679
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11680
        #     investigate it a little bit more. (MM)
11681
        wlarc='${wl}'
11682
11683
        # ancient GNU ld didn't support --whole-archive et. al.
11684
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11685
	  $GREP 'no-whole-archive' > /dev/null; then
11686
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11687
        else
11688
          whole_archive_flag_spec_CXX=
11689
        fi
11690
      else
11691
        with_gnu_ld=no
11692
        wlarc=
11693
11694
        # A generic and very simple default shared library creation
11695
        # command for GNU C++ for the case where it uses the native
11696
        # linker, instead of GNU ld.  If possible, this setting should
11697
        # overridden to take advantage of the native linker features on
11698
        # the platform it is being used on.
11699
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11700
      fi
11701
11702
      # Commands to make compiler produce verbose output that lists
11703
      # what "hidden" libraries, object files and flags are used when
11704
      # linking a shared library.
11705
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11706
11707
    else
11708
      GXX=no
11709
      with_gnu_ld=no
11710
      wlarc=
11711
    fi
11712
11713
    # PORTME: fill in a description of your system's C++ link characteristics
11714
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11715
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11716
    ld_shlibs_CXX=yes
11717
    case $host_os in
11718
      aix3*)
11719
        # FIXME: insert proper C++ library support
11720
        ld_shlibs_CXX=no
11721
        ;;
11722
      aix[4-9]*)
11723
        if test "$host_cpu" = ia64; then
11724
          # On IA64, the linker does run time linking by default, so we don't
11725
          # have to do anything special.
11726
          aix_use_runtimelinking=no
11727
          exp_sym_flag='-Bexport'
11728
          no_entry_flag=""
11729
        else
11730
          aix_use_runtimelinking=no
11731
11732
          # Test if we are trying to use run time linking or normal
11733
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11734
          # need to do runtime linking.
11735
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11736
	    for ld_flag in $LDFLAGS; do
11737
	      case $ld_flag in
11738
	      *-brtl*)
11739
	        aix_use_runtimelinking=yes
11740
	        break
11741
	        ;;
11742
	      esac
11743
	    done
11744
	    ;;
11745
          esac
11746
11747
          exp_sym_flag='-bexport'
11748
          no_entry_flag='-bnoentry'
11749
        fi
11750
11751
        # When large executables or shared objects are built, AIX ld can
11752
        # have problems creating the table of contents.  If linking a library
11753
        # or program results in "error TOC overflow" add -mminimal-toc to
11754
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11755
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11756
11757
        archive_cmds_CXX=''
11758
        hardcode_direct_CXX=yes
11759
        hardcode_direct_absolute_CXX=yes
11760
        hardcode_libdir_separator_CXX=':'
11761
        link_all_deplibs_CXX=yes
11762
        file_list_spec_CXX='${wl}-f,'
11763
11764
        if test "$GXX" = yes; then
11765
          case $host_os in aix4.[012]|aix4.[012].*)
11766
          # We only want to do this on AIX 4.2 and lower, the check
11767
          # below for broken collect2 doesn't work under 4.3+
11768
	  collect2name=`${CC} -print-prog-name=collect2`
11769
	  if test -f "$collect2name" &&
11770
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11771
	  then
11772
	    # We have reworked collect2
11773
	    :
11774
	  else
11775
	    # We have old collect2
11776
	    hardcode_direct_CXX=unsupported
11777
	    # It fails to find uninstalled libraries when the uninstalled
11778
	    # path is not listed in the libpath.  Setting hardcode_minus_L
11779
	    # to unsupported forces relinking
11780
	    hardcode_minus_L_CXX=yes
11781
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11782
	    hardcode_libdir_separator_CXX=
11783
	  fi
11784
          esac
11785
          shared_flag='-shared'
11786
	  if test "$aix_use_runtimelinking" = yes; then
11787
	    shared_flag="$shared_flag "'${wl}-G'
11788
	  fi
11789
        else
11790
          # not using gcc
11791
          if test "$host_cpu" = ia64; then
11792
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11793
	  # chokes on -Wl,-G. The following line is correct:
11794
	  shared_flag='-G'
11795
          else
11796
	    if test "$aix_use_runtimelinking" = yes; then
11797
	      shared_flag='${wl}-G'
11798
	    else
11799
	      shared_flag='${wl}-bM:SRE'
11800
	    fi
11801
          fi
11802
        fi
11803
11804
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11805
        # It seems that -bexpall does not export symbols beginning with
11806
        # underscore (_), so it is better to generate a list of symbols to
11807
	# export.
11808
        always_export_symbols_CXX=yes
11809
        if test "$aix_use_runtimelinking" = yes; then
11810
          # Warning - without using the other runtime loading flags (-brtl),
11811
          # -berok will link without error, but may produce a broken library.
11812
          allow_undefined_flag_CXX='-berok'
11813
          # Determine the default libpath from the value encoded in an empty
11814
          # executable.
11815
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816
/* end confdefs.h.  */
11817
11818
int
11819
main ()
11820
{
11821
11822
  ;
11823
  return 0;
11824
}
11825
_ACEOF
11826
if ac_fn_cxx_try_link "$LINENO"; then :
11827
11828
lt_aix_libpath_sed='
11829
    /Import File Strings/,/^$/ {
11830
	/^0/ {
11831
	    s/^0  *\(.*\)$/\1/
11832
	    p
11833
	}
11834
    }'
11835
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11836
# Check for a 64-bit object if we didn't find anything.
11837
if test -z "$aix_libpath"; then
11838
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11839
fi
11840
fi
11841
rm -f core conftest.err conftest.$ac_objext \
11842
    conftest$ac_exeext conftest.$ac_ext
11843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11844
11845
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11846
11847
          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"
11848
        else
11849
          if test "$host_cpu" = ia64; then
11850
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11851
	    allow_undefined_flag_CXX="-z nodefs"
11852
	    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"
11853
          else
11854
	    # Determine the default libpath from the value encoded in an
11855
	    # empty executable.
11856
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857
/* end confdefs.h.  */
11858
11859
int
11860
main ()
11861
{
11862
11863
  ;
11864
  return 0;
11865
}
11866
_ACEOF
11867
if ac_fn_cxx_try_link "$LINENO"; then :
11868
11869
lt_aix_libpath_sed='
11870
    /Import File Strings/,/^$/ {
11871
	/^0/ {
11872
	    s/^0  *\(.*\)$/\1/
11873
	    p
11874
	}
11875
    }'
11876
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11877
# Check for a 64-bit object if we didn't find anything.
11878
if test -z "$aix_libpath"; then
11879
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11880
fi
11881
fi
11882
rm -f core conftest.err conftest.$ac_objext \
11883
    conftest$ac_exeext conftest.$ac_ext
11884
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11885
11886
	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11887
	    # Warning - without using the other run time loading flags,
11888
	    # -berok will link without error, but may produce a broken library.
11889
	    no_undefined_flag_CXX=' ${wl}-bernotok'
11890
	    allow_undefined_flag_CXX=' ${wl}-berok'
11891
	    # Exported symbols can be pulled into shared objects from archives
11892
	    whole_archive_flag_spec_CXX='$convenience'
11893
	    archive_cmds_need_lc_CXX=yes
11894
	    # This is similar to how AIX traditionally builds its shared
11895
	    # libraries.
11896
	    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'
11897
          fi
11898
        fi
11899
        ;;
11900
11901
      beos*)
11902
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11903
	  allow_undefined_flag_CXX=unsupported
11904
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11905
	  # support --undefined.  This deserves some investigation.  FIXME
11906
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11907
	else
11908
	  ld_shlibs_CXX=no
11909
	fi
11910
	;;
11911
11912
      chorus*)
11913
        case $cc_basename in
11914
          *)
11915
	  # FIXME: insert proper C++ library support
11916
	  ld_shlibs_CXX=no
11917
	  ;;
11918
        esac
11919
        ;;
11920
11921
      cygwin* | mingw* | pw32* | cegcc*)
11922
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11923
        # as there is no search path for DLLs.
11924
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11925
        allow_undefined_flag_CXX=unsupported
11926
        always_export_symbols_CXX=no
11927
        enable_shared_with_static_runtimes_CXX=yes
11928
11929
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11930
          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'
11931
          # If the export-symbols file already is a .def file (1st line
11932
          # is EXPORTS), use it as is; otherwise, prepend...
11933
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11934
	    cp $export_symbols $output_objdir/$soname.def;
11935
          else
11936
	    echo EXPORTS > $output_objdir/$soname.def;
11937
	    cat $export_symbols >> $output_objdir/$soname.def;
11938
          fi~
11939
          $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'
11940
        else
11941
          ld_shlibs_CXX=no
11942
        fi
11943
        ;;
11944
      darwin* | rhapsody*)
11945
11946
11947
  archive_cmds_need_lc_CXX=no
11948
  hardcode_direct_CXX=no
11949
  hardcode_automatic_CXX=yes
11950
  hardcode_shlibpath_var_CXX=unsupported
11951
  whole_archive_flag_spec_CXX=''
11952
  link_all_deplibs_CXX=yes
11953
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11954
  case $cc_basename in
11955
     ifort*) _lt_dar_can_shared=yes ;;
11956
     *) _lt_dar_can_shared=$GCC ;;
11957
  esac
11958
  if test "$_lt_dar_can_shared" = "yes"; then
11959
    output_verbose_link_cmd=echo
11960
    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}"
11961
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11962
    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}"
11963
    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}"
11964
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11965
      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}"
11966
      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}"
11967
    fi
11968
11969
  else
11970
  ld_shlibs_CXX=no
11971
  fi
11972
11973
	;;
11974
11975
      dgux*)
11976
        case $cc_basename in
11977
          ec++*)
11978
	    # FIXME: insert proper C++ library support
11979
	    ld_shlibs_CXX=no
11980
	    ;;
11981
          ghcx*)
11982
	    # Green Hills C++ Compiler
11983
	    # FIXME: insert proper C++ library support
11984
	    ld_shlibs_CXX=no
11985
	    ;;
11986
          *)
11987
	    # FIXME: insert proper C++ library support
11988
	    ld_shlibs_CXX=no
11989
	    ;;
11990
        esac
11991
        ;;
11992
11993
      freebsd[12]*)
11994
        # C++ shared libraries reported to be fairly broken before
11995
	# switch to ELF
11996
        ld_shlibs_CXX=no
11997
        ;;
11998
11999
      freebsd-elf*)
12000
        archive_cmds_need_lc_CXX=no
12001
        ;;
12002
12003
      freebsd* | dragonfly*)
12004
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12005
        # conventions
12006
        ld_shlibs_CXX=yes
12007
        ;;
12008
12009
      gnu*)
12010
        ;;
12011
12012
      hpux9*)
12013
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12014
        hardcode_libdir_separator_CXX=:
12015
        export_dynamic_flag_spec_CXX='${wl}-E'
12016
        hardcode_direct_CXX=yes
12017
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12018
				             # but as the default
12019
				             # location of the library.
12020
12021
        case $cc_basename in
12022
          CC*)
12023
            # FIXME: insert proper C++ library support
12024
            ld_shlibs_CXX=no
12025
            ;;
12026
          aCC*)
12027
            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'
12028
            # Commands to make compiler produce verbose output that lists
12029
            # what "hidden" libraries, object files and flags are used when
12030
            # linking a shared library.
12031
            #
12032
            # There doesn't appear to be a way to prevent this compiler from
12033
            # explicitly linking system object files so we need to strip them
12034
            # from the output so that they don't get included in the library
12035
            # dependencies.
12036
            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'
12037
            ;;
12038
          *)
12039
            if test "$GXX" = yes; then
12040
              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'
12041
            else
12042
              # FIXME: insert proper C++ library support
12043
              ld_shlibs_CXX=no
12044
            fi
12045
            ;;
12046
        esac
12047
        ;;
12048
12049
      hpux10*|hpux11*)
12050
        if test $with_gnu_ld = no; then
12051
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12052
	  hardcode_libdir_separator_CXX=:
12053
12054
          case $host_cpu in
12055
            hppa*64*|ia64*)
12056
              ;;
12057
            *)
12058
	      export_dynamic_flag_spec_CXX='${wl}-E'
12059
              ;;
12060
          esac
12061
        fi
12062
        case $host_cpu in
12063
          hppa*64*|ia64*)
12064
            hardcode_direct_CXX=no
12065
            hardcode_shlibpath_var_CXX=no
12066
            ;;
12067
          *)
12068
            hardcode_direct_CXX=yes
12069
            hardcode_direct_absolute_CXX=yes
12070
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12071
					         # but as the default
12072
					         # location of the library.
12073
            ;;
12074
        esac
12075
12076
        case $cc_basename in
12077
          CC*)
12078
	    # FIXME: insert proper C++ library support
12079
	    ld_shlibs_CXX=no
12080
	    ;;
12081
          aCC*)
12082
	    case $host_cpu in
12083
	      hppa*64*)
12084
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12085
	        ;;
12086
	      ia64*)
12087
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12088
	        ;;
12089
	      *)
12090
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12091
	        ;;
12092
	    esac
12093
	    # Commands to make compiler produce verbose output that lists
12094
	    # what "hidden" libraries, object files and flags are used when
12095
	    # linking a shared library.
12096
	    #
12097
	    # There doesn't appear to be a way to prevent this compiler from
12098
	    # explicitly linking system object files so we need to strip them
12099
	    # from the output so that they don't get included in the library
12100
	    # dependencies.
12101
	    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'
12102
	    ;;
12103
          *)
12104
	    if test "$GXX" = yes; then
12105
	      if test $with_gnu_ld = no; then
12106
	        case $host_cpu in
12107
	          hppa*64*)
12108
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109
	            ;;
12110
	          ia64*)
12111
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12112
	            ;;
12113
	          *)
12114
	            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'
12115
	            ;;
12116
	        esac
12117
	      fi
12118
	    else
12119
	      # FIXME: insert proper C++ library support
12120
	      ld_shlibs_CXX=no
12121
	    fi
12122
	    ;;
12123
        esac
12124
        ;;
12125
12126
      interix[3-9]*)
12127
	hardcode_direct_CXX=no
12128
	hardcode_shlibpath_var_CXX=no
12129
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12130
	export_dynamic_flag_spec_CXX='${wl}-E'
12131
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12132
	# Instead, shared libraries are loaded at an image base (0x10000000 by
12133
	# default) and relocated if they conflict, which is a slow very memory
12134
	# consuming and fragmenting process.  To avoid this, we pick a random,
12135
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12136
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12137
	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'
12138
	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'
12139
	;;
12140
      irix5* | irix6*)
12141
        case $cc_basename in
12142
          CC*)
12143
	    # SGI C++
12144
	    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'
12145
12146
	    # Archives containing C++ object files must be created using
12147
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12148
	    # necessary to make sure instantiated templates are included
12149
	    # in the archive.
12150
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12151
	    ;;
12152
          *)
12153
	    if test "$GXX" = yes; then
12154
	      if test "$with_gnu_ld" = no; then
12155
	        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'
12156
	      else
12157
	        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'
12158
	      fi
12159
	    fi
12160
	    link_all_deplibs_CXX=yes
12161
	    ;;
12162
        esac
12163
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164
        hardcode_libdir_separator_CXX=:
12165
        inherit_rpath_CXX=yes
12166
        ;;
12167
12168
      linux* | k*bsd*-gnu)
12169
        case $cc_basename in
12170
          KCC*)
12171
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12172
12173
	    # KCC will only create a shared library if the output file
12174
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12175
	    # to its proper name (with version) after linking.
12176
	    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'
12177
	    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'
12178
	    # Commands to make compiler produce verbose output that lists
12179
	    # what "hidden" libraries, object files and flags are used when
12180
	    # linking a shared library.
12181
	    #
12182
	    # There doesn't appear to be a way to prevent this compiler from
12183
	    # explicitly linking system object files so we need to strip them
12184
	    # from the output so that they don't get included in the library
12185
	    # dependencies.
12186
	    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'
12187
12188
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12190
12191
	    # Archives containing C++ object files must be created using
12192
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12193
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12194
	    ;;
12195
	  icpc* | ecpc* )
12196
	    # Intel C++
12197
	    with_gnu_ld=yes
12198
	    # version 8.0 and above of icpc choke on multiply defined symbols
12199
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12200
	    # earlier do not add the objects themselves.
12201
	    case `$CC -V 2>&1` in
12202
	      *"Version 7."*)
12203
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204
		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'
12205
		;;
12206
	      *)  # Version 8.0 or newer
12207
	        tmp_idyn=
12208
	        case $host_cpu in
12209
		  ia64*) tmp_idyn=' -i_dynamic';;
12210
		esac
12211
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212
		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'
12213
		;;
12214
	    esac
12215
	    archive_cmds_need_lc_CXX=no
12216
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12217
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12218
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12219
	    ;;
12220
          pgCC* | pgcpp*)
12221
            # Portland Group C++ compiler
12222
	    case `$CC -V` in
12223
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12224
	      prelink_cmds_CXX='tpldir=Template.dir~
12225
		rm -rf $tpldir~
12226
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12227
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12228
	      old_archive_cmds_CXX='tpldir=Template.dir~
12229
		rm -rf $tpldir~
12230
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12231
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12232
		$RANLIB $oldlib'
12233
	      archive_cmds_CXX='tpldir=Template.dir~
12234
		rm -rf $tpldir~
12235
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12236
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12237
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12238
		rm -rf $tpldir~
12239
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12240
		$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'
12241
	      ;;
12242
	    *) # Version 6 will use weak symbols
12243
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12244
	      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'
12245
	      ;;
12246
	    esac
12247
12248
	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12249
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12250
	    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'
12251
            ;;
12252
	  cxx*)
12253
	    # Compaq C++
12254
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255
	    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'
12256
12257
	    runpath_var=LD_RUN_PATH
12258
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12259
	    hardcode_libdir_separator_CXX=:
12260
12261
	    # Commands to make compiler produce verbose output that lists
12262
	    # what "hidden" libraries, object files and flags are used when
12263
	    # linking a shared library.
12264
	    #
12265
	    # There doesn't appear to be a way to prevent this compiler from
12266
	    # explicitly linking system object files so we need to strip them
12267
	    # from the output so that they don't get included in the library
12268
	    # dependencies.
12269
	    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'
12270
	    ;;
12271
	  xl*)
12272
	    # IBM XL 8.0 on PPC, with GNU ld
12273
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12274
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12275
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276
	    if test "x$supports_anon_versioning" = xyes; then
12277
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12278
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12279
		echo "local: *; };" >> $output_objdir/$libname.ver~
12280
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12281
	    fi
12282
	    ;;
12283
	  *)
12284
	    case `$CC -V 2>&1 | sed 5q` in
12285
	    *Sun\ C*)
12286
	      # Sun C++ 5.9
12287
	      no_undefined_flag_CXX=' -zdefs'
12288
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12289
	      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'
12290
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12291
	      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'
12292
	      compiler_needs_object_CXX=yes
12293
12294
	      # Not sure whether something based on
12295
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12296
	      # would be better.
12297
	      output_verbose_link_cmd='echo'
12298
12299
	      # Archives containing C++ object files must be created using
12300
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12301
	      # necessary to make sure instantiated templates are included
12302
	      # in the archive.
12303
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12304
	      ;;
12305
	    esac
12306
	    ;;
12307
	esac
12308
	;;
12309
12310
      lynxos*)
12311
        # FIXME: insert proper C++ library support
12312
	ld_shlibs_CXX=no
12313
	;;
12314
12315
      m88k*)
12316
        # FIXME: insert proper C++ library support
12317
        ld_shlibs_CXX=no
12318
	;;
12319
12320
      mvs*)
12321
        case $cc_basename in
12322
          cxx*)
12323
	    # FIXME: insert proper C++ library support
12324
	    ld_shlibs_CXX=no
12325
	    ;;
12326
	  *)
12327
	    # FIXME: insert proper C++ library support
12328
	    ld_shlibs_CXX=no
12329
	    ;;
12330
	esac
12331
	;;
12332
12333
      netbsd*)
12334
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12335
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12336
	  wlarc=
12337
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12338
	  hardcode_direct_CXX=yes
12339
	  hardcode_shlibpath_var_CXX=no
12340
	fi
12341
	# Workaround some broken pre-1.5 toolchains
12342
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12343
	;;
12344
12345
      *nto* | *qnx*)
12346
        ld_shlibs_CXX=yes
12347
	;;
12348
12349
      openbsd2*)
12350
        # C++ shared libraries are fairly broken
12351
	ld_shlibs_CXX=no
12352
	;;
12353
12354
      openbsd*)
12355
	if test -f /usr/libexec/ld.so; then
12356
	  hardcode_direct_CXX=yes
12357
	  hardcode_shlibpath_var_CXX=no
12358
	  hardcode_direct_absolute_CXX=yes
12359
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12360
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12361
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12362
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12363
	    export_dynamic_flag_spec_CXX='${wl}-E'
12364
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12365
	  fi
12366
	  output_verbose_link_cmd=echo
12367
	else
12368
	  ld_shlibs_CXX=no
12369
	fi
12370
	;;
12371
12372
      osf3* | osf4* | osf5*)
12373
        case $cc_basename in
12374
          KCC*)
12375
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12376
12377
	    # KCC will only create a shared library if the output file
12378
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12379
	    # to its proper name (with version) after linking.
12380
	    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'
12381
12382
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12383
	    hardcode_libdir_separator_CXX=:
12384
12385
	    # Archives containing C++ object files must be created using
12386
	    # the KAI C++ compiler.
12387
	    case $host in
12388
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12389
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12390
	    esac
12391
	    ;;
12392
          RCC*)
12393
	    # Rational C++ 2.4.1
12394
	    # FIXME: insert proper C++ library support
12395
	    ld_shlibs_CXX=no
12396
	    ;;
12397
          cxx*)
12398
	    case $host in
12399
	      osf3*)
12400
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12401
	        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'
12402
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12403
		;;
12404
	      *)
12405
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12406
	        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'
12407
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12408
	          echo "-hidden">> $lib.exp~
12409
	          $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~
12410
	          $RM $lib.exp'
12411
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12412
		;;
12413
	    esac
12414
12415
	    hardcode_libdir_separator_CXX=:
12416
12417
	    # Commands to make compiler produce verbose output that lists
12418
	    # what "hidden" libraries, object files and flags are used when
12419
	    # linking a shared library.
12420
	    #
12421
	    # There doesn't appear to be a way to prevent this compiler from
12422
	    # explicitly linking system object files so we need to strip them
12423
	    # from the output so that they don't get included in the library
12424
	    # dependencies.
12425
	    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'
12426
	    ;;
12427
	  *)
12428
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12429
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12430
	      case $host in
12431
	        osf3*)
12432
	          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'
12433
		  ;;
12434
	        *)
12435
	          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'
12436
		  ;;
12437
	      esac
12438
12439
	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12440
	      hardcode_libdir_separator_CXX=:
12441
12442
	      # Commands to make compiler produce verbose output that lists
12443
	      # what "hidden" libraries, object files and flags are used when
12444
	      # linking a shared library.
12445
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12446
12447
	    else
12448
	      # FIXME: insert proper C++ library support
12449
	      ld_shlibs_CXX=no
12450
	    fi
12451
	    ;;
12452
        esac
12453
        ;;
12454
12455
      psos*)
12456
        # FIXME: insert proper C++ library support
12457
        ld_shlibs_CXX=no
12458
        ;;
12459
12460
      sunos4*)
12461
        case $cc_basename in
12462
          CC*)
12463
	    # Sun C++ 4.x
12464
	    # FIXME: insert proper C++ library support
12465
	    ld_shlibs_CXX=no
12466
	    ;;
12467
          lcc*)
12468
	    # Lucid
12469
	    # FIXME: insert proper C++ library support
12470
	    ld_shlibs_CXX=no
12471
	    ;;
12472
          *)
12473
	    # FIXME: insert proper C++ library support
12474
	    ld_shlibs_CXX=no
12475
	    ;;
12476
        esac
12477
        ;;
12478
12479
      solaris*)
12480
        case $cc_basename in
12481
          CC*)
12482
	    # Sun C++ 4.2, 5.x and Centerline C++
12483
            archive_cmds_need_lc_CXX=yes
12484
	    no_undefined_flag_CXX=' -zdefs'
12485
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12486
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12487
	      $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'
12488
12489
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12490
	    hardcode_shlibpath_var_CXX=no
12491
	    case $host_os in
12492
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12493
	      *)
12494
		# The compiler driver will combine and reorder linker options,
12495
		# but understands `-z linker_flag'.
12496
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12497
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12498
	        ;;
12499
	    esac
12500
	    link_all_deplibs_CXX=yes
12501
12502
	    output_verbose_link_cmd='echo'
12503
12504
	    # Archives containing C++ object files must be created using
12505
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12506
	    # necessary to make sure instantiated templates are included
12507
	    # in the archive.
12508
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12509
	    ;;
12510
          gcx*)
12511
	    # Green Hills C++ Compiler
12512
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12513
12514
	    # The C++ compiler must be used to create the archive.
12515
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12516
	    ;;
12517
          *)
12518
	    # GNU C++ compiler with Solaris linker
12519
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12520
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12521
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12522
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12523
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12524
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12525
12526
	        # Commands to make compiler produce verbose output that lists
12527
	        # what "hidden" libraries, object files and flags are used when
12528
	        # linking a shared library.
12529
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12530
	      else
12531
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12532
	        # platform.
12533
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12534
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12535
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12536
12537
	        # Commands to make compiler produce verbose output that lists
12538
	        # what "hidden" libraries, object files and flags are used when
12539
	        # linking a shared library.
12540
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12541
	      fi
12542
12543
	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12544
	      case $host_os in
12545
		solaris2.[0-5] | solaris2.[0-5].*) ;;
12546
		*)
12547
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12548
		  ;;
12549
	      esac
12550
	    fi
12551
	    ;;
12552
        esac
12553
        ;;
12554
12555
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12556
      no_undefined_flag_CXX='${wl}-z,text'
12557
      archive_cmds_need_lc_CXX=no
12558
      hardcode_shlibpath_var_CXX=no
12559
      runpath_var='LD_RUN_PATH'
12560
12561
      case $cc_basename in
12562
        CC*)
12563
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565
	  ;;
12566
	*)
12567
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569
	  ;;
12570
      esac
12571
      ;;
12572
12573
      sysv5* | sco3.2v5* | sco5v6*)
12574
	# Note: We can NOT use -z defs as we might desire, because we do not
12575
	# link with -lc, and that would cause any symbols used from libc to
12576
	# always be unresolved, which means just about no library would
12577
	# ever link correctly.  If we're not using GNU ld we use -z text
12578
	# though, which does catch some bad symbols but isn't as heavy-handed
12579
	# as -z defs.
12580
	no_undefined_flag_CXX='${wl}-z,text'
12581
	allow_undefined_flag_CXX='${wl}-z,nodefs'
12582
	archive_cmds_need_lc_CXX=no
12583
	hardcode_shlibpath_var_CXX=no
12584
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12585
	hardcode_libdir_separator_CXX=':'
12586
	link_all_deplibs_CXX=yes
12587
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12588
	runpath_var='LD_RUN_PATH'
12589
12590
	case $cc_basename in
12591
          CC*)
12592
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12593
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12594
	    ;;
12595
	  *)
12596
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598
	    ;;
12599
	esac
12600
      ;;
12601
12602
      tandem*)
12603
        case $cc_basename in
12604
          NCC*)
12605
	    # NonStop-UX NCC 3.20
12606
	    # FIXME: insert proper C++ library support
12607
	    ld_shlibs_CXX=no
12608
	    ;;
12609
          *)
12610
	    # FIXME: insert proper C++ library support
12611
	    ld_shlibs_CXX=no
12612
	    ;;
12613
        esac
12614
        ;;
12615
12616
      vxworks*)
12617
        # FIXME: insert proper C++ library support
12618
        ld_shlibs_CXX=no
12619
        ;;
12620
12621
      *)
12622
        # FIXME: insert proper C++ library support
12623
        ld_shlibs_CXX=no
12624
        ;;
12625
    esac
12626
12627
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12628
$as_echo "$ld_shlibs_CXX" >&6; }
12629
    test "$ld_shlibs_CXX" = no && can_build_shared=no
12630
12631
    GCC_CXX="$GXX"
12632
    LD_CXX="$LD"
12633
12634
    ## CAVEAT EMPTOR:
12635
    ## There is no encapsulation within the following macros, do not change
12636
    ## the running order or otherwise move them around unless you know exactly
12637
    ## what you are doing...
12638
    # Dependencies to place before and after the object being linked:
12639
predep_objects_CXX=
12640
postdep_objects_CXX=
12641
predeps_CXX=
12642
postdeps_CXX=
12643
compiler_lib_search_path_CXX=
12644
12645
cat > conftest.$ac_ext <<_LT_EOF
12646
class Foo
12647
{
12648
public:
12649
  Foo (void) { a = 0; }
12650
private:
12651
  int a;
12652
};
12653
_LT_EOF
12654
12655
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12656
  (eval $ac_compile) 2>&5
12657
  ac_status=$?
12658
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659
  test $ac_status = 0; }; then
12660
  # Parse the compiler output and extract the necessary
12661
  # objects, libraries and library flags.
12662
12663
  # Sentinel used to keep track of whether or not we are before
12664
  # the conftest object file.
12665
  pre_test_object_deps_done=no
12666
12667
  for p in `eval "$output_verbose_link_cmd"`; do
12668
    case $p in
12669
12670
    -L* | -R* | -l*)
12671
       # Some compilers place space between "-{L,R}" and the path.
12672
       # Remove the space.
12673
       if test $p = "-L" ||
12674
          test $p = "-R"; then
12675
	 prev=$p
12676
	 continue
12677
       else
12678
	 prev=
12679
       fi
12680
12681
       if test "$pre_test_object_deps_done" = no; then
12682
	 case $p in
12683
	 -L* | -R*)
12684
	   # Internal compiler library paths should come after those
12685
	   # provided the user.  The postdeps already come after the
12686
	   # user supplied libs so there is no need to process them.
12687
	   if test -z "$compiler_lib_search_path_CXX"; then
12688
	     compiler_lib_search_path_CXX="${prev}${p}"
12689
	   else
12690
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12691
	   fi
12692
	   ;;
12693
	 # The "-l" case would never come before the object being
12694
	 # linked, so don't bother handling this case.
12695
	 esac
12696
       else
12697
	 if test -z "$postdeps_CXX"; then
12698
	   postdeps_CXX="${prev}${p}"
12699
	 else
12700
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12701
	 fi
12702
       fi
12703
       ;;
12704
12705
    *.$objext)
12706
       # This assumes that the test object file only shows up
12707
       # once in the compiler output.
12708
       if test "$p" = "conftest.$objext"; then
12709
	 pre_test_object_deps_done=yes
12710
	 continue
12711
       fi
12712
12713
       if test "$pre_test_object_deps_done" = no; then
12714
	 if test -z "$predep_objects_CXX"; then
12715
	   predep_objects_CXX="$p"
12716
	 else
12717
	   predep_objects_CXX="$predep_objects_CXX $p"
12718
	 fi
12719
       else
12720
	 if test -z "$postdep_objects_CXX"; then
12721
	   postdep_objects_CXX="$p"
12722
	 else
12723
	   postdep_objects_CXX="$postdep_objects_CXX $p"
12724
	 fi
12725
       fi
12726
       ;;
12727
12728
    *) ;; # Ignore the rest.
12729
12730
    esac
12731
  done
12732
12733
  # Clean up.
12734
  rm -f a.out a.exe
12735
else
12736
  echo "libtool.m4: error: problem compiling CXX test program"
12737
fi
12738
12739
$RM -f confest.$objext
12740
12741
# PORTME: override above test on systems where it is broken
12742
case $host_os in
12743
interix[3-9]*)
12744
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12745
  # hack all around it, let's just trust "g++" to DTRT.
12746
  predep_objects_CXX=
12747
  postdep_objects_CXX=
12748
  postdeps_CXX=
12749
  ;;
12750
12751
linux*)
12752
  case `$CC -V 2>&1 | sed 5q` in
12753
  *Sun\ C*)
12754
    # Sun C++ 5.9
12755
12756
    # The more standards-conforming stlport4 library is
12757
    # incompatible with the Cstd library. Avoid specifying
12758
    # it if it's in CXXFLAGS. Ignore libCrun as
12759
    # -library=stlport4 depends on it.
12760
    case " $CXX $CXXFLAGS " in
12761
    *" -library=stlport4 "*)
12762
      solaris_use_stlport4=yes
12763
      ;;
12764
    esac
12765
12766
    if test "$solaris_use_stlport4" != yes; then
12767
      postdeps_CXX='-library=Cstd -library=Crun'
12768
    fi
12769
    ;;
12770
  esac
12771
  ;;
12772
12773
solaris*)
12774
  case $cc_basename in
12775
  CC*)
12776
    # The more standards-conforming stlport4 library is
12777
    # incompatible with the Cstd library. Avoid specifying
12778
    # it if it's in CXXFLAGS. Ignore libCrun as
12779
    # -library=stlport4 depends on it.
12780
    case " $CXX $CXXFLAGS " in
12781
    *" -library=stlport4 "*)
12782
      solaris_use_stlport4=yes
12783
      ;;
12784
    esac
12785
12786
    # Adding this requires a known-good setup of shared libraries for
12787
    # Sun compiler versions before 5.6, else PIC objects from an old
12788
    # archive will be linked into the output, leading to subtle bugs.
12789
    if test "$solaris_use_stlport4" != yes; then
12790
      postdeps_CXX='-library=Cstd -library=Crun'
12791
    fi
12792
    ;;
12793
  esac
12794
  ;;
12795
esac
12796
12797
12798
case " $postdeps_CXX " in
12799
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12800
esac
12801
 compiler_lib_search_dirs_CXX=
12802
if test -n "${compiler_lib_search_path_CXX}"; then
12803
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12804
fi
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
    lt_prog_compiler_wl_CXX=
12837
lt_prog_compiler_pic_CXX=
12838
lt_prog_compiler_static_CXX=
12839
12840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12841
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12842
12843
  # C++ specific cases for pic, static, wl, etc.
12844
  if test "$GXX" = yes; then
12845
    lt_prog_compiler_wl_CXX='-Wl,'
12846
    lt_prog_compiler_static_CXX='-static'
12847
12848
    case $host_os in
12849
    aix*)
12850
      # All AIX code is PIC.
12851
      if test "$host_cpu" = ia64; then
12852
	# AIX 5 now supports IA64 processor
12853
	lt_prog_compiler_static_CXX='-Bstatic'
12854
      fi
12855
      ;;
12856
12857
    amigaos*)
12858
      case $host_cpu in
12859
      powerpc)
12860
            # see comment about AmigaOS4 .so support
12861
            lt_prog_compiler_pic_CXX='-fPIC'
12862
        ;;
12863
      m68k)
12864
            # FIXME: we need at least 68020 code to build shared libraries, but
12865
            # adding the `-m68020' flag to GCC prevents building anything better,
12866
            # like `-m68040'.
12867
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12868
        ;;
12869
      esac
12870
      ;;
12871
12872
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12873
      # PIC is the default for these OSes.
12874
      ;;
12875
    mingw* | cygwin* | os2* | pw32* | cegcc*)
12876
      # This hack is so that the source file can tell whether it is being
12877
      # built for inclusion in a dll (and should export symbols for example).
12878
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12879
      # (--disable-auto-import) libraries
12880
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12881
      ;;
12882
    darwin* | rhapsody*)
12883
      # PIC is the default on this platform
12884
      # Common symbols not allowed in MH_DYLIB files
12885
      lt_prog_compiler_pic_CXX='-fno-common'
12886
      ;;
12887
    *djgpp*)
12888
      # DJGPP does not support shared libraries at all
12889
      lt_prog_compiler_pic_CXX=
12890
      ;;
12891
    interix[3-9]*)
12892
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12893
      # Instead, we relocate shared libraries at runtime.
12894
      ;;
12895
    sysv4*MP*)
12896
      if test -d /usr/nec; then
12897
	lt_prog_compiler_pic_CXX=-Kconform_pic
12898
      fi
12899
      ;;
12900
    hpux*)
12901
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12902
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12903
      # sets the default TLS model and affects inlining.
12904
      case $host_cpu in
12905
      hppa*64*)
12906
	;;
12907
      *)
12908
	lt_prog_compiler_pic_CXX='-fPIC'
12909
	;;
12910
      esac
12911
      ;;
12912
    *qnx* | *nto*)
12913
      # QNX uses GNU C++, but need to define -shared option too, otherwise
12914
      # it will coredump.
12915
      lt_prog_compiler_pic_CXX='-fPIC -shared'
12916
      ;;
12917
    *)
12918
      lt_prog_compiler_pic_CXX='-fPIC'
12919
      ;;
12920
    esac
12921
  else
12922
    case $host_os in
12923
      aix[4-9]*)
12924
	# All AIX code is PIC.
12925
	if test "$host_cpu" = ia64; then
12926
	  # AIX 5 now supports IA64 processor
12927
	  lt_prog_compiler_static_CXX='-Bstatic'
12928
	else
12929
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12930
	fi
12931
	;;
12932
      chorus*)
12933
	case $cc_basename in
12934
	cxch68*)
12935
	  # Green Hills C++ Compiler
12936
	  # _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"
12937
	  ;;
12938
	esac
12939
	;;
12940
      dgux*)
12941
	case $cc_basename in
12942
	  ec++*)
12943
	    lt_prog_compiler_pic_CXX='-KPIC'
12944
	    ;;
12945
	  ghcx*)
12946
	    # Green Hills C++ Compiler
12947
	    lt_prog_compiler_pic_CXX='-pic'
12948
	    ;;
12949
	  *)
12950
	    ;;
12951
	esac
12952
	;;
12953
      freebsd* | dragonfly*)
12954
	# FreeBSD uses GNU C++
12955
	;;
12956
      hpux9* | hpux10* | hpux11*)
12957
	case $cc_basename in
12958
	  CC*)
12959
	    lt_prog_compiler_wl_CXX='-Wl,'
12960
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12961
	    if test "$host_cpu" != ia64; then
12962
	      lt_prog_compiler_pic_CXX='+Z'
12963
	    fi
12964
	    ;;
12965
	  aCC*)
12966
	    lt_prog_compiler_wl_CXX='-Wl,'
12967
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12968
	    case $host_cpu in
12969
	    hppa*64*|ia64*)
12970
	      # +Z the default
12971
	      ;;
12972
	    *)
12973
	      lt_prog_compiler_pic_CXX='+Z'
12974
	      ;;
12975
	    esac
12976
	    ;;
12977
	  *)
12978
	    ;;
12979
	esac
12980
	;;
12981
      interix*)
12982
	# This is c89, which is MS Visual C++ (no shared libs)
12983
	# Anyone wants to do a port?
12984
	;;
12985
      irix5* | irix6* | nonstopux*)
12986
	case $cc_basename in
12987
	  CC*)
12988
	    lt_prog_compiler_wl_CXX='-Wl,'
12989
	    lt_prog_compiler_static_CXX='-non_shared'
12990
	    # CC pic flag -KPIC is the default.
12991
	    ;;
12992
	  *)
12993
	    ;;
12994
	esac
12995
	;;
12996
      linux* | k*bsd*-gnu)
12997
	case $cc_basename in
12998
	  KCC*)
12999
	    # KAI C++ Compiler
13000
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13001
	    lt_prog_compiler_pic_CXX='-fPIC'
13002
	    ;;
13003
	  ecpc* )
13004
	    # old Intel C++ for x86_64 which still supported -KPIC.
13005
	    lt_prog_compiler_wl_CXX='-Wl,'
13006
	    lt_prog_compiler_pic_CXX='-KPIC'
13007
	    lt_prog_compiler_static_CXX='-static'
13008
	    ;;
13009
	  icpc* )
13010
	    # Intel C++, used to be incompatible with GCC.
13011
	    # ICC 10 doesn't accept -KPIC any more.
13012
	    lt_prog_compiler_wl_CXX='-Wl,'
13013
	    lt_prog_compiler_pic_CXX='-fPIC'
13014
	    lt_prog_compiler_static_CXX='-static'
13015
	    ;;
13016
	  pgCC* | pgcpp*)
13017
	    # Portland Group C++ compiler
13018
	    lt_prog_compiler_wl_CXX='-Wl,'
13019
	    lt_prog_compiler_pic_CXX='-fpic'
13020
	    lt_prog_compiler_static_CXX='-Bstatic'
13021
	    ;;
13022
	  cxx*)
13023
	    # Compaq C++
13024
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13025
	    # Linux and Compaq Tru64 Unix objects are PIC.
13026
	    lt_prog_compiler_pic_CXX=
13027
	    lt_prog_compiler_static_CXX='-non_shared'
13028
	    ;;
13029
	  xlc* | xlC*)
13030
	    # IBM XL 8.0 on PPC
13031
	    lt_prog_compiler_wl_CXX='-Wl,'
13032
	    lt_prog_compiler_pic_CXX='-qpic'
13033
	    lt_prog_compiler_static_CXX='-qstaticlink'
13034
	    ;;
13035
	  *)
13036
	    case `$CC -V 2>&1 | sed 5q` in
13037
	    *Sun\ C*)
13038
	      # Sun C++ 5.9
13039
	      lt_prog_compiler_pic_CXX='-KPIC'
13040
	      lt_prog_compiler_static_CXX='-Bstatic'
13041
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13042
	      ;;
13043
	    esac
13044
	    ;;
13045
	esac
13046
	;;
13047
      lynxos*)
13048
	;;
13049
      m88k*)
13050
	;;
13051
      mvs*)
13052
	case $cc_basename in
13053
	  cxx*)
13054
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13055
	    ;;
13056
	  *)
13057
	    ;;
13058
	esac
13059
	;;
13060
      netbsd* | netbsdelf*-gnu)
13061
	;;
13062
      *qnx* | *nto*)
13063
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13064
        # it will coredump.
13065
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13066
        ;;
13067
      osf3* | osf4* | osf5*)
13068
	case $cc_basename in
13069
	  KCC*)
13070
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13071
	    ;;
13072
	  RCC*)
13073
	    # Rational C++ 2.4.1
13074
	    lt_prog_compiler_pic_CXX='-pic'
13075
	    ;;
13076
	  cxx*)
13077
	    # Digital/Compaq C++
13078
	    lt_prog_compiler_wl_CXX='-Wl,'
13079
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13080
	    # Linux and Compaq Tru64 Unix objects are PIC.
13081
	    lt_prog_compiler_pic_CXX=
13082
	    lt_prog_compiler_static_CXX='-non_shared'
13083
	    ;;
13084
	  *)
13085
	    ;;
13086
	esac
13087
	;;
13088
      psos*)
13089
	;;
13090
      solaris*)
13091
	case $cc_basename in
13092
	  CC*)
13093
	    # Sun C++ 4.2, 5.x and Centerline C++
13094
	    lt_prog_compiler_pic_CXX='-KPIC'
13095
	    lt_prog_compiler_static_CXX='-Bstatic'
13096
	    lt_prog_compiler_wl_CXX='-Qoption ld '
13097
	    ;;
13098
	  gcx*)
13099
	    # Green Hills C++ Compiler
13100
	    lt_prog_compiler_pic_CXX='-PIC'
13101
	    ;;
13102
	  *)
13103
	    ;;
13104
	esac
13105
	;;
13106
      sunos4*)
13107
	case $cc_basename in
13108
	  CC*)
13109
	    # Sun C++ 4.x
13110
	    lt_prog_compiler_pic_CXX='-pic'
13111
	    lt_prog_compiler_static_CXX='-Bstatic'
13112
	    ;;
13113
	  lcc*)
13114
	    # Lucid
13115
	    lt_prog_compiler_pic_CXX='-pic'
13116
	    ;;
13117
	  *)
13118
	    ;;
13119
	esac
13120
	;;
13121
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13122
	case $cc_basename in
13123
	  CC*)
13124
	    lt_prog_compiler_wl_CXX='-Wl,'
13125
	    lt_prog_compiler_pic_CXX='-KPIC'
13126
	    lt_prog_compiler_static_CXX='-Bstatic'
13127
	    ;;
13128
	esac
13129
	;;
13130
      tandem*)
13131
	case $cc_basename in
13132
	  NCC*)
13133
	    # NonStop-UX NCC 3.20
13134
	    lt_prog_compiler_pic_CXX='-KPIC'
13135
	    ;;
13136
	  *)
13137
	    ;;
13138
	esac
13139
	;;
13140
      vxworks*)
13141
	;;
13142
      *)
13143
	lt_prog_compiler_can_build_shared_CXX=no
13144
	;;
13145
    esac
13146
  fi
13147
13148
case $host_os in
13149
  # For platforms which do not support PIC, -DPIC is meaningless:
13150
  *djgpp*)
13151
    lt_prog_compiler_pic_CXX=
13152
    ;;
13153
  *)
13154
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13155
    ;;
13156
esac
13157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13158
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13159
13160
13161
13162
#
13163
# Check to make sure the PIC flag actually works.
13164
#
13165
if test -n "$lt_prog_compiler_pic_CXX"; then
13166
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13167
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13168
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13169
  $as_echo_n "(cached) " >&6
13170
else
13171
  lt_cv_prog_compiler_pic_works_CXX=no
13172
   ac_outfile=conftest.$ac_objext
13173
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13174
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13175
   # Insert the option either (1) after the last *FLAGS variable, or
13176
   # (2) before a word containing "conftest.", or (3) at the end.
13177
   # Note that $ac_compile itself does not contain backslashes and begins
13178
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13179
   # The option is referenced via a variable to avoid confusing sed.
13180
   lt_compile=`echo "$ac_compile" | $SED \
13181
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13182
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
13184
   (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
5 by edam
- updated README
13185
   (eval "$lt_compile" 2>conftest.err)
13186
   ac_status=$?
13187
   cat conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
13188
   echo "$as_me:13188: \$? = $ac_status" >&5
5 by edam
- updated README
13189
   if (exit $ac_status) && test -s "$ac_outfile"; then
13190
     # The compiler can only warn and ignore the option if not recognized
13191
     # So say no if there are warnings other than the usual output.
13192
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13193
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13194
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13195
       lt_cv_prog_compiler_pic_works_CXX=yes
13196
     fi
13197
   fi
13198
   $RM conftest*
13199
13200
fi
13201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13202
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13203
13204
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13205
    case $lt_prog_compiler_pic_CXX in
13206
     "" | " "*) ;;
13207
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13208
     esac
13209
else
13210
    lt_prog_compiler_pic_CXX=
13211
     lt_prog_compiler_can_build_shared_CXX=no
13212
fi
13213
13214
fi
13215
13216
13217
13218
#
13219
# Check to make sure the static flag actually works.
13220
#
13221
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13223
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13224
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13225
  $as_echo_n "(cached) " >&6
13226
else
13227
  lt_cv_prog_compiler_static_works_CXX=no
13228
   save_LDFLAGS="$LDFLAGS"
13229
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13230
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13231
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13232
     # The linker can only warn and ignore the option if not recognized
13233
     # So say no if there are warnings
13234
     if test -s conftest.err; then
13235
       # Append any errors to the config.log.
13236
       cat conftest.err 1>&5
13237
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13238
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13239
       if diff conftest.exp conftest.er2 >/dev/null; then
13240
         lt_cv_prog_compiler_static_works_CXX=yes
13241
       fi
13242
     else
13243
       lt_cv_prog_compiler_static_works_CXX=yes
13244
     fi
13245
   fi
13246
   $RM -r conftest*
13247
   LDFLAGS="$save_LDFLAGS"
13248
13249
fi
13250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13251
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13252
13253
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13254
    :
13255
else
13256
    lt_prog_compiler_static_CXX=
13257
fi
13258
13259
13260
13261
13262
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13263
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13264
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13265
  $as_echo_n "(cached) " >&6
13266
else
13267
  lt_cv_prog_compiler_c_o_CXX=no
13268
   $RM -r conftest 2>/dev/null
13269
   mkdir conftest
13270
   cd conftest
13271
   mkdir out
13272
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13273
13274
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13275
   # Insert the option either (1) after the last *FLAGS variable, or
13276
   # (2) before a word containing "conftest.", or (3) at the end.
13277
   # Note that $ac_compile itself does not contain backslashes and begins
13278
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13279
   lt_compile=`echo "$ac_compile" | $SED \
13280
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13281
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13282
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
13283
   (eval echo "\"\$as_me:13283: $lt_compile\"" >&5)
5 by edam
- updated README
13284
   (eval "$lt_compile" 2>out/conftest.err)
13285
   ac_status=$?
13286
   cat out/conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
13287
   echo "$as_me:13287: \$? = $ac_status" >&5
5 by edam
- updated README
13288
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13289
   then
13290
     # The compiler can only warn and ignore the option if not recognized
13291
     # So say no if there are warnings
13292
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13293
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13294
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13295
       lt_cv_prog_compiler_c_o_CXX=yes
13296
     fi
13297
   fi
13298
   chmod u+w . 2>&5
13299
   $RM conftest*
13300
   # SGI C++ compiler will create directory out/ii_files/ for
13301
   # template instantiation
13302
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13303
   $RM out/* && rmdir out
13304
   cd ..
13305
   $RM -r conftest
13306
   $RM conftest*
13307
13308
fi
13309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13310
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13311
13312
13313
13314
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13315
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13316
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13317
  $as_echo_n "(cached) " >&6
13318
else
13319
  lt_cv_prog_compiler_c_o_CXX=no
13320
   $RM -r conftest 2>/dev/null
13321
   mkdir conftest
13322
   cd conftest
13323
   mkdir out
13324
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13325
13326
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13327
   # Insert the option either (1) after the last *FLAGS variable, or
13328
   # (2) before a word containing "conftest.", or (3) at the end.
13329
   # Note that $ac_compile itself does not contain backslashes and begins
13330
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13331
   lt_compile=`echo "$ac_compile" | $SED \
13332
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13333
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13334
   -e 's:$: $lt_compiler_flag:'`
6 by edam
- fixed .am files so the library gets built!
13335
   (eval echo "\"\$as_me:13335: $lt_compile\"" >&5)
5 by edam
- updated README
13336
   (eval "$lt_compile" 2>out/conftest.err)
13337
   ac_status=$?
13338
   cat out/conftest.err >&5
6 by edam
- fixed .am files so the library gets built!
13339
   echo "$as_me:13339: \$? = $ac_status" >&5
5 by edam
- updated README
13340
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13341
   then
13342
     # The compiler can only warn and ignore the option if not recognized
13343
     # So say no if there are warnings
13344
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13345
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13346
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13347
       lt_cv_prog_compiler_c_o_CXX=yes
13348
     fi
13349
   fi
13350
   chmod u+w . 2>&5
13351
   $RM conftest*
13352
   # SGI C++ compiler will create directory out/ii_files/ for
13353
   # template instantiation
13354
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13355
   $RM out/* && rmdir out
13356
   cd ..
13357
   $RM -r conftest
13358
   $RM conftest*
13359
13360
fi
13361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13362
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13363
13364
13365
13366
13367
hard_links="nottested"
13368
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13369
  # do not overwrite the value of need_locks provided by the user
13370
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13371
$as_echo_n "checking if we can lock with hard links... " >&6; }
13372
  hard_links=yes
13373
  $RM conftest*
13374
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13375
  touch conftest.a
13376
  ln conftest.a conftest.b 2>&5 || hard_links=no
13377
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13379
$as_echo "$hard_links" >&6; }
13380
  if test "$hard_links" = no; then
13381
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13382
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13383
    need_locks=warn
13384
  fi
13385
else
13386
  need_locks=no
13387
fi
13388
13389
13390
13391
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13392
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13393
13394
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13395
  case $host_os in
13396
  aix[4-9]*)
13397
    # If we're using GNU nm, then we don't want the "-C" option.
13398
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13399
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13400
      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'
13401
    else
13402
      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'
13403
    fi
13404
    ;;
13405
  pw32*)
13406
    export_symbols_cmds_CXX="$ltdll_cmds"
13407
  ;;
13408
  cygwin* | mingw* | cegcc*)
13409
    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'
13410
  ;;
13411
  linux* | k*bsd*-gnu)
13412
    link_all_deplibs_CXX=no
13413
  ;;
13414
  *)
13415
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13416
  ;;
13417
  esac
13418
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13419
13420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13421
$as_echo "$ld_shlibs_CXX" >&6; }
13422
test "$ld_shlibs_CXX" = no && can_build_shared=no
13423
13424
with_gnu_ld_CXX=$with_gnu_ld
13425
13426
13427
13428
13429
13430
13431
#
13432
# Do we need to explicitly link libc?
13433
#
13434
case "x$archive_cmds_need_lc_CXX" in
13435
x|xyes)
13436
  # Assume -lc should be added
13437
  archive_cmds_need_lc_CXX=yes
13438
13439
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13440
    case $archive_cmds_CXX in
13441
    *'~'*)
13442
      # FIXME: we may have to deal with multi-command sequences.
13443
      ;;
13444
    '$CC '*)
13445
      # Test whether the compiler implicitly links with -lc since on some
13446
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13447
      # to ld, don't add -lc before -lgcc.
13448
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13449
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13450
      $RM conftest*
13451
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13452
13453
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13454
  (eval $ac_compile) 2>&5
13455
  ac_status=$?
13456
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457
  test $ac_status = 0; } 2>conftest.err; then
13458
        soname=conftest
13459
        lib=conftest
13460
        libobjs=conftest.$ac_objext
13461
        deplibs=
13462
        wl=$lt_prog_compiler_wl_CXX
13463
	pic_flag=$lt_prog_compiler_pic_CXX
13464
        compiler_flags=-v
13465
        linker_flags=-v
13466
        verstring=
13467
        output_objdir=.
13468
        libname=conftest
13469
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13470
        allow_undefined_flag_CXX=
13471
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13472
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13473
  ac_status=$?
13474
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475
  test $ac_status = 0; }
13476
        then
13477
	  archive_cmds_need_lc_CXX=no
13478
        else
13479
	  archive_cmds_need_lc_CXX=yes
13480
        fi
13481
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13482
      else
13483
        cat conftest.err 1>&5
13484
      fi
13485
      $RM conftest*
13486
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13487
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13488
      ;;
13489
    esac
13490
  fi
13491
  ;;
13492
esac
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
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13558
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13559
13560
library_names_spec=
13561
libname_spec='lib$name'
13562
soname_spec=
13563
shrext_cmds=".so"
13564
postinstall_cmds=
13565
postuninstall_cmds=
13566
finish_cmds=
13567
finish_eval=
13568
shlibpath_var=
13569
shlibpath_overrides_runpath=unknown
13570
version_type=none
13571
dynamic_linker="$host_os ld.so"
13572
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13573
need_lib_prefix=unknown
13574
hardcode_into_libs=no
13575
13576
# when you set need_version to no, make sure it does not cause -set_version
13577
# flags to be left without arguments
13578
need_version=unknown
13579
13580
case $host_os in
13581
aix3*)
13582
  version_type=linux
13583
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13584
  shlibpath_var=LIBPATH
13585
13586
  # AIX 3 has no versioning support, so we append a major version to the name.
13587
  soname_spec='${libname}${release}${shared_ext}$major'
13588
  ;;
13589
13590
aix[4-9]*)
13591
  version_type=linux
13592
  need_lib_prefix=no
13593
  need_version=no
13594
  hardcode_into_libs=yes
13595
  if test "$host_cpu" = ia64; then
13596
    # AIX 5 supports IA64
13597
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13598
    shlibpath_var=LD_LIBRARY_PATH
13599
  else
13600
    # With GCC up to 2.95.x, collect2 would create an import file
13601
    # for dependence libraries.  The import file would start with
13602
    # the line `#! .'.  This would cause the generated library to
13603
    # depend on `.', always an invalid library.  This was fixed in
13604
    # development snapshots of GCC prior to 3.0.
13605
    case $host_os in
13606
      aix4 | aix4.[01] | aix4.[01].*)
13607
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13608
	   echo ' yes '
13609
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13610
	:
13611
      else
13612
	can_build_shared=no
13613
      fi
13614
      ;;
13615
    esac
13616
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13617
    # soname into executable. Probably we can add versioning support to
13618
    # collect2, so additional links can be useful in future.
13619
    if test "$aix_use_runtimelinking" = yes; then
13620
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13621
      # instead of lib<name>.a to let people know that these are not
13622
      # typical AIX shared libraries.
13623
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624
    else
13625
      # We preserve .a as extension for shared libraries through AIX4.2
13626
      # and later when we are not doing run time linking.
13627
      library_names_spec='${libname}${release}.a $libname.a'
13628
      soname_spec='${libname}${release}${shared_ext}$major'
13629
    fi
13630
    shlibpath_var=LIBPATH
13631
  fi
13632
  ;;
13633
13634
amigaos*)
13635
  case $host_cpu in
13636
  powerpc)
13637
    # Since July 2007 AmigaOS4 officially supports .so libraries.
13638
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13639
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640
    ;;
13641
  m68k)
13642
    library_names_spec='$libname.ixlibrary $libname.a'
13643
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13644
    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'
13645
    ;;
13646
  esac
13647
  ;;
13648
13649
beos*)
13650
  library_names_spec='${libname}${shared_ext}'
13651
  dynamic_linker="$host_os ld.so"
13652
  shlibpath_var=LIBRARY_PATH
13653
  ;;
13654
13655
bsdi[45]*)
13656
  version_type=linux
13657
  need_version=no
13658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13659
  soname_spec='${libname}${release}${shared_ext}$major'
13660
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13661
  shlibpath_var=LD_LIBRARY_PATH
13662
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13663
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13664
  # the default ld.so.conf also contains /usr/contrib/lib and
13665
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13666
  # libtool to hard-code these into programs
13667
  ;;
13668
13669
cygwin* | mingw* | pw32* | cegcc*)
13670
  version_type=windows
13671
  shrext_cmds=".dll"
13672
  need_version=no
13673
  need_lib_prefix=no
13674
13675
  case $GCC,$host_os in
13676
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13677
    library_names_spec='$libname.dll.a'
13678
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13679
    postinstall_cmds='base_file=`basename \${file}`~
13680
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13681
      dldir=$destdir/`dirname \$dlpath`~
13682
      test -d \$dldir || mkdir -p \$dldir~
13683
      $install_prog $dir/$dlname \$dldir/$dlname~
13684
      chmod a+x \$dldir/$dlname~
13685
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13686
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13687
      fi'
13688
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13689
      dlpath=$dir/\$dldll~
13690
       $RM \$dlpath'
13691
    shlibpath_overrides_runpath=yes
13692
13693
    case $host_os in
13694
    cygwin*)
13695
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13696
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13697
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13698
      ;;
13699
    mingw* | cegcc*)
13700
      # MinGW DLLs use traditional 'lib' prefix
13701
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13702
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13703
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13704
        # It is most probably a Windows format PATH printed by
13705
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13706
        # path with ; separators, and with drive letters. We can handle the
13707
        # drive letters (cygwin fileutils understands them), so leave them,
13708
        # especially as we might pass files found there to a mingw objdump,
13709
        # which wouldn't understand a cygwinified path. Ahh.
13710
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13711
      else
13712
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13713
      fi
13714
      ;;
13715
    pw32*)
13716
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13717
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13718
      ;;
13719
    esac
13720
    ;;
13721
13722
  *)
13723
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13724
    ;;
13725
  esac
13726
  dynamic_linker='Win32 ld.exe'
13727
  # FIXME: first we should search . and the directory the executable is in
13728
  shlibpath_var=PATH
13729
  ;;
13730
13731
darwin* | rhapsody*)
13732
  dynamic_linker="$host_os dyld"
13733
  version_type=darwin
13734
  need_lib_prefix=no
13735
  need_version=no
13736
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13737
  soname_spec='${libname}${release}${major}$shared_ext'
13738
  shlibpath_overrides_runpath=yes
13739
  shlibpath_var=DYLD_LIBRARY_PATH
13740
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13741
13742
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13743
  ;;
13744
13745
dgux*)
13746
  version_type=linux
13747
  need_lib_prefix=no
13748
  need_version=no
13749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13750
  soname_spec='${libname}${release}${shared_ext}$major'
13751
  shlibpath_var=LD_LIBRARY_PATH
13752
  ;;
13753
13754
freebsd1*)
13755
  dynamic_linker=no
13756
  ;;
13757
13758
freebsd* | dragonfly*)
13759
  # DragonFly does not have aout.  When/if they implement a new
13760
  # versioning mechanism, adjust this.
13761
  if test -x /usr/bin/objformat; then
13762
    objformat=`/usr/bin/objformat`
13763
  else
13764
    case $host_os in
13765
    freebsd[123]*) objformat=aout ;;
13766
    *) objformat=elf ;;
13767
    esac
13768
  fi
13769
  version_type=freebsd-$objformat
13770
  case $version_type in
13771
    freebsd-elf*)
13772
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13773
      need_version=no
13774
      need_lib_prefix=no
13775
      ;;
13776
    freebsd-*)
13777
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13778
      need_version=yes
13779
      ;;
13780
  esac
13781
  shlibpath_var=LD_LIBRARY_PATH
13782
  case $host_os in
13783
  freebsd2*)
13784
    shlibpath_overrides_runpath=yes
13785
    ;;
13786
  freebsd3.[01]* | freebsdelf3.[01]*)
13787
    shlibpath_overrides_runpath=yes
13788
    hardcode_into_libs=yes
13789
    ;;
13790
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13791
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13792
    shlibpath_overrides_runpath=no
13793
    hardcode_into_libs=yes
13794
    ;;
13795
  *) # from 4.6 on, and DragonFly
13796
    shlibpath_overrides_runpath=yes
13797
    hardcode_into_libs=yes
13798
    ;;
13799
  esac
13800
  ;;
13801
13802
gnu*)
13803
  version_type=linux
13804
  need_lib_prefix=no
13805
  need_version=no
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
  shlibpath_var=LD_LIBRARY_PATH
13809
  hardcode_into_libs=yes
13810
  ;;
13811
13812
hpux9* | hpux10* | hpux11*)
13813
  # Give a soname corresponding to the major version so that dld.sl refuses to
13814
  # link against other versions.
13815
  version_type=sunos
13816
  need_lib_prefix=no
13817
  need_version=no
13818
  case $host_cpu in
13819
  ia64*)
13820
    shrext_cmds='.so'
13821
    hardcode_into_libs=yes
13822
    dynamic_linker="$host_os dld.so"
13823
    shlibpath_var=LD_LIBRARY_PATH
13824
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13825
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826
    soname_spec='${libname}${release}${shared_ext}$major'
13827
    if test "X$HPUX_IA64_MODE" = X32; then
13828
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13829
    else
13830
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13831
    fi
13832
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13833
    ;;
13834
  hppa*64*)
13835
    shrext_cmds='.sl'
13836
    hardcode_into_libs=yes
13837
    dynamic_linker="$host_os dld.sl"
13838
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13839
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13840
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841
    soname_spec='${libname}${release}${shared_ext}$major'
13842
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13843
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13844
    ;;
13845
  *)
13846
    shrext_cmds='.sl'
13847
    dynamic_linker="$host_os dld.sl"
13848
    shlibpath_var=SHLIB_PATH
13849
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13850
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851
    soname_spec='${libname}${release}${shared_ext}$major'
13852
    ;;
13853
  esac
13854
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13855
  postinstall_cmds='chmod 555 $lib'
13856
  ;;
13857
13858
interix[3-9]*)
13859
  version_type=linux
13860
  need_lib_prefix=no
13861
  need_version=no
13862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13863
  soname_spec='${libname}${release}${shared_ext}$major'
13864
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13865
  shlibpath_var=LD_LIBRARY_PATH
13866
  shlibpath_overrides_runpath=no
13867
  hardcode_into_libs=yes
13868
  ;;
13869
13870
irix5* | irix6* | nonstopux*)
13871
  case $host_os in
13872
    nonstopux*) version_type=nonstopux ;;
13873
    *)
13874
	if test "$lt_cv_prog_gnu_ld" = yes; then
13875
		version_type=linux
13876
	else
13877
		version_type=irix
13878
	fi ;;
13879
  esac
13880
  need_lib_prefix=no
13881
  need_version=no
13882
  soname_spec='${libname}${release}${shared_ext}$major'
13883
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13884
  case $host_os in
13885
  irix5* | nonstopux*)
13886
    libsuff= shlibsuff=
13887
    ;;
13888
  *)
13889
    case $LD in # libtool.m4 will add one of these switches to LD
13890
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13891
      libsuff= shlibsuff= libmagic=32-bit;;
13892
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13893
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13894
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13895
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13896
    *) libsuff= shlibsuff= libmagic=never-match;;
13897
    esac
13898
    ;;
13899
  esac
13900
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13901
  shlibpath_overrides_runpath=no
13902
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13903
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13904
  hardcode_into_libs=yes
13905
  ;;
13906
13907
# No shared lib support for Linux oldld, aout, or coff.
13908
linux*oldld* | linux*aout* | linux*coff*)
13909
  dynamic_linker=no
13910
  ;;
13911
13912
# This must be Linux ELF.
13913
linux* | k*bsd*-gnu)
13914
  version_type=linux
13915
  need_lib_prefix=no
13916
  need_version=no
13917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918
  soname_spec='${libname}${release}${shared_ext}$major'
13919
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13920
  shlibpath_var=LD_LIBRARY_PATH
13921
  shlibpath_overrides_runpath=no
13922
  # Some binutils ld are patched to set DT_RUNPATH
13923
  save_LDFLAGS=$LDFLAGS
13924
  save_libdir=$libdir
13925
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13926
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928
/* end confdefs.h.  */
13929
13930
int
13931
main ()
13932
{
13933
13934
  ;
13935
  return 0;
13936
}
13937
_ACEOF
13938
if ac_fn_cxx_try_link "$LINENO"; then :
13939
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13940
  shlibpath_overrides_runpath=yes
13941
fi
13942
fi
13943
rm -f core conftest.err conftest.$ac_objext \
13944
    conftest$ac_exeext conftest.$ac_ext
13945
  LDFLAGS=$save_LDFLAGS
13946
  libdir=$save_libdir
13947
13948
  # This implies no fast_install, which is unacceptable.
13949
  # Some rework will be needed to allow for fast_install
13950
  # before this can be enabled.
13951
  hardcode_into_libs=yes
13952
13953
  # Append ld.so.conf contents to the search path
13954
  if test -f /etc/ld.so.conf; then
13955
    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' ' '`
13956
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13957
  fi
13958
13959
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13960
  # powerpc, because MkLinux only supported shared libraries with the
13961
  # GNU dynamic linker.  Since this was broken with cross compilers,
13962
  # most powerpc-linux boxes support dynamic linking these days and
13963
  # people can always --disable-shared, the test was removed, and we
13964
  # assume the GNU/Linux dynamic linker is in use.
13965
  dynamic_linker='GNU/Linux ld.so'
13966
  ;;
13967
13968
netbsdelf*-gnu)
13969
  version_type=linux
13970
  need_lib_prefix=no
13971
  need_version=no
13972
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13973
  soname_spec='${libname}${release}${shared_ext}$major'
13974
  shlibpath_var=LD_LIBRARY_PATH
13975
  shlibpath_overrides_runpath=no
13976
  hardcode_into_libs=yes
13977
  dynamic_linker='NetBSD ld.elf_so'
13978
  ;;
13979
13980
netbsd*)
13981
  version_type=sunos
13982
  need_lib_prefix=no
13983
  need_version=no
13984
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13985
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987
    dynamic_linker='NetBSD (a.out) ld.so'
13988
  else
13989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13990
    soname_spec='${libname}${release}${shared_ext}$major'
13991
    dynamic_linker='NetBSD ld.elf_so'
13992
  fi
13993
  shlibpath_var=LD_LIBRARY_PATH
13994
  shlibpath_overrides_runpath=yes
13995
  hardcode_into_libs=yes
13996
  ;;
13997
13998
newsos6)
13999
  version_type=linux
14000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001
  shlibpath_var=LD_LIBRARY_PATH
14002
  shlibpath_overrides_runpath=yes
14003
  ;;
14004
14005
*nto* | *qnx*)
14006
  version_type=qnx
14007
  need_lib_prefix=no
14008
  need_version=no
14009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010
  soname_spec='${libname}${release}${shared_ext}$major'
14011
  shlibpath_var=LD_LIBRARY_PATH
14012
  shlibpath_overrides_runpath=no
14013
  hardcode_into_libs=yes
14014
  dynamic_linker='ldqnx.so'
14015
  ;;
14016
14017
openbsd*)
14018
  version_type=sunos
14019
  sys_lib_dlsearch_path_spec="/usr/lib"
14020
  need_lib_prefix=no
14021
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14022
  case $host_os in
14023
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14024
    *)				need_version=no  ;;
14025
  esac
14026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14027
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14028
  shlibpath_var=LD_LIBRARY_PATH
14029
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14030
    case $host_os in
14031
      openbsd2.[89] | openbsd2.[89].*)
14032
	shlibpath_overrides_runpath=no
14033
	;;
14034
      *)
14035
	shlibpath_overrides_runpath=yes
14036
	;;
14037
      esac
14038
  else
14039
    shlibpath_overrides_runpath=yes
14040
  fi
14041
  ;;
14042
14043
os2*)
14044
  libname_spec='$name'
14045
  shrext_cmds=".dll"
14046
  need_lib_prefix=no
14047
  library_names_spec='$libname${shared_ext} $libname.a'
14048
  dynamic_linker='OS/2 ld.exe'
14049
  shlibpath_var=LIBPATH
14050
  ;;
14051
14052
osf3* | osf4* | osf5*)
14053
  version_type=osf
14054
  need_lib_prefix=no
14055
  need_version=no
14056
  soname_spec='${libname}${release}${shared_ext}$major'
14057
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058
  shlibpath_var=LD_LIBRARY_PATH
14059
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14060
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14061
  ;;
14062
14063
rdos*)
14064
  dynamic_linker=no
14065
  ;;
14066
14067
solaris*)
14068
  version_type=linux
14069
  need_lib_prefix=no
14070
  need_version=no
14071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072
  soname_spec='${libname}${release}${shared_ext}$major'
14073
  shlibpath_var=LD_LIBRARY_PATH
14074
  shlibpath_overrides_runpath=yes
14075
  hardcode_into_libs=yes
14076
  # ldd complains unless libraries are executable
14077
  postinstall_cmds='chmod +x $lib'
14078
  ;;
14079
14080
sunos4*)
14081
  version_type=sunos
14082
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14084
  shlibpath_var=LD_LIBRARY_PATH
14085
  shlibpath_overrides_runpath=yes
14086
  if test "$with_gnu_ld" = yes; then
14087
    need_lib_prefix=no
14088
  fi
14089
  need_version=yes
14090
  ;;
14091
14092
sysv4 | sysv4.3*)
14093
  version_type=linux
14094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095
  soname_spec='${libname}${release}${shared_ext}$major'
14096
  shlibpath_var=LD_LIBRARY_PATH
14097
  case $host_vendor in
14098
    sni)
14099
      shlibpath_overrides_runpath=no
14100
      need_lib_prefix=no
14101
      runpath_var=LD_RUN_PATH
14102
      ;;
14103
    siemens)
14104
      need_lib_prefix=no
14105
      ;;
14106
    motorola)
14107
      need_lib_prefix=no
14108
      need_version=no
14109
      shlibpath_overrides_runpath=no
14110
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14111
      ;;
14112
  esac
14113
  ;;
14114
14115
sysv4*MP*)
14116
  if test -d /usr/nec ;then
14117
    version_type=linux
14118
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14119
    soname_spec='$libname${shared_ext}.$major'
14120
    shlibpath_var=LD_LIBRARY_PATH
14121
  fi
14122
  ;;
14123
14124
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14125
  version_type=freebsd-elf
14126
  need_lib_prefix=no
14127
  need_version=no
14128
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14129
  soname_spec='${libname}${release}${shared_ext}$major'
14130
  shlibpath_var=LD_LIBRARY_PATH
14131
  shlibpath_overrides_runpath=yes
14132
  hardcode_into_libs=yes
14133
  if test "$with_gnu_ld" = yes; then
14134
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14135
  else
14136
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14137
    case $host_os in
14138
      sco3.2v5*)
14139
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14140
	;;
14141
    esac
14142
  fi
14143
  sys_lib_dlsearch_path_spec='/usr/lib'
14144
  ;;
14145
14146
tpf*)
14147
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14148
  version_type=linux
14149
  need_lib_prefix=no
14150
  need_version=no
14151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152
  shlibpath_var=LD_LIBRARY_PATH
14153
  shlibpath_overrides_runpath=no
14154
  hardcode_into_libs=yes
14155
  ;;
14156
14157
uts4*)
14158
  version_type=linux
14159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160
  soname_spec='${libname}${release}${shared_ext}$major'
14161
  shlibpath_var=LD_LIBRARY_PATH
14162
  ;;
14163
14164
*)
14165
  dynamic_linker=no
14166
  ;;
14167
esac
14168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14169
$as_echo "$dynamic_linker" >&6; }
14170
test "$dynamic_linker" = no && can_build_shared=no
14171
14172
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14173
if test "$GCC" = yes; then
14174
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14175
fi
14176
14177
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14178
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14179
fi
14180
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14181
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14182
fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14220
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14221
hardcode_action_CXX=
14222
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14223
   test -n "$runpath_var_CXX" ||
14224
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14225
14226
  # We can hardcode non-existent directories.
14227
  if test "$hardcode_direct_CXX" != no &&
14228
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229
     # have to relink, otherwise we might link with an installed library
14230
     # when we should be linking with a yet-to-be-installed one
14231
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14232
     test "$hardcode_minus_L_CXX" != no; then
14233
    # Linking always hardcodes the temporary library directory.
14234
    hardcode_action_CXX=relink
14235
  else
14236
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237
    hardcode_action_CXX=immediate
14238
  fi
14239
else
14240
  # We cannot hardcode anything, or else we can only hardcode existing
14241
  # directories.
14242
  hardcode_action_CXX=unsupported
14243
fi
14244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14245
$as_echo "$hardcode_action_CXX" >&6; }
14246
14247
if test "$hardcode_action_CXX" = relink ||
14248
   test "$inherit_rpath_CXX" = yes; then
14249
  # Fast installation is not supported
14250
  enable_fast_install=no
14251
elif test "$shlibpath_overrides_runpath" = yes ||
14252
     test "$enable_shared" = no; then
14253
  # Fast installation is not necessary
14254
  enable_fast_install=needless
14255
fi
14256
14257
14258
14259
14260
14261
14262
14263
  fi # test -n "$compiler"
14264
14265
  CC=$lt_save_CC
14266
  LDCXX=$LD
14267
  LD=$lt_save_LD
14268
  GCC=$lt_save_GCC
14269
  with_gnu_ld=$lt_save_with_gnu_ld
14270
  lt_cv_path_LDCXX=$lt_cv_path_LD
14271
  lt_cv_path_LD=$lt_save_path_LD
14272
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14273
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14274
fi # test "$_lt_caught_CXX_error" != yes
14275
14276
ac_ext=c
14277
ac_cpp='$CPP $CPPFLAGS'
14278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
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__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14529
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14531
fi
14532
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14533
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14535
fi
6 by edam
- fixed .am files so the library gets built!
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
5 by edam
- updated README
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