Subversion Repositories Vertical

Rev

Rev 7 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for metal 1.2.
4
#
5
# Report bugs to <mike@hamble.online>.
6
#
7
#
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
#
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
as_myself=
93
case $0 in #((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103
 
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
 
137
# Use a proper internal environment variable to ensure we don't fall
138
  # into an infinite loop, continuously re-executing ourselves.
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
    _as_can_reexec=no; export _as_can_reexec;
141
    # We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
145
BASH_ENV=/dev/null
146
ENV=/dev/null
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
case $- in # ((((
149
  *v*x* | *x*v* ) as_opts=-vx ;;
150
  *v* ) as_opts=-v ;;
151
  *x* ) as_opts=-x ;;
152
  * ) as_opts= ;;
153
esac
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
as_fn_exit 255
159
  fi
160
  # We don't want this to propagate to other subprocesses.
161
          { _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
  emulate sh
165
  NULLCMD=:
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
  # is contrary to our usage.  Disable this feature.
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
  setopt NO_GLOB_SUBST
170
else
171
  case \`(set -o) 2>/dev/null\` in #(
172
  *posix*) :
173
    set -o posix ;; #(
174
  *) :
175
     ;;
176
esac
177
fi
178
"
179
  as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
184
 
185
exitcode=0
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
 
192
else
193
  exitcode=1; echo positional parameters were not saved.
194
fi
195
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
    PATH=/empty FPATH=/empty; export PATH FPATH
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
  if (eval "$as_required") 2>/dev/null; then :
211
  as_have_required=yes
212
else
213
  as_have_required=no
214
fi
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
 
217
else
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219
as_found=false
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
do
222
  IFS=$as_save_IFS
223
  test -z "$as_dir" && as_dir=.
224
  as_found=:
225
  case $as_dir in #(
226
	 /*)
227
	   for as_base in sh bash ksh sh5; do
228
	     # Try only shells that exist, to save several forks.
229
	     as_shell=$as_dir/$as_base
230
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
  CONFIG_SHELL=$as_shell as_have_required=yes
233
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234
  break 2
235
fi
236
fi
237
	   done;;
238
       esac
239
  as_found=false
240
done
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
  CONFIG_SHELL=$SHELL as_have_required=yes
244
fi; }
245
IFS=$as_save_IFS
246
 
247
 
248
      if test "x$CONFIG_SHELL" != x; then :
249
  export CONFIG_SHELL
250
             # We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
254
BASH_ENV=/dev/null
255
ENV=/dev/null
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257
case $- in # ((((
258
  *v*x* | *x*v* ) as_opts=-vx ;;
259
  *v* ) as_opts=-v ;;
260
  *x* ) as_opts=-x ;;
261
  * ) as_opts= ;;
262
esac
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267
exit 255
268
fi
269
 
270
    if test x$as_have_required = xno; then :
271
  $as_echo "$0: This script requires a shell more modern than all"
272
  $as_echo "$0: the shells that I found on your system."
273
  if test x${ZSH_VERSION+set} = xset ; then
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276
  else
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and mike@hamble.online
278
$0: about your system, including any error possibly output
279
$0: before this message. Then install a modern shell, or
280
$0: manually run the script under such a shell if you do
281
$0: have one."
282
  fi
283
  exit 1
284
fi
285
fi
286
fi
287
SHELL=${CONFIG_SHELL-/bin/sh}
288
export SHELL
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
292
 
293
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
296
# as_fn_unset VAR
297
# ---------------
298
# Portably unset VAR.
299
as_fn_unset ()
300
{
301
  { eval $1=; unset $1;}
302
}
303
as_unset=as_fn_unset
304
 
305
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
308
as_fn_set_status ()
309
{
310
  return $1
311
} # as_fn_set_status
312
 
313
# as_fn_exit STATUS
314
# -----------------
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316
as_fn_exit ()
317
{
318
  set +e
319
  as_fn_set_status $1
320
  exit $1
321
} # as_fn_exit
322
 
323
# as_fn_mkdir_p
324
# -------------
325
# Create "$as_dir" as a directory, including parents if necessary.
326
as_fn_mkdir_p ()
327
{
328
 
329
  case $as_dir in #(
330
  -*) as_dir=./$as_dir;;
331
  esac
332
  test -d "$as_dir" || eval $as_mkdir_p || {
333
    as_dirs=
334
    while :; do
335
      case $as_dir in #(
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337
      *) as_qdir=$as_dir;;
338
      esac
339
      as_dirs="'$as_qdir' $as_dirs"
340
      as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
	 X"$as_dir" : 'X\(//\)[^/]' \| \
343
	 X"$as_dir" : 'X\(//\)$' \| \
344
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347
	    s//\1/
348
	    q
349
	  }
350
	  /^X\(\/\/\)[^/].*/{
351
	    s//\1/
352
	    q
353
	  }
354
	  /^X\(\/\/\)$/{
355
	    s//\1/
356
	    q
357
	  }
358
	  /^X\(\/\).*/{
359
	    s//\1/
360
	    q
361
	  }
362
	  s/.*/./; q'`
363
      test -d "$as_dir" && break
364
    done
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
 
368
 
369
} # as_fn_mkdir_p
370
 
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
375
{
376
  test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
383
# implementations.
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
  eval 'as_fn_append ()
386
  {
387
    eval $1+=\$2
388
  }'
389
else
390
  as_fn_append ()
391
  {
392
    eval $1=\$$1\$2
393
  }
394
fi # as_fn_append
395
 
396
# as_fn_arith ARG...
397
# ------------------
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402
  eval 'as_fn_arith ()
403
  {
404
    as_val=$(( $* ))
405
  }'
406
else
407
  as_fn_arith ()
408
  {
409
    as_val=`expr "$@" || test $? -eq 1`
410
  }
411
fi # as_fn_arith
412
 
413
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
419
as_fn_error ()
420
{
421
  as_status=$1; test $as_status -eq 0 && as_status=1
422
  if test "$4"; then
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425
  fi
426
  $as_echo "$as_me: error: $2" >&2
427
  as_fn_exit $as_status
428
} # as_fn_error
429
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432
  as_expr=expr
433
else
434
  as_expr=false
435
fi
436
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438
  as_basename=basename
439
else
440
  as_basename=false
441
fi
442
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444
  as_dirname=dirname
445
else
446
  as_dirname=false
447
fi
448
 
449
as_me=`$as_basename -- "$0" ||
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451
	 X"$0" : 'X\(//\)$' \| \
452
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453
$as_echo X/"$0" |
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
455
	    s//\1/
456
	    q
457
	  }
458
	  /^X\/\(\/\/\)$/{
459
	    s//\1/
460
	    q
461
	  }
462
	  /^X\/\(\/\).*/{
463
	    s//\1/
464
	    q
465
	  }
466
	  s/.*/./; q'`
467
 
468
# Avoid depending upon Character Ranges.
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472
as_cr_digits='0123456789'
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
474
 
475
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
  # already done that, so ensure we don't try to do so again and fall
501
  # in an infinite loop.  This has already happened in practice.
502
  _as_can_reexec=no; export _as_can_reexec
503
  # Don't try to exec as it changes $[0], causing all sort of problems
504
  # (the dirname of $[0] is not the place where we might find the
505
  # original and so on.  Autoconf is especially sensitive to this).
506
  . "./$as_me.lineno"
507
  # Exit status is that of the last command.
508
  exit
509
}
510
 
511
ECHO_C= ECHO_N= ECHO_T=
512
case `echo -n x` in #(((((
513
-n*)
514
  case `echo 'xy\c'` in
515
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516
  xy)  ECHO_C='\c';;
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518
       ECHO_T='	';;
519
  esac;;
520
*)
521
  ECHO_N='-n';;
522
esac
523
 
524
rm -f conf$$ conf$$.exe conf$$.file
525
if test -d conf$$.dir; then
526
  rm -f conf$$.dir/conf$$.file
527
else
528
  rm -f conf$$.dir
529
  mkdir conf$$.dir 2>/dev/null
530
fi
531
if (echo >conf$$.file) 2>/dev/null; then
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
533
    as_ln_s='ln -s'
534
    # ... but there are two gotchas:
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537
    # In both cases, we have to default to `cp -pR'.
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539
      as_ln_s='cp -pR'
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s=ln
542
  else
543
    as_ln_s='cp -pR'
544
  fi
545
else
546
  as_ln_s='cp -pR'
547
fi
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
rmdir conf$$.dir 2>/dev/null
550
 
551
if mkdir -p . 2>/dev/null; then
552
  as_mkdir_p='mkdir -p "$as_dir"'
553
else
554
  test -d ./-p && rmdir ./-p
555
  as_mkdir_p=false
556
fi
557
 
558
as_test_x='test -x'
559
as_executable_p=as_fn_executable_p
560
 
561
# Sed expression to map a string onto a valid CPP name.
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
 
564
# Sed expression to map a string onto a valid variable name.
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
568
 
569
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
571
exec 6>&1
572
 
573
# Name of the host.
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575
# so uname gets run too.
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
 
578
#
579
# Initializations.
580
#
581
ac_default_prefix=/usr/local
582
ac_clean_files=
583
ac_config_libobj_dir=.
584
LIBOBJS=
585
cross_compiling=no
586
subdirs=
587
MFLAGS=
588
MAKEFLAGS=
589
 
590
# Identity of this package.
591
PACKAGE_NAME='metal'
592
PACKAGE_TARNAME='metal'
593
PACKAGE_VERSION='1.2'
594
PACKAGE_STRING='metal 1.2'
595
PACKAGE_BUGREPORT='mike@hamble.online'
596
PACKAGE_URL=''
597
 
598
ac_unique_file="."
599
# Factoring default headers for most tests.
600
ac_includes_default="\
601
#include <stdio.h>
602
#ifdef HAVE_SYS_TYPES_H
603
# include <sys/types.h>
604
#endif
605
#ifdef HAVE_SYS_STAT_H
606
# include <sys/stat.h>
607
#endif
608
#ifdef STDC_HEADERS
609
# include <stdlib.h>
610
# include <stddef.h>
611
#else
612
# ifdef HAVE_STDLIB_H
613
#  include <stdlib.h>
614
# endif
615
#endif
616
#ifdef HAVE_STRING_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618
#  include <memory.h>
619
# endif
620
# include <string.h>
621
#endif
622
#ifdef HAVE_STRINGS_H
623
# include <strings.h>
624
#endif
625
#ifdef HAVE_INTTYPES_H
626
# include <inttypes.h>
627
#endif
628
#ifdef HAVE_STDINT_H
629
# include <stdint.h>
630
#endif
631
#ifdef HAVE_UNISTD_H
632
# include <unistd.h>
633
#endif"
634
 
635
ac_subst_vars='am__EXEEXT_FALSE
636
am__EXEEXT_TRUE
637
LTLIBOBJS
638
LIBOBJS
639
CXXCPP
640
am__fastdepCXX_FALSE
641
am__fastdepCXX_TRUE
642
CXXDEPMODE
643
ac_ct_CXX
644
CXXFLAGS
645
CXX
646
MAINT
647
MAINTAINER_MODE_FALSE
648
MAINTAINER_MODE_TRUE
649
YFLAGS
650
YACC
651
LEXLIB
652
LEX_OUTPUT_ROOT
653
LEX
654
CPP
655
LT_SYS_LIBRARY_PATH
656
OTOOL64
657
OTOOL
658
LIPO
659
NMEDIT
660
DSYMUTIL
661
MANIFEST_TOOL
662
RANLIB
663
ac_ct_AR
664
AR
665
DLLTOOL
666
OBJDUMP
667
LN_S
668
NM
669
ac_ct_DUMPBIN
670
DUMPBIN
671
LD
672
FGREP
673
EGREP
674
GREP
675
SED
676
am__fastdepCC_FALSE
677
am__fastdepCC_TRUE
678
CCDEPMODE
679
am__nodep
680
AMDEPBACKSLASH
681
AMDEP_FALSE
682
AMDEP_TRUE
683
am__quote
684
am__include
685
DEPDIR
686
OBJEXT
687
EXEEXT
688
ac_ct_CC
689
CPPFLAGS
690
LDFLAGS
691
CFLAGS
692
CC
693
LIBTOOL
694
AM_BACKSLASH
695
AM_DEFAULT_VERBOSITY
696
AM_DEFAULT_V
697
AM_V
698
am__untar
699
am__tar
700
AMTAR
701
am__leading_dot
702
SET_MAKE
703
AWK
704
mkdir_p
705
MKDIR_P
706
INSTALL_STRIP_PROGRAM
707
STRIP
708
install_sh
709
MAKEINFO
710
AUTOHEADER
711
AUTOMAKE
712
AUTOCONF
713
ACLOCAL
714
VERSION
715
PACKAGE
716
CYGPATH_W
717
am__isrc
718
INSTALL_DATA
719
INSTALL_SCRIPT
720
INSTALL_PROGRAM
721
host_os
722
host_vendor
723
host_cpu
724
host
725
build_os
726
build_vendor
727
build_cpu
728
build
729
target_alias
730
host_alias
731
build_alias
732
LIBS
733
ECHO_T
734
ECHO_N
735
ECHO_C
736
DEFS
737
mandir
738
localedir
739
libdir
740
psdir
741
pdfdir
742
dvidir
743
htmldir
744
infodir
745
docdir
746
oldincludedir
747
includedir
748
runstatedir
749
localstatedir
750
sharedstatedir
751
sysconfdir
752
datadir
753
datarootdir
754
libexecdir
755
sbindir
756
bindir
757
program_transform_name
758
prefix
759
exec_prefix
760
PACKAGE_URL
761
PACKAGE_BUGREPORT
762
PACKAGE_STRING
763
PACKAGE_VERSION
764
PACKAGE_TARNAME
765
PACKAGE_NAME
766
PATH_SEPARATOR
767
SHELL'
768
ac_subst_files=''
769
ac_user_opts='
770
enable_option_checking
771
enable_silent_rules
772
enable_shared
773
enable_static
774
with_pic
775
enable_fast_install
776
with_aix_soname
777
enable_dependency_tracking
778
with_gnu_ld
779
with_sysroot
780
enable_libtool_lock
781
enable_maintainer_mode
782
'
783
      ac_precious_vars='build_alias
784
host_alias
785
target_alias
786
CC
787
CFLAGS
788
LDFLAGS
789
LIBS
790
CPPFLAGS
791
LT_SYS_LIBRARY_PATH
792
CPP
793
YACC
794
YFLAGS
795
CXX
796
CXXFLAGS
797
CCC
798
CXXCPP'
799
 
800
 
801
# Initialize some variables set by options.
802
ac_init_help=
803
ac_init_version=false
804
ac_unrecognized_opts=
805
ac_unrecognized_sep=
806
# The variables have the same names as the options, with
807
# dashes changed to underlines.
808
cache_file=/dev/null
809
exec_prefix=NONE
810
no_create=
811
no_recursion=
812
prefix=NONE
813
program_prefix=NONE
814
program_suffix=NONE
815
program_transform_name=s,x,x,
816
silent=
817
site=
818
srcdir=
819
verbose=
820
x_includes=NONE
821
x_libraries=NONE
822
 
823
# Installation directory options.
824
# These are left unexpanded so users can "make install exec_prefix=/foo"
825
# and all the variables that are supposed to be based on exec_prefix
826
# by default will actually change.
827
# Use braces instead of parens because sh, perl, etc. also accept them.
828
# (The list follows the same order as the GNU Coding Standards.)
829
bindir='${exec_prefix}/bin'
830
sbindir='${exec_prefix}/sbin'
831
libexecdir='${exec_prefix}/libexec'
832
datarootdir='${prefix}/share'
833
datadir='${datarootdir}'
834
sysconfdir='${prefix}/etc'
835
sharedstatedir='${prefix}/com'
836
localstatedir='${prefix}/var'
837
runstatedir='${localstatedir}/run'
838
includedir='${prefix}/include'
839
oldincludedir='/usr/include'
840
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841
infodir='${datarootdir}/info'
842
htmldir='${docdir}'
843
dvidir='${docdir}'
844
pdfdir='${docdir}'
845
psdir='${docdir}'
846
libdir='${exec_prefix}/lib'
847
localedir='${datarootdir}/locale'
848
mandir='${datarootdir}/man'
849
 
850
ac_prev=
851
ac_dashdash=
852
for ac_option
853
do
854
  # If the previous option needs an argument, assign it.
855
  if test -n "$ac_prev"; then
856
    eval $ac_prev=\$ac_option
857
    ac_prev=
858
    continue
859
  fi
860
 
861
  case $ac_option in
862
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863
  *=)   ac_optarg= ;;
864
  *)    ac_optarg=yes ;;
865
  esac
866
 
867
  # Accept the important Cygnus configure options, so we can diagnose typos.
868
 
869
  case $ac_dashdash$ac_option in
870
  --)
871
    ac_dashdash=yes ;;
872
 
873
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
874
    ac_prev=bindir ;;
875
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876
    bindir=$ac_optarg ;;
877
 
878
  -build | --build | --buil | --bui | --bu)
879
    ac_prev=build_alias ;;
880
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881
    build_alias=$ac_optarg ;;
882
 
883
  -cache-file | --cache-file | --cache-fil | --cache-fi \
884
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885
    ac_prev=cache_file ;;
886
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888
    cache_file=$ac_optarg ;;
889
 
890
  --config-cache | -C)
891
    cache_file=config.cache ;;
892
 
893
  -datadir | --datadir | --datadi | --datad)
894
    ac_prev=datadir ;;
895
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
896
    datadir=$ac_optarg ;;
897
 
898
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899
  | --dataroo | --dataro | --datar)
900
    ac_prev=datarootdir ;;
901
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903
    datarootdir=$ac_optarg ;;
904
 
905
  -disable-* | --disable-*)
906
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907
    # Reject names that are not valid shell variable names.
908
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909
      as_fn_error $? "invalid feature name: $ac_useropt"
910
    ac_useropt_orig=$ac_useropt
911
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912
    case $ac_user_opts in
913
      *"
914
"enable_$ac_useropt"
915
"*) ;;
916
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917
	 ac_unrecognized_sep=', ';;
918
    esac
919
    eval enable_$ac_useropt=no ;;
920
 
921
  -docdir | --docdir | --docdi | --doc | --do)
922
    ac_prev=docdir ;;
923
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924
    docdir=$ac_optarg ;;
925
 
926
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927
    ac_prev=dvidir ;;
928
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929
    dvidir=$ac_optarg ;;
930
 
931
  -enable-* | --enable-*)
932
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933
    # Reject names that are not valid shell variable names.
934
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935
      as_fn_error $? "invalid feature name: $ac_useropt"
936
    ac_useropt_orig=$ac_useropt
937
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938
    case $ac_user_opts in
939
      *"
940
"enable_$ac_useropt"
941
"*) ;;
942
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943
	 ac_unrecognized_sep=', ';;
944
    esac
945
    eval enable_$ac_useropt=\$ac_optarg ;;
946
 
947
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949
  | --exec | --exe | --ex)
950
    ac_prev=exec_prefix ;;
951
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953
  | --exec=* | --exe=* | --ex=*)
954
    exec_prefix=$ac_optarg ;;
955
 
956
  -gas | --gas | --ga | --g)
957
    # Obsolete; use --with-gas.
958
    with_gas=yes ;;
959
 
960
  -help | --help | --hel | --he | -h)
961
    ac_init_help=long ;;
962
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963
    ac_init_help=recursive ;;
964
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965
    ac_init_help=short ;;
966
 
967
  -host | --host | --hos | --ho)
968
    ac_prev=host_alias ;;
969
  -host=* | --host=* | --hos=* | --ho=*)
970
    host_alias=$ac_optarg ;;
971
 
972
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973
    ac_prev=htmldir ;;
974
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975
  | --ht=*)
976
    htmldir=$ac_optarg ;;
977
 
978
  -includedir | --includedir | --includedi | --included | --include \
979
  | --includ | --inclu | --incl | --inc)
980
    ac_prev=includedir ;;
981
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982
  | --includ=* | --inclu=* | --incl=* | --inc=*)
983
    includedir=$ac_optarg ;;
984
 
985
  -infodir | --infodir | --infodi | --infod | --info | --inf)
986
    ac_prev=infodir ;;
987
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988
    infodir=$ac_optarg ;;
989
 
990
  -libdir | --libdir | --libdi | --libd)
991
    ac_prev=libdir ;;
992
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
993
    libdir=$ac_optarg ;;
994
 
995
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996
  | --libexe | --libex | --libe)
997
    ac_prev=libexecdir ;;
998
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999
  | --libexe=* | --libex=* | --libe=*)
1000
    libexecdir=$ac_optarg ;;
1001
 
1002
  -localedir | --localedir | --localedi | --localed | --locale)
1003
    ac_prev=localedir ;;
1004
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005
    localedir=$ac_optarg ;;
1006
 
1007
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1008
  | --localstate | --localstat | --localsta | --localst | --locals)
1009
    ac_prev=localstatedir ;;
1010
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012
    localstatedir=$ac_optarg ;;
1013
 
1014
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015
    ac_prev=mandir ;;
1016
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017
    mandir=$ac_optarg ;;
1018
 
1019
  -nfp | --nfp | --nf)
1020
    # Obsolete; use --without-fp.
1021
    with_fp=no ;;
1022
 
1023
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024
  | --no-cr | --no-c | -n)
1025
    no_create=yes ;;
1026
 
1027
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029
    no_recursion=yes ;;
1030
 
1031
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033
  | --oldin | --oldi | --old | --ol | --o)
1034
    ac_prev=oldincludedir ;;
1035
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038
    oldincludedir=$ac_optarg ;;
1039
 
1040
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041
    ac_prev=prefix ;;
1042
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043
    prefix=$ac_optarg ;;
1044
 
1045
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046
  | --program-pre | --program-pr | --program-p)
1047
    ac_prev=program_prefix ;;
1048
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050
    program_prefix=$ac_optarg ;;
1051
 
1052
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053
  | --program-suf | --program-su | --program-s)
1054
    ac_prev=program_suffix ;;
1055
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057
    program_suffix=$ac_optarg ;;
1058
 
1059
  -program-transform-name | --program-transform-name \
1060
  | --program-transform-nam | --program-transform-na \
1061
  | --program-transform-n | --program-transform- \
1062
  | --program-transform | --program-transfor \
1063
  | --program-transfo | --program-transf \
1064
  | --program-trans | --program-tran \
1065
  | --progr-tra | --program-tr | --program-t)
1066
    ac_prev=program_transform_name ;;
1067
  -program-transform-name=* | --program-transform-name=* \
1068
  | --program-transform-nam=* | --program-transform-na=* \
1069
  | --program-transform-n=* | --program-transform-=* \
1070
  | --program-transform=* | --program-transfor=* \
1071
  | --program-transfo=* | --program-transf=* \
1072
  | --program-trans=* | --program-tran=* \
1073
  | --progr-tra=* | --program-tr=* | --program-t=*)
1074
    program_transform_name=$ac_optarg ;;
1075
 
1076
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077
    ac_prev=pdfdir ;;
1078
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079
    pdfdir=$ac_optarg ;;
1080
 
1081
  -psdir | --psdir | --psdi | --psd | --ps)
1082
    ac_prev=psdir ;;
1083
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084
    psdir=$ac_optarg ;;
1085
 
1086
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087
  | -silent | --silent | --silen | --sile | --sil)
1088
    silent=yes ;;
1089
 
1090
  -runstatedir | --runstatedir | --runstatedi | --runstated \
1091
  | --runstate | --runstat | --runsta | --runst | --runs \
1092
  | --run | --ru | --r)
1093
    ac_prev=runstatedir ;;
1094
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1095
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1096
  | --run=* | --ru=* | --r=*)
1097
    runstatedir=$ac_optarg ;;
1098
 
1099
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100
    ac_prev=sbindir ;;
1101
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102
  | --sbi=* | --sb=*)
1103
    sbindir=$ac_optarg ;;
1104
 
1105
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107
  | --sharedst | --shareds | --shared | --share | --shar \
1108
  | --sha | --sh)
1109
    ac_prev=sharedstatedir ;;
1110
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113
  | --sha=* | --sh=*)
1114
    sharedstatedir=$ac_optarg ;;
1115
 
1116
  -site | --site | --sit)
1117
    ac_prev=site ;;
1118
  -site=* | --site=* | --sit=*)
1119
    site=$ac_optarg ;;
1120
 
1121
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122
    ac_prev=srcdir ;;
1123
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124
    srcdir=$ac_optarg ;;
1125
 
1126
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127
  | --syscon | --sysco | --sysc | --sys | --sy)
1128
    ac_prev=sysconfdir ;;
1129
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131
    sysconfdir=$ac_optarg ;;
1132
 
1133
  -target | --target | --targe | --targ | --tar | --ta | --t)
1134
    ac_prev=target_alias ;;
1135
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136
    target_alias=$ac_optarg ;;
1137
 
1138
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139
    verbose=yes ;;
1140
 
1141
  -version | --version | --versio | --versi | --vers | -V)
1142
    ac_init_version=: ;;
1143
 
1144
  -with-* | --with-*)
1145
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146
    # Reject names that are not valid shell variable names.
1147
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148
      as_fn_error $? "invalid package name: $ac_useropt"
1149
    ac_useropt_orig=$ac_useropt
1150
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151
    case $ac_user_opts in
1152
      *"
1153
"with_$ac_useropt"
1154
"*) ;;
1155
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156
	 ac_unrecognized_sep=', ';;
1157
    esac
1158
    eval with_$ac_useropt=\$ac_optarg ;;
1159
 
1160
  -without-* | --without-*)
1161
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162
    # Reject names that are not valid shell variable names.
1163
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164
      as_fn_error $? "invalid package name: $ac_useropt"
1165
    ac_useropt_orig=$ac_useropt
1166
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167
    case $ac_user_opts in
1168
      *"
1169
"with_$ac_useropt"
1170
"*) ;;
1171
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172
	 ac_unrecognized_sep=', ';;
1173
    esac
1174
    eval with_$ac_useropt=no ;;
1175
 
1176
  --x)
1177
    # Obsolete; use --with-x.
1178
    with_x=yes ;;
1179
 
1180
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181
  | --x-incl | --x-inc | --x-in | --x-i)
1182
    ac_prev=x_includes ;;
1183
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185
    x_includes=$ac_optarg ;;
1186
 
1187
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189
    ac_prev=x_libraries ;;
1190
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192
    x_libraries=$ac_optarg ;;
1193
 
1194
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195
Try \`$0 --help' for more information"
1196
    ;;
1197
 
1198
  *=*)
1199
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200
    # Reject names that are not valid shell variable names.
1201
    case $ac_envvar in #(
1202
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204
    esac
1205
    eval $ac_envvar=\$ac_optarg
1206
    export $ac_envvar ;;
1207
 
1208
  *)
1209
    # FIXME: should be removed in autoconf 3.0.
1210
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214
    ;;
1215
 
1216
  esac
1217
done
1218
 
1219
if test -n "$ac_prev"; then
1220
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221
  as_fn_error $? "missing argument to $ac_option"
1222
fi
1223
 
1224
if test -n "$ac_unrecognized_opts"; then
1225
  case $enable_option_checking in
1226
    no) ;;
1227
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229
  esac
1230
fi
1231
 
1232
# Check all directory arguments for consistency.
1233
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234
		datadir sysconfdir sharedstatedir localstatedir includedir \
1235
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236
		libdir localedir mandir runstatedir
1237
do
1238
  eval ac_val=\$$ac_var
1239
  # Remove trailing slashes.
1240
  case $ac_val in
1241
    */ )
1242
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243
      eval $ac_var=\$ac_val;;
1244
  esac
1245
  # Be sure to have absolute directory names.
1246
  case $ac_val in
1247
    [\\/$]* | ?:[\\/]* )  continue;;
1248
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249
  esac
1250
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251
done
1252
 
1253
# There might be people who depend on the old broken behavior: `$host'
1254
# used to hold the argument of --host etc.
1255
# FIXME: To remove some day.
1256
build=$build_alias
1257
host=$host_alias
1258
target=$target_alias
1259
 
1260
# FIXME: To remove some day.
1261
if test "x$host_alias" != x; then
1262
  if test "x$build_alias" = x; then
1263
    cross_compiling=maybe
1264
  elif test "x$build_alias" != "x$host_alias"; then
1265
    cross_compiling=yes
1266
  fi
1267
fi
1268
 
1269
ac_tool_prefix=
1270
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
 
1272
test "$silent" = yes && exec 6>/dev/null
1273
 
1274
 
1275
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276
ac_ls_di=`ls -di .` &&
1277
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278
  as_fn_error $? "working directory cannot be determined"
1279
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280
  as_fn_error $? "pwd does not report name of working directory"
1281
 
1282
 
1283
# Find the source files, if location was not specified.
1284
if test -z "$srcdir"; then
1285
  ac_srcdir_defaulted=yes
1286
  # Try the directory containing this script, then the parent directory.
1287
  ac_confdir=`$as_dirname -- "$as_myself" ||
1288
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290
	 X"$as_myself" : 'X\(//\)$' \| \
1291
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292
$as_echo X"$as_myself" |
1293
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294
	    s//\1/
1295
	    q
1296
	  }
1297
	  /^X\(\/\/\)[^/].*/{
1298
	    s//\1/
1299
	    q
1300
	  }
1301
	  /^X\(\/\/\)$/{
1302
	    s//\1/
1303
	    q
1304
	  }
1305
	  /^X\(\/\).*/{
1306
	    s//\1/
1307
	    q
1308
	  }
1309
	  s/.*/./; q'`
1310
  srcdir=$ac_confdir
1311
  if test ! -r "$srcdir/$ac_unique_file"; then
1312
    srcdir=..
1313
  fi
1314
else
1315
  ac_srcdir_defaulted=no
1316
fi
1317
if test ! -r "$srcdir/$ac_unique_file"; then
1318
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320
fi
1321
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322
ac_abs_confdir=`(
1323
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324
	pwd)`
1325
# When building in place, set srcdir=.
1326
if test "$ac_abs_confdir" = "$ac_pwd"; then
1327
  srcdir=.
1328
fi
1329
# Remove unnecessary trailing slashes from srcdir.
1330
# Double slashes in file names in object file debugging info
1331
# mess up M-x gdb in Emacs.
1332
case $srcdir in
1333
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334
esac
1335
for ac_var in $ac_precious_vars; do
1336
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337
  eval ac_env_${ac_var}_value=\$${ac_var}
1338
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340
done
1341
 
1342
#
1343
# Report the --help message.
1344
#
1345
if test "$ac_init_help" = "long"; then
1346
  # Omit some internal or obsolete options to make the list less imposing.
1347
  # This message is too long to be a string in the A/UX 3.1 sh.
1348
  cat <<_ACEOF
1349
\`configure' configures metal 1.2 to adapt to many kinds of systems.
1350
 
1351
Usage: $0 [OPTION]... [VAR=VALUE]...
1352
 
1353
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354
VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
 
1356
Defaults for the options are specified in brackets.
1357
 
1358
Configuration:
1359
  -h, --help              display this help and exit
1360
      --help=short        display options specific to this package
1361
      --help=recursive    display the short help of all the included packages
1362
  -V, --version           display version information and exit
1363
  -q, --quiet, --silent   do not print \`checking ...' messages
1364
      --cache-file=FILE   cache test results in FILE [disabled]
1365
  -C, --config-cache      alias for \`--cache-file=config.cache'
1366
  -n, --no-create         do not create output files
1367
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
 
1369
Installation directories:
1370
  --prefix=PREFIX         install architecture-independent files in PREFIX
1371
                          [$ac_default_prefix]
1372
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373
                          [PREFIX]
1374
 
1375
By default, \`make install' will install all the files in
1376
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378
for instance \`--prefix=\$HOME'.
1379
 
1380
For better control, use the options below.
1381
 
1382
Fine tuning of the installation directories:
1383
  --bindir=DIR            user executables [EPREFIX/bin]
1384
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1390
  --libdir=DIR            object code libraries [EPREFIX/lib]
1391
  --includedir=DIR        C header files [PREFIX/include]
1392
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1396
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1398
  --docdir=DIR            documentation root [DATAROOTDIR/doc/metal]
1399
  --htmldir=DIR           html documentation [DOCDIR]
1400
  --dvidir=DIR            dvi documentation [DOCDIR]
1401
  --pdfdir=DIR            pdf documentation [DOCDIR]
1402
  --psdir=DIR             ps documentation [DOCDIR]
1403
_ACEOF
1404
 
1405
  cat <<\_ACEOF
1406
 
1407
Program names:
1408
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1409
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1410
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
 
1412
System types:
1413
  --build=BUILD     configure for building on BUILD [guessed]
1414
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415
_ACEOF
1416
fi
1417
 
1418
if test -n "$ac_init_help"; then
1419
  case $ac_init_help in
1420
     short | recursive ) echo "Configuration of metal 1.2:";;
1421
   esac
1422
  cat <<\_ACEOF
1423
 
1424
Optional Features:
1425
  --disable-option-checking  ignore unrecognized --enable/--with options
1426
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428
  --enable-silent-rules   less verbose build output (undo: "make V=1")
1429
  --disable-silent-rules  verbose build output (undo: "make V=0")
1430
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1431
  --enable-static[=PKGS]  build static libraries [default=yes]
1432
  --enable-fast-install[=PKGS]
1433
                          optimize for fast installation [default=yes]
1434
  --enable-dependency-tracking
1435
                          do not reject slow dependency extractors
1436
  --disable-dependency-tracking
1437
                          speeds up one-time build
1438
  --disable-libtool-lock  avoid locking (might break parallel builds)
1439
  --enable-maintainer-mode
1440
                          enable make rules and dependencies not useful (and
1441
                          sometimes confusing) to the casual installer
1442
 
1443
Optional Packages:
1444
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1447
                          both]
1448
  --with-aix-soname=aix|svr4|both
1449
                          shared library versioning (aka "SONAME") variant to
1450
                          provide on AIX, [default=aix].
1451
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1453
                          compiler's sysroot if not specified).
1454
 
1455
Some influential environment variables:
1456
  CC          C compiler command
1457
  CFLAGS      C compiler flags
1458
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459
              nonstandard directory <lib dir>
1460
  LIBS        libraries to pass to the linker, e.g. -l<library>
1461
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462
              you have headers in a nonstandard directory <include dir>
1463
  LT_SYS_LIBRARY_PATH
1464
              User-defined run-time library search path.
1465
  CPP         C preprocessor
1466
  YACC        The `Yet Another Compiler Compiler' implementation to use.
1467
              Defaults to the first program found out of: `bison -y', `byacc',
1468
              `yacc'.
1469
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1470
              This script will default YFLAGS to the empty string to avoid a
1471
              default value of `-d' given by some make applications.
1472
  CXX         C++ compiler command
1473
  CXXFLAGS    C++ compiler flags
1474
  CXXCPP      C++ preprocessor
1475
 
1476
Use these variables to override the choices made by `configure' or to help
1477
it to find libraries and programs with nonstandard names/locations.
1478
 
1479
Report bugs to <mike@hamble.online>.
1480
_ACEOF
1481
ac_status=$?
1482
fi
1483
 
1484
if test "$ac_init_help" = "recursive"; then
1485
  # If there are subdirs, report their specific --help.
1486
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487
    test -d "$ac_dir" ||
1488
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489
      continue
1490
    ac_builddir=.
1491
 
1492
case "$ac_dir" in
1493
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494
*)
1495
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496
  # A ".." for each directory in $ac_dir_suffix.
1497
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498
  case $ac_top_builddir_sub in
1499
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501
  esac ;;
1502
esac
1503
ac_abs_top_builddir=$ac_pwd
1504
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505
# for backward compatibility:
1506
ac_top_builddir=$ac_top_build_prefix
1507
 
1508
case $srcdir in
1509
  .)  # We are building in place.
1510
    ac_srcdir=.
1511
    ac_top_srcdir=$ac_top_builddir_sub
1512
    ac_abs_top_srcdir=$ac_pwd ;;
1513
  [\\/]* | ?:[\\/]* )  # Absolute name.
1514
    ac_srcdir=$srcdir$ac_dir_suffix;
1515
    ac_top_srcdir=$srcdir
1516
    ac_abs_top_srcdir=$srcdir ;;
1517
  *) # Relative name.
1518
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521
esac
1522
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
 
1524
    cd "$ac_dir" || { ac_status=$?; continue; }
1525
    # Check for guested configure.
1526
    if test -f "$ac_srcdir/configure.gnu"; then
1527
      echo &&
1528
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529
    elif test -f "$ac_srcdir/configure"; then
1530
      echo &&
1531
      $SHELL "$ac_srcdir/configure" --help=recursive
1532
    else
1533
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534
    fi || ac_status=$?
1535
    cd "$ac_pwd" || { ac_status=$?; break; }
1536
  done
1537
fi
1538
 
1539
test -n "$ac_init_help" && exit $ac_status
1540
if $ac_init_version; then
1541
  cat <<\_ACEOF
1542
metal configure 1.2
1543
generated by GNU Autoconf 2.69
1544
 
1545
Copyright (C) 2012 Free Software Foundation, Inc.
1546
This configure script is free software; the Free Software Foundation
1547
gives unlimited permission to copy, distribute and modify it.
1548
_ACEOF
1549
  exit
1550
fi
1551
 
1552
## ------------------------ ##
1553
## Autoconf initialization. ##
1554
## ------------------------ ##
1555
 
1556
# ac_fn_c_try_compile LINENO
1557
# --------------------------
1558
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559
ac_fn_c_try_compile ()
1560
{
1561
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562
  rm -f conftest.$ac_objext
1563
  if { { ac_try="$ac_compile"
1564
case "(($ac_try" in
1565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566
  *) ac_try_echo=$ac_try;;
1567
esac
1568
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569
$as_echo "$ac_try_echo"; } >&5
1570
  (eval "$ac_compile") 2>conftest.err
1571
  ac_status=$?
1572
  if test -s conftest.err; then
1573
    grep -v '^ *+' conftest.err >conftest.er1
1574
    cat conftest.er1 >&5
1575
    mv -f conftest.er1 conftest.err
1576
  fi
1577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578
  test $ac_status = 0; } && {
1579
	 test -z "$ac_c_werror_flag" ||
1580
	 test ! -s conftest.err
1581
       } && test -s conftest.$ac_objext; then :
1582
  ac_retval=0
1583
else
1584
  $as_echo "$as_me: failed program was:" >&5
1585
sed 's/^/| /' conftest.$ac_ext >&5
1586
 
1587
	ac_retval=1
1588
fi
1589
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
  as_fn_set_status $ac_retval
1591
 
1592
} # ac_fn_c_try_compile
1593
 
1594
# ac_fn_c_try_link LINENO
1595
# -----------------------
1596
# Try to link conftest.$ac_ext, and return whether this succeeded.
1597
ac_fn_c_try_link ()
1598
{
1599
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600
  rm -f conftest.$ac_objext conftest$ac_exeext
1601
  if { { ac_try="$ac_link"
1602
case "(($ac_try" in
1603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604
  *) ac_try_echo=$ac_try;;
1605
esac
1606
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607
$as_echo "$ac_try_echo"; } >&5
1608
  (eval "$ac_link") 2>conftest.err
1609
  ac_status=$?
1610
  if test -s conftest.err; then
1611
    grep -v '^ *+' conftest.err >conftest.er1
1612
    cat conftest.er1 >&5
1613
    mv -f conftest.er1 conftest.err
1614
  fi
1615
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616
  test $ac_status = 0; } && {
1617
	 test -z "$ac_c_werror_flag" ||
1618
	 test ! -s conftest.err
1619
       } && test -s conftest$ac_exeext && {
1620
	 test "$cross_compiling" = yes ||
1621
	 test -x conftest$ac_exeext
1622
       }; then :
1623
  ac_retval=0
1624
else
1625
  $as_echo "$as_me: failed program was:" >&5
1626
sed 's/^/| /' conftest.$ac_ext >&5
1627
 
1628
	ac_retval=1
1629
fi
1630
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632
  # interfere with the next link command; also delete a directory that is
1633
  # left behind by Apple's compiler.  We do this before executing the actions.
1634
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
  as_fn_set_status $ac_retval
1637
 
1638
} # ac_fn_c_try_link
1639
 
1640
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641
# -------------------------------------------------------
1642
# Tests whether HEADER exists and can be compiled using the include files in
1643
# INCLUDES, setting the cache variable VAR accordingly.
1644
ac_fn_c_check_header_compile ()
1645
{
1646
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648
$as_echo_n "checking for $2... " >&6; }
1649
if eval \${$3+:} false; then :
1650
  $as_echo_n "(cached) " >&6
1651
else
1652
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653
/* end confdefs.h.  */
1654
$4
1655
#include <$2>
1656
_ACEOF
1657
if ac_fn_c_try_compile "$LINENO"; then :
1658
  eval "$3=yes"
1659
else
1660
  eval "$3=no"
1661
fi
1662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663
fi
1664
eval ac_res=\$$3
1665
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666
$as_echo "$ac_res" >&6; }
1667
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
 
1669
} # ac_fn_c_check_header_compile
1670
 
1671
# ac_fn_c_try_cpp LINENO
1672
# ----------------------
1673
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674
ac_fn_c_try_cpp ()
1675
{
1676
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1678
case "(($ac_try" in
1679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680
  *) ac_try_echo=$ac_try;;
1681
esac
1682
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683
$as_echo "$ac_try_echo"; } >&5
1684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685
  ac_status=$?
1686
  if test -s conftest.err; then
1687
    grep -v '^ *+' conftest.err >conftest.er1
1688
    cat conftest.er1 >&5
1689
    mv -f conftest.er1 conftest.err
1690
  fi
1691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692
  test $ac_status = 0; } > conftest.i && {
1693
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694
	 test ! -s conftest.err
1695
       }; then :
1696
  ac_retval=0
1697
else
1698
  $as_echo "$as_me: failed program was:" >&5
1699
sed 's/^/| /' conftest.$ac_ext >&5
1700
 
1701
    ac_retval=1
1702
fi
1703
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
  as_fn_set_status $ac_retval
1705
 
1706
} # ac_fn_c_try_cpp
1707
 
1708
# ac_fn_c_try_run LINENO
1709
# ----------------------
1710
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711
# that executables *can* be run.
1712
ac_fn_c_try_run ()
1713
{
1714
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715
  if { { ac_try="$ac_link"
1716
case "(($ac_try" in
1717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718
  *) ac_try_echo=$ac_try;;
1719
esac
1720
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721
$as_echo "$ac_try_echo"; } >&5
1722
  (eval "$ac_link") 2>&5
1723
  ac_status=$?
1724
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726
  { { case "(($ac_try" in
1727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728
  *) ac_try_echo=$ac_try;;
1729
esac
1730
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731
$as_echo "$ac_try_echo"; } >&5
1732
  (eval "$ac_try") 2>&5
1733
  ac_status=$?
1734
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735
  test $ac_status = 0; }; }; then :
1736
  ac_retval=0
1737
else
1738
  $as_echo "$as_me: program exited with status $ac_status" >&5
1739
       $as_echo "$as_me: failed program was:" >&5
1740
sed 's/^/| /' conftest.$ac_ext >&5
1741
 
1742
       ac_retval=$ac_status
1743
fi
1744
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
  as_fn_set_status $ac_retval
1747
 
1748
} # ac_fn_c_try_run
1749
 
1750
# ac_fn_c_check_func LINENO FUNC VAR
1751
# ----------------------------------
1752
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1753
ac_fn_c_check_func ()
1754
{
1755
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757
$as_echo_n "checking for $2... " >&6; }
1758
if eval \${$3+:} false; then :
1759
  $as_echo_n "(cached) " >&6
1760
else
1761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762
/* end confdefs.h.  */
1763
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765
#define $2 innocuous_$2
1766
 
1767
/* System header to define __stub macros and hopefully few prototypes,
1768
    which can conflict with char $2 (); below.
1769
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770
    <limits.h> exists even on freestanding compilers.  */
1771
 
1772
#ifdef __STDC__
1773
# include <limits.h>
1774
#else
1775
# include <assert.h>
1776
#endif
1777
 
1778
#undef $2
1779
 
1780
/* Override any GCC internal prototype to avoid an error.
1781
   Use char because int might match the return type of a GCC
1782
   builtin and then its argument prototype would still apply.  */
1783
#ifdef __cplusplus
1784
extern "C"
1785
#endif
1786
char $2 ();
1787
/* The GNU C library defines this for functions which it implements
1788
    to always fail with ENOSYS.  Some functions are actually named
1789
    something starting with __ and the normal name is an alias.  */
1790
#if defined __stub_$2 || defined __stub___$2
1791
choke me
1792
#endif
1793
 
1794
int
1795
main ()
1796
{
1797
return $2 ();
1798
  ;
1799
  return 0;
1800
}
1801
_ACEOF
1802
if ac_fn_c_try_link "$LINENO"; then :
1803
  eval "$3=yes"
1804
else
1805
  eval "$3=no"
1806
fi
1807
rm -f core conftest.err conftest.$ac_objext \
1808
    conftest$ac_exeext conftest.$ac_ext
1809
fi
1810
eval ac_res=\$$3
1811
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812
$as_echo "$ac_res" >&6; }
1813
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
 
1815
} # ac_fn_c_check_func
1816
 
1817
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818
# -------------------------------------------------------
1819
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820
# the include files in INCLUDES and setting the cache variable VAR
1821
# accordingly.
1822
ac_fn_c_check_header_mongrel ()
1823
{
1824
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825
  if eval \${$3+:} false; then :
1826
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827
$as_echo_n "checking for $2... " >&6; }
1828
if eval \${$3+:} false; then :
1829
  $as_echo_n "(cached) " >&6
1830
fi
1831
eval ac_res=\$$3
1832
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833
$as_echo "$ac_res" >&6; }
1834
else
1835
  # Is the header compilable?
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837
$as_echo_n "checking $2 usability... " >&6; }
1838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839
/* end confdefs.h.  */
1840
$4
1841
#include <$2>
1842
_ACEOF
1843
if ac_fn_c_try_compile "$LINENO"; then :
1844
  ac_header_compiler=yes
1845
else
1846
  ac_header_compiler=no
1847
fi
1848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850
$as_echo "$ac_header_compiler" >&6; }
1851
 
1852
# Is the header present?
1853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854
$as_echo_n "checking $2 presence... " >&6; }
1855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856
/* end confdefs.h.  */
1857
#include <$2>
1858
_ACEOF
1859
if ac_fn_c_try_cpp "$LINENO"; then :
1860
  ac_header_preproc=yes
1861
else
1862
  ac_header_preproc=no
1863
fi
1864
rm -f conftest.err conftest.i conftest.$ac_ext
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866
$as_echo "$ac_header_preproc" >&6; }
1867
 
1868
# So?  What about this header?
1869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870
  yes:no: )
1871
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875
    ;;
1876
  no:yes:* )
1877
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1880
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1881
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1884
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887
( $as_echo "## --------------------------------- ##
1888
## Report this to mike@hamble.online ##
1889
## --------------------------------- ##"
1890
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1891
    ;;
1892
esac
1893
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894
$as_echo_n "checking for $2... " >&6; }
1895
if eval \${$3+:} false; then :
1896
  $as_echo_n "(cached) " >&6
1897
else
1898
  eval "$3=\$ac_header_compiler"
1899
fi
1900
eval ac_res=\$$3
1901
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902
$as_echo "$ac_res" >&6; }
1903
fi
1904
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
 
1906
} # ac_fn_c_check_header_mongrel
1907
 
1908
# ac_fn_cxx_try_compile LINENO
1909
# ----------------------------
1910
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1911
ac_fn_cxx_try_compile ()
1912
{
1913
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914
  rm -f conftest.$ac_objext
1915
  if { { ac_try="$ac_compile"
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_compile") 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; } && {
1931
	 test -z "$ac_cxx_werror_flag" ||
1932
	 test ! -s conftest.err
1933
       } && test -s conftest.$ac_objext; 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; ${as_lineno_stack:+:} unset as_lineno
1942
  as_fn_set_status $ac_retval
1943
 
1944
} # ac_fn_cxx_try_compile
1945
 
1946
# ac_fn_cxx_try_cpp LINENO
1947
# ------------------------
1948
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949
ac_fn_cxx_try_cpp ()
1950
{
1951
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1953
case "(($ac_try" in
1954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955
  *) ac_try_echo=$ac_try;;
1956
esac
1957
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958
$as_echo "$ac_try_echo"; } >&5
1959
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960
  ac_status=$?
1961
  if test -s conftest.err; then
1962
    grep -v '^ *+' conftest.err >conftest.er1
1963
    cat conftest.er1 >&5
1964
    mv -f conftest.er1 conftest.err
1965
  fi
1966
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967
  test $ac_status = 0; } > conftest.i && {
1968
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1969
	 test ! -s conftest.err
1970
       }; then :
1971
  ac_retval=0
1972
else
1973
  $as_echo "$as_me: failed program was:" >&5
1974
sed 's/^/| /' conftest.$ac_ext >&5
1975
 
1976
    ac_retval=1
1977
fi
1978
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
  as_fn_set_status $ac_retval
1980
 
1981
} # ac_fn_cxx_try_cpp
1982
 
1983
# ac_fn_cxx_try_link LINENO
1984
# -------------------------
1985
# Try to link conftest.$ac_ext, and return whether this succeeded.
1986
ac_fn_cxx_try_link ()
1987
{
1988
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989
  rm -f conftest.$ac_objext conftest$ac_exeext
1990
  if { { ac_try="$ac_link"
1991
case "(($ac_try" in
1992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993
  *) ac_try_echo=$ac_try;;
1994
esac
1995
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996
$as_echo "$ac_try_echo"; } >&5
1997
  (eval "$ac_link") 2>conftest.err
1998
  ac_status=$?
1999
  if test -s conftest.err; then
2000
    grep -v '^ *+' conftest.err >conftest.er1
2001
    cat conftest.er1 >&5
2002
    mv -f conftest.er1 conftest.err
2003
  fi
2004
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005
  test $ac_status = 0; } && {
2006
	 test -z "$ac_cxx_werror_flag" ||
2007
	 test ! -s conftest.err
2008
       } && test -s conftest$ac_exeext && {
2009
	 test "$cross_compiling" = yes ||
2010
	 test -x conftest$ac_exeext
2011
       }; then :
2012
  ac_retval=0
2013
else
2014
  $as_echo "$as_me: failed program was:" >&5
2015
sed 's/^/| /' conftest.$ac_ext >&5
2016
 
2017
	ac_retval=1
2018
fi
2019
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021
  # interfere with the next link command; also delete a directory that is
2022
  # left behind by Apple's compiler.  We do this before executing the actions.
2023
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
  as_fn_set_status $ac_retval
2026
 
2027
} # ac_fn_cxx_try_link
2028
cat >config.log <<_ACEOF
2029
This file contains any messages produced by compilers while
2030
running configure, to aid debugging if configure makes a mistake.
2031
 
2032
It was created by metal $as_me 1.2, which was
2033
generated by GNU Autoconf 2.69.  Invocation command line was
2034
 
2035
  $ $0 $@
2036
 
2037
_ACEOF
2038
exec 5>>config.log
2039
{
2040
cat <<_ASUNAME
2041
## --------- ##
2042
## Platform. ##
2043
## --------- ##
2044
 
2045
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
 
2051
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2053
 
2054
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2055
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2056
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2058
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2059
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2060
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2061
 
2062
_ASUNAME
2063
 
2064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065
for as_dir in $PATH
2066
do
2067
  IFS=$as_save_IFS
2068
  test -z "$as_dir" && as_dir=.
2069
    $as_echo "PATH: $as_dir"
2070
  done
2071
IFS=$as_save_IFS
2072
 
2073
} >&5
2074
 
2075
cat >&5 <<_ACEOF
2076
 
2077
 
2078
## ----------- ##
2079
## Core tests. ##
2080
## ----------- ##
2081
 
2082
_ACEOF
2083
 
2084
 
2085
# Keep a trace of the command line.
2086
# Strip out --no-create and --no-recursion so they do not pile up.
2087
# Strip out --silent because we don't want to record it for future runs.
2088
# Also quote any args containing shell meta-characters.
2089
# Make two passes to allow for proper duplicate-argument suppression.
2090
ac_configure_args=
2091
ac_configure_args0=
2092
ac_configure_args1=
2093
ac_must_keep_next=false
2094
for ac_pass in 1 2
2095
do
2096
  for ac_arg
2097
  do
2098
    case $ac_arg in
2099
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101
    | -silent | --silent | --silen | --sile | --sil)
2102
      continue ;;
2103
    *\'*)
2104
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105
    esac
2106
    case $ac_pass in
2107
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108
    2)
2109
      as_fn_append ac_configure_args1 " '$ac_arg'"
2110
      if test $ac_must_keep_next = true; then
2111
	ac_must_keep_next=false # Got value, back to normal.
2112
      else
2113
	case $ac_arg in
2114
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2115
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117
	  | -with-* | --with-* | -without-* | --without-* | --x)
2118
	    case "$ac_configure_args0 " in
2119
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120
	    esac
2121
	    ;;
2122
	  -* ) ac_must_keep_next=true ;;
2123
	esac
2124
      fi
2125
      as_fn_append ac_configure_args " '$ac_arg'"
2126
      ;;
2127
    esac
2128
  done
2129
done
2130
{ ac_configure_args0=; unset ac_configure_args0;}
2131
{ ac_configure_args1=; unset ac_configure_args1;}
2132
 
2133
# When interrupted or exit'd, cleanup temporary files, and complete
2134
# config.log.  We remove comments because anyway the quotes in there
2135
# would cause problems or look ugly.
2136
# WARNING: Use '\'' to represent an apostrophe within the trap.
2137
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138
trap 'exit_status=$?
2139
  # Save into config.log some information that might help in debugging.
2140
  {
2141
    echo
2142
 
2143
    $as_echo "## ---------------- ##
2144
## Cache variables. ##
2145
## ---------------- ##"
2146
    echo
2147
    # The following way of writing the cache mishandles newlines in values,
2148
(
2149
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150
    eval ac_val=\$$ac_var
2151
    case $ac_val in #(
2152
    *${as_nl}*)
2153
      case $ac_var in #(
2154
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156
      esac
2157
      case $ac_var in #(
2158
      _ | IFS | as_nl) ;; #(
2159
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160
      *) { eval $ac_var=; unset $ac_var;} ;;
2161
      esac ;;
2162
    esac
2163
  done
2164
  (set) 2>&1 |
2165
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166
    *${as_nl}ac_space=\ *)
2167
      sed -n \
2168
	"s/'\''/'\''\\\\'\'''\''/g;
2169
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170
      ;; #(
2171
    *)
2172
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173
      ;;
2174
    esac |
2175
    sort
2176
)
2177
    echo
2178
 
2179
    $as_echo "## ----------------- ##
2180
## Output variables. ##
2181
## ----------------- ##"
2182
    echo
2183
    for ac_var in $ac_subst_vars
2184
    do
2185
      eval ac_val=\$$ac_var
2186
      case $ac_val in
2187
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188
      esac
2189
      $as_echo "$ac_var='\''$ac_val'\''"
2190
    done | sort
2191
    echo
2192
 
2193
    if test -n "$ac_subst_files"; then
2194
      $as_echo "## ------------------- ##
2195
## File substitutions. ##
2196
## ------------------- ##"
2197
      echo
2198
      for ac_var in $ac_subst_files
2199
      do
2200
	eval ac_val=\$$ac_var
2201
	case $ac_val in
2202
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203
	esac
2204
	$as_echo "$ac_var='\''$ac_val'\''"
2205
      done | sort
2206
      echo
2207
    fi
2208
 
2209
    if test -s confdefs.h; then
2210
      $as_echo "## ----------- ##
2211
## confdefs.h. ##
2212
## ----------- ##"
2213
      echo
2214
      cat confdefs.h
2215
      echo
2216
    fi
2217
    test "$ac_signal" != 0 &&
2218
      $as_echo "$as_me: caught signal $ac_signal"
2219
    $as_echo "$as_me: exit $exit_status"
2220
  } >&5
2221
  rm -f core *.core core.conftest.* &&
2222
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223
    exit $exit_status
2224
' 0
2225
for ac_signal in 1 2 13 15; do
2226
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227
done
2228
ac_signal=0
2229
 
2230
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2231
rm -f -r conftest* confdefs.h
2232
 
2233
$as_echo "/* confdefs.h */" > confdefs.h
2234
 
2235
# Predefined preprocessor variables.
2236
 
2237
cat >>confdefs.h <<_ACEOF
2238
#define PACKAGE_NAME "$PACKAGE_NAME"
2239
_ACEOF
2240
 
2241
cat >>confdefs.h <<_ACEOF
2242
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243
_ACEOF
2244
 
2245
cat >>confdefs.h <<_ACEOF
2246
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2247
_ACEOF
2248
 
2249
cat >>confdefs.h <<_ACEOF
2250
#define PACKAGE_STRING "$PACKAGE_STRING"
2251
_ACEOF
2252
 
2253
cat >>confdefs.h <<_ACEOF
2254
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255
_ACEOF
2256
 
2257
cat >>confdefs.h <<_ACEOF
2258
#define PACKAGE_URL "$PACKAGE_URL"
2259
_ACEOF
2260
 
2261
 
2262
# Let the site file select an alternate cache file if it wants to.
2263
# Prefer an explicitly selected file to automatically selected ones.
2264
ac_site_file1=NONE
2265
ac_site_file2=NONE
2266
if test -n "$CONFIG_SITE"; then
2267
  # We do not want a PATH search for config.site.
2268
  case $CONFIG_SITE in #((
2269
    -*)  ac_site_file1=./$CONFIG_SITE;;
2270
    */*) ac_site_file1=$CONFIG_SITE;;
2271
    *)   ac_site_file1=./$CONFIG_SITE;;
2272
  esac
2273
elif test "x$prefix" != xNONE; then
2274
  ac_site_file1=$prefix/share/config.site
2275
  ac_site_file2=$prefix/etc/config.site
2276
else
2277
  ac_site_file1=$ac_default_prefix/share/config.site
2278
  ac_site_file2=$ac_default_prefix/etc/config.site
2279
fi
2280
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281
do
2282
  test "x$ac_site_file" = xNONE && continue
2283
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2284
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286
    sed 's/^/| /' "$ac_site_file" >&5
2287
    . "$ac_site_file" \
2288
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290
as_fn_error $? "failed to load site script $ac_site_file
2291
See \`config.log' for more details" "$LINENO" 5; }
2292
  fi
2293
done
2294
 
2295
if test -r "$cache_file"; then
2296
  # Some versions of bash will fail to source /dev/null (special files
2297
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2298
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300
$as_echo "$as_me: loading cache $cache_file" >&6;}
2301
    case $cache_file in
2302
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303
      *)                      . "./$cache_file";;
2304
    esac
2305
  fi
2306
else
2307
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308
$as_echo "$as_me: creating cache $cache_file" >&6;}
2309
  >$cache_file
2310
fi
2311
 
2312
# Check that the precious variables saved in the cache have kept the same
2313
# value.
2314
ac_cache_corrupted=false
2315
for ac_var in $ac_precious_vars; do
2316
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317
  eval ac_new_set=\$ac_env_${ac_var}_set
2318
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319
  eval ac_new_val=\$ac_env_${ac_var}_value
2320
  case $ac_old_set,$ac_new_set in
2321
    set,)
2322
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324
      ac_cache_corrupted=: ;;
2325
    ,set)
2326
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328
      ac_cache_corrupted=: ;;
2329
    ,);;
2330
    *)
2331
      if test "x$ac_old_val" != "x$ac_new_val"; then
2332
	# differences in whitespace do not lead to failure.
2333
	ac_old_val_w=`echo x $ac_old_val`
2334
	ac_new_val_w=`echo x $ac_new_val`
2335
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338
	  ac_cache_corrupted=:
2339
	else
2340
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342
	  eval $ac_var=\$ac_old_val
2343
	fi
2344
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2345
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2346
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2347
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2348
      fi;;
2349
  esac
2350
  # Pass precious variables to config.status.
2351
  if test "$ac_new_set" = set; then
2352
    case $ac_new_val in
2353
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354
    *) ac_arg=$ac_var=$ac_new_val ;;
2355
    esac
2356
    case " $ac_configure_args " in
2357
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2358
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359
    esac
2360
  fi
2361
done
2362
if $ac_cache_corrupted; then
2363
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368
fi
2369
## -------------------- ##
2370
## Main body of script. ##
2371
## -------------------- ##
2372
 
2373
ac_ext=c
2374
ac_cpp='$CPP $CPPFLAGS'
2375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
 
2379
 
2380
 
2381
ac_aux_dir=
2382
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383
  if test -f "$ac_dir/install-sh"; then
2384
    ac_aux_dir=$ac_dir
2385
    ac_install_sh="$ac_aux_dir/install-sh -c"
2386
    break
2387
  elif test -f "$ac_dir/install.sh"; then
2388
    ac_aux_dir=$ac_dir
2389
    ac_install_sh="$ac_aux_dir/install.sh -c"
2390
    break
2391
  elif test -f "$ac_dir/shtool"; then
2392
    ac_aux_dir=$ac_dir
2393
    ac_install_sh="$ac_aux_dir/shtool install -c"
2394
    break
2395
  fi
2396
done
2397
if test -z "$ac_aux_dir"; then
2398
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2399
fi
2400
 
2401
# These three variables are undocumented and unsupported,
2402
# and are intended to be withdrawn in a future Autoconf release.
2403
# They can cause serious problems if a builder's source tree is in a directory
2404
# whose full name contains unusual characters.
2405
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2406
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2407
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2408
 
2409
 
2410
# Make sure we can run config.sub.
2411
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2412
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2413
 
2414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2415
$as_echo_n "checking build system type... " >&6; }
2416
if ${ac_cv_build+:} false; then :
2417
  $as_echo_n "(cached) " >&6
2418
else
2419
  ac_build_alias=$build_alias
2420
test "x$ac_build_alias" = x &&
2421
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2422
test "x$ac_build_alias" = x &&
2423
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2424
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2425
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2426
 
2427
fi
2428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2429
$as_echo "$ac_cv_build" >&6; }
2430
case $ac_cv_build in
2431
*-*-*) ;;
2432
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2433
esac
2434
build=$ac_cv_build
2435
ac_save_IFS=$IFS; IFS='-'
2436
set x $ac_cv_build
2437
shift
2438
build_cpu=$1
2439
build_vendor=$2
2440
shift; shift
2441
# Remember, the first character of IFS is used to create $*,
2442
# except with old shells:
2443
build_os=$*
2444
IFS=$ac_save_IFS
2445
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2446
 
2447
 
2448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2449
$as_echo_n "checking host system type... " >&6; }
2450
if ${ac_cv_host+:} false; then :
2451
  $as_echo_n "(cached) " >&6
2452
else
2453
  if test "x$host_alias" = x; then
2454
  ac_cv_host=$ac_cv_build
2455
else
2456
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2457
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2458
fi
2459
 
2460
fi
2461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2462
$as_echo "$ac_cv_host" >&6; }
2463
case $ac_cv_host in
2464
*-*-*) ;;
2465
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2466
esac
2467
host=$ac_cv_host
2468
ac_save_IFS=$IFS; IFS='-'
2469
set x $ac_cv_host
2470
shift
2471
host_cpu=$1
2472
host_vendor=$2
2473
shift; shift
2474
# Remember, the first character of IFS is used to create $*,
2475
# except with old shells:
2476
host_os=$*
2477
IFS=$ac_save_IFS
2478
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2479
 
2480
 
2481
 
2482
 
2483
 
2484
am__api_version='1.15'
2485
 
2486
# Find a good install program.  We prefer a C program (faster),
2487
# so one script is as good as another.  But avoid the broken or
2488
# incompatible versions:
2489
# SysV /etc/install, /usr/sbin/install
2490
# SunOS /usr/etc/install
2491
# IRIX /sbin/install
2492
# AIX /bin/install
2493
# AmigaOS /C/install, which installs bootblocks on floppy discs
2494
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497
# OS/2's system install, which has a completely different semantic
2498
# ./install, which can be erroneously created by make from ./install.sh.
2499
# Reject install programs that cannot install multiple files.
2500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2502
if test -z "$INSTALL"; then
2503
if ${ac_cv_path_install+:} false; then :
2504
  $as_echo_n "(cached) " >&6
2505
else
2506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507
for as_dir in $PATH
2508
do
2509
  IFS=$as_save_IFS
2510
  test -z "$as_dir" && as_dir=.
2511
    # Account for people who put trailing slashes in PATH elements.
2512
case $as_dir/ in #((
2513
  ./ | .// | /[cC]/* | \
2514
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516
  /usr/ucb/* ) ;;
2517
  *)
2518
    # OSF1 and SCO ODT 3.0 have their own names for install.
2519
    # Don't use installbsd from OSF since it installs stuff as root
2520
    # by default.
2521
    for ac_prog in ginstall scoinst install; do
2522
      for ac_exec_ext in '' $ac_executable_extensions; do
2523
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524
	  if test $ac_prog = install &&
2525
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526
	    # AIX install.  It has an incompatible calling convention.
2527
	    :
2528
	  elif test $ac_prog = install &&
2529
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530
	    # program-specific install script used by HP pwplus--don't use.
2531
	    :
2532
	  else
2533
	    rm -rf conftest.one conftest.two conftest.dir
2534
	    echo one > conftest.one
2535
	    echo two > conftest.two
2536
	    mkdir conftest.dir
2537
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538
	      test -s conftest.one && test -s conftest.two &&
2539
	      test -s conftest.dir/conftest.one &&
2540
	      test -s conftest.dir/conftest.two
2541
	    then
2542
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543
	      break 3
2544
	    fi
2545
	  fi
2546
	fi
2547
      done
2548
    done
2549
    ;;
2550
esac
2551
 
2552
  done
2553
IFS=$as_save_IFS
2554
 
2555
rm -rf conftest.one conftest.two conftest.dir
2556
 
2557
fi
2558
  if test "${ac_cv_path_install+set}" = set; then
2559
    INSTALL=$ac_cv_path_install
2560
  else
2561
    # As a last resort, use the slow shell script.  Don't cache a
2562
    # value for INSTALL within a source directory, because that will
2563
    # break other packages using the cache if that directory is
2564
    # removed, or if the value is a relative name.
2565
    INSTALL=$ac_install_sh
2566
  fi
2567
fi
2568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569
$as_echo "$INSTALL" >&6; }
2570
 
2571
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572
# It thinks the first close brace ends the variable substitution.
2573
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
 
2575
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
 
2577
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
 
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580
$as_echo_n "checking whether build environment is sane... " >&6; }
2581
# Reject unsafe characters in $srcdir or the absolute working directory
2582
# name.  Accept space and tab only in the latter.
2583
am_lf='
2584
'
2585
case `pwd` in
2586
  *[\\\"\#\$\&\'\`$am_lf]*)
2587
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588
esac
2589
case $srcdir in
2590
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2591
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2592
esac
2593
 
2594
# Do 'set' in a subshell so we don't clobber the current shell's
2595
# arguments.  Must try -L first in case configure is actually a
2596
# symlink; some systems play weird games with the mod time of symlinks
2597
# (eg FreeBSD returns the mod time of the symlink's containing
2598
# directory).
2599
if (
2600
   am_has_slept=no
2601
   for am_try in 1 2; do
2602
     echo "timestamp, slept: $am_has_slept" > conftest.file
2603
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604
     if test "$*" = "X"; then
2605
	# -L didn't work.
2606
	set X `ls -t "$srcdir/configure" conftest.file`
2607
     fi
2608
     if test "$*" != "X $srcdir/configure conftest.file" \
2609
	&& test "$*" != "X conftest.file $srcdir/configure"; then
2610
 
2611
	# If neither matched, then we have a broken ls.  This can happen
2612
	# if, for instance, CONFIG_SHELL is bash and it inherits a
2613
	# broken ls alias from the environment.  This has actually
2614
	# happened.  Such a system could not be considered "sane".
2615
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2616
  alias in your environment" "$LINENO" 5
2617
     fi
2618
     if test "$2" = conftest.file || test $am_try -eq 2; then
2619
       break
2620
     fi
2621
     # Just in case.
2622
     sleep 1
2623
     am_has_slept=yes
2624
   done
2625
   test "$2" = conftest.file
2626
   )
2627
then
2628
   # Ok.
2629
   :
2630
else
2631
   as_fn_error $? "newly created file is older than distributed files!
2632
Check your system clock" "$LINENO" 5
2633
fi
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635
$as_echo "yes" >&6; }
2636
# If we didn't sleep, we still need to ensure time stamps of config.status and
2637
# generated files are strictly newer.
2638
am_sleep_pid=
2639
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640
  ( sleep 1 ) &
2641
  am_sleep_pid=$!
2642
fi
2643
 
2644
rm -f conftest.file
2645
 
2646
test "$program_prefix" != NONE &&
2647
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648
# Use a double $ so make ignores it.
2649
test "$program_suffix" != NONE &&
2650
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651
# Double any \ or $.
2652
# By default was `s,x,x', remove it if useless.
2653
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
 
2656
# Expand $ac_aux_dir to an absolute path.
2657
am_aux_dir=`cd "$ac_aux_dir" && pwd`
2658
 
2659
if test x"${MISSING+set}" != xset; then
2660
  case $am_aux_dir in
2661
  *\ * | *\	*)
2662
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663
  *)
2664
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665
  esac
2666
fi
2667
# Use eval to expand $SHELL
2668
if eval "$MISSING --is-lightweight"; then
2669
  am_missing_run="$MISSING "
2670
else
2671
  am_missing_run=
2672
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2674
fi
2675
 
2676
if test x"${install_sh+set}" != xset; then
2677
  case $am_aux_dir in
2678
  *\ * | *\	*)
2679
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680
  *)
2681
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2682
  esac
2683
fi
2684
 
2685
# Installed binaries are usually stripped using 'strip' when the user
2686
# run "make install-strip".  However 'strip' might not be the right
2687
# tool to use in cross-compilation environments, therefore Automake
2688
# will honor the 'STRIP' environment variable to overrule this program.
2689
if test "$cross_compiling" != no; then
2690
  if test -n "$ac_tool_prefix"; then
2691
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692
set dummy ${ac_tool_prefix}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 ${ac_cv_prog_STRIP+:} false; then :
2696
  $as_echo_n "(cached) " >&6
2697
else
2698
  if test -n "$STRIP"; then
2699
  ac_cv_prog_STRIP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708
    ac_cv_prog_STRIP="${ac_tool_prefix}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
STRIP=$ac_cv_prog_STRIP
2719
if test -n "$STRIP"; then
2720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721
$as_echo "$STRIP" >&6; }
2722
else
2723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724
$as_echo "no" >&6; }
2725
fi
2726
 
2727
 
2728
fi
2729
if test -z "$ac_cv_prog_STRIP"; then
2730
  ac_ct_STRIP=$STRIP
2731
  # Extract the first word of "strip", so it can be a program name with args.
2732
set dummy strip; ac_word=$2
2733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734
$as_echo_n "checking for $ac_word... " >&6; }
2735
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736
  $as_echo_n "(cached) " >&6
2737
else
2738
  if test -n "$ac_ct_STRIP"; then
2739
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740
else
2741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742
for as_dir in $PATH
2743
do
2744
  IFS=$as_save_IFS
2745
  test -z "$as_dir" && as_dir=.
2746
    for ac_exec_ext in '' $ac_executable_extensions; do
2747
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748
    ac_cv_prog_ac_ct_STRIP="strip"
2749
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750
    break 2
2751
  fi
2752
done
2753
  done
2754
IFS=$as_save_IFS
2755
 
2756
fi
2757
fi
2758
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759
if test -n "$ac_ct_STRIP"; then
2760
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761
$as_echo "$ac_ct_STRIP" >&6; }
2762
else
2763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764
$as_echo "no" >&6; }
2765
fi
2766
 
2767
  if test "x$ac_ct_STRIP" = x; then
2768
    STRIP=":"
2769
  else
2770
    case $cross_compiling:$ac_tool_warned in
2771
yes:)
2772
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774
ac_tool_warned=yes ;;
2775
esac
2776
    STRIP=$ac_ct_STRIP
2777
  fi
2778
else
2779
  STRIP="$ac_cv_prog_STRIP"
2780
fi
2781
 
2782
fi
2783
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
 
2785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787
if test -z "$MKDIR_P"; then
2788
  if ${ac_cv_path_mkdir+:} false; then :
2789
  $as_echo_n "(cached) " >&6
2790
else
2791
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793
do
2794
  IFS=$as_save_IFS
2795
  test -z "$as_dir" && as_dir=.
2796
    for ac_prog in mkdir gmkdir; do
2797
	 for ac_exec_ext in '' $ac_executable_extensions; do
2798
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800
	     'mkdir (GNU coreutils) '* | \
2801
	     'mkdir (coreutils) '* | \
2802
	     'mkdir (fileutils) '4.1*)
2803
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804
	       break 3;;
2805
	   esac
2806
	 done
2807
       done
2808
  done
2809
IFS=$as_save_IFS
2810
 
2811
fi
2812
 
2813
  test -d ./--version && rmdir ./--version
2814
  if test "${ac_cv_path_mkdir+set}" = set; then
2815
    MKDIR_P="$ac_cv_path_mkdir -p"
2816
  else
2817
    # As a last resort, use the slow shell script.  Don't cache a
2818
    # value for MKDIR_P within a source directory, because that will
2819
    # break other packages using the cache if that directory is
2820
    # removed, or if the value is a relative name.
2821
    MKDIR_P="$ac_install_sh -d"
2822
  fi
2823
fi
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825
$as_echo "$MKDIR_P" >&6; }
2826
 
2827
for ac_prog in gawk mawk nawk awk
2828
do
2829
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2830
set dummy $ac_prog; ac_word=$2
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832
$as_echo_n "checking for $ac_word... " >&6; }
2833
if ${ac_cv_prog_AWK+:} false; then :
2834
  $as_echo_n "(cached) " >&6
2835
else
2836
  if test -n "$AWK"; then
2837
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838
else
2839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840
for as_dir in $PATH
2841
do
2842
  IFS=$as_save_IFS
2843
  test -z "$as_dir" && as_dir=.
2844
    for ac_exec_ext in '' $ac_executable_extensions; do
2845
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846
    ac_cv_prog_AWK="$ac_prog"
2847
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848
    break 2
2849
  fi
2850
done
2851
  done
2852
IFS=$as_save_IFS
2853
 
2854
fi
2855
fi
2856
AWK=$ac_cv_prog_AWK
2857
if test -n "$AWK"; then
2858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859
$as_echo "$AWK" >&6; }
2860
else
2861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862
$as_echo "no" >&6; }
2863
fi
2864
 
2865
 
2866
  test -n "$AWK" && break
2867
done
2868
 
2869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871
set x ${MAKE-make}
2872
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874
  $as_echo_n "(cached) " >&6
2875
else
2876
  cat >conftest.make <<\_ACEOF
2877
SHELL = /bin/sh
2878
all:
2879
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2880
_ACEOF
2881
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883
  *@@@%%%=?*=@@@%%%*)
2884
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2885
  *)
2886
    eval ac_cv_prog_make_${ac_make}_set=no;;
2887
esac
2888
rm -f conftest.make
2889
fi
2890
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892
$as_echo "yes" >&6; }
2893
  SET_MAKE=
2894
else
2895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896
$as_echo "no" >&6; }
2897
  SET_MAKE="MAKE=${MAKE-make}"
2898
fi
2899
 
2900
rm -rf .tst 2>/dev/null
2901
mkdir .tst 2>/dev/null
2902
if test -d .tst; then
2903
  am__leading_dot=.
2904
else
2905
  am__leading_dot=_
2906
fi
2907
rmdir .tst 2>/dev/null
2908
 
2909
# Check whether --enable-silent-rules was given.
2910
if test "${enable_silent_rules+set}" = set; then :
2911
  enableval=$enable_silent_rules;
2912
fi
2913
 
2914
case $enable_silent_rules in # (((
2915
  yes) AM_DEFAULT_VERBOSITY=0;;
2916
   no) AM_DEFAULT_VERBOSITY=1;;
2917
    *) AM_DEFAULT_VERBOSITY=1;;
2918
esac
2919
am_make=${MAKE-make}
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922
if ${am_cv_make_support_nested_variables+:} false; then :
2923
  $as_echo_n "(cached) " >&6
2924
else
2925
  if $as_echo 'TRUE=$(BAR$(V))
2926
BAR0=false
2927
BAR1=true
2928
V=1
2929
am__doit:
2930
	@$(TRUE)
2931
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932
  am_cv_make_support_nested_variables=yes
2933
else
2934
  am_cv_make_support_nested_variables=no
2935
fi
2936
fi
2937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2939
if test $am_cv_make_support_nested_variables = yes; then
2940
    AM_V='$(V)'
2941
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942
else
2943
  AM_V=$AM_DEFAULT_VERBOSITY
2944
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945
fi
2946
AM_BACKSLASH='\'
2947
 
2948
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950
  # is not polluted with repeated "-I."
2951
  am__isrc=' -I$(srcdir)'
2952
  # test to see if srcdir already configured
2953
  if test -f $srcdir/config.status; then
2954
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955
  fi
2956
fi
2957
 
2958
# test whether we have cygpath
2959
if test -z "$CYGPATH_W"; then
2960
  if (cygpath --version) >/dev/null 2>/dev/null; then
2961
    CYGPATH_W='cygpath -w'
2962
  else
2963
    CYGPATH_W=echo
2964
  fi
2965
fi
2966
 
2967
 
2968
# Define the identity of the package.
2969
 PACKAGE='metal'
2970
 VERSION='1.2'
2971
 
2972
 
2973
cat >>confdefs.h <<_ACEOF
2974
#define PACKAGE "$PACKAGE"
2975
_ACEOF
2976
 
2977
 
2978
cat >>confdefs.h <<_ACEOF
2979
#define VERSION "$VERSION"
2980
_ACEOF
2981
 
2982
# Some tools Automake needs.
2983
 
2984
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985
 
2986
 
2987
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2988
 
2989
 
2990
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991
 
2992
 
2993
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2994
 
2995
 
2996
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2997
 
2998
# For better backward compatibility.  To be removed once Automake 1.9.x
2999
# dies out for good.  For more background, see:
3000
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3001
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3002
mkdir_p='$(MKDIR_P)'
3003
 
3004
# We need awk for the "check" target (and possibly the TAP driver).  The
3005
# system "awk" is bad on some platforms.
3006
# Always define AMTAR for backward compatibility.  Yes, it's still used
3007
# in the wild :-(  We should find a proper way to deprecate it ...
3008
AMTAR='$${TAR-tar}'
3009
 
3010
 
3011
# We'll loop over all known methods to create a tar archive until one works.
3012
_am_tools='gnutar  pax cpio none'
3013
 
3014
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3015
 
3016
 
3017
 
3018
 
3019
 
3020
 
3021
# POSIX will say in a future version that running "rm -f" with no argument
3022
# is OK; and we want to be able to make that assumption in our Makefile
3023
# recipes.  So use an aggressive probe to check that the usage we want is
3024
# actually supported "in the wild" to an acceptable degree.
3025
# See automake bug#10828.
3026
# To make any issue more visible, cause the running configure to be aborted
3027
# by default if the 'rm' program in use doesn't match our expectations; the
3028
# user can still override this though.
3029
if rm -f && rm -fr && rm -rf; then : OK; else
3030
  cat >&2 <<'END'
3031
Oops!
3032
 
3033
Your 'rm' program seems unable to run without file operands specified
3034
on the command line, even when the '-f' option is present.  This is contrary
3035
to the behaviour of most rm programs out there, and not conforming with
3036
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3037
 
3038
Please tell bug-automake@gnu.org about your system, including the value
3039
of your $PATH and any error possibly output before this message.  This
3040
can help us improve future automake versions.
3041
 
3042
END
3043
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3044
    echo 'Configuration will proceed anyway, since you have set the' >&2
3045
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3046
    echo >&2
3047
  else
3048
    cat >&2 <<'END'
3049
Aborting the configuration process, to ensure you take notice of the issue.
3050
 
3051
You can download and install GNU coreutils to get an 'rm' implementation
3052
that behaves properly: <http://www.gnu.org/software/coreutils/>.
3053
 
3054
If you want to complete the configuration process using your problematic
3055
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3056
to "yes", and re-run configure.
3057
 
3058
END
3059
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3060
  fi
3061
fi
3062
 
3063
 
3064
case `pwd` in
3065
  *\ * | *\	*)
3066
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3067
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3068
esac
3069
 
3070
 
3071
 
3072
macro_version='2.4.6'
3073
macro_revision='2.4.6'
3074
 
3075
 
3076
 
3077
 
3078
 
3079
 
3080
 
3081
 
3082
 
3083
 
3084
 
3085
 
3086
 
3087
ltmain=$ac_aux_dir/ltmain.sh
3088
 
3089
# Backslashify metacharacters that are still active within
3090
# double-quoted strings.
3091
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3092
 
3093
# Same as above, but do not quote variable references.
3094
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3095
 
3096
# Sed substitution to delay expansion of an escaped shell variable in a
3097
# double_quote_subst'ed string.
3098
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3099
 
3100
# Sed substitution to delay expansion of an escaped single quote.
3101
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3102
 
3103
# Sed substitution to avoid accidental globbing in evaled expressions
3104
no_glob_subst='s/\*/\\\*/g'
3105
 
3106
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3107
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3108
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3109
 
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3111
$as_echo_n "checking how to print strings... " >&6; }
3112
# Test print first, because it will be a builtin if present.
3113
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3114
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3115
  ECHO='print -r --'
3116
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3117
  ECHO='printf %s\n'
3118
else
3119
  # Use this function as a fallback that always works.
3120
  func_fallback_echo ()
3121
  {
3122
    eval 'cat <<_LTECHO_EOF
3123
$1
3124
_LTECHO_EOF'
3125
  }
3126
  ECHO='func_fallback_echo'
3127
fi
3128
 
3129
# func_echo_all arg...
3130
# Invoke $ECHO with all args, space-separated.
3131
func_echo_all ()
3132
{
3133
    $ECHO ""
3134
}
3135
 
3136
case $ECHO in
3137
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3138
$as_echo "printf" >&6; } ;;
3139
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3140
$as_echo "print -r" >&6; } ;;
3141
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3142
$as_echo "cat" >&6; } ;;
3143
esac
3144
 
3145
 
3146
 
3147
 
3148
 
3149
 
3150
 
3151
 
3152
 
3153
 
3154
 
3155
 
3156
 
3157
 
3158
DEPDIR="${am__leading_dot}deps"
3159
 
3160
ac_config_commands="$ac_config_commands depfiles"
3161
 
3162
 
3163
am_make=${MAKE-make}
3164
cat > confinc << 'END'
3165
am__doit:
3166
	@echo this is the am__doit target
3167
.PHONY: am__doit
3168
END
3169
# If we don't find an include directive, just comment out the code.
3170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3171
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3172
am__include="#"
3173
am__quote=
3174
_am_result=none
3175
# First try GNU make style include.
3176
echo "include confinc" > confmf
3177
# Ignore all kinds of additional output from 'make'.
3178
case `$am_make -s -f confmf 2> /dev/null` in #(
3179
*the\ am__doit\ target*)
3180
  am__include=include
3181
  am__quote=
3182
  _am_result=GNU
3183
  ;;
3184
esac
3185
# Now try BSD make style include.
3186
if test "$am__include" = "#"; then
3187
   echo '.include "confinc"' > confmf
3188
   case `$am_make -s -f confmf 2> /dev/null` in #(
3189
   *the\ am__doit\ target*)
3190
     am__include=.include
3191
     am__quote="\""
3192
     _am_result=BSD
3193
     ;;
3194
   esac
3195
fi
3196
 
3197
 
3198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3199
$as_echo "$_am_result" >&6; }
3200
rm -f confinc confmf
3201
 
3202
# Check whether --enable-dependency-tracking was given.
3203
if test "${enable_dependency_tracking+set}" = set; then :
3204
  enableval=$enable_dependency_tracking;
3205
fi
3206
 
3207
if test "x$enable_dependency_tracking" != xno; then
3208
  am_depcomp="$ac_aux_dir/depcomp"
3209
  AMDEPBACKSLASH='\'
3210
  am__nodep='_no'
3211
fi
3212
 if test "x$enable_dependency_tracking" != xno; then
3213
  AMDEP_TRUE=
3214
  AMDEP_FALSE='#'
3215
else
3216
  AMDEP_TRUE='#'
3217
  AMDEP_FALSE=
3218
fi
3219
 
3220
 
3221
ac_ext=c
3222
ac_cpp='$CPP $CPPFLAGS'
3223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226
if test -n "$ac_tool_prefix"; then
3227
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230
$as_echo_n "checking for $ac_word... " >&6; }
3231
if ${ac_cv_prog_CC+:} false; then :
3232
  $as_echo_n "(cached) " >&6
3233
else
3234
  if test -n "$CC"; then
3235
  ac_cv_prog_CC="$CC" # Let the user override the test.
3236
else
3237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238
for as_dir in $PATH
3239
do
3240
  IFS=$as_save_IFS
3241
  test -z "$as_dir" && as_dir=.
3242
    for ac_exec_ext in '' $ac_executable_extensions; do
3243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246
    break 2
3247
  fi
3248
done
3249
  done
3250
IFS=$as_save_IFS
3251
 
3252
fi
3253
fi
3254
CC=$ac_cv_prog_CC
3255
if test -n "$CC"; then
3256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257
$as_echo "$CC" >&6; }
3258
else
3259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260
$as_echo "no" >&6; }
3261
fi
3262
 
3263
 
3264
fi
3265
if test -z "$ac_cv_prog_CC"; then
3266
  ac_ct_CC=$CC
3267
  # Extract the first word of "gcc", so it can be a program name with args.
3268
set dummy gcc; ac_word=$2
3269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270
$as_echo_n "checking for $ac_word... " >&6; }
3271
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272
  $as_echo_n "(cached) " >&6
3273
else
3274
  if test -n "$ac_ct_CC"; then
3275
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276
else
3277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278
for as_dir in $PATH
3279
do
3280
  IFS=$as_save_IFS
3281
  test -z "$as_dir" && as_dir=.
3282
    for ac_exec_ext in '' $ac_executable_extensions; do
3283
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284
    ac_cv_prog_ac_ct_CC="gcc"
3285
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286
    break 2
3287
  fi
3288
done
3289
  done
3290
IFS=$as_save_IFS
3291
 
3292
fi
3293
fi
3294
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295
if test -n "$ac_ct_CC"; then
3296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297
$as_echo "$ac_ct_CC" >&6; }
3298
else
3299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300
$as_echo "no" >&6; }
3301
fi
3302
 
3303
  if test "x$ac_ct_CC" = x; then
3304
    CC=""
3305
  else
3306
    case $cross_compiling:$ac_tool_warned in
3307
yes:)
3308
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310
ac_tool_warned=yes ;;
3311
esac
3312
    CC=$ac_ct_CC
3313
  fi
3314
else
3315
  CC="$ac_cv_prog_CC"
3316
fi
3317
 
3318
if test -z "$CC"; then
3319
          if test -n "$ac_tool_prefix"; then
3320
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321
set dummy ${ac_tool_prefix}cc; ac_word=$2
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323
$as_echo_n "checking for $ac_word... " >&6; }
3324
if ${ac_cv_prog_CC+:} false; then :
3325
  $as_echo_n "(cached) " >&6
3326
else
3327
  if test -n "$CC"; then
3328
  ac_cv_prog_CC="$CC" # Let the user override the test.
3329
else
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331
for as_dir in $PATH
3332
do
3333
  IFS=$as_save_IFS
3334
  test -z "$as_dir" && as_dir=.
3335
    for ac_exec_ext in '' $ac_executable_extensions; do
3336
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3338
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339
    break 2
3340
  fi
3341
done
3342
  done
3343
IFS=$as_save_IFS
3344
 
3345
fi
3346
fi
3347
CC=$ac_cv_prog_CC
3348
if test -n "$CC"; then
3349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350
$as_echo "$CC" >&6; }
3351
else
3352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353
$as_echo "no" >&6; }
3354
fi
3355
 
3356
 
3357
  fi
3358
fi
3359
if test -z "$CC"; then
3360
  # Extract the first word of "cc", so it can be a program name with args.
3361
set dummy cc; ac_word=$2
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363
$as_echo_n "checking for $ac_word... " >&6; }
3364
if ${ac_cv_prog_CC+:} false; then :
3365
  $as_echo_n "(cached) " >&6
3366
else
3367
  if test -n "$CC"; then
3368
  ac_cv_prog_CC="$CC" # Let the user override the test.
3369
else
3370
  ac_prog_rejected=no
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372
for as_dir in $PATH
3373
do
3374
  IFS=$as_save_IFS
3375
  test -z "$as_dir" && as_dir=.
3376
    for ac_exec_ext in '' $ac_executable_extensions; do
3377
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379
       ac_prog_rejected=yes
3380
       continue
3381
     fi
3382
    ac_cv_prog_CC="cc"
3383
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384
    break 2
3385
  fi
3386
done
3387
  done
3388
IFS=$as_save_IFS
3389
 
3390
if test $ac_prog_rejected = yes; then
3391
  # We found a bogon in the path, so make sure we never use it.
3392
  set dummy $ac_cv_prog_CC
3393
  shift
3394
  if test $# != 0; then
3395
    # We chose a different compiler from the bogus one.
3396
    # However, it has the same basename, so the bogon will be chosen
3397
    # first if we set CC to just the basename; use the full file name.
3398
    shift
3399
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400
  fi
3401
fi
3402
fi
3403
fi
3404
CC=$ac_cv_prog_CC
3405
if test -n "$CC"; then
3406
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407
$as_echo "$CC" >&6; }
3408
else
3409
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410
$as_echo "no" >&6; }
3411
fi
3412
 
3413
 
3414
fi
3415
if test -z "$CC"; then
3416
  if test -n "$ac_tool_prefix"; then
3417
  for ac_prog in cl.exe
3418
  do
3419
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422
$as_echo_n "checking for $ac_word... " >&6; }
3423
if ${ac_cv_prog_CC+:} false; then :
3424
  $as_echo_n "(cached) " >&6
3425
else
3426
  if test -n "$CC"; then
3427
  ac_cv_prog_CC="$CC" # Let the user override the test.
3428
else
3429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
for as_dir in $PATH
3431
do
3432
  IFS=$as_save_IFS
3433
  test -z "$as_dir" && as_dir=.
3434
    for ac_exec_ext in '' $ac_executable_extensions; do
3435
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438
    break 2
3439
  fi
3440
done
3441
  done
3442
IFS=$as_save_IFS
3443
 
3444
fi
3445
fi
3446
CC=$ac_cv_prog_CC
3447
if test -n "$CC"; then
3448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449
$as_echo "$CC" >&6; }
3450
else
3451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452
$as_echo "no" >&6; }
3453
fi
3454
 
3455
 
3456
    test -n "$CC" && break
3457
  done
3458
fi
3459
if test -z "$CC"; then
3460
  ac_ct_CC=$CC
3461
  for ac_prog in cl.exe
3462
do
3463
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3464
set dummy $ac_prog; ac_word=$2
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466
$as_echo_n "checking for $ac_word... " >&6; }
3467
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3468
  $as_echo_n "(cached) " >&6
3469
else
3470
  if test -n "$ac_ct_CC"; then
3471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472
else
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474
for as_dir in $PATH
3475
do
3476
  IFS=$as_save_IFS
3477
  test -z "$as_dir" && as_dir=.
3478
    for ac_exec_ext in '' $ac_executable_extensions; do
3479
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480
    ac_cv_prog_ac_ct_CC="$ac_prog"
3481
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482
    break 2
3483
  fi
3484
done
3485
  done
3486
IFS=$as_save_IFS
3487
 
3488
fi
3489
fi
3490
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491
if test -n "$ac_ct_CC"; then
3492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493
$as_echo "$ac_ct_CC" >&6; }
3494
else
3495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496
$as_echo "no" >&6; }
3497
fi
3498
 
3499
 
3500
  test -n "$ac_ct_CC" && break
3501
done
3502
 
3503
  if test "x$ac_ct_CC" = x; then
3504
    CC=""
3505
  else
3506
    case $cross_compiling:$ac_tool_warned in
3507
yes:)
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510
ac_tool_warned=yes ;;
3511
esac
3512
    CC=$ac_ct_CC
3513
  fi
3514
fi
3515
 
3516
fi
3517
 
3518
 
3519
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521
as_fn_error $? "no acceptable C compiler found in \$PATH
3522
See \`config.log' for more details" "$LINENO" 5; }
3523
 
3524
# Provide some information about the compiler.
3525
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526
set X $ac_compile
3527
ac_compiler=$2
3528
for ac_option in --version -v -V -qversion; do
3529
  { { ac_try="$ac_compiler $ac_option >&5"
3530
case "(($ac_try" in
3531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532
  *) ac_try_echo=$ac_try;;
3533
esac
3534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535
$as_echo "$ac_try_echo"; } >&5
3536
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537
  ac_status=$?
3538
  if test -s conftest.err; then
3539
    sed '10a\
3540
... rest of stderr output deleted ...
3541
         10q' conftest.err >conftest.er1
3542
    cat conftest.er1 >&5
3543
  fi
3544
  rm -f conftest.er1 conftest.err
3545
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546
  test $ac_status = 0; }
3547
done
3548
 
3549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550
/* end confdefs.h.  */
3551
 
3552
int
3553
main ()
3554
{
3555
 
3556
  ;
3557
  return 0;
3558
}
3559
_ACEOF
3560
ac_clean_files_save=$ac_clean_files
3561
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3562
# Try to create an executable without -o first, disregard a.out.
3563
# It will help us diagnose broken compilers, and finding out an intuition
3564
# of exeext.
3565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566
$as_echo_n "checking whether the C compiler works... " >&6; }
3567
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
 
3569
# The possible output files:
3570
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
 
3572
ac_rmfiles=
3573
for ac_file in $ac_files
3574
do
3575
  case $ac_file in
3576
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578
  esac
3579
done
3580
rm -f $ac_rmfiles
3581
 
3582
if { { ac_try="$ac_link_default"
3583
case "(($ac_try" in
3584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585
  *) ac_try_echo=$ac_try;;
3586
esac
3587
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588
$as_echo "$ac_try_echo"; } >&5
3589
  (eval "$ac_link_default") 2>&5
3590
  ac_status=$?
3591
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592
  test $ac_status = 0; }; then :
3593
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3596
# so that the user can short-circuit this test for compilers unknown to
3597
# Autoconf.
3598
for ac_file in $ac_files ''
3599
do
3600
  test -f "$ac_file" || continue
3601
  case $ac_file in
3602
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603
	;;
3604
    [ab].out )
3605
	# We found the default executable, but exeext='' is most
3606
	# certainly right.
3607
	break;;
3608
    *.* )
3609
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610
	then :; else
3611
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612
	fi
3613
	# We set ac_cv_exeext here because the later test for it is not
3614
	# safe: cross compilers may not add the suffix if given an `-o'
3615
	# argument, so we may need to know it at that point already.
3616
	# Even if this section looks crufty: it has the advantage of
3617
	# actually working.
3618
	break;;
3619
    * )
3620
	break;;
3621
  esac
3622
done
3623
test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
 
3625
else
3626
  ac_file=''
3627
fi
3628
if test -z "$ac_file"; then :
3629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630
$as_echo "no" >&6; }
3631
$as_echo "$as_me: failed program was:" >&5
3632
sed 's/^/| /' conftest.$ac_ext >&5
3633
 
3634
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636
as_fn_error 77 "C compiler cannot create executables
3637
See \`config.log' for more details" "$LINENO" 5; }
3638
else
3639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640
$as_echo "yes" >&6; }
3641
fi
3642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643
$as_echo_n "checking for C compiler default output file name... " >&6; }
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645
$as_echo "$ac_file" >&6; }
3646
ac_exeext=$ac_cv_exeext
3647
 
3648
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649
ac_clean_files=$ac_clean_files_save
3650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651
$as_echo_n "checking for suffix of executables... " >&6; }
3652
if { { ac_try="$ac_link"
3653
case "(($ac_try" in
3654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655
  *) ac_try_echo=$ac_try;;
3656
esac
3657
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658
$as_echo "$ac_try_echo"; } >&5
3659
  (eval "$ac_link") 2>&5
3660
  ac_status=$?
3661
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662
  test $ac_status = 0; }; then :
3663
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3664
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3665
# work properly (i.e., refer to `conftest.exe'), while it won't with
3666
# `rm'.
3667
for ac_file in conftest.exe conftest conftest.*; do
3668
  test -f "$ac_file" || continue
3669
  case $ac_file in
3670
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672
	  break;;
3673
    * ) break;;
3674
  esac
3675
done
3676
else
3677
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3680
See \`config.log' for more details" "$LINENO" 5; }
3681
fi
3682
rm -f conftest conftest$ac_cv_exeext
3683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3684
$as_echo "$ac_cv_exeext" >&6; }
3685
 
3686
rm -f conftest.$ac_ext
3687
EXEEXT=$ac_cv_exeext
3688
ac_exeext=$EXEEXT
3689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690
/* end confdefs.h.  */
3691
#include <stdio.h>
3692
int
3693
main ()
3694
{
3695
FILE *f = fopen ("conftest.out", "w");
3696
 return ferror (f) || fclose (f) != 0;
3697
 
3698
  ;
3699
  return 0;
3700
}
3701
_ACEOF
3702
ac_clean_files="$ac_clean_files conftest.out"
3703
# Check that the compiler produces executables we can run.  If not, either
3704
# the compiler is broken, or we cross compile.
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706
$as_echo_n "checking whether we are cross compiling... " >&6; }
3707
if test "$cross_compiling" != yes; then
3708
  { { ac_try="$ac_link"
3709
case "(($ac_try" in
3710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711
  *) ac_try_echo=$ac_try;;
3712
esac
3713
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714
$as_echo "$ac_try_echo"; } >&5
3715
  (eval "$ac_link") 2>&5
3716
  ac_status=$?
3717
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718
  test $ac_status = 0; }
3719
  if { ac_try='./conftest$ac_cv_exeext'
3720
  { { case "(($ac_try" in
3721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722
  *) ac_try_echo=$ac_try;;
3723
esac
3724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725
$as_echo "$ac_try_echo"; } >&5
3726
  (eval "$ac_try") 2>&5
3727
  ac_status=$?
3728
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729
  test $ac_status = 0; }; }; then
3730
    cross_compiling=no
3731
  else
3732
    if test "$cross_compiling" = maybe; then
3733
	cross_compiling=yes
3734
    else
3735
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737
as_fn_error $? "cannot run C compiled programs.
3738
If you meant to cross compile, use \`--host'.
3739
See \`config.log' for more details" "$LINENO" 5; }
3740
    fi
3741
  fi
3742
fi
3743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744
$as_echo "$cross_compiling" >&6; }
3745
 
3746
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3747
ac_clean_files=$ac_clean_files_save
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749
$as_echo_n "checking for suffix of object files... " >&6; }
3750
if ${ac_cv_objext+:} false; then :
3751
  $as_echo_n "(cached) " >&6
3752
else
3753
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754
/* end confdefs.h.  */
3755
 
3756
int
3757
main ()
3758
{
3759
 
3760
  ;
3761
  return 0;
3762
}
3763
_ACEOF
3764
rm -f conftest.o conftest.obj
3765
if { { ac_try="$ac_compile"
3766
case "(($ac_try" in
3767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768
  *) ac_try_echo=$ac_try;;
3769
esac
3770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771
$as_echo "$ac_try_echo"; } >&5
3772
  (eval "$ac_compile") 2>&5
3773
  ac_status=$?
3774
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775
  test $ac_status = 0; }; then :
3776
  for ac_file in conftest.o conftest.obj conftest.*; do
3777
  test -f "$ac_file" || continue;
3778
  case $ac_file in
3779
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781
       break;;
3782
  esac
3783
done
3784
else
3785
  $as_echo "$as_me: failed program was:" >&5
3786
sed 's/^/| /' conftest.$ac_ext >&5
3787
 
3788
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790
as_fn_error $? "cannot compute suffix of object files: cannot compile
3791
See \`config.log' for more details" "$LINENO" 5; }
3792
fi
3793
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794
fi
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796
$as_echo "$ac_cv_objext" >&6; }
3797
OBJEXT=$ac_cv_objext
3798
ac_objext=$OBJEXT
3799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801
if ${ac_cv_c_compiler_gnu+:} false; then :
3802
  $as_echo_n "(cached) " >&6
3803
else
3804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805
/* end confdefs.h.  */
3806
 
3807
int
3808
main ()
3809
{
3810
#ifndef __GNUC__
3811
       choke me
3812
#endif
3813
 
3814
  ;
3815
  return 0;
3816
}
3817
_ACEOF
3818
if ac_fn_c_try_compile "$LINENO"; then :
3819
  ac_compiler_gnu=yes
3820
else
3821
  ac_compiler_gnu=no
3822
fi
3823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3825
 
3826
fi
3827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829
if test $ac_compiler_gnu = yes; then
3830
  GCC=yes
3831
else
3832
  GCC=
3833
fi
3834
ac_test_CFLAGS=${CFLAGS+set}
3835
ac_save_CFLAGS=$CFLAGS
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3838
if ${ac_cv_prog_cc_g+:} false; then :
3839
  $as_echo_n "(cached) " >&6
3840
else
3841
  ac_save_c_werror_flag=$ac_c_werror_flag
3842
   ac_c_werror_flag=yes
3843
   ac_cv_prog_cc_g=no
3844
   CFLAGS="-g"
3845
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846
/* end confdefs.h.  */
3847
 
3848
int
3849
main ()
3850
{
3851
 
3852
  ;
3853
  return 0;
3854
}
3855
_ACEOF
3856
if ac_fn_c_try_compile "$LINENO"; then :
3857
  ac_cv_prog_cc_g=yes
3858
else
3859
  CFLAGS=""
3860
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861
/* end confdefs.h.  */
3862
 
3863
int
3864
main ()
3865
{
3866
 
3867
  ;
3868
  return 0;
3869
}
3870
_ACEOF
3871
if ac_fn_c_try_compile "$LINENO"; then :
3872
 
3873
else
3874
  ac_c_werror_flag=$ac_save_c_werror_flag
3875
	 CFLAGS="-g"
3876
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877
/* end confdefs.h.  */
3878
 
3879
int
3880
main ()
3881
{
3882
 
3883
  ;
3884
  return 0;
3885
}
3886
_ACEOF
3887
if ac_fn_c_try_compile "$LINENO"; then :
3888
  ac_cv_prog_cc_g=yes
3889
fi
3890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891
fi
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893
fi
3894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
   ac_c_werror_flag=$ac_save_c_werror_flag
3896
fi
3897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898
$as_echo "$ac_cv_prog_cc_g" >&6; }
3899
if test "$ac_test_CFLAGS" = set; then
3900
  CFLAGS=$ac_save_CFLAGS
3901
elif test $ac_cv_prog_cc_g = yes; then
3902
  if test "$GCC" = yes; then
3903
    CFLAGS="-g -O2"
3904
  else
3905
    CFLAGS="-g"
3906
  fi
3907
else
3908
  if test "$GCC" = yes; then
3909
    CFLAGS="-O2"
3910
  else
3911
    CFLAGS=
3912
  fi
3913
fi
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916
if ${ac_cv_prog_cc_c89+:} false; then :
3917
  $as_echo_n "(cached) " >&6
3918
else
3919
  ac_cv_prog_cc_c89=no
3920
ac_save_CC=$CC
3921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922
/* end confdefs.h.  */
3923
#include <stdarg.h>
3924
#include <stdio.h>
3925
struct stat;
3926
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3927
struct buf { int x; };
3928
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929
static char *e (p, i)
3930
     char **p;
3931
     int i;
3932
{
3933
  return p[i];
3934
}
3935
static char *f (char * (*g) (char **, int), char **p, ...)
3936
{
3937
  char *s;
3938
  va_list v;
3939
  va_start (v,p);
3940
  s = g (p, va_arg (v,int));
3941
  va_end (v);
3942
  return s;
3943
}
3944
 
3945
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3946
   function prototypes and stuff, but not '\xHH' hex character constants.
3947
   These don't provoke an error unfortunately, instead are silently treated
3948
   as 'x'.  The following induces an error, until -std is added to get
3949
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3950
   array size at least.  It's necessary to write '\x00'==0 to get something
3951
   that's true only with -std.  */
3952
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
 
3954
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955
   inside strings and character constants.  */
3956
#define FOO(x) 'x'
3957
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
 
3959
int test (int i, double x);
3960
struct s1 {int (*f) (int a);};
3961
struct s2 {int (*f) (double a);};
3962
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963
int argc;
3964
char **argv;
3965
int
3966
main ()
3967
{
3968
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3969
  ;
3970
  return 0;
3971
}
3972
_ACEOF
3973
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975
do
3976
  CC="$ac_save_CC $ac_arg"
3977
  if ac_fn_c_try_compile "$LINENO"; then :
3978
  ac_cv_prog_cc_c89=$ac_arg
3979
fi
3980
rm -f core conftest.err conftest.$ac_objext
3981
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3982
done
3983
rm -f conftest.$ac_ext
3984
CC=$ac_save_CC
3985
 
3986
fi
3987
# AC_CACHE_VAL
3988
case "x$ac_cv_prog_cc_c89" in
3989
  x)
3990
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991
$as_echo "none needed" >&6; } ;;
3992
  xno)
3993
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994
$as_echo "unsupported" >&6; } ;;
3995
  *)
3996
    CC="$CC $ac_cv_prog_cc_c89"
3997
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999
esac
4000
if test "x$ac_cv_prog_cc_c89" != xno; then :
4001
 
4002
fi
4003
 
4004
ac_ext=c
4005
ac_cpp='$CPP $CPPFLAGS'
4006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
 
4010
ac_ext=c
4011
ac_cpp='$CPP $CPPFLAGS'
4012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4016
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4017
if ${am_cv_prog_cc_c_o+:} false; then :
4018
  $as_echo_n "(cached) " >&6
4019
else
4020
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021
/* end confdefs.h.  */
4022
 
4023
int
4024
main ()
4025
{
4026
 
4027
  ;
4028
  return 0;
4029
}
4030
_ACEOF
4031
  # Make sure it works both with $CC and with simple cc.
4032
  # Following AC_PROG_CC_C_O, we do the test twice because some
4033
  # compilers refuse to overwrite an existing .o file with -o,
4034
  # though they will create one.
4035
  am_cv_prog_cc_c_o=yes
4036
  for am_i in 1 2; do
4037
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4038
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4039
   ac_status=$?
4040
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041
   (exit $ac_status); } \
4042
         && test -f conftest2.$ac_objext; then
4043
      : OK
4044
    else
4045
      am_cv_prog_cc_c_o=no
4046
      break
4047
    fi
4048
  done
4049
  rm -f core conftest*
4050
  unset am_i
4051
fi
4052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4053
$as_echo "$am_cv_prog_cc_c_o" >&6; }
4054
if test "$am_cv_prog_cc_c_o" != yes; then
4055
   # Losing compiler, so override with the script.
4056
   # FIXME: It is wrong to rewrite CC.
4057
   # But if we don't then we get into trouble of one sort or another.
4058
   # A longer-term fix would be to have automake use am__CC in this case,
4059
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4060
   CC="$am_aux_dir/compile $CC"
4061
fi
4062
ac_ext=c
4063
ac_cpp='$CPP $CPPFLAGS'
4064
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
 
4068
 
4069
depcc="$CC"   am_compiler_list=
4070
 
4071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072
$as_echo_n "checking dependency style of $depcc... " >&6; }
4073
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4074
  $as_echo_n "(cached) " >&6
4075
else
4076
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077
  # We make a subdir and do the tests there.  Otherwise we can end up
4078
  # making bogus files that we don't know about and never remove.  For
4079
  # instance it was reported that on HP-UX the gcc test will end up
4080
  # making a dummy file named 'D' -- because '-MD' means "put the output
4081
  # in D".
4082
  rm -rf conftest.dir
4083
  mkdir conftest.dir
4084
  # Copy depcomp to subdir because otherwise we won't find it if we're
4085
  # using a relative directory.
4086
  cp "$am_depcomp" conftest.dir
4087
  cd conftest.dir
4088
  # We will build objects and dependencies in a subdirectory because
4089
  # it helps to detect inapplicable dependency modes.  For instance
4090
  # both Tru64's cc and ICC support -MD to output dependencies as a
4091
  # side effect of compilation, but ICC will put the dependencies in
4092
  # the current directory while Tru64 will put them in the object
4093
  # directory.
4094
  mkdir sub
4095
 
4096
  am_cv_CC_dependencies_compiler_type=none
4097
  if test "$am_compiler_list" = ""; then
4098
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4099
  fi
4100
  am__universal=false
4101
  case " $depcc " in #(
4102
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4103
     esac
4104
 
4105
  for depmode in $am_compiler_list; do
4106
    # Setup a source with many dependencies, because some compilers
4107
    # like to wrap large dependency lists on column 80 (with \), and
4108
    # we should not choose a depcomp mode which is confused by this.
4109
    #
4110
    # We need to recreate these files for each test, as the compiler may
4111
    # overwrite some of them when testing with obscure command lines.
4112
    # This happens at least with the AIX C compiler.
4113
    : > sub/conftest.c
4114
    for i in 1 2 3 4 5 6; do
4115
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4116
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4117
      # Solaris 10 /bin/sh.
4118
      echo '/* dummy */' > sub/conftst$i.h
4119
    done
4120
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4121
 
4122
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4123
    # mode.  It turns out that the SunPro C++ compiler does not properly
4124
    # handle '-M -o', and we need to detect this.  Also, some Intel
4125
    # versions had trouble with output in subdirs.
4126
    am__obj=sub/conftest.${OBJEXT-o}
4127
    am__minus_obj="-o $am__obj"
4128
    case $depmode in
4129
    gcc)
4130
      # This depmode causes a compiler race in universal mode.
4131
      test "$am__universal" = false || continue
4132
      ;;
4133
    nosideeffect)
4134
      # After this tag, mechanisms are not by side-effect, so they'll
4135
      # only be used when explicitly requested.
4136
      if test "x$enable_dependency_tracking" = xyes; then
4137
	continue
4138
      else
4139
	break
4140
      fi
4141
      ;;
4142
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4143
      # This compiler won't grok '-c -o', but also, the minuso test has
4144
      # not run yet.  These depmodes are late enough in the game, and
4145
      # so weak that their functioning should not be impacted.
4146
      am__obj=conftest.${OBJEXT-o}
4147
      am__minus_obj=
4148
      ;;
4149
    none) break ;;
4150
    esac
4151
    if depmode=$depmode \
4152
       source=sub/conftest.c object=$am__obj \
4153
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4154
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4155
         >/dev/null 2>conftest.err &&
4156
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4157
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4158
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4159
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4160
      # icc doesn't choke on unknown options, it will just issue warnings
4161
      # or remarks (even with -Werror).  So we grep stderr for any message
4162
      # that says an option was ignored or not supported.
4163
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4164
      #   icc: Command line warning: ignoring option '-M'; no argument required
4165
      # The diagnosis changed in icc 8.0:
4166
      #   icc: Command line remark: option '-MP' not supported
4167
      if (grep 'ignoring option' conftest.err ||
4168
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4169
        am_cv_CC_dependencies_compiler_type=$depmode
4170
        break
4171
      fi
4172
    fi
4173
  done
4174
 
4175
  cd ..
4176
  rm -rf conftest.dir
4177
else
4178
  am_cv_CC_dependencies_compiler_type=none
4179
fi
4180
 
4181
fi
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4183
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4184
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4185
 
4186
 if
4187
  test "x$enable_dependency_tracking" != xno \
4188
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4189
  am__fastdepCC_TRUE=
4190
  am__fastdepCC_FALSE='#'
4191
else
4192
  am__fastdepCC_TRUE='#'
4193
  am__fastdepCC_FALSE=
4194
fi
4195
 
4196
 
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4198
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4199
if ${ac_cv_path_SED+:} false; then :
4200
  $as_echo_n "(cached) " >&6
4201
else
4202
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4203
     for ac_i in 1 2 3 4 5 6 7; do
4204
       ac_script="$ac_script$as_nl$ac_script"
4205
     done
4206
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4207
     { ac_script=; unset ac_script;}
4208
     if test -z "$SED"; then
4209
  ac_path_SED_found=false
4210
  # Loop through the user's path and test for each of PROGNAME-LIST
4211
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212
for as_dir in $PATH
4213
do
4214
  IFS=$as_save_IFS
4215
  test -z "$as_dir" && as_dir=.
4216
    for ac_prog in sed gsed; do
4217
    for ac_exec_ext in '' $ac_executable_extensions; do
4218
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4219
      as_fn_executable_p "$ac_path_SED" || continue
4220
# Check for GNU ac_path_SED and select it if it is found.
4221
  # Check for GNU $ac_path_SED
4222
case `"$ac_path_SED" --version 2>&1` in
4223
*GNU*)
4224
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4225
*)
4226
  ac_count=0
4227
  $as_echo_n 0123456789 >"conftest.in"
4228
  while :
4229
  do
4230
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4231
    mv "conftest.tmp" "conftest.in"
4232
    cp "conftest.in" "conftest.nl"
4233
    $as_echo '' >> "conftest.nl"
4234
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4237
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4238
      # Best one so far, save it but keep looking for a better one
4239
      ac_cv_path_SED="$ac_path_SED"
4240
      ac_path_SED_max=$ac_count
4241
    fi
4242
    # 10*(2^10) chars as input seems more than enough
4243
    test $ac_count -gt 10 && break
4244
  done
4245
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246
esac
4247
 
4248
      $ac_path_SED_found && break 3
4249
    done
4250
  done
4251
  done
4252
IFS=$as_save_IFS
4253
  if test -z "$ac_cv_path_SED"; then
4254
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4255
  fi
4256
else
4257
  ac_cv_path_SED=$SED
4258
fi
4259
 
4260
fi
4261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4262
$as_echo "$ac_cv_path_SED" >&6; }
4263
 SED="$ac_cv_path_SED"
4264
  rm -f conftest.sed
4265
 
4266
test -z "$SED" && SED=sed
4267
Xsed="$SED -e 1s/^X//"
4268
 
4269
 
4270
 
4271
 
4272
 
4273
 
4274
 
4275
 
4276
 
4277
 
4278
 
4279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4280
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281
if ${ac_cv_path_GREP+:} false; then :
4282
  $as_echo_n "(cached) " >&6
4283
else
4284
  if test -z "$GREP"; then
4285
  ac_path_GREP_found=false
4286
  # Loop through the user's path and test for each of PROGNAME-LIST
4287
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289
do
4290
  IFS=$as_save_IFS
4291
  test -z "$as_dir" && as_dir=.
4292
    for ac_prog in grep ggrep; do
4293
    for ac_exec_ext in '' $ac_executable_extensions; do
4294
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295
      as_fn_executable_p "$ac_path_GREP" || continue
4296
# Check for GNU ac_path_GREP and select it if it is found.
4297
  # Check for GNU $ac_path_GREP
4298
case `"$ac_path_GREP" --version 2>&1` in
4299
*GNU*)
4300
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301
*)
4302
  ac_count=0
4303
  $as_echo_n 0123456789 >"conftest.in"
4304
  while :
4305
  do
4306
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307
    mv "conftest.tmp" "conftest.in"
4308
    cp "conftest.in" "conftest.nl"
4309
    $as_echo 'GREP' >> "conftest.nl"
4310
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314
      # Best one so far, save it but keep looking for a better one
4315
      ac_cv_path_GREP="$ac_path_GREP"
4316
      ac_path_GREP_max=$ac_count
4317
    fi
4318
    # 10*(2^10) chars as input seems more than enough
4319
    test $ac_count -gt 10 && break
4320
  done
4321
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322
esac
4323
 
4324
      $ac_path_GREP_found && break 3
4325
    done
4326
  done
4327
  done
4328
IFS=$as_save_IFS
4329
  if test -z "$ac_cv_path_GREP"; then
4330
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331
  fi
4332
else
4333
  ac_cv_path_GREP=$GREP
4334
fi
4335
 
4336
fi
4337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4338
$as_echo "$ac_cv_path_GREP" >&6; }
4339
 GREP="$ac_cv_path_GREP"
4340
 
4341
 
4342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4343
$as_echo_n "checking for egrep... " >&6; }
4344
if ${ac_cv_path_EGREP+:} false; then :
4345
  $as_echo_n "(cached) " >&6
4346
else
4347
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4348
   then ac_cv_path_EGREP="$GREP -E"
4349
   else
4350
     if test -z "$EGREP"; then
4351
  ac_path_EGREP_found=false
4352
  # Loop through the user's path and test for each of PROGNAME-LIST
4353
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355
do
4356
  IFS=$as_save_IFS
4357
  test -z "$as_dir" && as_dir=.
4358
    for ac_prog in egrep; do
4359
    for ac_exec_ext in '' $ac_executable_extensions; do
4360
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4361
      as_fn_executable_p "$ac_path_EGREP" || continue
4362
# Check for GNU ac_path_EGREP and select it if it is found.
4363
  # Check for GNU $ac_path_EGREP
4364
case `"$ac_path_EGREP" --version 2>&1` in
4365
*GNU*)
4366
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367
*)
4368
  ac_count=0
4369
  $as_echo_n 0123456789 >"conftest.in"
4370
  while :
4371
  do
4372
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4373
    mv "conftest.tmp" "conftest.in"
4374
    cp "conftest.in" "conftest.nl"
4375
    $as_echo 'EGREP' >> "conftest.nl"
4376
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4379
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4380
      # Best one so far, save it but keep looking for a better one
4381
      ac_cv_path_EGREP="$ac_path_EGREP"
4382
      ac_path_EGREP_max=$ac_count
4383
    fi
4384
    # 10*(2^10) chars as input seems more than enough
4385
    test $ac_count -gt 10 && break
4386
  done
4387
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388
esac
4389
 
4390
      $ac_path_EGREP_found && break 3
4391
    done
4392
  done
4393
  done
4394
IFS=$as_save_IFS
4395
  if test -z "$ac_cv_path_EGREP"; then
4396
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397
  fi
4398
else
4399
  ac_cv_path_EGREP=$EGREP
4400
fi
4401
 
4402
   fi
4403
fi
4404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4405
$as_echo "$ac_cv_path_EGREP" >&6; }
4406
 EGREP="$ac_cv_path_EGREP"
4407
 
4408
 
4409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4410
$as_echo_n "checking for fgrep... " >&6; }
4411
if ${ac_cv_path_FGREP+:} false; then :
4412
  $as_echo_n "(cached) " >&6
4413
else
4414
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4415
   then ac_cv_path_FGREP="$GREP -F"
4416
   else
4417
     if test -z "$FGREP"; then
4418
  ac_path_FGREP_found=false
4419
  # Loop through the user's path and test for each of PROGNAME-LIST
4420
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422
do
4423
  IFS=$as_save_IFS
4424
  test -z "$as_dir" && as_dir=.
4425
    for ac_prog in fgrep; do
4426
    for ac_exec_ext in '' $ac_executable_extensions; do
4427
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4428
      as_fn_executable_p "$ac_path_FGREP" || continue
4429
# Check for GNU ac_path_FGREP and select it if it is found.
4430
  # Check for GNU $ac_path_FGREP
4431
case `"$ac_path_FGREP" --version 2>&1` in
4432
*GNU*)
4433
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4434
*)
4435
  ac_count=0
4436
  $as_echo_n 0123456789 >"conftest.in"
4437
  while :
4438
  do
4439
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4440
    mv "conftest.tmp" "conftest.in"
4441
    cp "conftest.in" "conftest.nl"
4442
    $as_echo 'FGREP' >> "conftest.nl"
4443
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4446
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4447
      # Best one so far, save it but keep looking for a better one
4448
      ac_cv_path_FGREP="$ac_path_FGREP"
4449
      ac_path_FGREP_max=$ac_count
4450
    fi
4451
    # 10*(2^10) chars as input seems more than enough
4452
    test $ac_count -gt 10 && break
4453
  done
4454
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455
esac
4456
 
4457
      $ac_path_FGREP_found && break 3
4458
    done
4459
  done
4460
  done
4461
IFS=$as_save_IFS
4462
  if test -z "$ac_cv_path_FGREP"; then
4463
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464
  fi
4465
else
4466
  ac_cv_path_FGREP=$FGREP
4467
fi
4468
 
4469
   fi
4470
fi
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4472
$as_echo "$ac_cv_path_FGREP" >&6; }
4473
 FGREP="$ac_cv_path_FGREP"
4474
 
4475
 
4476
test -z "$GREP" && GREP=grep
4477
 
4478
 
4479
 
4480
 
4481
 
4482
 
4483
 
4484
 
4485
 
4486
 
4487
 
4488
 
4489
 
4490
 
4491
 
4492
 
4493
 
4494
 
4495
 
4496
# Check whether --with-gnu-ld was given.
4497
if test "${with_gnu_ld+set}" = set; then :
4498
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4499
else
4500
  with_gnu_ld=no
4501
fi
4502
 
4503
ac_prog=ld
4504
if test yes = "$GCC"; then
4505
  # Check if gcc -print-prog-name=ld gives a path.
4506
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4507
$as_echo_n "checking for ld used by $CC... " >&6; }
4508
  case $host in
4509
  *-*-mingw*)
4510
    # gcc leaves a trailing carriage return, which upsets mingw
4511
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4512
  *)
4513
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4514
  esac
4515
  case $ac_prog in
4516
    # Accept absolute paths.
4517
    [\\/]* | ?:[\\/]*)
4518
      re_direlt='/[^/][^/]*/\.\./'
4519
      # Canonicalize the pathname of ld
4520
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4521
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4522
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4523
      done
4524
      test -z "$LD" && LD=$ac_prog
4525
      ;;
4526
  "")
4527
    # If it fails, then pretend we aren't using GCC.
4528
    ac_prog=ld
4529
    ;;
4530
  *)
4531
    # If it is relative, then search for the first ld in PATH.
4532
    with_gnu_ld=unknown
4533
    ;;
4534
  esac
4535
elif test yes = "$with_gnu_ld"; then
4536
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4537
$as_echo_n "checking for GNU ld... " >&6; }
4538
else
4539
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4540
$as_echo_n "checking for non-GNU ld... " >&6; }
4541
fi
4542
if ${lt_cv_path_LD+:} false; then :
4543
  $as_echo_n "(cached) " >&6
4544
else
4545
  if test -z "$LD"; then
4546
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4547
  for ac_dir in $PATH; do
4548
    IFS=$lt_save_ifs
4549
    test -z "$ac_dir" && ac_dir=.
4550
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4551
      lt_cv_path_LD=$ac_dir/$ac_prog
4552
      # Check to see if the program is GNU ld.  I'd rather use --version,
4553
      # but apparently some variants of GNU ld only accept -v.
4554
      # Break only if it was the GNU/non-GNU ld that we prefer.
4555
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4556
      *GNU* | *'with BFD'*)
4557
	test no != "$with_gnu_ld" && break
4558
	;;
4559
      *)
4560
	test yes != "$with_gnu_ld" && break
4561
	;;
4562
      esac
4563
    fi
4564
  done
4565
  IFS=$lt_save_ifs
4566
else
4567
  lt_cv_path_LD=$LD # Let the user override the test with a path.
4568
fi
4569
fi
4570
 
4571
LD=$lt_cv_path_LD
4572
if test -n "$LD"; then
4573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4574
$as_echo "$LD" >&6; }
4575
else
4576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577
$as_echo "no" >&6; }
4578
fi
4579
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4581
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4582
if ${lt_cv_prog_gnu_ld+:} false; then :
4583
  $as_echo_n "(cached) " >&6
4584
else
4585
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4586
case `$LD -v 2>&1 </dev/null` in
4587
*GNU* | *'with BFD'*)
4588
  lt_cv_prog_gnu_ld=yes
4589
  ;;
4590
*)
4591
  lt_cv_prog_gnu_ld=no
4592
  ;;
4593
esac
4594
fi
4595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4596
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4597
with_gnu_ld=$lt_cv_prog_gnu_ld
4598
 
4599
 
4600
 
4601
 
4602
 
4603
 
4604
 
4605
 
4606
 
4607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4608
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4609
if ${lt_cv_path_NM+:} false; then :
4610
  $as_echo_n "(cached) " >&6
4611
else
4612
  if test -n "$NM"; then
4613
  # Let the user override the test.
4614
  lt_cv_path_NM=$NM
4615
else
4616
  lt_nm_to_check=${ac_tool_prefix}nm
4617
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4618
    lt_nm_to_check="$lt_nm_to_check nm"
4619
  fi
4620
  for lt_tmp_nm in $lt_nm_to_check; do
4621
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4622
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4623
      IFS=$lt_save_ifs
4624
      test -z "$ac_dir" && ac_dir=.
4625
      tmp_nm=$ac_dir/$lt_tmp_nm
4626
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4627
	# Check to see if the nm accepts a BSD-compat flag.
4628
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4629
	#   nm: unknown option "B" ignored
4630
	# Tru64's nm complains that /dev/null is an invalid object file
4631
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4632
	case $build_os in
4633
	mingw*) lt_bad_file=conftest.nm/nofile ;;
4634
	*) lt_bad_file=/dev/null ;;
4635
	esac
4636
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4637
	*$lt_bad_file* | *'Invalid file or object type'*)
4638
	  lt_cv_path_NM="$tmp_nm -B"
4639
	  break 2
4640
	  ;;
4641
	*)
4642
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643
	  */dev/null*)
4644
	    lt_cv_path_NM="$tmp_nm -p"
4645
	    break 2
4646
	    ;;
4647
	  *)
4648
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649
	    continue # so that we can try to find one that supports BSD flags
4650
	    ;;
4651
	  esac
4652
	  ;;
4653
	esac
4654
      fi
4655
    done
4656
    IFS=$lt_save_ifs
4657
  done
4658
  : ${lt_cv_path_NM=no}
4659
fi
4660
fi
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4662
$as_echo "$lt_cv_path_NM" >&6; }
4663
if test no != "$lt_cv_path_NM"; then
4664
  NM=$lt_cv_path_NM
4665
else
4666
  # Didn't find any BSD compatible name lister, look for dumpbin.
4667
  if test -n "$DUMPBIN"; then :
4668
    # Let the user override the test.
4669
  else
4670
    if test -n "$ac_tool_prefix"; then
4671
  for ac_prog in dumpbin "link -dump"
4672
  do
4673
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4674
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676
$as_echo_n "checking for $ac_word... " >&6; }
4677
if ${ac_cv_prog_DUMPBIN+:} false; then :
4678
  $as_echo_n "(cached) " >&6
4679
else
4680
  if test -n "$DUMPBIN"; then
4681
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4682
else
4683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684
for as_dir in $PATH
4685
do
4686
  IFS=$as_save_IFS
4687
  test -z "$as_dir" && as_dir=.
4688
    for ac_exec_ext in '' $ac_executable_extensions; do
4689
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692
    break 2
4693
  fi
4694
done
4695
  done
4696
IFS=$as_save_IFS
4697
 
4698
fi
4699
fi
4700
DUMPBIN=$ac_cv_prog_DUMPBIN
4701
if test -n "$DUMPBIN"; then
4702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4703
$as_echo "$DUMPBIN" >&6; }
4704
else
4705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706
$as_echo "no" >&6; }
4707
fi
4708
 
4709
 
4710
    test -n "$DUMPBIN" && break
4711
  done
4712
fi
4713
if test -z "$DUMPBIN"; then
4714
  ac_ct_DUMPBIN=$DUMPBIN
4715
  for ac_prog in dumpbin "link -dump"
4716
do
4717
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4718
set dummy $ac_prog; ac_word=$2
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720
$as_echo_n "checking for $ac_word... " >&6; }
4721
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4722
  $as_echo_n "(cached) " >&6
4723
else
4724
  if test -n "$ac_ct_DUMPBIN"; then
4725
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4726
else
4727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728
for as_dir in $PATH
4729
do
4730
  IFS=$as_save_IFS
4731
  test -z "$as_dir" && as_dir=.
4732
    for ac_exec_ext in '' $ac_executable_extensions; do
4733
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4735
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736
    break 2
4737
  fi
4738
done
4739
  done
4740
IFS=$as_save_IFS
4741
 
4742
fi
4743
fi
4744
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4745
if test -n "$ac_ct_DUMPBIN"; then
4746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4747
$as_echo "$ac_ct_DUMPBIN" >&6; }
4748
else
4749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750
$as_echo "no" >&6; }
4751
fi
4752
 
4753
 
4754
  test -n "$ac_ct_DUMPBIN" && break
4755
done
4756
 
4757
  if test "x$ac_ct_DUMPBIN" = x; then
4758
    DUMPBIN=":"
4759
  else
4760
    case $cross_compiling:$ac_tool_warned in
4761
yes:)
4762
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764
ac_tool_warned=yes ;;
4765
esac
4766
    DUMPBIN=$ac_ct_DUMPBIN
4767
  fi
4768
fi
4769
 
4770
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4771
    *COFF*)
4772
      DUMPBIN="$DUMPBIN -symbols -headers"
4773
      ;;
4774
    *)
4775
      DUMPBIN=:
4776
      ;;
4777
    esac
4778
  fi
4779
 
4780
  if test : != "$DUMPBIN"; then
4781
    NM=$DUMPBIN
4782
  fi
4783
fi
4784
test -z "$NM" && NM=nm
4785
 
4786
 
4787
 
4788
 
4789
 
4790
 
4791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4792
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4793
if ${lt_cv_nm_interface+:} false; then :
4794
  $as_echo_n "(cached) " >&6
4795
else
4796
  lt_cv_nm_interface="BSD nm"
4797
  echo "int some_variable = 0;" > conftest.$ac_ext
4798
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4799
  (eval "$ac_compile" 2>conftest.err)
4800
  cat conftest.err >&5
4801
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4802
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4803
  cat conftest.err >&5
4804
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4805
  cat conftest.out >&5
4806
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4807
    lt_cv_nm_interface="MS dumpbin"
4808
  fi
4809
  rm -f conftest*
4810
fi
4811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4812
$as_echo "$lt_cv_nm_interface" >&6; }
4813
 
4814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4815
$as_echo_n "checking whether ln -s works... " >&6; }
4816
LN_S=$as_ln_s
4817
if test "$LN_S" = "ln -s"; then
4818
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819
$as_echo "yes" >&6; }
4820
else
4821
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4822
$as_echo "no, using $LN_S" >&6; }
4823
fi
4824
 
4825
# find the maximum length of command line arguments
4826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4827
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4828
if ${lt_cv_sys_max_cmd_len+:} false; then :
4829
  $as_echo_n "(cached) " >&6
4830
else
4831
    i=0
4832
  teststring=ABCD
4833
 
4834
  case $build_os in
4835
  msdosdjgpp*)
4836
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4837
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4838
    # during glob expansion).  Even if it were fixed, the result of this
4839
    # check would be larger than it should be.
4840
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4841
    ;;
4842
 
4843
  gnu*)
4844
    # Under GNU Hurd, this test is not required because there is
4845
    # no limit to the length of command line arguments.
4846
    # Libtool will interpret -1 as no limit whatsoever
4847
    lt_cv_sys_max_cmd_len=-1;
4848
    ;;
4849
 
7 mjames 4850
  cygwin* | mingw* | cegcc*)
2 mjames 4851
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4852
    # about 5 minutes as the teststring grows exponentially.
4853
    # Worse, since 9x/ME are not pre-emptively multitasking,
4854
    # you end up with a "frozen" computer, even though with patience
4855
    # the test eventually succeeds (with a max line length of 256k).
4856
    # Instead, let's just punt: use the minimum linelength reported by
4857
    # all of the supported platforms: 8192 (on NT/2K/XP).
4858
    lt_cv_sys_max_cmd_len=8192;
4859
    ;;
4860
 
4861
  mint*)
4862
    # On MiNT this can take a long time and run out of memory.
4863
    lt_cv_sys_max_cmd_len=8192;
4864
    ;;
4865
 
4866
  amigaos*)
4867
    # On AmigaOS with pdksh, this test takes hours, literally.
4868
    # So we just punt and use a minimum line length of 8192.
4869
    lt_cv_sys_max_cmd_len=8192;
4870
    ;;
4871
 
4872
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4873
    # This has been around since 386BSD, at least.  Likely further.
4874
    if test -x /sbin/sysctl; then
4875
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4876
    elif test -x /usr/sbin/sysctl; then
4877
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4878
    else
4879
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4880
    fi
4881
    # And add a safety zone
4882
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4883
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4884
    ;;
4885
 
4886
  interix*)
4887
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4888
    lt_cv_sys_max_cmd_len=196608
4889
    ;;
4890
 
4891
  os2*)
4892
    # The test takes a long time on OS/2.
4893
    lt_cv_sys_max_cmd_len=8192
4894
    ;;
4895
 
4896
  osf*)
4897
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4898
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4899
    # nice to cause kernel panics so lets avoid the loop below.
4900
    # First set a reasonable default.
4901
    lt_cv_sys_max_cmd_len=16384
4902
    #
4903
    if test -x /sbin/sysconfig; then
4904
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4905
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4906
      esac
4907
    fi
4908
    ;;
4909
  sco3.2v5*)
4910
    lt_cv_sys_max_cmd_len=102400
4911
    ;;
4912
  sysv5* | sco5v6* | sysv4.2uw2*)
4913
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4914
    if test -n "$kargmax"; then
4915
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4916
    else
4917
      lt_cv_sys_max_cmd_len=32768
4918
    fi
4919
    ;;
4920
  *)
4921
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4922
    if test -n "$lt_cv_sys_max_cmd_len" && \
4923
       test undefined != "$lt_cv_sys_max_cmd_len"; then
4924
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926
    else
4927
      # Make teststring a little bigger before we do anything with it.
4928
      # a 1K string should be a reasonable start.
4929
      for i in 1 2 3 4 5 6 7 8; do
4930
        teststring=$teststring$teststring
4931
      done
4932
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4933
      # If test is not a shell built-in, we'll probably end up computing a
4934
      # maximum length that is only half of the actual maximum length, but
4935
      # we can't tell.
4936
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4937
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4938
	      test 17 != "$i" # 1/2 MB should be enough
4939
      do
4940
        i=`expr $i + 1`
4941
        teststring=$teststring$teststring
4942
      done
4943
      # Only check the string length outside the loop.
4944
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4945
      teststring=
4946
      # Add a significant safety factor because C++ compilers can tack on
4947
      # massive amounts of additional arguments before passing them to the
4948
      # linker.  It appears as though 1/2 is a usable value.
4949
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4950
    fi
4951
    ;;
4952
  esac
4953
 
4954
fi
4955
 
4956
if test -n "$lt_cv_sys_max_cmd_len"; then
4957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4958
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4959
else
4960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4961
$as_echo "none" >&6; }
4962
fi
4963
max_cmd_len=$lt_cv_sys_max_cmd_len
4964
 
4965
 
4966
 
4967
 
4968
 
4969
 
4970
: ${CP="cp -f"}
4971
: ${MV="mv -f"}
4972
: ${RM="rm -f"}
4973
 
4974
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4975
  lt_unset=unset
4976
else
4977
  lt_unset=false
4978
fi
4979
 
4980
 
4981
 
4982
 
4983
 
4984
# test EBCDIC or ASCII
4985
case `echo X|tr X '\101'` in
4986
 A) # ASCII based system
4987
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4988
  lt_SP2NL='tr \040 \012'
4989
  lt_NL2SP='tr \015\012 \040\040'
4990
  ;;
4991
 *) # EBCDIC based system
4992
  lt_SP2NL='tr \100 \n'
4993
  lt_NL2SP='tr \r\n \100\100'
4994
  ;;
4995
esac
4996
 
4997
 
4998
 
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5006
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5007
if ${lt_cv_to_host_file_cmd+:} false; then :
5008
  $as_echo_n "(cached) " >&6
5009
else
5010
  case $host in
5011
  *-*-mingw* )
5012
    case $build in
5013
      *-*-mingw* ) # actually msys
5014
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5015
        ;;
7 mjames 5016
      *-*-cygwin* )
2 mjames 5017
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5018
        ;;
5019
      * ) # otherwise, assume *nix
5020
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5021
        ;;
5022
    esac
5023
    ;;
7 mjames 5024
  *-*-cygwin* )
2 mjames 5025
    case $build in
5026
      *-*-mingw* ) # actually msys
5027
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5028
        ;;
7 mjames 5029
      *-*-cygwin* )
2 mjames 5030
        lt_cv_to_host_file_cmd=func_convert_file_noop
5031
        ;;
5032
      * ) # otherwise, assume *nix
5033
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5034
        ;;
5035
    esac
5036
    ;;
5037
  * ) # unhandled hosts (and "normal" native builds)
5038
    lt_cv_to_host_file_cmd=func_convert_file_noop
5039
    ;;
5040
esac
5041
 
5042
fi
5043
 
5044
to_host_file_cmd=$lt_cv_to_host_file_cmd
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5046
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5047
 
5048
 
5049
 
5050
 
5051
 
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5053
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5054
if ${lt_cv_to_tool_file_cmd+:} false; then :
5055
  $as_echo_n "(cached) " >&6
5056
else
5057
  #assume ordinary cross tools, or native build.
5058
lt_cv_to_tool_file_cmd=func_convert_file_noop
5059
case $host in
5060
  *-*-mingw* )
5061
    case $build in
5062
      *-*-mingw* ) # actually msys
5063
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5064
        ;;
5065
    esac
5066
    ;;
5067
esac
5068
 
5069
fi
5070
 
5071
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5073
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5074
 
5075
 
5076
 
5077
 
5078
 
5079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5080
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5081
if ${lt_cv_ld_reload_flag+:} false; then :
5082
  $as_echo_n "(cached) " >&6
5083
else
5084
  lt_cv_ld_reload_flag='-r'
5085
fi
5086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5087
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5088
reload_flag=$lt_cv_ld_reload_flag
5089
case $reload_flag in
5090
"" | " "*) ;;
5091
*) reload_flag=" $reload_flag" ;;
5092
esac
5093
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5094
case $host_os in
7 mjames 5095
  cygwin* | mingw* | pw32* | cegcc*)
2 mjames 5096
    if test yes != "$GCC"; then
5097
      reload_cmds=false
5098
    fi
5099
    ;;
5100
  darwin*)
5101
    if test yes = "$GCC"; then
5102
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5103
    else
5104
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5105
    fi
5106
    ;;
5107
esac
5108
 
5109
 
5110
 
5111
 
5112
 
5113
 
5114
 
5115
 
5116
 
5117
if test -n "$ac_tool_prefix"; then
5118
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5119
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121
$as_echo_n "checking for $ac_word... " >&6; }
5122
if ${ac_cv_prog_OBJDUMP+:} false; then :
5123
  $as_echo_n "(cached) " >&6
5124
else
5125
  if test -n "$OBJDUMP"; then
5126
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5127
else
5128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129
for as_dir in $PATH
5130
do
5131
  IFS=$as_save_IFS
5132
  test -z "$as_dir" && as_dir=.
5133
    for ac_exec_ext in '' $ac_executable_extensions; do
5134
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137
    break 2
5138
  fi
5139
done
5140
  done
5141
IFS=$as_save_IFS
5142
 
5143
fi
5144
fi
5145
OBJDUMP=$ac_cv_prog_OBJDUMP
5146
if test -n "$OBJDUMP"; then
5147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5148
$as_echo "$OBJDUMP" >&6; }
5149
else
5150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151
$as_echo "no" >&6; }
5152
fi
5153
 
5154
 
5155
fi
5156
if test -z "$ac_cv_prog_OBJDUMP"; then
5157
  ac_ct_OBJDUMP=$OBJDUMP
5158
  # Extract the first word of "objdump", so it can be a program name with args.
5159
set dummy objdump; ac_word=$2
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161
$as_echo_n "checking for $ac_word... " >&6; }
5162
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5163
  $as_echo_n "(cached) " >&6
5164
else
5165
  if test -n "$ac_ct_OBJDUMP"; then
5166
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5167
else
5168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169
for as_dir in $PATH
5170
do
5171
  IFS=$as_save_IFS
5172
  test -z "$as_dir" && as_dir=.
5173
    for ac_exec_ext in '' $ac_executable_extensions; do
5174
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177
    break 2
5178
  fi
5179
done
5180
  done
5181
IFS=$as_save_IFS
5182
 
5183
fi
5184
fi
5185
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5186
if test -n "$ac_ct_OBJDUMP"; then
5187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5188
$as_echo "$ac_ct_OBJDUMP" >&6; }
5189
else
5190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191
$as_echo "no" >&6; }
5192
fi
5193
 
5194
  if test "x$ac_ct_OBJDUMP" = x; then
5195
    OBJDUMP="false"
5196
  else
5197
    case $cross_compiling:$ac_tool_warned in
5198
yes:)
5199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201
ac_tool_warned=yes ;;
5202
esac
5203
    OBJDUMP=$ac_ct_OBJDUMP
5204
  fi
5205
else
5206
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5207
fi
5208
 
5209
test -z "$OBJDUMP" && OBJDUMP=objdump
5210
 
5211
 
5212
 
5213
 
5214
 
5215
 
5216
 
5217
 
5218
 
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5220
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5221
if ${lt_cv_deplibs_check_method+:} false; then :
5222
  $as_echo_n "(cached) " >&6
5223
else
5224
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5225
lt_cv_file_magic_test_file=
5226
lt_cv_deplibs_check_method='unknown'
5227
# Need to set the preceding variable on all platforms that support
5228
# interlibrary dependencies.
5229
# 'none' -- dependencies not supported.
5230
# 'unknown' -- same as none, but documents that we really don't know.
5231
# 'pass_all' -- all dependencies passed with no checks.
5232
# 'test_compile' -- check by making test program.
5233
# 'file_magic [[regex]]' -- check by looking for files in library path
5234
# that responds to the $file_magic_cmd with a given extended regex.
5235
# If you have 'file' or equivalent on your system and you're not sure
5236
# whether 'pass_all' will *always* work, you probably want this one.
5237
 
5238
case $host_os in
5239
aix[4-9]*)
5240
  lt_cv_deplibs_check_method=pass_all
5241
  ;;
5242
 
5243
beos*)
5244
  lt_cv_deplibs_check_method=pass_all
5245
  ;;
5246
 
5247
bsdi[45]*)
5248
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5249
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5250
  lt_cv_file_magic_test_file=/shlib/libc.so
5251
  ;;
5252
 
7 mjames 5253
cygwin*)
2 mjames 5254
  # func_win32_libid is a shell function defined in ltmain.sh
5255
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5256
  lt_cv_file_magic_cmd='func_win32_libid'
5257
  ;;
5258
 
5259
mingw* | pw32*)
5260
  # Base MSYS/MinGW do not provide the 'file' command needed by
5261
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5262
  # unless we find 'file', for example because we are cross-compiling.
5263
  if ( file / ) >/dev/null 2>&1; then
5264
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5265
    lt_cv_file_magic_cmd='func_win32_libid'
5266
  else
5267
    # Keep this pattern in sync with the one in func_win32_libid.
5268
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5269
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5270
  fi
5271
  ;;
5272
 
5273
cegcc*)
5274
  # use the weaker test based on 'objdump'. See mingw*.
5275
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5276
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5277
  ;;
5278
 
5279
darwin* | rhapsody*)
5280
  lt_cv_deplibs_check_method=pass_all
5281
  ;;
5282
 
5283
freebsd* | dragonfly*)
5284
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5285
    case $host_cpu in
5286
    i*86 )
5287
      # Not sure whether the presence of OpenBSD here was a mistake.
5288
      # Let's accept both of them until this is cleared up.
5289
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5290
      lt_cv_file_magic_cmd=/usr/bin/file
5291
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5292
      ;;
5293
    esac
5294
  else
5295
    lt_cv_deplibs_check_method=pass_all
5296
  fi
5297
  ;;
5298
 
5299
haiku*)
5300
  lt_cv_deplibs_check_method=pass_all
5301
  ;;
5302
 
5303
hpux10.20* | hpux11*)
5304
  lt_cv_file_magic_cmd=/usr/bin/file
5305
  case $host_cpu in
5306
  ia64*)
5307
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5308
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5309
    ;;
5310
  hppa*64*)
5311
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5312
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5313
    ;;
5314
  *)
5315
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5316
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5317
    ;;
5318
  esac
5319
  ;;
5320
 
5321
interix[3-9]*)
5322
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5323
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5324
  ;;
5325
 
5326
irix5* | irix6* | nonstopux*)
5327
  case $LD in
5328
  *-32|*"-32 ") libmagic=32-bit;;
5329
  *-n32|*"-n32 ") libmagic=N32;;
5330
  *-64|*"-64 ") libmagic=64-bit;;
5331
  *) libmagic=never-match;;
5332
  esac
5333
  lt_cv_deplibs_check_method=pass_all
5334
  ;;
5335
 
5336
# This must be glibc/ELF.
5337
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5338
  lt_cv_deplibs_check_method=pass_all
5339
  ;;
5340
 
7 mjames 5341
netbsd* | netbsdelf*-gnu)
2 mjames 5342
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5343
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5344
  else
5345
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5346
  fi
5347
  ;;
5348
 
5349
newos6*)
5350
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5351
  lt_cv_file_magic_cmd=/usr/bin/file
5352
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5353
  ;;
5354
 
5355
*nto* | *qnx*)
5356
  lt_cv_deplibs_check_method=pass_all
5357
  ;;
5358
 
5359
openbsd* | bitrig*)
5360
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5361
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5362
  else
5363
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5364
  fi
5365
  ;;
5366
 
5367
osf3* | osf4* | osf5*)
5368
  lt_cv_deplibs_check_method=pass_all
5369
  ;;
5370
 
5371
rdos*)
5372
  lt_cv_deplibs_check_method=pass_all
5373
  ;;
5374
 
5375
solaris*)
5376
  lt_cv_deplibs_check_method=pass_all
5377
  ;;
5378
 
5379
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5380
  lt_cv_deplibs_check_method=pass_all
5381
  ;;
5382
 
5383
sysv4 | sysv4.3*)
5384
  case $host_vendor in
5385
  motorola)
5386
    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]'
5387
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5388
    ;;
5389
  ncr)
5390
    lt_cv_deplibs_check_method=pass_all
5391
    ;;
5392
  sequent)
5393
    lt_cv_file_magic_cmd='/bin/file'
5394
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5395
    ;;
5396
  sni)
5397
    lt_cv_file_magic_cmd='/bin/file'
5398
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5399
    lt_cv_file_magic_test_file=/lib/libc.so
5400
    ;;
5401
  siemens)
5402
    lt_cv_deplibs_check_method=pass_all
5403
    ;;
5404
  pc)
5405
    lt_cv_deplibs_check_method=pass_all
5406
    ;;
5407
  esac
5408
  ;;
5409
 
5410
tpf*)
5411
  lt_cv_deplibs_check_method=pass_all
5412
  ;;
5413
os2*)
5414
  lt_cv_deplibs_check_method=pass_all
5415
  ;;
5416
esac
5417
 
5418
fi
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5420
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5421
 
5422
file_magic_glob=
5423
want_nocaseglob=no
5424
if test "$build" = "$host"; then
5425
  case $host_os in
5426
  mingw* | pw32*)
5427
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5428
      want_nocaseglob=yes
5429
    else
5430
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5431
    fi
5432
    ;;
5433
  esac
5434
fi
5435
 
5436
file_magic_cmd=$lt_cv_file_magic_cmd
5437
deplibs_check_method=$lt_cv_deplibs_check_method
5438
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
if test -n "$ac_tool_prefix"; then
5462
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5463
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465
$as_echo_n "checking for $ac_word... " >&6; }
5466
if ${ac_cv_prog_DLLTOOL+:} false; then :
5467
  $as_echo_n "(cached) " >&6
5468
else
5469
  if test -n "$DLLTOOL"; then
5470
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5471
else
5472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473
for as_dir in $PATH
5474
do
5475
  IFS=$as_save_IFS
5476
  test -z "$as_dir" && as_dir=.
5477
    for ac_exec_ext in '' $ac_executable_extensions; do
5478
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5480
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481
    break 2
5482
  fi
5483
done
5484
  done
5485
IFS=$as_save_IFS
5486
 
5487
fi
5488
fi
5489
DLLTOOL=$ac_cv_prog_DLLTOOL
5490
if test -n "$DLLTOOL"; then
5491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5492
$as_echo "$DLLTOOL" >&6; }
5493
else
5494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495
$as_echo "no" >&6; }
5496
fi
5497
 
5498
 
5499
fi
5500
if test -z "$ac_cv_prog_DLLTOOL"; then
5501
  ac_ct_DLLTOOL=$DLLTOOL
5502
  # Extract the first word of "dlltool", so it can be a program name with args.
5503
set dummy dlltool; ac_word=$2
5504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505
$as_echo_n "checking for $ac_word... " >&6; }
5506
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5507
  $as_echo_n "(cached) " >&6
5508
else
5509
  if test -n "$ac_ct_DLLTOOL"; then
5510
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5511
else
5512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513
for as_dir in $PATH
5514
do
5515
  IFS=$as_save_IFS
5516
  test -z "$as_dir" && as_dir=.
5517
    for ac_exec_ext in '' $ac_executable_extensions; do
5518
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521
    break 2
5522
  fi
5523
done
5524
  done
5525
IFS=$as_save_IFS
5526
 
5527
fi
5528
fi
5529
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5530
if test -n "$ac_ct_DLLTOOL"; then
5531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5532
$as_echo "$ac_ct_DLLTOOL" >&6; }
5533
else
5534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535
$as_echo "no" >&6; }
5536
fi
5537
 
5538
  if test "x$ac_ct_DLLTOOL" = x; then
5539
    DLLTOOL="false"
5540
  else
5541
    case $cross_compiling:$ac_tool_warned in
5542
yes:)
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545
ac_tool_warned=yes ;;
5546
esac
5547
    DLLTOOL=$ac_ct_DLLTOOL
5548
  fi
5549
else
5550
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5551
fi
5552
 
5553
test -z "$DLLTOOL" && DLLTOOL=dlltool
5554
 
5555
 
5556
 
5557
 
5558
 
5559
 
5560
 
5561
 
5562
 
5563
 
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5565
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5566
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5567
  $as_echo_n "(cached) " >&6
5568
else
5569
  lt_cv_sharedlib_from_linklib_cmd='unknown'
5570
 
5571
case $host_os in
7 mjames 5572
cygwin* | mingw* | pw32* | cegcc*)
2 mjames 5573
  # two different shell functions defined in ltmain.sh;
5574
  # decide which one to use based on capabilities of $DLLTOOL
5575
  case `$DLLTOOL --help 2>&1` in
5576
  *--identify-strict*)
5577
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5578
    ;;
5579
  *)
5580
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5581
    ;;
5582
  esac
5583
  ;;
5584
*)
5585
  # fallback: assume linklib IS sharedlib
5586
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5587
  ;;
5588
esac
5589
 
5590
fi
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5592
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5593
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5594
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5595
 
5596
 
5597
 
5598
 
5599
 
5600
 
5601
 
5602
 
5603
if test -n "$ac_tool_prefix"; then
5604
  for ac_prog in ar
5605
  do
5606
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5607
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609
$as_echo_n "checking for $ac_word... " >&6; }
5610
if ${ac_cv_prog_AR+:} false; then :
5611
  $as_echo_n "(cached) " >&6
5612
else
5613
  if test -n "$AR"; then
5614
  ac_cv_prog_AR="$AR" # Let the user override the test.
5615
else
5616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617
for as_dir in $PATH
5618
do
5619
  IFS=$as_save_IFS
5620
  test -z "$as_dir" && as_dir=.
5621
    for ac_exec_ext in '' $ac_executable_extensions; do
5622
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625
    break 2
5626
  fi
5627
done
5628
  done
5629
IFS=$as_save_IFS
5630
 
5631
fi
5632
fi
5633
AR=$ac_cv_prog_AR
5634
if test -n "$AR"; then
5635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5636
$as_echo "$AR" >&6; }
5637
else
5638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639
$as_echo "no" >&6; }
5640
fi
5641
 
5642
 
5643
    test -n "$AR" && break
5644
  done
5645
fi
5646
if test -z "$AR"; then
5647
  ac_ct_AR=$AR
5648
  for ac_prog in ar
5649
do
5650
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5651
set dummy $ac_prog; ac_word=$2
5652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653
$as_echo_n "checking for $ac_word... " >&6; }
5654
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5655
  $as_echo_n "(cached) " >&6
5656
else
5657
  if test -n "$ac_ct_AR"; then
5658
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5659
else
5660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661
for as_dir in $PATH
5662
do
5663
  IFS=$as_save_IFS
5664
  test -z "$as_dir" && as_dir=.
5665
    for ac_exec_ext in '' $ac_executable_extensions; do
5666
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667
    ac_cv_prog_ac_ct_AR="$ac_prog"
5668
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669
    break 2
5670
  fi
5671
done
5672
  done
5673
IFS=$as_save_IFS
5674
 
5675
fi
5676
fi
5677
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5678
if test -n "$ac_ct_AR"; then
5679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5680
$as_echo "$ac_ct_AR" >&6; }
5681
else
5682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683
$as_echo "no" >&6; }
5684
fi
5685
 
5686
 
5687
  test -n "$ac_ct_AR" && break
5688
done
5689
 
5690
  if test "x$ac_ct_AR" = x; then
5691
    AR="false"
5692
  else
5693
    case $cross_compiling:$ac_tool_warned in
5694
yes:)
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5696
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5697
ac_tool_warned=yes ;;
5698
esac
5699
    AR=$ac_ct_AR
5700
  fi
5701
fi
5702
 
5703
: ${AR=ar}
5704
: ${AR_FLAGS=cru}
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5717
$as_echo_n "checking for archiver @FILE support... " >&6; }
5718
if ${lt_cv_ar_at_file+:} false; then :
5719
  $as_echo_n "(cached) " >&6
5720
else
5721
  lt_cv_ar_at_file=no
5722
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723
/* end confdefs.h.  */
5724
 
5725
int
5726
main ()
5727
{
5728
 
5729
  ;
5730
  return 0;
5731
}
5732
_ACEOF
5733
if ac_fn_c_try_compile "$LINENO"; then :
5734
  echo conftest.$ac_objext > conftest.lst
5735
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5736
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5737
  (eval $lt_ar_try) 2>&5
5738
  ac_status=$?
5739
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740
  test $ac_status = 0; }
5741
      if test 0 -eq "$ac_status"; then
5742
	# Ensure the archiver fails upon bogus file names.
5743
	rm -f conftest.$ac_objext libconftest.a
5744
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5745
  (eval $lt_ar_try) 2>&5
5746
  ac_status=$?
5747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748
  test $ac_status = 0; }
5749
	if test 0 -ne "$ac_status"; then
5750
          lt_cv_ar_at_file=@
5751
        fi
5752
      fi
5753
      rm -f conftest.* libconftest.a
5754
 
5755
fi
5756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757
 
5758
fi
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5760
$as_echo "$lt_cv_ar_at_file" >&6; }
5761
 
5762
if test no = "$lt_cv_ar_at_file"; then
5763
  archiver_list_spec=
5764
else
5765
  archiver_list_spec=$lt_cv_ar_at_file
5766
fi
5767
 
5768
 
5769
 
5770
 
5771
 
5772
 
5773
 
5774
if test -n "$ac_tool_prefix"; then
5775
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5776
set dummy ${ac_tool_prefix}strip; ac_word=$2
5777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778
$as_echo_n "checking for $ac_word... " >&6; }
5779
if ${ac_cv_prog_STRIP+:} false; then :
5780
  $as_echo_n "(cached) " >&6
5781
else
5782
  if test -n "$STRIP"; then
5783
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5784
else
5785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786
for as_dir in $PATH
5787
do
5788
  IFS=$as_save_IFS
5789
  test -z "$as_dir" && as_dir=.
5790
    for ac_exec_ext in '' $ac_executable_extensions; do
5791
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794
    break 2
5795
  fi
5796
done
5797
  done
5798
IFS=$as_save_IFS
5799
 
5800
fi
5801
fi
5802
STRIP=$ac_cv_prog_STRIP
5803
if test -n "$STRIP"; then
5804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5805
$as_echo "$STRIP" >&6; }
5806
else
5807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808
$as_echo "no" >&6; }
5809
fi
5810
 
5811
 
5812
fi
5813
if test -z "$ac_cv_prog_STRIP"; then
5814
  ac_ct_STRIP=$STRIP
5815
  # Extract the first word of "strip", so it can be a program name with args.
5816
set dummy strip; ac_word=$2
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818
$as_echo_n "checking for $ac_word... " >&6; }
5819
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5820
  $as_echo_n "(cached) " >&6
5821
else
5822
  if test -n "$ac_ct_STRIP"; then
5823
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5824
else
5825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826
for as_dir in $PATH
5827
do
5828
  IFS=$as_save_IFS
5829
  test -z "$as_dir" && as_dir=.
5830
    for ac_exec_ext in '' $ac_executable_extensions; do
5831
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832
    ac_cv_prog_ac_ct_STRIP="strip"
5833
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834
    break 2
5835
  fi
5836
done
5837
  done
5838
IFS=$as_save_IFS
5839
 
5840
fi
5841
fi
5842
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5843
if test -n "$ac_ct_STRIP"; then
5844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5845
$as_echo "$ac_ct_STRIP" >&6; }
5846
else
5847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848
$as_echo "no" >&6; }
5849
fi
5850
 
5851
  if test "x$ac_ct_STRIP" = x; then
5852
    STRIP=":"
5853
  else
5854
    case $cross_compiling:$ac_tool_warned in
5855
yes:)
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5857
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5858
ac_tool_warned=yes ;;
5859
esac
5860
    STRIP=$ac_ct_STRIP
5861
  fi
5862
else
5863
  STRIP="$ac_cv_prog_STRIP"
5864
fi
5865
 
5866
test -z "$STRIP" && STRIP=:
5867
 
5868
 
5869
 
5870
 
5871
 
5872
 
5873
if test -n "$ac_tool_prefix"; then
5874
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5875
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877
$as_echo_n "checking for $ac_word... " >&6; }
5878
if ${ac_cv_prog_RANLIB+:} false; then :
5879
  $as_echo_n "(cached) " >&6
5880
else
5881
  if test -n "$RANLIB"; then
5882
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5883
else
5884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885
for as_dir in $PATH
5886
do
5887
  IFS=$as_save_IFS
5888
  test -z "$as_dir" && as_dir=.
5889
    for ac_exec_ext in '' $ac_executable_extensions; do
5890
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5892
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893
    break 2
5894
  fi
5895
done
5896
  done
5897
IFS=$as_save_IFS
5898
 
5899
fi
5900
fi
5901
RANLIB=$ac_cv_prog_RANLIB
5902
if test -n "$RANLIB"; then
5903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5904
$as_echo "$RANLIB" >&6; }
5905
else
5906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907
$as_echo "no" >&6; }
5908
fi
5909
 
5910
 
5911
fi
5912
if test -z "$ac_cv_prog_RANLIB"; then
5913
  ac_ct_RANLIB=$RANLIB
5914
  # Extract the first word of "ranlib", so it can be a program name with args.
5915
set dummy ranlib; ac_word=$2
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917
$as_echo_n "checking for $ac_word... " >&6; }
5918
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5919
  $as_echo_n "(cached) " >&6
5920
else
5921
  if test -n "$ac_ct_RANLIB"; then
5922
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5923
else
5924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925
for as_dir in $PATH
5926
do
5927
  IFS=$as_save_IFS
5928
  test -z "$as_dir" && as_dir=.
5929
    for ac_exec_ext in '' $ac_executable_extensions; do
5930
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5932
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933
    break 2
5934
  fi
5935
done
5936
  done
5937
IFS=$as_save_IFS
5938
 
5939
fi
5940
fi
5941
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5942
if test -n "$ac_ct_RANLIB"; then
5943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5944
$as_echo "$ac_ct_RANLIB" >&6; }
5945
else
5946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947
$as_echo "no" >&6; }
5948
fi
5949
 
5950
  if test "x$ac_ct_RANLIB" = x; then
5951
    RANLIB=":"
5952
  else
5953
    case $cross_compiling:$ac_tool_warned in
5954
yes:)
5955
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957
ac_tool_warned=yes ;;
5958
esac
5959
    RANLIB=$ac_ct_RANLIB
5960
  fi
5961
else
5962
  RANLIB="$ac_cv_prog_RANLIB"
5963
fi
5964
 
5965
test -z "$RANLIB" && RANLIB=:
5966
 
5967
 
5968
 
5969
 
5970
 
5971
 
5972
# Determine commands to create old-style static archives.
5973
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5974
old_postinstall_cmds='chmod 644 $oldlib'
5975
old_postuninstall_cmds=
5976
 
5977
if test -n "$RANLIB"; then
5978
  case $host_os in
5979
  bitrig* | openbsd*)
5980
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5981
    ;;
5982
  *)
5983
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5984
    ;;
5985
  esac
5986
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5987
fi
5988
 
5989
case $host_os in
5990
  darwin*)
5991
    lock_old_archive_extraction=yes ;;
5992
  *)
5993
    lock_old_archive_extraction=no ;;
5994
esac
5995
 
5996
 
5997
 
5998
 
5999
 
6000
 
6001
 
6002
 
6003
 
6004
 
6005
 
6006
 
6007
 
6008
 
6009
 
6010
 
6011
 
6012
 
6013
 
6014
 
6015
 
6016
 
6017
 
6018
 
6019
 
6020
 
6021
 
6022
 
6023
 
6024
 
6025
 
6026
 
6027
 
6028
 
6029
 
6030
 
6031
 
6032
 
6033
 
6034
# If no C compiler was specified, use CC.
6035
LTCC=${LTCC-"$CC"}
6036
 
6037
# If no C compiler flags were specified, use CFLAGS.
6038
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6039
 
6040
# Allow CC to be a program name with arguments.
6041
compiler=$CC
6042
 
6043
 
6044
# Check for command to grab the raw symbol name followed by C symbol from nm.
6045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6046
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6047
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6048
  $as_echo_n "(cached) " >&6
6049
else
6050
 
6051
# These are sane defaults that work on at least a few old systems.
6052
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6053
 
6054
# Character class describing NM global symbol codes.
6055
symcode='[BCDEGRST]'
6056
 
6057
# Regexp to match symbols that can be accessed directly from C.
6058
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6059
 
6060
# Define system-specific variables.
6061
case $host_os in
6062
aix*)
6063
  symcode='[BCDT]'
6064
  ;;
7 mjames 6065
cygwin* | mingw* | pw32* | cegcc*)
2 mjames 6066
  symcode='[ABCDGISTW]'
6067
  ;;
6068
hpux*)
6069
  if test ia64 = "$host_cpu"; then
6070
    symcode='[ABCDEGRST]'
6071
  fi
6072
  ;;
6073
irix* | nonstopux*)
6074
  symcode='[BCDEGRST]'
6075
  ;;
6076
osf*)
6077
  symcode='[BCDEGQRST]'
6078
  ;;
6079
solaris*)
6080
  symcode='[BDRT]'
6081
  ;;
6082
sco3.2v5*)
6083
  symcode='[DT]'
6084
  ;;
6085
sysv4.2uw2*)
6086
  symcode='[DT]'
6087
  ;;
6088
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6089
  symcode='[ABDT]'
6090
  ;;
6091
sysv4)
6092
  symcode='[DFNSTU]'
6093
  ;;
6094
esac
6095
 
6096
# If we're using GNU nm, then use its standard symbol codes.
6097
case `$NM -V 2>&1` in
6098
*GNU* | *'with BFD'*)
6099
  symcode='[ABCDGIRSTW]' ;;
6100
esac
6101
 
6102
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6103
  # Gets list of data symbols to import.
6104
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6105
  # Adjust the below global symbol transforms to fixup imported variables.
6106
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6107
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6108
  lt_c_name_lib_hook="\
6109
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6110
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6111
else
6112
  # Disable hooks by default.
6113
  lt_cv_sys_global_symbol_to_import=
6114
  lt_cdecl_hook=
6115
  lt_c_name_hook=
6116
  lt_c_name_lib_hook=
6117
fi
6118
 
6119
# Transform an extracted symbol line into a proper C declaration.
6120
# Some systems (esp. on ia64) link data and code symbols differently,
6121
# so use this general approach.
6122
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6123
$lt_cdecl_hook\
6124
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6125
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6126
 
6127
# Transform an extracted symbol line into symbol name and symbol address
6128
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6129
$lt_c_name_hook\
6130
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6131
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6132
 
6133
# Transform an extracted symbol line into symbol name with lib prefix and
6134
# symbol address.
6135
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6136
$lt_c_name_lib_hook\
6137
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6138
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6139
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6140
 
6141
# Handle CRLF in mingw tool chain
6142
opt_cr=
6143
case $build_os in
6144
mingw*)
6145
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6146
  ;;
6147
esac
6148
 
6149
# Try without a prefix underscore, then with it.
6150
for ac_symprfx in "" "_"; do
6151
 
6152
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6153
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6154
 
6155
  # Write the raw and C identifiers.
6156
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6157
    # Fake it for dumpbin and say T for any non-static function,
6158
    # D for any global variable and I for any imported variable.
6159
    # Also find C++ and __fastcall symbols from MSVC++,
6160
    # which start with @ or ?.
6161
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6162
"     {last_section=section; section=\$ 3};"\
6163
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6164
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6166
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6167
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6168
"     \$ 0!~/External *\|/{next};"\
6169
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6170
"     {if(hide[section]) next};"\
6171
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6172
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6173
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6174
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6175
"     ' prfx=^$ac_symprfx"
6176
  else
6177
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6178
  fi
6179
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6180
 
6181
  # Check to see that the pipe works correctly.
6182
  pipe_works=no
6183
 
6184
  rm -f conftest*
6185
  cat > conftest.$ac_ext <<_LT_EOF
6186
#ifdef __cplusplus
6187
extern "C" {
6188
#endif
6189
char nm_test_var;
6190
void nm_test_func(void);
6191
void nm_test_func(void){}
6192
#ifdef __cplusplus
6193
}
6194
#endif
6195
int main(){nm_test_var='a';nm_test_func();return(0);}
6196
_LT_EOF
6197
 
6198
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199
  (eval $ac_compile) 2>&5
6200
  ac_status=$?
6201
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202
  test $ac_status = 0; }; then
6203
    # Now try to grab the symbols.
6204
    nlist=conftest.nm
6205
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6206
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6207
  ac_status=$?
6208
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209
  test $ac_status = 0; } && test -s "$nlist"; then
6210
      # Try sorting and uniquifying the output.
6211
      if sort "$nlist" | uniq > "$nlist"T; then
6212
	mv -f "$nlist"T "$nlist"
6213
      else
6214
	rm -f "$nlist"T
6215
      fi
6216
 
6217
      # Make sure that we snagged all the symbols we need.
6218
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220
	  cat <<_LT_EOF > conftest.$ac_ext
6221
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6222
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6223
/* DATA imports from DLLs on WIN32 can't be const, because runtime
6224
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6225
# define LT_DLSYM_CONST
6226
#elif defined __osf__
6227
/* This system does not cope well with relocations in const data.  */
6228
# define LT_DLSYM_CONST
6229
#else
6230
# define LT_DLSYM_CONST const
6231
#endif
6232
 
6233
#ifdef __cplusplus
6234
extern "C" {
6235
#endif
6236
 
6237
_LT_EOF
6238
	  # Now generate the symbol file.
6239
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6240
 
6241
	  cat <<_LT_EOF >> conftest.$ac_ext
6242
 
6243
/* The mapping between symbol names and symbols.  */
6244
LT_DLSYM_CONST struct {
6245
  const char *name;
6246
  void       *address;
6247
}
6248
lt__PROGRAM__LTX_preloaded_symbols[] =
6249
{
6250
  { "@PROGRAM@", (void *) 0 },
6251
_LT_EOF
6252
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6253
	  cat <<\_LT_EOF >> conftest.$ac_ext
6254
  {0, (void *) 0}
6255
};
6256
 
6257
/* This works around a problem in FreeBSD linker */
6258
#ifdef FREEBSD_WORKAROUND
6259
static const void *lt_preloaded_setup() {
6260
  return lt__PROGRAM__LTX_preloaded_symbols;
6261
}
6262
#endif
6263
 
6264
#ifdef __cplusplus
6265
}
6266
#endif
6267
_LT_EOF
6268
	  # Now try linking the two files.
6269
	  mv conftest.$ac_objext conftstm.$ac_objext
6270
	  lt_globsym_save_LIBS=$LIBS
6271
	  lt_globsym_save_CFLAGS=$CFLAGS
6272
	  LIBS=conftstm.$ac_objext
6273
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6274
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6275
  (eval $ac_link) 2>&5
6276
  ac_status=$?
6277
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6279
	    pipe_works=yes
6280
	  fi
6281
	  LIBS=$lt_globsym_save_LIBS
6282
	  CFLAGS=$lt_globsym_save_CFLAGS
6283
	else
6284
	  echo "cannot find nm_test_func in $nlist" >&5
6285
	fi
6286
      else
6287
	echo "cannot find nm_test_var in $nlist" >&5
6288
      fi
6289
    else
6290
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6291
    fi
6292
  else
6293
    echo "$progname: failed program was:" >&5
6294
    cat conftest.$ac_ext >&5
6295
  fi
6296
  rm -rf conftest* conftst*
6297
 
6298
  # Do not use the global_symbol_pipe unless it works.
6299
  if test yes = "$pipe_works"; then
6300
    break
6301
  else
6302
    lt_cv_sys_global_symbol_pipe=
6303
  fi
6304
done
6305
 
6306
fi
6307
 
6308
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6309
  lt_cv_sys_global_symbol_to_cdecl=
6310
fi
6311
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6313
$as_echo "failed" >&6; }
6314
else
6315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6316
$as_echo "ok" >&6; }
6317
fi
6318
 
6319
# Response file support.
6320
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6321
  nm_file_list_spec='@'
6322
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6323
  nm_file_list_spec='@'
6324
fi
6325
 
6326
 
6327
 
6328
 
6329
 
6330
 
6331
 
6332
 
6333
 
6334
 
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
 
6348
 
6349
 
6350
 
6351
 
6352
 
6353
 
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6363
$as_echo_n "checking for sysroot... " >&6; }
6364
 
6365
# Check whether --with-sysroot was given.
6366
if test "${with_sysroot+set}" = set; then :
6367
  withval=$with_sysroot;
6368
else
6369
  with_sysroot=no
6370
fi
6371
 
6372
 
6373
lt_sysroot=
6374
case $with_sysroot in #(
6375
 yes)
6376
   if test yes = "$GCC"; then
6377
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6378
   fi
6379
   ;; #(
6380
 /*)
6381
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6382
   ;; #(
6383
 no|'')
6384
   ;; #(
6385
 *)
6386
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6387
$as_echo "$with_sysroot" >&6; }
6388
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6389
   ;;
6390
esac
6391
 
6392
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6393
$as_echo "${lt_sysroot:-no}" >&6; }
6394
 
6395
 
6396
 
6397
 
6398
 
6399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6400
$as_echo_n "checking for a working dd... " >&6; }
6401
if ${ac_cv_path_lt_DD+:} false; then :
6402
  $as_echo_n "(cached) " >&6
6403
else
6404
  printf 0123456789abcdef0123456789abcdef >conftest.i
6405
cat conftest.i conftest.i >conftest2.i
6406
: ${lt_DD:=$DD}
6407
if test -z "$lt_DD"; then
6408
  ac_path_lt_DD_found=false
6409
  # Loop through the user's path and test for each of PROGNAME-LIST
6410
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411
for as_dir in $PATH
6412
do
6413
  IFS=$as_save_IFS
6414
  test -z "$as_dir" && as_dir=.
6415
    for ac_prog in dd; do
6416
    for ac_exec_ext in '' $ac_executable_extensions; do
6417
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6418
      as_fn_executable_p "$ac_path_lt_DD" || continue
6419
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6420
  cmp -s conftest.i conftest.out \
6421
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6422
fi
6423
      $ac_path_lt_DD_found && break 3
6424
    done
6425
  done
6426
  done
6427
IFS=$as_save_IFS
6428
  if test -z "$ac_cv_path_lt_DD"; then
6429
    :
6430
  fi
6431
else
6432
  ac_cv_path_lt_DD=$lt_DD
6433
fi
6434
 
6435
rm -f conftest.i conftest2.i conftest.out
6436
fi
6437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6438
$as_echo "$ac_cv_path_lt_DD" >&6; }
6439
 
6440
 
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6442
$as_echo_n "checking how to truncate binary pipes... " >&6; }
6443
if ${lt_cv_truncate_bin+:} false; then :
6444
  $as_echo_n "(cached) " >&6
6445
else
6446
  printf 0123456789abcdef0123456789abcdef >conftest.i
6447
cat conftest.i conftest.i >conftest2.i
6448
lt_cv_truncate_bin=
6449
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6450
  cmp -s conftest.i conftest.out \
6451
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6452
fi
6453
rm -f conftest.i conftest2.i conftest.out
6454
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6455
fi
6456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6457
$as_echo "$lt_cv_truncate_bin" >&6; }
6458
 
6459
 
6460
 
6461
 
6462
 
6463
 
6464
 
6465
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6466
func_cc_basename ()
6467
{
6468
    for cc_temp in $*""; do
6469
      case $cc_temp in
6470
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6471
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6472
        \-*) ;;
6473
        *) break;;
6474
      esac
6475
    done
6476
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6477
}
6478
 
6479
# Check whether --enable-libtool-lock was given.
6480
if test "${enable_libtool_lock+set}" = set; then :
6481
  enableval=$enable_libtool_lock;
6482
fi
6483
 
6484
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6485
 
6486
# Some flags need to be propagated to the compiler or linker for good
6487
# libtool support.
6488
case $host in
6489
ia64-*-hpux*)
6490
  # Find out what ABI is being produced by ac_compile, and set mode
6491
  # options accordingly.
6492
  echo 'int i;' > conftest.$ac_ext
6493
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494
  (eval $ac_compile) 2>&5
6495
  ac_status=$?
6496
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497
  test $ac_status = 0; }; then
6498
    case `/usr/bin/file conftest.$ac_objext` in
6499
      *ELF-32*)
6500
	HPUX_IA64_MODE=32
6501
	;;
6502
      *ELF-64*)
6503
	HPUX_IA64_MODE=64
6504
	;;
6505
    esac
6506
  fi
6507
  rm -rf conftest*
6508
  ;;
6509
*-*-irix6*)
6510
  # Find out what ABI is being produced by ac_compile, and set linker
6511
  # options accordingly.
6512
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6513
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6514
  (eval $ac_compile) 2>&5
6515
  ac_status=$?
6516
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517
  test $ac_status = 0; }; then
6518
    if test yes = "$lt_cv_prog_gnu_ld"; then
6519
      case `/usr/bin/file conftest.$ac_objext` in
6520
	*32-bit*)
6521
	  LD="${LD-ld} -melf32bsmip"
6522
	  ;;
6523
	*N32*)
6524
	  LD="${LD-ld} -melf32bmipn32"
6525
	  ;;
6526
	*64-bit*)
6527
	  LD="${LD-ld} -melf64bmip"
6528
	;;
6529
      esac
6530
    else
6531
      case `/usr/bin/file conftest.$ac_objext` in
6532
	*32-bit*)
6533
	  LD="${LD-ld} -32"
6534
	  ;;
6535
	*N32*)
6536
	  LD="${LD-ld} -n32"
6537
	  ;;
6538
	*64-bit*)
6539
	  LD="${LD-ld} -64"
6540
	  ;;
6541
      esac
6542
    fi
6543
  fi
6544
  rm -rf conftest*
6545
  ;;
6546
 
6547
mips64*-*linux*)
6548
  # Find out what ABI is being produced by ac_compile, and set linker
6549
  # options accordingly.
6550
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6551
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552
  (eval $ac_compile) 2>&5
6553
  ac_status=$?
6554
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555
  test $ac_status = 0; }; then
6556
    emul=elf
6557
    case `/usr/bin/file conftest.$ac_objext` in
6558
      *32-bit*)
6559
	emul="${emul}32"
6560
	;;
6561
      *64-bit*)
6562
	emul="${emul}64"
6563
	;;
6564
    esac
6565
    case `/usr/bin/file conftest.$ac_objext` in
6566
      *MSB*)
6567
	emul="${emul}btsmip"
6568
	;;
6569
      *LSB*)
6570
	emul="${emul}ltsmip"
6571
	;;
6572
    esac
6573
    case `/usr/bin/file conftest.$ac_objext` in
6574
      *N32*)
6575
	emul="${emul}n32"
6576
	;;
6577
    esac
6578
    LD="${LD-ld} -m $emul"
6579
  fi
6580
  rm -rf conftest*
6581
  ;;
6582
 
6583
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6584
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6585
  # Find out what ABI is being produced by ac_compile, and set linker
6586
  # options accordingly.  Note that the listed cases only cover the
6587
  # situations where additional linker options are needed (such as when
6588
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6589
  # vice versa); the common cases where no linker options are needed do
6590
  # not appear in the list.
6591
  echo 'int i;' > conftest.$ac_ext
6592
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593
  (eval $ac_compile) 2>&5
6594
  ac_status=$?
6595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596
  test $ac_status = 0; }; then
6597
    case `/usr/bin/file conftest.o` in
6598
      *32-bit*)
6599
	case $host in
6600
	  x86_64-*kfreebsd*-gnu)
6601
	    LD="${LD-ld} -m elf_i386_fbsd"
6602
	    ;;
6603
	  x86_64-*linux*)
6604
	    case `/usr/bin/file conftest.o` in
6605
	      *x86-64*)
6606
		LD="${LD-ld} -m elf32_x86_64"
6607
		;;
6608
	      *)
6609
		LD="${LD-ld} -m elf_i386"
6610
		;;
6611
	    esac
6612
	    ;;
6613
	  powerpc64le-*linux*)
6614
	    LD="${LD-ld} -m elf32lppclinux"
6615
	    ;;
6616
	  powerpc64-*linux*)
6617
	    LD="${LD-ld} -m elf32ppclinux"
6618
	    ;;
6619
	  s390x-*linux*)
6620
	    LD="${LD-ld} -m elf_s390"
6621
	    ;;
6622
	  sparc64-*linux*)
6623
	    LD="${LD-ld} -m elf32_sparc"
6624
	    ;;
6625
	esac
6626
	;;
6627
      *64-bit*)
6628
	case $host in
6629
	  x86_64-*kfreebsd*-gnu)
6630
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6631
	    ;;
6632
	  x86_64-*linux*)
6633
	    LD="${LD-ld} -m elf_x86_64"
6634
	    ;;
6635
	  powerpcle-*linux*)
6636
	    LD="${LD-ld} -m elf64lppc"
6637
	    ;;
6638
	  powerpc-*linux*)
6639
	    LD="${LD-ld} -m elf64ppc"
6640
	    ;;
6641
	  s390*-*linux*|s390*-*tpf*)
6642
	    LD="${LD-ld} -m elf64_s390"
6643
	    ;;
6644
	  sparc*-*linux*)
6645
	    LD="${LD-ld} -m elf64_sparc"
6646
	    ;;
6647
	esac
6648
	;;
6649
    esac
6650
  fi
6651
  rm -rf conftest*
6652
  ;;
6653
 
6654
*-*-sco3.2v5*)
6655
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6656
  SAVE_CFLAGS=$CFLAGS
6657
  CFLAGS="$CFLAGS -belf"
6658
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6659
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6660
if ${lt_cv_cc_needs_belf+:} false; then :
6661
  $as_echo_n "(cached) " >&6
6662
else
6663
  ac_ext=c
6664
ac_cpp='$CPP $CPPFLAGS'
6665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
 
6669
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670
/* end confdefs.h.  */
6671
 
6672
int
6673
main ()
6674
{
6675
 
6676
  ;
6677
  return 0;
6678
}
6679
_ACEOF
6680
if ac_fn_c_try_link "$LINENO"; then :
6681
  lt_cv_cc_needs_belf=yes
6682
else
6683
  lt_cv_cc_needs_belf=no
6684
fi
6685
rm -f core conftest.err conftest.$ac_objext \
6686
    conftest$ac_exeext conftest.$ac_ext
6687
     ac_ext=c
6688
ac_cpp='$CPP $CPPFLAGS'
6689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692
 
6693
fi
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6695
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6696
  if test yes != "$lt_cv_cc_needs_belf"; then
6697
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6698
    CFLAGS=$SAVE_CFLAGS
6699
  fi
6700
  ;;
6701
*-*solaris*)
6702
  # Find out what ABI is being produced by ac_compile, and set linker
6703
  # options accordingly.
6704
  echo 'int i;' > conftest.$ac_ext
6705
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706
  (eval $ac_compile) 2>&5
6707
  ac_status=$?
6708
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709
  test $ac_status = 0; }; then
6710
    case `/usr/bin/file conftest.o` in
6711
    *64-bit*)
6712
      case $lt_cv_prog_gnu_ld in
6713
      yes*)
6714
        case $host in
6715
        i?86-*-solaris*|x86_64-*-solaris*)
6716
          LD="${LD-ld} -m elf_x86_64"
6717
          ;;
6718
        sparc*-*-solaris*)
6719
          LD="${LD-ld} -m elf64_sparc"
6720
          ;;
6721
        esac
6722
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6723
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6724
          LD=${LD-ld}_sol2
6725
        fi
6726
        ;;
6727
      *)
6728
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6729
	  LD="${LD-ld} -64"
6730
	fi
6731
	;;
6732
      esac
6733
      ;;
6734
    esac
6735
  fi
6736
  rm -rf conftest*
6737
  ;;
6738
esac
6739
 
6740
need_locks=$enable_libtool_lock
6741
 
6742
if test -n "$ac_tool_prefix"; then
6743
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6744
set dummy ${ac_tool_prefix}mt; ac_word=$2
6745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746
$as_echo_n "checking for $ac_word... " >&6; }
6747
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6748
  $as_echo_n "(cached) " >&6
6749
else
6750
  if test -n "$MANIFEST_TOOL"; then
6751
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6752
else
6753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754
for as_dir in $PATH
6755
do
6756
  IFS=$as_save_IFS
6757
  test -z "$as_dir" && as_dir=.
6758
    for ac_exec_ext in '' $ac_executable_extensions; do
6759
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6761
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762
    break 2
6763
  fi
6764
done
6765
  done
6766
IFS=$as_save_IFS
6767
 
6768
fi
6769
fi
6770
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6771
if test -n "$MANIFEST_TOOL"; then
6772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6773
$as_echo "$MANIFEST_TOOL" >&6; }
6774
else
6775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776
$as_echo "no" >&6; }
6777
fi
6778
 
6779
 
6780
fi
6781
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6782
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6783
  # Extract the first word of "mt", so it can be a program name with args.
6784
set dummy mt; ac_word=$2
6785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786
$as_echo_n "checking for $ac_word... " >&6; }
6787
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6788
  $as_echo_n "(cached) " >&6
6789
else
6790
  if test -n "$ac_ct_MANIFEST_TOOL"; then
6791
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6792
else
6793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794
for as_dir in $PATH
6795
do
6796
  IFS=$as_save_IFS
6797
  test -z "$as_dir" && as_dir=.
6798
    for ac_exec_ext in '' $ac_executable_extensions; do
6799
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6801
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802
    break 2
6803
  fi
6804
done
6805
  done
6806
IFS=$as_save_IFS
6807
 
6808
fi
6809
fi
6810
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6811
if test -n "$ac_ct_MANIFEST_TOOL"; then
6812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6813
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6814
else
6815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816
$as_echo "no" >&6; }
6817
fi
6818
 
6819
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6820
    MANIFEST_TOOL=":"
6821
  else
6822
    case $cross_compiling:$ac_tool_warned in
6823
yes:)
6824
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826
ac_tool_warned=yes ;;
6827
esac
6828
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6829
  fi
6830
else
6831
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6832
fi
6833
 
6834
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6836
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6837
if ${lt_cv_path_mainfest_tool+:} false; then :
6838
  $as_echo_n "(cached) " >&6
6839
else
6840
  lt_cv_path_mainfest_tool=no
6841
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6842
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6843
  cat conftest.err >&5
6844
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6845
    lt_cv_path_mainfest_tool=yes
6846
  fi
6847
  rm -f conftest*
6848
fi
6849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6850
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6851
if test yes != "$lt_cv_path_mainfest_tool"; then
6852
  MANIFEST_TOOL=:
6853
fi
6854
 
6855
 
6856
 
6857
 
6858
 
6859
 
6860
  case $host_os in
6861
    rhapsody* | darwin*)
6862
    if test -n "$ac_tool_prefix"; then
6863
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6864
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866
$as_echo_n "checking for $ac_word... " >&6; }
6867
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6868
  $as_echo_n "(cached) " >&6
6869
else
6870
  if test -n "$DSYMUTIL"; then
6871
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6872
else
6873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874
for as_dir in $PATH
6875
do
6876
  IFS=$as_save_IFS
6877
  test -z "$as_dir" && as_dir=.
6878
    for ac_exec_ext in '' $ac_executable_extensions; do
6879
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882
    break 2
6883
  fi
6884
done
6885
  done
6886
IFS=$as_save_IFS
6887
 
6888
fi
6889
fi
6890
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6891
if test -n "$DSYMUTIL"; then
6892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6893
$as_echo "$DSYMUTIL" >&6; }
6894
else
6895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896
$as_echo "no" >&6; }
6897
fi
6898
 
6899
 
6900
fi
6901
if test -z "$ac_cv_prog_DSYMUTIL"; then
6902
  ac_ct_DSYMUTIL=$DSYMUTIL
6903
  # Extract the first word of "dsymutil", so it can be a program name with args.
6904
set dummy dsymutil; ac_word=$2
6905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906
$as_echo_n "checking for $ac_word... " >&6; }
6907
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6908
  $as_echo_n "(cached) " >&6
6909
else
6910
  if test -n "$ac_ct_DSYMUTIL"; then
6911
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6912
else
6913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914
for as_dir in $PATH
6915
do
6916
  IFS=$as_save_IFS
6917
  test -z "$as_dir" && as_dir=.
6918
    for ac_exec_ext in '' $ac_executable_extensions; do
6919
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922
    break 2
6923
  fi
6924
done
6925
  done
6926
IFS=$as_save_IFS
6927
 
6928
fi
6929
fi
6930
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6931
if test -n "$ac_ct_DSYMUTIL"; then
6932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6933
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6934
else
6935
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936
$as_echo "no" >&6; }
6937
fi
6938
 
6939
  if test "x$ac_ct_DSYMUTIL" = x; then
6940
    DSYMUTIL=":"
6941
  else
6942
    case $cross_compiling:$ac_tool_warned in
6943
yes:)
6944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946
ac_tool_warned=yes ;;
6947
esac
6948
    DSYMUTIL=$ac_ct_DSYMUTIL
6949
  fi
6950
else
6951
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6952
fi
6953
 
6954
    if test -n "$ac_tool_prefix"; then
6955
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6956
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958
$as_echo_n "checking for $ac_word... " >&6; }
6959
if ${ac_cv_prog_NMEDIT+:} false; then :
6960
  $as_echo_n "(cached) " >&6
6961
else
6962
  if test -n "$NMEDIT"; then
6963
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6964
else
6965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966
for as_dir in $PATH
6967
do
6968
  IFS=$as_save_IFS
6969
  test -z "$as_dir" && as_dir=.
6970
    for ac_exec_ext in '' $ac_executable_extensions; do
6971
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974
    break 2
6975
  fi
6976
done
6977
  done
6978
IFS=$as_save_IFS
6979
 
6980
fi
6981
fi
6982
NMEDIT=$ac_cv_prog_NMEDIT
6983
if test -n "$NMEDIT"; then
6984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6985
$as_echo "$NMEDIT" >&6; }
6986
else
6987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988
$as_echo "no" >&6; }
6989
fi
6990
 
6991
 
6992
fi
6993
if test -z "$ac_cv_prog_NMEDIT"; then
6994
  ac_ct_NMEDIT=$NMEDIT
6995
  # Extract the first word of "nmedit", so it can be a program name with args.
6996
set dummy nmedit; ac_word=$2
6997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998
$as_echo_n "checking for $ac_word... " >&6; }
6999
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7000
  $as_echo_n "(cached) " >&6
7001
else
7002
  if test -n "$ac_ct_NMEDIT"; then
7003
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7004
else
7005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006
for as_dir in $PATH
7007
do
7008
  IFS=$as_save_IFS
7009
  test -z "$as_dir" && as_dir=.
7010
    for ac_exec_ext in '' $ac_executable_extensions; do
7011
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7013
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014
    break 2
7015
  fi
7016
done
7017
  done
7018
IFS=$as_save_IFS
7019
 
7020
fi
7021
fi
7022
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7023
if test -n "$ac_ct_NMEDIT"; then
7024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7025
$as_echo "$ac_ct_NMEDIT" >&6; }
7026
else
7027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028
$as_echo "no" >&6; }
7029
fi
7030
 
7031
  if test "x$ac_ct_NMEDIT" = x; then
7032
    NMEDIT=":"
7033
  else
7034
    case $cross_compiling:$ac_tool_warned in
7035
yes:)
7036
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038
ac_tool_warned=yes ;;
7039
esac
7040
    NMEDIT=$ac_ct_NMEDIT
7041
  fi
7042
else
7043
  NMEDIT="$ac_cv_prog_NMEDIT"
7044
fi
7045
 
7046
    if test -n "$ac_tool_prefix"; then
7047
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7048
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050
$as_echo_n "checking for $ac_word... " >&6; }
7051
if ${ac_cv_prog_LIPO+:} false; then :
7052
  $as_echo_n "(cached) " >&6
7053
else
7054
  if test -n "$LIPO"; then
7055
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7056
else
7057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058
for as_dir in $PATH
7059
do
7060
  IFS=$as_save_IFS
7061
  test -z "$as_dir" && as_dir=.
7062
    for ac_exec_ext in '' $ac_executable_extensions; do
7063
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7065
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066
    break 2
7067
  fi
7068
done
7069
  done
7070
IFS=$as_save_IFS
7071
 
7072
fi
7073
fi
7074
LIPO=$ac_cv_prog_LIPO
7075
if test -n "$LIPO"; then
7076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7077
$as_echo "$LIPO" >&6; }
7078
else
7079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080
$as_echo "no" >&6; }
7081
fi
7082
 
7083
 
7084
fi
7085
if test -z "$ac_cv_prog_LIPO"; then
7086
  ac_ct_LIPO=$LIPO
7087
  # Extract the first word of "lipo", so it can be a program name with args.
7088
set dummy lipo; ac_word=$2
7089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090
$as_echo_n "checking for $ac_word... " >&6; }
7091
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7092
  $as_echo_n "(cached) " >&6
7093
else
7094
  if test -n "$ac_ct_LIPO"; then
7095
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7096
else
7097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098
for as_dir in $PATH
7099
do
7100
  IFS=$as_save_IFS
7101
  test -z "$as_dir" && as_dir=.
7102
    for ac_exec_ext in '' $ac_executable_extensions; do
7103
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104
    ac_cv_prog_ac_ct_LIPO="lipo"
7105
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106
    break 2
7107
  fi
7108
done
7109
  done
7110
IFS=$as_save_IFS
7111
 
7112
fi
7113
fi
7114
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7115
if test -n "$ac_ct_LIPO"; then
7116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7117
$as_echo "$ac_ct_LIPO" >&6; }
7118
else
7119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120
$as_echo "no" >&6; }
7121
fi
7122
 
7123
  if test "x$ac_ct_LIPO" = x; then
7124
    LIPO=":"
7125
  else
7126
    case $cross_compiling:$ac_tool_warned in
7127
yes:)
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130
ac_tool_warned=yes ;;
7131
esac
7132
    LIPO=$ac_ct_LIPO
7133
  fi
7134
else
7135
  LIPO="$ac_cv_prog_LIPO"
7136
fi
7137
 
7138
    if test -n "$ac_tool_prefix"; then
7139
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7140
set dummy ${ac_tool_prefix}otool; ac_word=$2
7141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142
$as_echo_n "checking for $ac_word... " >&6; }
7143
if ${ac_cv_prog_OTOOL+:} false; then :
7144
  $as_echo_n "(cached) " >&6
7145
else
7146
  if test -n "$OTOOL"; then
7147
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7148
else
7149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150
for as_dir in $PATH
7151
do
7152
  IFS=$as_save_IFS
7153
  test -z "$as_dir" && as_dir=.
7154
    for ac_exec_ext in '' $ac_executable_extensions; do
7155
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7157
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158
    break 2
7159
  fi
7160
done
7161
  done
7162
IFS=$as_save_IFS
7163
 
7164
fi
7165
fi
7166
OTOOL=$ac_cv_prog_OTOOL
7167
if test -n "$OTOOL"; then
7168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7169
$as_echo "$OTOOL" >&6; }
7170
else
7171
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172
$as_echo "no" >&6; }
7173
fi
7174
 
7175
 
7176
fi
7177
if test -z "$ac_cv_prog_OTOOL"; then
7178
  ac_ct_OTOOL=$OTOOL
7179
  # Extract the first word of "otool", so it can be a program name with args.
7180
set dummy otool; ac_word=$2
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182
$as_echo_n "checking for $ac_word... " >&6; }
7183
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7184
  $as_echo_n "(cached) " >&6
7185
else
7186
  if test -n "$ac_ct_OTOOL"; then
7187
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7188
else
7189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190
for as_dir in $PATH
7191
do
7192
  IFS=$as_save_IFS
7193
  test -z "$as_dir" && as_dir=.
7194
    for ac_exec_ext in '' $ac_executable_extensions; do
7195
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196
    ac_cv_prog_ac_ct_OTOOL="otool"
7197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198
    break 2
7199
  fi
7200
done
7201
  done
7202
IFS=$as_save_IFS
7203
 
7204
fi
7205
fi
7206
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7207
if test -n "$ac_ct_OTOOL"; then
7208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7209
$as_echo "$ac_ct_OTOOL" >&6; }
7210
else
7211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212
$as_echo "no" >&6; }
7213
fi
7214
 
7215
  if test "x$ac_ct_OTOOL" = x; then
7216
    OTOOL=":"
7217
  else
7218
    case $cross_compiling:$ac_tool_warned in
7219
yes:)
7220
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222
ac_tool_warned=yes ;;
7223
esac
7224
    OTOOL=$ac_ct_OTOOL
7225
  fi
7226
else
7227
  OTOOL="$ac_cv_prog_OTOOL"
7228
fi
7229
 
7230
    if test -n "$ac_tool_prefix"; then
7231
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7232
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234
$as_echo_n "checking for $ac_word... " >&6; }
7235
if ${ac_cv_prog_OTOOL64+:} false; then :
7236
  $as_echo_n "(cached) " >&6
7237
else
7238
  if test -n "$OTOOL64"; then
7239
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7240
else
7241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242
for as_dir in $PATH
7243
do
7244
  IFS=$as_save_IFS
7245
  test -z "$as_dir" && as_dir=.
7246
    for ac_exec_ext in '' $ac_executable_extensions; do
7247
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7249
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250
    break 2
7251
  fi
7252
done
7253
  done
7254
IFS=$as_save_IFS
7255
 
7256
fi
7257
fi
7258
OTOOL64=$ac_cv_prog_OTOOL64
7259
if test -n "$OTOOL64"; then
7260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7261
$as_echo "$OTOOL64" >&6; }
7262
else
7263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264
$as_echo "no" >&6; }
7265
fi
7266
 
7267
 
7268
fi
7269
if test -z "$ac_cv_prog_OTOOL64"; then
7270
  ac_ct_OTOOL64=$OTOOL64
7271
  # Extract the first word of "otool64", so it can be a program name with args.
7272
set dummy otool64; ac_word=$2
7273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274
$as_echo_n "checking for $ac_word... " >&6; }
7275
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7276
  $as_echo_n "(cached) " >&6
7277
else
7278
  if test -n "$ac_ct_OTOOL64"; then
7279
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7280
else
7281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282
for as_dir in $PATH
7283
do
7284
  IFS=$as_save_IFS
7285
  test -z "$as_dir" && as_dir=.
7286
    for ac_exec_ext in '' $ac_executable_extensions; do
7287
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7289
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290
    break 2
7291
  fi
7292
done
7293
  done
7294
IFS=$as_save_IFS
7295
 
7296
fi
7297
fi
7298
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7299
if test -n "$ac_ct_OTOOL64"; then
7300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7301
$as_echo "$ac_ct_OTOOL64" >&6; }
7302
else
7303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304
$as_echo "no" >&6; }
7305
fi
7306
 
7307
  if test "x$ac_ct_OTOOL64" = x; then
7308
    OTOOL64=":"
7309
  else
7310
    case $cross_compiling:$ac_tool_warned in
7311
yes:)
7312
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314
ac_tool_warned=yes ;;
7315
esac
7316
    OTOOL64=$ac_ct_OTOOL64
7317
  fi
7318
else
7319
  OTOOL64="$ac_cv_prog_OTOOL64"
7320
fi
7321
 
7322
 
7323
 
7324
 
7325
 
7326
 
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
 
7334
 
7335
 
7336
 
7337
 
7338
 
7339
 
7340
 
7341
 
7342
 
7343
 
7344
 
7345
 
7346
 
7347
 
7348
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7349
$as_echo_n "checking for -single_module linker flag... " >&6; }
7350
if ${lt_cv_apple_cc_single_mod+:} false; then :
7351
  $as_echo_n "(cached) " >&6
7352
else
7353
  lt_cv_apple_cc_single_mod=no
7354
      if test -z "$LT_MULTI_MODULE"; then
7355
	# By default we will add the -single_module flag. You can override
7356
	# by either setting the environment variable LT_MULTI_MODULE
7357
	# non-empty at configure time, or by adding -multi_module to the
7358
	# link flags.
7359
	rm -rf libconftest.dylib*
7360
	echo "int foo(void){return 1;}" > conftest.c
7361
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7362
-dynamiclib -Wl,-single_module conftest.c" >&5
7363
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7364
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7365
        _lt_result=$?
7366
	# If there is a non-empty error log, and "single_module"
7367
	# appears in it, assume the flag caused a linker warning
7368
        if test -s conftest.err && $GREP single_module conftest.err; then
7369
	  cat conftest.err >&5
7370
	# Otherwise, if the output was created with a 0 exit code from
7371
	# the compiler, it worked.
7372
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7373
	  lt_cv_apple_cc_single_mod=yes
7374
	else
7375
	  cat conftest.err >&5
7376
	fi
7377
	rm -rf libconftest.dylib*
7378
	rm -f conftest.*
7379
      fi
7380
fi
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7382
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7383
 
7384
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7385
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7387
  $as_echo_n "(cached) " >&6
7388
else
7389
  lt_cv_ld_exported_symbols_list=no
7390
      save_LDFLAGS=$LDFLAGS
7391
      echo "_main" > conftest.sym
7392
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394
/* end confdefs.h.  */
7395
 
7396
int
7397
main ()
7398
{
7399
 
7400
  ;
7401
  return 0;
7402
}
7403
_ACEOF
7404
if ac_fn_c_try_link "$LINENO"; then :
7405
  lt_cv_ld_exported_symbols_list=yes
7406
else
7407
  lt_cv_ld_exported_symbols_list=no
7408
fi
7409
rm -f core conftest.err conftest.$ac_objext \
7410
    conftest$ac_exeext conftest.$ac_ext
7411
	LDFLAGS=$save_LDFLAGS
7412
 
7413
fi
7414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7415
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7416
 
7417
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7418
$as_echo_n "checking for -force_load linker flag... " >&6; }
7419
if ${lt_cv_ld_force_load+:} false; then :
7420
  $as_echo_n "(cached) " >&6
7421
else
7422
  lt_cv_ld_force_load=no
7423
      cat > conftest.c << _LT_EOF
7424
int forced_loaded() { return 2;}
7425
_LT_EOF
7426
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7427
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7428
      echo "$AR cru libconftest.a conftest.o" >&5
7429
      $AR cru libconftest.a conftest.o 2>&5
7430
      echo "$RANLIB libconftest.a" >&5
7431
      $RANLIB libconftest.a 2>&5
7432
      cat > conftest.c << _LT_EOF
7433
int main() { return 0;}
7434
_LT_EOF
7435
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7436
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7437
      _lt_result=$?
7438
      if test -s conftest.err && $GREP force_load conftest.err; then
7439
	cat conftest.err >&5
7440
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7441
	lt_cv_ld_force_load=yes
7442
      else
7443
	cat conftest.err >&5
7444
      fi
7445
        rm -f conftest.err libconftest.a conftest conftest.c
7446
        rm -rf conftest.dSYM
7447
 
7448
fi
7449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7450
$as_echo "$lt_cv_ld_force_load" >&6; }
7451
    case $host_os in
7452
    rhapsody* | darwin1.[012])
7453
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7454
    darwin1.*)
7455
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7456
    darwin*) # darwin 5.x on
7457
      # if running on 10.5 or later, the deployment target defaults
7458
      # to the OS version, if on x86, and 10.4, the deployment
7459
      # target defaults to 10.4. Don't you love it?
7460
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7461
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7462
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7463
	10.[012][,.]*)
7464
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7465
	10.*)
7466
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7467
      esac
7468
    ;;
7469
  esac
7470
    if test yes = "$lt_cv_apple_cc_single_mod"; then
7471
      _lt_dar_single_mod='$single_module'
7472
    fi
7473
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7474
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7475
    else
7476
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7477
    fi
7478
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7479
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7480
    else
7481
      _lt_dsymutil=
7482
    fi
7483
    ;;
7484
  esac
7485
 
7486
# func_munge_path_list VARIABLE PATH
7487
# -----------------------------------
7488
# VARIABLE is name of variable containing _space_ separated list of
7489
# directories to be munged by the contents of PATH, which is string
7490
# having a format:
7491
# "DIR[:DIR]:"
7492
#       string "DIR[ DIR]" will be prepended to VARIABLE
7493
# ":DIR[:DIR]"
7494
#       string "DIR[ DIR]" will be appended to VARIABLE
7495
# "DIRP[:DIRP]::[DIRA:]DIRA"
7496
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7497
#       "DIRA[ DIRA]" will be appended to VARIABLE
7498
# "DIR[:DIR]"
7499
#       VARIABLE will be replaced by "DIR[ DIR]"
7500
func_munge_path_list ()
7501
{
7502
    case x$2 in
7503
    x)
7504
        ;;
7505
    *:)
7506
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7507
        ;;
7508
    x:*)
7509
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7510
        ;;
7511
    *::*)
7512
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7513
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7514
        ;;
7515
    *)
7516
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7517
        ;;
7518
    esac
7519
}
7520
 
7521
ac_ext=c
7522
ac_cpp='$CPP $CPPFLAGS'
7523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7527
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7528
# On Suns, sometimes $CPP names a directory.
7529
if test -n "$CPP" && test -d "$CPP"; then
7530
  CPP=
7531
fi
7532
if test -z "$CPP"; then
7533
  if ${ac_cv_prog_CPP+:} false; then :
7534
  $as_echo_n "(cached) " >&6
7535
else
7536
      # Double quotes because CPP needs to be expanded
7537
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7538
    do
7539
      ac_preproc_ok=false
7540
for ac_c_preproc_warn_flag in '' yes
7541
do
7542
  # Use a header file that comes with gcc, so configuring glibc
7543
  # with a fresh cross-compiler works.
7544
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7545
  # <limits.h> exists even on freestanding compilers.
7546
  # On the NeXT, cc -E runs the code through the compiler's parser,
7547
  # not just through cpp. "Syntax error" is here to catch this case.
7548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549
/* end confdefs.h.  */
7550
#ifdef __STDC__
7551
# include <limits.h>
7552
#else
7553
# include <assert.h>
7554
#endif
7555
		     Syntax error
7556
_ACEOF
7557
if ac_fn_c_try_cpp "$LINENO"; then :
7558
 
7559
else
7560
  # Broken: fails on valid input.
7561
continue
7562
fi
7563
rm -f conftest.err conftest.i conftest.$ac_ext
7564
 
7565
  # OK, works on sane cases.  Now check whether nonexistent headers
7566
  # can be detected and how.
7567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568
/* end confdefs.h.  */
7569
#include <ac_nonexistent.h>
7570
_ACEOF
7571
if ac_fn_c_try_cpp "$LINENO"; then :
7572
  # Broken: success on invalid input.
7573
continue
7574
else
7575
  # Passes both tests.
7576
ac_preproc_ok=:
7577
break
7578
fi
7579
rm -f conftest.err conftest.i conftest.$ac_ext
7580
 
7581
done
7582
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7583
rm -f conftest.i conftest.err conftest.$ac_ext
7584
if $ac_preproc_ok; then :
7585
  break
7586
fi
7587
 
7588
    done
7589
    ac_cv_prog_CPP=$CPP
7590
 
7591
fi
7592
  CPP=$ac_cv_prog_CPP
7593
else
7594
  ac_cv_prog_CPP=$CPP
7595
fi
7596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7597
$as_echo "$CPP" >&6; }
7598
ac_preproc_ok=false
7599
for ac_c_preproc_warn_flag in '' yes
7600
do
7601
  # Use a header file that comes with gcc, so configuring glibc
7602
  # with a fresh cross-compiler works.
7603
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604
  # <limits.h> exists even on freestanding compilers.
7605
  # On the NeXT, cc -E runs the code through the compiler's parser,
7606
  # not just through cpp. "Syntax error" is here to catch this case.
7607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608
/* end confdefs.h.  */
7609
#ifdef __STDC__
7610
# include <limits.h>
7611
#else
7612
# include <assert.h>
7613
#endif
7614
		     Syntax error
7615
_ACEOF
7616
if ac_fn_c_try_cpp "$LINENO"; then :
7617
 
7618
else
7619
  # Broken: fails on valid input.
7620
continue
7621
fi
7622
rm -f conftest.err conftest.i conftest.$ac_ext
7623
 
7624
  # OK, works on sane cases.  Now check whether nonexistent headers
7625
  # can be detected and how.
7626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627
/* end confdefs.h.  */
7628
#include <ac_nonexistent.h>
7629
_ACEOF
7630
if ac_fn_c_try_cpp "$LINENO"; then :
7631
  # Broken: success on invalid input.
7632
continue
7633
else
7634
  # Passes both tests.
7635
ac_preproc_ok=:
7636
break
7637
fi
7638
rm -f conftest.err conftest.i conftest.$ac_ext
7639
 
7640
done
7641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7642
rm -f conftest.i conftest.err conftest.$ac_ext
7643
if $ac_preproc_ok; then :
7644
 
7645
else
7646
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7648
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7649
See \`config.log' for more details" "$LINENO" 5; }
7650
fi
7651
 
7652
ac_ext=c
7653
ac_cpp='$CPP $CPPFLAGS'
7654
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
 
7658
 
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7660
$as_echo_n "checking for ANSI C header files... " >&6; }
7661
if ${ac_cv_header_stdc+:} false; then :
7662
  $as_echo_n "(cached) " >&6
7663
else
7664
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665
/* end confdefs.h.  */
7666
#include <stdlib.h>
7667
#include <stdarg.h>
7668
#include <string.h>
7669
#include <float.h>
7670
 
7671
int
7672
main ()
7673
{
7674
 
7675
  ;
7676
  return 0;
7677
}
7678
_ACEOF
7679
if ac_fn_c_try_compile "$LINENO"; then :
7680
  ac_cv_header_stdc=yes
7681
else
7682
  ac_cv_header_stdc=no
7683
fi
7684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685
 
7686
if test $ac_cv_header_stdc = yes; then
7687
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689
/* end confdefs.h.  */
7690
#include <string.h>
7691
 
7692
_ACEOF
7693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694
  $EGREP "memchr" >/dev/null 2>&1; then :
7695
 
7696
else
7697
  ac_cv_header_stdc=no
7698
fi
7699
rm -f conftest*
7700
 
7701
fi
7702
 
7703
if test $ac_cv_header_stdc = yes; then
7704
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7705
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706
/* end confdefs.h.  */
7707
#include <stdlib.h>
7708
 
7709
_ACEOF
7710
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711
  $EGREP "free" >/dev/null 2>&1; then :
7712
 
7713
else
7714
  ac_cv_header_stdc=no
7715
fi
7716
rm -f conftest*
7717
 
7718
fi
7719
 
7720
if test $ac_cv_header_stdc = yes; then
7721
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722
  if test "$cross_compiling" = yes; then :
7723
  :
7724
else
7725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726
/* end confdefs.h.  */
7727
#include <ctype.h>
7728
#include <stdlib.h>
7729
#if ((' ' & 0x0FF) == 0x020)
7730
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732
#else
7733
# define ISLOWER(c) \
7734
		   (('a' <= (c) && (c) <= 'i') \
7735
		     || ('j' <= (c) && (c) <= 'r') \
7736
		     || ('s' <= (c) && (c) <= 'z'))
7737
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7738
#endif
7739
 
7740
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7741
int
7742
main ()
7743
{
7744
  int i;
7745
  for (i = 0; i < 256; i++)
7746
    if (XOR (islower (i), ISLOWER (i))
7747
	|| toupper (i) != TOUPPER (i))
7748
      return 2;
7749
  return 0;
7750
}
7751
_ACEOF
7752
if ac_fn_c_try_run "$LINENO"; then :
7753
 
7754
else
7755
  ac_cv_header_stdc=no
7756
fi
7757
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7758
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7759
fi
7760
 
7761
fi
7762
fi
7763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7764
$as_echo "$ac_cv_header_stdc" >&6; }
7765
if test $ac_cv_header_stdc = yes; then
7766
 
7767
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7768
 
7769
fi
7770
 
7771
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7772
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7773
		  inttypes.h stdint.h unistd.h
7774
do :
7775
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7777
"
7778
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7779
  cat >>confdefs.h <<_ACEOF
7780
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7781
_ACEOF
7782
 
7783
fi
7784
 
7785
done
7786
 
7787
 
7788
for ac_header in dlfcn.h
7789
do :
7790
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7791
"
7792
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7793
  cat >>confdefs.h <<_ACEOF
7794
#define HAVE_DLFCN_H 1
7795
_ACEOF
7796
 
7797
fi
7798
 
7799
done
7800
 
7801
 
7802
 
7803
 
7804
 
7805
# Set options
7806
 
7807
 
7808
 
7809
        enable_dlopen=no
7810
 
7811
 
7812
  enable_win32_dll=no
7813
 
7814
 
7815
            # Check whether --enable-shared was given.
7816
if test "${enable_shared+set}" = set; then :
7817
  enableval=$enable_shared; p=${PACKAGE-default}
7818
    case $enableval in
7819
    yes) enable_shared=yes ;;
7820
    no) enable_shared=no ;;
7821
    *)
7822
      enable_shared=no
7823
      # Look at the argument we got.  We use all the common list separators.
7824
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7825
      for pkg in $enableval; do
7826
	IFS=$lt_save_ifs
7827
	if test "X$pkg" = "X$p"; then
7828
	  enable_shared=yes
7829
	fi
7830
      done
7831
      IFS=$lt_save_ifs
7832
      ;;
7833
    esac
7834
else
7835
  enable_shared=yes
7836
fi
7837
 
7838
 
7839
 
7840
 
7841
 
7842
 
7843
 
7844
 
7845
 
7846
  # Check whether --enable-static was given.
7847
if test "${enable_static+set}" = set; then :
7848
  enableval=$enable_static; p=${PACKAGE-default}
7849
    case $enableval in
7850
    yes) enable_static=yes ;;
7851
    no) enable_static=no ;;
7852
    *)
7853
     enable_static=no
7854
      # Look at the argument we got.  We use all the common list separators.
7855
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7856
      for pkg in $enableval; do
7857
	IFS=$lt_save_ifs
7858
	if test "X$pkg" = "X$p"; then
7859
	  enable_static=yes
7860
	fi
7861
      done
7862
      IFS=$lt_save_ifs
7863
      ;;
7864
    esac
7865
else
7866
  enable_static=yes
7867
fi
7868
 
7869
 
7870
 
7871
 
7872
 
7873
 
7874
 
7875
 
7876
 
7877
 
7878
# Check whether --with-pic was given.
7879
if test "${with_pic+set}" = set; then :
7880
  withval=$with_pic; lt_p=${PACKAGE-default}
7881
    case $withval in
7882
    yes|no) pic_mode=$withval ;;
7883
    *)
7884
      pic_mode=default
7885
      # Look at the argument we got.  We use all the common list separators.
7886
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7887
      for lt_pkg in $withval; do
7888
	IFS=$lt_save_ifs
7889
	if test "X$lt_pkg" = "X$lt_p"; then
7890
	  pic_mode=yes
7891
	fi
7892
      done
7893
      IFS=$lt_save_ifs
7894
      ;;
7895
    esac
7896
else
7897
  pic_mode=default
7898
fi
7899
 
7900
 
7901
 
7902
 
7903
 
7904
 
7905
 
7906
 
7907
  # Check whether --enable-fast-install was given.
7908
if test "${enable_fast_install+set}" = set; then :
7909
  enableval=$enable_fast_install; p=${PACKAGE-default}
7910
    case $enableval in
7911
    yes) enable_fast_install=yes ;;
7912
    no) enable_fast_install=no ;;
7913
    *)
7914
      enable_fast_install=no
7915
      # Look at the argument we got.  We use all the common list separators.
7916
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7917
      for pkg in $enableval; do
7918
	IFS=$lt_save_ifs
7919
	if test "X$pkg" = "X$p"; then
7920
	  enable_fast_install=yes
7921
	fi
7922
      done
7923
      IFS=$lt_save_ifs
7924
      ;;
7925
    esac
7926
else
7927
  enable_fast_install=yes
7928
fi
7929
 
7930
 
7931
 
7932
 
7933
 
7934
 
7935
 
7936
 
7937
  shared_archive_member_spec=
7938
case $host,$enable_shared in
7939
power*-*-aix[5-9]*,yes)
7940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7941
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7942
 
7943
# Check whether --with-aix-soname was given.
7944
if test "${with_aix_soname+set}" = set; then :
7945
  withval=$with_aix_soname; case $withval in
7946
    aix|svr4|both)
7947
      ;;
7948
    *)
7949
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7950
      ;;
7951
    esac
7952
    lt_cv_with_aix_soname=$with_aix_soname
7953
else
7954
  if ${lt_cv_with_aix_soname+:} false; then :
7955
  $as_echo_n "(cached) " >&6
7956
else
7957
  lt_cv_with_aix_soname=aix
7958
fi
7959
 
7960
    with_aix_soname=$lt_cv_with_aix_soname
7961
fi
7962
 
7963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7964
$as_echo "$with_aix_soname" >&6; }
7965
  if test aix != "$with_aix_soname"; then
7966
    # For the AIX way of multilib, we name the shared archive member
7967
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7968
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7969
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7970
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7971
    if test 64 = "${OBJECT_MODE-32}"; then
7972
      shared_archive_member_spec=shr_64
7973
    else
7974
      shared_archive_member_spec=shr
7975
    fi
7976
  fi
7977
  ;;
7978
*)
7979
  with_aix_soname=aix
7980
  ;;
7981
esac
7982
 
7983
 
7984
 
7985
 
7986
 
7987
 
7988
 
7989
 
7990
 
7991
 
7992
# This can be used to rebuild libtool when needed
7993
LIBTOOL_DEPS=$ltmain
7994
 
7995
# Always use our own libtool.
7996
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7997
 
7998
 
7999
 
8000
 
8001
 
8002
 
8003
 
8004
 
8005
 
8006
 
8007
 
8008
 
8009
 
8010
 
8011
 
8012
 
8013
 
8014
 
8015
 
8016
 
8017
 
8018
 
8019
 
8020
 
8021
 
8022
 
8023
 
8024
 
8025
 
8026
 
8027
test -z "$LN_S" && LN_S="ln -s"
8028
 
8029
 
8030
 
8031
 
8032
 
8033
 
8034
 
8035
 
8036
 
8037
 
8038
 
8039
 
8040
 
8041
 
8042
if test -n "${ZSH_VERSION+set}"; then
8043
   setopt NO_GLOB_SUBST
8044
fi
8045
 
8046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8047
$as_echo_n "checking for objdir... " >&6; }
8048
if ${lt_cv_objdir+:} false; then :
8049
  $as_echo_n "(cached) " >&6
8050
else
8051
  rm -f .libs 2>/dev/null
8052
mkdir .libs 2>/dev/null
8053
if test -d .libs; then
8054
  lt_cv_objdir=.libs
8055
else
8056
  # MS-DOS does not allow filenames that begin with a dot.
8057
  lt_cv_objdir=_libs
8058
fi
8059
rmdir .libs 2>/dev/null
8060
fi
8061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8062
$as_echo "$lt_cv_objdir" >&6; }
8063
objdir=$lt_cv_objdir
8064
 
8065
 
8066
 
8067
 
8068
 
8069
cat >>confdefs.h <<_ACEOF
8070
#define LT_OBJDIR "$lt_cv_objdir/"
8071
_ACEOF
8072
 
8073
 
8074
 
8075
 
8076
case $host_os in
8077
aix3*)
8078
  # AIX sometimes has problems with the GCC collect2 program.  For some
8079
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8080
  # vanish in a puff of smoke.
8081
  if test set != "${COLLECT_NAMES+set}"; then
8082
    COLLECT_NAMES=
8083
    export COLLECT_NAMES
8084
  fi
8085
  ;;
8086
esac
8087
 
8088
# Global variables:
8089
ofile=libtool
8090
can_build_shared=yes
8091
 
8092
# All known linkers require a '.a' archive for static linking (except MSVC,
8093
# which needs '.lib').
8094
libext=a
8095
 
8096
with_gnu_ld=$lt_cv_prog_gnu_ld
8097
 
8098
old_CC=$CC
8099
old_CFLAGS=$CFLAGS
8100
 
8101
# Set sane defaults for various variables
8102
test -z "$CC" && CC=cc
8103
test -z "$LTCC" && LTCC=$CC
8104
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8105
test -z "$LD" && LD=ld
8106
test -z "$ac_objext" && ac_objext=o
8107
 
8108
func_cc_basename $compiler
8109
cc_basename=$func_cc_basename_result
8110
 
8111
 
8112
# Only perform the check for file, if the check method requires it
8113
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8114
case $deplibs_check_method in
8115
file_magic*)
8116
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8117
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8118
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8119
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8120
  $as_echo_n "(cached) " >&6
8121
else
8122
  case $MAGIC_CMD in
8123
[\\/*] |  ?:[\\/]*)
8124
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8125
  ;;
8126
*)
8127
  lt_save_MAGIC_CMD=$MAGIC_CMD
8128
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8129
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8130
  for ac_dir in $ac_dummy; do
8131
    IFS=$lt_save_ifs
8132
    test -z "$ac_dir" && ac_dir=.
8133
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8134
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8135
      if test -n "$file_magic_test_file"; then
8136
	case $deplibs_check_method in
8137
	"file_magic "*)
8138
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8139
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8140
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8141
	    $EGREP "$file_magic_regex" > /dev/null; then
8142
	    :
8143
	  else
8144
	    cat <<_LT_EOF 1>&2
8145
 
8146
*** Warning: the command libtool uses to detect shared libraries,
8147
*** $file_magic_cmd, produces output that libtool cannot recognize.
8148
*** The result is that libtool may fail to recognize shared libraries
8149
*** as such.  This will affect the creation of libtool libraries that
8150
*** depend on shared libraries, but programs linked with such libtool
8151
*** libraries will work regardless of this problem.  Nevertheless, you
8152
*** may want to report the problem to your system manager and/or to
8153
*** bug-libtool@gnu.org
8154
 
8155
_LT_EOF
8156
	  fi ;;
8157
	esac
8158
      fi
8159
      break
8160
    fi
8161
  done
8162
  IFS=$lt_save_ifs
8163
  MAGIC_CMD=$lt_save_MAGIC_CMD
8164
  ;;
8165
esac
8166
fi
8167
 
8168
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8169
if test -n "$MAGIC_CMD"; then
8170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8171
$as_echo "$MAGIC_CMD" >&6; }
8172
else
8173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174
$as_echo "no" >&6; }
8175
fi
8176
 
8177
 
8178
 
8179
 
8180
 
8181
if test -z "$lt_cv_path_MAGIC_CMD"; then
8182
  if test -n "$ac_tool_prefix"; then
8183
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8184
$as_echo_n "checking for file... " >&6; }
8185
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8186
  $as_echo_n "(cached) " >&6
8187
else
8188
  case $MAGIC_CMD in
8189
[\\/*] |  ?:[\\/]*)
8190
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8191
  ;;
8192
*)
8193
  lt_save_MAGIC_CMD=$MAGIC_CMD
8194
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8195
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8196
  for ac_dir in $ac_dummy; do
8197
    IFS=$lt_save_ifs
8198
    test -z "$ac_dir" && ac_dir=.
8199
    if test -f "$ac_dir/file"; then
8200
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8201
      if test -n "$file_magic_test_file"; then
8202
	case $deplibs_check_method in
8203
	"file_magic "*)
8204
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8206
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8207
	    $EGREP "$file_magic_regex" > /dev/null; then
8208
	    :
8209
	  else
8210
	    cat <<_LT_EOF 1>&2
8211
 
8212
*** Warning: the command libtool uses to detect shared libraries,
8213
*** $file_magic_cmd, produces output that libtool cannot recognize.
8214
*** The result is that libtool may fail to recognize shared libraries
8215
*** as such.  This will affect the creation of libtool libraries that
8216
*** depend on shared libraries, but programs linked with such libtool
8217
*** libraries will work regardless of this problem.  Nevertheless, you
8218
*** may want to report the problem to your system manager and/or to
8219
*** bug-libtool@gnu.org
8220
 
8221
_LT_EOF
8222
	  fi ;;
8223
	esac
8224
      fi
8225
      break
8226
    fi
8227
  done
8228
  IFS=$lt_save_ifs
8229
  MAGIC_CMD=$lt_save_MAGIC_CMD
8230
  ;;
8231
esac
8232
fi
8233
 
8234
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8235
if test -n "$MAGIC_CMD"; then
8236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8237
$as_echo "$MAGIC_CMD" >&6; }
8238
else
8239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240
$as_echo "no" >&6; }
8241
fi
8242
 
8243
 
8244
  else
8245
    MAGIC_CMD=:
8246
  fi
8247
fi
8248
 
8249
  fi
8250
  ;;
8251
esac
8252
 
8253
# Use C for the default configuration in the libtool script
8254
 
8255
lt_save_CC=$CC
8256
ac_ext=c
8257
ac_cpp='$CPP $CPPFLAGS'
8258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
 
8262
 
8263
# Source file extension for C test sources.
8264
ac_ext=c
8265
 
8266
# Object file extension for compiled C test sources.
8267
objext=o
8268
objext=$objext
8269
 
8270
# Code to be used in simple compile tests
8271
lt_simple_compile_test_code="int some_variable = 0;"
8272
 
8273
# Code to be used in simple link tests
8274
lt_simple_link_test_code='int main(){return(0);}'
8275
 
8276
 
8277
 
8278
 
8279
 
8280
 
8281
 
8282
# If no C compiler was specified, use CC.
8283
LTCC=${LTCC-"$CC"}
8284
 
8285
# If no C compiler flags were specified, use CFLAGS.
8286
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8287
 
8288
# Allow CC to be a program name with arguments.
8289
compiler=$CC
8290
 
8291
# Save the default compiler, since it gets overwritten when the other
8292
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8293
compiler_DEFAULT=$CC
8294
 
8295
# save warnings/boilerplate of simple test code
8296
ac_outfile=conftest.$ac_objext
8297
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8298
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8299
_lt_compiler_boilerplate=`cat conftest.err`
8300
$RM conftest*
8301
 
8302
ac_outfile=conftest.$ac_objext
8303
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8304
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8305
_lt_linker_boilerplate=`cat conftest.err`
8306
$RM -r conftest*
8307
 
8308
 
9 mjames 8309
## CAVEAT EMPTOR:
8310
## There is no encapsulation within the following macros, do not change
8311
## the running order or otherwise move them around unless you know exactly
8312
## what you are doing...
2 mjames 8313
if test -n "$compiler"; then
8314
 
8315
lt_prog_compiler_no_builtin_flag=
8316
 
8317
if test yes = "$GCC"; then
8318
  case $cc_basename in
8319
  nvcc*)
8320
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8321
  *)
8322
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8323
  esac
8324
 
8325
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8326
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8327
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8328
  $as_echo_n "(cached) " >&6
8329
else
8330
  lt_cv_prog_compiler_rtti_exceptions=no
8331
   ac_outfile=conftest.$ac_objext
8332
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8333
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8334
   # Insert the option either (1) after the last *FLAGS variable, or
8335
   # (2) before a word containing "conftest.", or (3) at the end.
8336
   # Note that $ac_compile itself does not contain backslashes and begins
8337
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8338
   # The option is referenced via a variable to avoid confusing sed.
8339
   lt_compile=`echo "$ac_compile" | $SED \
8340
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8341
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8342
   -e 's:$: $lt_compiler_flag:'`
8343
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8344
   (eval "$lt_compile" 2>conftest.err)
8345
   ac_status=$?
8346
   cat conftest.err >&5
8347
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348
   if (exit $ac_status) && test -s "$ac_outfile"; then
8349
     # The compiler can only warn and ignore the option if not recognized
8350
     # So say no if there are warnings other than the usual output.
8351
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8352
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8353
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8354
       lt_cv_prog_compiler_rtti_exceptions=yes
8355
     fi
8356
   fi
8357
   $RM conftest*
8358
 
8359
fi
8360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8361
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8362
 
8363
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8364
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8365
else
8366
    :
8367
fi
8368
 
8369
fi
8370
 
8371
 
8372
 
8373
 
8374
 
8375
 
8376
  lt_prog_compiler_wl=
8377
lt_prog_compiler_pic=
8378
lt_prog_compiler_static=
8379
 
8380
 
8381
  if test yes = "$GCC"; then
8382
    lt_prog_compiler_wl='-Wl,'
8383
    lt_prog_compiler_static='-static'
8384
 
8385
    case $host_os in
8386
      aix*)
8387
      # All AIX code is PIC.
8388
      if test ia64 = "$host_cpu"; then
8389
	# AIX 5 now supports IA64 processor
8390
	lt_prog_compiler_static='-Bstatic'
8391
      fi
8392
      lt_prog_compiler_pic='-fPIC'
8393
      ;;
8394
 
8395
    amigaos*)
8396
      case $host_cpu in
8397
      powerpc)
8398
            # see comment about AmigaOS4 .so support
8399
            lt_prog_compiler_pic='-fPIC'
8400
        ;;
8401
      m68k)
8402
            # FIXME: we need at least 68020 code to build shared libraries, but
8403
            # adding the '-m68020' flag to GCC prevents building anything better,
8404
            # like '-m68040'.
8405
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8406
        ;;
8407
      esac
8408
      ;;
8409
 
8410
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8411
      # PIC is the default for these OSes.
8412
      ;;
8413
 
7 mjames 8414
    mingw* | cygwin* | pw32* | os2* | cegcc*)
2 mjames 8415
      # This hack is so that the source file can tell whether it is being
8416
      # built for inclusion in a dll (and should export symbols for example).
8417
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8418
      # (--disable-auto-import) libraries
8419
      lt_prog_compiler_pic='-DDLL_EXPORT'
8420
      case $host_os in
8421
      os2*)
8422
	lt_prog_compiler_static='$wl-static'
8423
	;;
8424
      esac
8425
      ;;
8426
 
8427
    darwin* | rhapsody*)
8428
      # PIC is the default on this platform
8429
      # Common symbols not allowed in MH_DYLIB files
8430
      lt_prog_compiler_pic='-fno-common'
8431
      ;;
8432
 
8433
    haiku*)
8434
      # PIC is the default for Haiku.
8435
      # The "-static" flag exists, but is broken.
8436
      lt_prog_compiler_static=
8437
      ;;
8438
 
8439
    hpux*)
8440
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8441
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8442
      # sets the default TLS model and affects inlining.
8443
      case $host_cpu in
8444
      hppa*64*)
8445
	# +Z the default
8446
	;;
8447
      *)
8448
	lt_prog_compiler_pic='-fPIC'
8449
	;;
8450
      esac
8451
      ;;
8452
 
8453
    interix[3-9]*)
8454
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8455
      # Instead, we relocate shared libraries at runtime.
8456
      ;;
8457
 
8458
    msdosdjgpp*)
8459
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8460
      # on systems that don't support them.
8461
      lt_prog_compiler_can_build_shared=no
8462
      enable_shared=no
8463
      ;;
8464
 
8465
    *nto* | *qnx*)
8466
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8467
      # it will coredump.
8468
      lt_prog_compiler_pic='-fPIC -shared'
8469
      ;;
8470
 
8471
    sysv4*MP*)
8472
      if test -d /usr/nec; then
8473
	lt_prog_compiler_pic=-Kconform_pic
8474
      fi
8475
      ;;
8476
 
8477
    *)
8478
      lt_prog_compiler_pic='-fPIC'
8479
      ;;
8480
    esac
8481
 
8482
    case $cc_basename in
8483
    nvcc*) # Cuda Compiler Driver 2.2
8484
      lt_prog_compiler_wl='-Xlinker '
8485
      if test -n "$lt_prog_compiler_pic"; then
8486
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8487
      fi
8488
      ;;
8489
    esac
8490
  else
8491
    # PORTME Check for flag to pass linker flags through the system compiler.
8492
    case $host_os in
8493
    aix*)
8494
      lt_prog_compiler_wl='-Wl,'
8495
      if test ia64 = "$host_cpu"; then
8496
	# AIX 5 now supports IA64 processor
8497
	lt_prog_compiler_static='-Bstatic'
8498
      else
8499
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8500
      fi
8501
      ;;
8502
 
8503
    darwin* | rhapsody*)
8504
      # PIC is the default on this platform
8505
      # Common symbols not allowed in MH_DYLIB files
8506
      lt_prog_compiler_pic='-fno-common'
8507
      case $cc_basename in
8508
      nagfor*)
8509
        # NAG Fortran compiler
8510
        lt_prog_compiler_wl='-Wl,-Wl,,'
8511
        lt_prog_compiler_pic='-PIC'
8512
        lt_prog_compiler_static='-Bstatic'
8513
        ;;
8514
      esac
8515
      ;;
8516
 
7 mjames 8517
    mingw* | cygwin* | pw32* | os2* | cegcc*)
2 mjames 8518
      # This hack is so that the source file can tell whether it is being
8519
      # built for inclusion in a dll (and should export symbols for example).
8520
      lt_prog_compiler_pic='-DDLL_EXPORT'
8521
      case $host_os in
8522
      os2*)
8523
	lt_prog_compiler_static='$wl-static'
8524
	;;
8525
      esac
8526
      ;;
8527
 
8528
    hpux9* | hpux10* | hpux11*)
8529
      lt_prog_compiler_wl='-Wl,'
8530
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8531
      # not for PA HP-UX.
8532
      case $host_cpu in
8533
      hppa*64*|ia64*)
8534
	# +Z the default
8535
	;;
8536
      *)
8537
	lt_prog_compiler_pic='+Z'
8538
	;;
8539
      esac
8540
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8541
      lt_prog_compiler_static='$wl-a ${wl}archive'
8542
      ;;
8543
 
8544
    irix5* | irix6* | nonstopux*)
8545
      lt_prog_compiler_wl='-Wl,'
8546
      # PIC (with -KPIC) is the default.
8547
      lt_prog_compiler_static='-non_shared'
8548
      ;;
8549
 
8550
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8551
      case $cc_basename in
8552
      # old Intel for x86_64, which still supported -KPIC.
8553
      ecc*)
8554
	lt_prog_compiler_wl='-Wl,'
8555
	lt_prog_compiler_pic='-KPIC'
8556
	lt_prog_compiler_static='-static'
8557
        ;;
8558
      # icc used to be incompatible with GCC.
8559
      # ICC 10 doesn't accept -KPIC any more.
8560
      icc* | ifort*)
8561
	lt_prog_compiler_wl='-Wl,'
8562
	lt_prog_compiler_pic='-fPIC'
8563
	lt_prog_compiler_static='-static'
8564
        ;;
8565
      # Lahey Fortran 8.1.
8566
      lf95*)
8567
	lt_prog_compiler_wl='-Wl,'
8568
	lt_prog_compiler_pic='--shared'
8569
	lt_prog_compiler_static='--static'
8570
	;;
8571
      nagfor*)
8572
	# NAG Fortran compiler
8573
	lt_prog_compiler_wl='-Wl,-Wl,,'
8574
	lt_prog_compiler_pic='-PIC'
8575
	lt_prog_compiler_static='-Bstatic'
8576
	;;
8577
      tcc*)
8578
	# Fabrice Bellard et al's Tiny C Compiler
8579
	lt_prog_compiler_wl='-Wl,'
8580
	lt_prog_compiler_pic='-fPIC'
8581
	lt_prog_compiler_static='-static'
8582
	;;
8583
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8584
        # Portland Group compilers (*not* the Pentium gcc compiler,
8585
	# which looks to be a dead project)
8586
	lt_prog_compiler_wl='-Wl,'
8587
	lt_prog_compiler_pic='-fpic'
8588
	lt_prog_compiler_static='-Bstatic'
8589
        ;;
8590
      ccc*)
8591
        lt_prog_compiler_wl='-Wl,'
8592
        # All Alpha code is PIC.
8593
        lt_prog_compiler_static='-non_shared'
8594
        ;;
8595
      xl* | bgxl* | bgf* | mpixl*)
8596
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8597
	lt_prog_compiler_wl='-Wl,'
8598
	lt_prog_compiler_pic='-qpic'
8599
	lt_prog_compiler_static='-qstaticlink'
8600
	;;
8601
      *)
8602
	case `$CC -V 2>&1 | sed 5q` in
8603
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8604
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8605
	  lt_prog_compiler_pic='-KPIC'
8606
	  lt_prog_compiler_static='-Bstatic'
8607
	  lt_prog_compiler_wl=''
8608
	  ;;
8609
	*Sun\ F* | *Sun*Fortran*)
8610
	  lt_prog_compiler_pic='-KPIC'
8611
	  lt_prog_compiler_static='-Bstatic'
8612
	  lt_prog_compiler_wl='-Qoption ld '
8613
	  ;;
8614
	*Sun\ C*)
8615
	  # Sun C 5.9
8616
	  lt_prog_compiler_pic='-KPIC'
8617
	  lt_prog_compiler_static='-Bstatic'
8618
	  lt_prog_compiler_wl='-Wl,'
8619
	  ;;
8620
        *Intel*\ [CF]*Compiler*)
8621
	  lt_prog_compiler_wl='-Wl,'
8622
	  lt_prog_compiler_pic='-fPIC'
8623
	  lt_prog_compiler_static='-static'
8624
	  ;;
8625
	*Portland\ Group*)
8626
	  lt_prog_compiler_wl='-Wl,'
8627
	  lt_prog_compiler_pic='-fpic'
8628
	  lt_prog_compiler_static='-Bstatic'
8629
	  ;;
8630
	esac
8631
	;;
8632
      esac
8633
      ;;
8634
 
8635
    newsos6)
8636
      lt_prog_compiler_pic='-KPIC'
8637
      lt_prog_compiler_static='-Bstatic'
8638
      ;;
8639
 
8640
    *nto* | *qnx*)
8641
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8642
      # it will coredump.
8643
      lt_prog_compiler_pic='-fPIC -shared'
8644
      ;;
8645
 
8646
    osf3* | osf4* | osf5*)
8647
      lt_prog_compiler_wl='-Wl,'
8648
      # All OSF/1 code is PIC.
8649
      lt_prog_compiler_static='-non_shared'
8650
      ;;
8651
 
8652
    rdos*)
8653
      lt_prog_compiler_static='-non_shared'
8654
      ;;
8655
 
8656
    solaris*)
8657
      lt_prog_compiler_pic='-KPIC'
8658
      lt_prog_compiler_static='-Bstatic'
8659
      case $cc_basename in
8660
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8661
	lt_prog_compiler_wl='-Qoption ld ';;
8662
      *)
8663
	lt_prog_compiler_wl='-Wl,';;
8664
      esac
8665
      ;;
8666
 
8667
    sunos4*)
8668
      lt_prog_compiler_wl='-Qoption ld '
8669
      lt_prog_compiler_pic='-PIC'
8670
      lt_prog_compiler_static='-Bstatic'
8671
      ;;
8672
 
8673
    sysv4 | sysv4.2uw2* | sysv4.3*)
8674
      lt_prog_compiler_wl='-Wl,'
8675
      lt_prog_compiler_pic='-KPIC'
8676
      lt_prog_compiler_static='-Bstatic'
8677
      ;;
8678
 
8679
    sysv4*MP*)
8680
      if test -d /usr/nec; then
8681
	lt_prog_compiler_pic='-Kconform_pic'
8682
	lt_prog_compiler_static='-Bstatic'
8683
      fi
8684
      ;;
8685
 
8686
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8687
      lt_prog_compiler_wl='-Wl,'
8688
      lt_prog_compiler_pic='-KPIC'
8689
      lt_prog_compiler_static='-Bstatic'
8690
      ;;
8691
 
8692
    unicos*)
8693
      lt_prog_compiler_wl='-Wl,'
8694
      lt_prog_compiler_can_build_shared=no
8695
      ;;
8696
 
8697
    uts4*)
8698
      lt_prog_compiler_pic='-pic'
8699
      lt_prog_compiler_static='-Bstatic'
8700
      ;;
8701
 
8702
    *)
8703
      lt_prog_compiler_can_build_shared=no
8704
      ;;
8705
    esac
8706
  fi
8707
 
8708
case $host_os in
8709
  # For platforms that do not support PIC, -DPIC is meaningless:
8710
  *djgpp*)
8711
    lt_prog_compiler_pic=
8712
    ;;
8713
  *)
8714
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8715
    ;;
8716
esac
8717
 
8718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8719
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8720
if ${lt_cv_prog_compiler_pic+:} false; then :
8721
  $as_echo_n "(cached) " >&6
8722
else
8723
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8724
fi
8725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8726
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8727
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8728
 
8729
#
8730
# Check to make sure the PIC flag actually works.
8731
#
8732
if test -n "$lt_prog_compiler_pic"; then
8733
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8734
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8735
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8736
  $as_echo_n "(cached) " >&6
8737
else
8738
  lt_cv_prog_compiler_pic_works=no
8739
   ac_outfile=conftest.$ac_objext
8740
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8742
   # Insert the option either (1) after the last *FLAGS variable, or
8743
   # (2) before a word containing "conftest.", or (3) at the end.
8744
   # Note that $ac_compile itself does not contain backslashes and begins
8745
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8746
   # The option is referenced via a variable to avoid confusing sed.
8747
   lt_compile=`echo "$ac_compile" | $SED \
8748
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8749
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8750
   -e 's:$: $lt_compiler_flag:'`
8751
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8752
   (eval "$lt_compile" 2>conftest.err)
8753
   ac_status=$?
8754
   cat conftest.err >&5
8755
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756
   if (exit $ac_status) && test -s "$ac_outfile"; then
8757
     # The compiler can only warn and ignore the option if not recognized
8758
     # So say no if there are warnings other than the usual output.
8759
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8760
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8761
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8762
       lt_cv_prog_compiler_pic_works=yes
8763
     fi
8764
   fi
8765
   $RM conftest*
8766
 
8767
fi
8768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8769
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8770
 
8771
if test yes = "$lt_cv_prog_compiler_pic_works"; then
8772
    case $lt_prog_compiler_pic in
8773
     "" | " "*) ;;
8774
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8775
     esac
8776
else
8777
    lt_prog_compiler_pic=
8778
     lt_prog_compiler_can_build_shared=no
8779
fi
8780
 
8781
fi
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
#
8794
# Check to make sure the static flag actually works.
8795
#
8796
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8798
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8799
if ${lt_cv_prog_compiler_static_works+:} false; then :
8800
  $as_echo_n "(cached) " >&6
8801
else
8802
  lt_cv_prog_compiler_static_works=no
8803
   save_LDFLAGS=$LDFLAGS
8804
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8805
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8806
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8807
     # The linker can only warn and ignore the option if not recognized
8808
     # So say no if there are warnings
8809
     if test -s conftest.err; then
8810
       # Append any errors to the config.log.
8811
       cat conftest.err 1>&5
8812
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8813
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8814
       if diff conftest.exp conftest.er2 >/dev/null; then
8815
         lt_cv_prog_compiler_static_works=yes
8816
       fi
8817
     else
8818
       lt_cv_prog_compiler_static_works=yes
8819
     fi
8820
   fi
8821
   $RM -r conftest*
8822
   LDFLAGS=$save_LDFLAGS
8823
 
8824
fi
8825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8826
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8827
 
8828
if test yes = "$lt_cv_prog_compiler_static_works"; then
8829
    :
8830
else
8831
    lt_prog_compiler_static=
8832
fi
8833
 
8834
 
8835
 
8836
 
8837
 
8838
 
8839
 
8840
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8842
if ${lt_cv_prog_compiler_c_o+:} false; then :
8843
  $as_echo_n "(cached) " >&6
8844
else
8845
  lt_cv_prog_compiler_c_o=no
8846
   $RM -r conftest 2>/dev/null
8847
   mkdir conftest
8848
   cd conftest
8849
   mkdir out
8850
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
 
8852
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8853
   # Insert the option either (1) after the last *FLAGS variable, or
8854
   # (2) before a word containing "conftest.", or (3) at the end.
8855
   # Note that $ac_compile itself does not contain backslashes and begins
8856
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8857
   lt_compile=`echo "$ac_compile" | $SED \
8858
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860
   -e 's:$: $lt_compiler_flag:'`
8861
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862
   (eval "$lt_compile" 2>out/conftest.err)
8863
   ac_status=$?
8864
   cat out/conftest.err >&5
8865
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867
   then
8868
     # The compiler can only warn and ignore the option if not recognized
8869
     # So say no if there are warnings
8870
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873
       lt_cv_prog_compiler_c_o=yes
8874
     fi
8875
   fi
8876
   chmod u+w . 2>&5
8877
   $RM conftest*
8878
   # SGI C++ compiler will create directory out/ii_files/ for
8879
   # template instantiation
8880
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881
   $RM out/* && rmdir out
8882
   cd ..
8883
   $RM -r conftest
8884
   $RM conftest*
8885
 
8886
fi
8887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8897
if ${lt_cv_prog_compiler_c_o+:} false; then :
8898
  $as_echo_n "(cached) " >&6
8899
else
8900
  lt_cv_prog_compiler_c_o=no
8901
   $RM -r conftest 2>/dev/null
8902
   mkdir conftest
8903
   cd conftest
8904
   mkdir out
8905
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906
 
8907
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8908
   # Insert the option either (1) after the last *FLAGS variable, or
8909
   # (2) before a word containing "conftest.", or (3) at the end.
8910
   # Note that $ac_compile itself does not contain backslashes and begins
8911
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8912
   lt_compile=`echo "$ac_compile" | $SED \
8913
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915
   -e 's:$: $lt_compiler_flag:'`
8916
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917
   (eval "$lt_compile" 2>out/conftest.err)
8918
   ac_status=$?
8919
   cat out/conftest.err >&5
8920
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8922
   then
8923
     # The compiler can only warn and ignore the option if not recognized
8924
     # So say no if there are warnings
8925
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928
       lt_cv_prog_compiler_c_o=yes
8929
     fi
8930
   fi
8931
   chmod u+w . 2>&5
8932
   $RM conftest*
8933
   # SGI C++ compiler will create directory out/ii_files/ for
8934
   # template instantiation
8935
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936
   $RM out/* && rmdir out
8937
   cd ..
8938
   $RM -r conftest
8939
   $RM conftest*
8940
 
8941
fi
8942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944
 
8945
 
8946
 
8947
 
8948
hard_links=nottested
8949
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8950
  # do not overwrite the value of need_locks provided by the user
8951
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952
$as_echo_n "checking if we can lock with hard links... " >&6; }
8953
  hard_links=yes
8954
  $RM conftest*
8955
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956
  touch conftest.a
8957
  ln conftest.a conftest.b 2>&5 || hard_links=no
8958
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960
$as_echo "$hard_links" >&6; }
8961
  if test no = "$hard_links"; then
8962
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8963
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8964
    need_locks=warn
8965
  fi
8966
else
8967
  need_locks=no
8968
fi
8969
 
8970
 
8971
 
8972
 
8973
 
8974
 
8975
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8976
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8977
 
8978
  runpath_var=
8979
  allow_undefined_flag=
8980
  always_export_symbols=no
8981
  archive_cmds=
8982
  archive_expsym_cmds=
8983
  compiler_needs_object=no
8984
  enable_shared_with_static_runtimes=no
8985
  export_dynamic_flag_spec=
8986
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8987
  hardcode_automatic=no
8988
  hardcode_direct=no
8989
  hardcode_direct_absolute=no
8990
  hardcode_libdir_flag_spec=
8991
  hardcode_libdir_separator=
8992
  hardcode_minus_L=no
8993
  hardcode_shlibpath_var=unsupported
8994
  inherit_rpath=no
8995
  link_all_deplibs=unknown
8996
  module_cmds=
8997
  module_expsym_cmds=
8998
  old_archive_from_new_cmds=
8999
  old_archive_from_expsyms_cmds=
9000
  thread_safe_flag_spec=
9001
  whole_archive_flag_spec=
9002
  # include_expsyms should be a list of space-separated symbols to be *always*
9003
  # included in the symbol list
9004
  include_expsyms=
9005
  # exclude_expsyms can be an extended regexp of symbols to exclude
9006
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9007
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9008
  # as well as any symbol that contains 'd'.
9009
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9010
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9011
  # platforms (ab)use it in PIC code, but their linkers get confused if
9012
  # the symbol is explicitly referenced.  Since portable code cannot
9013
  # rely on this symbol name, it's probably fine to never include it in
9014
  # preloaded symbol tables.
9015
  # Exclude shared library initialization/finalization symbols.
9016
  extract_expsyms_cmds=
9017
 
9018
  case $host_os in
7 mjames 9019
  cygwin* | mingw* | pw32* | cegcc*)
2 mjames 9020
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9021
    # When not using gcc, we currently assume that we are using
9022
    # Microsoft Visual C++.
9023
    if test yes != "$GCC"; then
9024
      with_gnu_ld=no
9025
    fi
9026
    ;;
9027
  interix*)
9028
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9029
    with_gnu_ld=yes
9030
    ;;
9031
  openbsd* | bitrig*)
9032
    with_gnu_ld=no
9033
    ;;
7 mjames 9034
  linux* | k*bsd*-gnu | gnu*)
9035
    link_all_deplibs=no
9036
    ;;
2 mjames 9037
  esac
9038
 
9039
  ld_shlibs=yes
9040
 
9041
  # On some targets, GNU ld is compatible enough with the native linker
9042
  # that we're better off using the native interface for both.
9043
  lt_use_gnu_ld_interface=no
9044
  if test yes = "$with_gnu_ld"; then
9045
    case $host_os in
9046
      aix*)
9047
	# The AIX port of GNU ld has always aspired to compatibility
9048
	# with the native linker.  However, as the warning in the GNU ld
9049
	# block says, versions before 2.19.5* couldn't really create working
9050
	# shared libraries, regardless of the interface used.
9051
	case `$LD -v 2>&1` in
9052
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9053
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9054
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9055
	  *)
9056
	    lt_use_gnu_ld_interface=yes
9057
	    ;;
9058
	esac
9059
	;;
9060
      *)
9061
	lt_use_gnu_ld_interface=yes
9062
	;;
9063
    esac
9064
  fi
9065
 
9066
  if test yes = "$lt_use_gnu_ld_interface"; then
9067
    # If archive_cmds runs LD, not CC, wlarc should be empty
9068
    wlarc='$wl'
9069
 
9070
    # Set some defaults for GNU ld with shared library support. These
9071
    # are reset later if shared libraries are not supported. Putting them
9072
    # here allows them to be overridden if necessary.
9073
    runpath_var=LD_RUN_PATH
9074
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9075
    export_dynamic_flag_spec='$wl--export-dynamic'
9076
    # ancient GNU ld didn't support --whole-archive et. al.
9077
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9078
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9079
    else
9080
      whole_archive_flag_spec=
9081
    fi
9082
    supports_anon_versioning=no
9083
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9084
      *GNU\ gold*) supports_anon_versioning=yes ;;
9085
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9086
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9087
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9088
      *\ 2.11.*) ;; # other 2.11 versions
9089
      *) supports_anon_versioning=yes ;;
9090
    esac
9091
 
9092
    # See if GNU ld supports shared libraries.
9093
    case $host_os in
9094
    aix[3-9]*)
9095
      # On AIX/PPC, the GNU linker is very broken
9096
      if test ia64 != "$host_cpu"; then
9097
	ld_shlibs=no
9098
	cat <<_LT_EOF 1>&2
9099
 
9100
*** Warning: the GNU linker, at least up to release 2.19, is reported
9101
*** to be unable to reliably create shared libraries on AIX.
9102
*** Therefore, libtool is disabling shared libraries support.  If you
9103
*** really care for shared libraries, you may want to install binutils
9104
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9105
*** You will then need to restart the configuration process.
9106
 
9107
_LT_EOF
9108
      fi
9109
      ;;
9110
 
9111
    amigaos*)
9112
      case $host_cpu in
9113
      powerpc)
9114
            # see comment about AmigaOS4 .so support
9115
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9116
            archive_expsym_cmds=''
9117
        ;;
9118
      m68k)
9119
            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)'
9120
            hardcode_libdir_flag_spec='-L$libdir'
9121
            hardcode_minus_L=yes
9122
        ;;
9123
      esac
9124
      ;;
9125
 
9126
    beos*)
9127
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9128
	allow_undefined_flag=unsupported
9129
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9130
	# support --undefined.  This deserves some investigation.  FIXME
9131
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9132
      else
9133
	ld_shlibs=no
9134
      fi
9135
      ;;
9136
 
7 mjames 9137
    cygwin* | mingw* | pw32* | cegcc*)
2 mjames 9138
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9139
      # as there is no search path for DLLs.
9140
      hardcode_libdir_flag_spec='-L$libdir'
9141
      export_dynamic_flag_spec='$wl--export-all-symbols'
9142
      allow_undefined_flag=unsupported
9143
      always_export_symbols=no
9144
      enable_shared_with_static_runtimes=yes
9145
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9146
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9147
 
9148
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9149
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9150
	# If the export-symbols file already is a .def file, use it as
9151
	# is; otherwise, prepend EXPORTS...
9152
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9153
          cp $export_symbols $output_objdir/$soname.def;
9154
        else
9155
          echo EXPORTS > $output_objdir/$soname.def;
9156
          cat $export_symbols >> $output_objdir/$soname.def;
9157
        fi~
9158
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9159
      else
9160
	ld_shlibs=no
9161
      fi
9162
      ;;
9163
 
9164
    haiku*)
9165
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9166
      link_all_deplibs=yes
9167
      ;;
9168
 
9169
    os2*)
9170
      hardcode_libdir_flag_spec='-L$libdir'
9171
      hardcode_minus_L=yes
9172
      allow_undefined_flag=unsupported
9173
      shrext_cmds=.dll
9174
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9175
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9176
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9177
	$ECHO EXPORTS >> $output_objdir/$libname.def~
9178
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9179
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9180
	emximp -o $lib $output_objdir/$libname.def'
9181
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9182
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9183
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9184
	$ECHO EXPORTS >> $output_objdir/$libname.def~
9185
	prefix_cmds="$SED"~
9186
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9187
	  prefix_cmds="$prefix_cmds -e 1d";
9188
	fi~
9189
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9190
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9191
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9192
	emximp -o $lib $output_objdir/$libname.def'
9193
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9194
      enable_shared_with_static_runtimes=yes
9195
      ;;
9196
 
9197
    interix[3-9]*)
9198
      hardcode_direct=no
9199
      hardcode_shlibpath_var=no
9200
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9201
      export_dynamic_flag_spec='$wl-E'
9202
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9204
      # default) and relocated if they conflict, which is a slow very memory
9205
      # consuming and fragmenting process.  To avoid this, we pick a random,
9206
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9208
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209
      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'
9210
      ;;
9211
 
9212
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9213
      tmp_diet=no
9214
      if test linux-dietlibc = "$host_os"; then
9215
	case $cc_basename in
9216
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9217
	esac
9218
      fi
9219
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220
	 && test no = "$tmp_diet"
9221
      then
9222
	tmp_addflag=' $pic_flag'
9223
	tmp_sharedflag='-shared'
9224
	case $cc_basename,$host_cpu in
9225
        pgcc*)				# Portland Group C compiler
9226
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9227
	  tmp_addflag=' $pic_flag'
9228
	  ;;
9229
	pgf77* | pgf90* | pgf95* | pgfortran*)
9230
					# Portland Group f77 and f90 compilers
9231
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9232
	  tmp_addflag=' $pic_flag -Mnomain' ;;
9233
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9234
	  tmp_addflag=' -i_dynamic' ;;
9235
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9236
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9237
	ifc* | ifort*)			# Intel Fortran compiler
9238
	  tmp_addflag=' -nofor_main' ;;
9239
	lf95*)				# Lahey Fortran 8.1
9240
	  whole_archive_flag_spec=
9241
	  tmp_sharedflag='--shared' ;;
9242
        nagfor*)                        # NAGFOR 5.3
9243
          tmp_sharedflag='-Wl,-shared' ;;
9244
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9245
	  tmp_sharedflag='-qmkshrobj'
9246
	  tmp_addflag= ;;
9247
	nvcc*)	# Cuda Compiler Driver 2.2
9248
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9249
	  compiler_needs_object=yes
9250
	  ;;
9251
	esac
9252
	case `$CC -V 2>&1 | sed 5q` in
9253
	*Sun\ C*)			# Sun C 5.9
9254
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9255
	  compiler_needs_object=yes
9256
	  tmp_sharedflag='-G' ;;
9257
	*Sun\ F*)			# Sun Fortran 8.3
9258
	  tmp_sharedflag='-G' ;;
9259
	esac
9260
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9261
 
9262
        if test yes = "$supports_anon_versioning"; then
9263
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9264
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9265
            echo "local: *; };" >> $output_objdir/$libname.ver~
9266
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9267
        fi
9268
 
9269
	case $cc_basename in
9270
	tcc*)
9271
	  export_dynamic_flag_spec='-rdynamic'
9272
	  ;;
9273
	xlf* | bgf* | bgxlf* | mpixlf*)
9274
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9275
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9276
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9277
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9278
	  if test yes = "$supports_anon_versioning"; then
9279
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9280
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9281
              echo "local: *; };" >> $output_objdir/$libname.ver~
9282
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9283
	  fi
9284
	  ;;
9285
	esac
9286
      else
9287
        ld_shlibs=no
9288
      fi
9289
      ;;
9290
 
7 mjames 9291
    netbsd* | netbsdelf*-gnu)
2 mjames 9292
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9293
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9294
	wlarc=
9295
      else
9296
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9297
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9298
      fi
9299
      ;;
9300
 
9301
    solaris*)
9302
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9303
	ld_shlibs=no
9304
	cat <<_LT_EOF 1>&2
9305
 
9306
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9307
*** create shared libraries on Solaris systems.  Therefore, libtool
9308
*** is disabling shared libraries support.  We urge you to upgrade GNU
9309
*** binutils to release 2.9.1 or newer.  Another option is to modify
9310
*** your PATH or compiler configuration so that the native linker is
9311
*** used, and then restart.
9312
 
9313
_LT_EOF
9314
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9315
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9316
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9317
      else
9318
	ld_shlibs=no
9319
      fi
9320
      ;;
9321
 
9322
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9323
      case `$LD -v 2>&1` in
9324
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9325
	ld_shlibs=no
9326
	cat <<_LT_EOF 1>&2
9327
 
9328
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9329
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9330
*** is disabling shared libraries support.  We urge you to upgrade GNU
9331
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9332
*** your PATH or compiler configuration so that the native linker is
9333
*** used, and then restart.
9334
 
9335
_LT_EOF
9336
	;;
9337
	*)
9338
	  # For security reasons, it is highly recommended that you always
9339
	  # use absolute paths for naming shared libraries, and exclude the
9340
	  # DT_RUNPATH tag from executables and libraries.  But doing so
9341
	  # requires that you compile everything twice, which is a pain.
9342
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9344
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9345
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9346
	  else
9347
	    ld_shlibs=no
9348
	  fi
9349
	;;
9350
      esac
9351
      ;;
9352
 
9353
    sunos4*)
9354
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355
      wlarc=
9356
      hardcode_direct=yes
9357
      hardcode_shlibpath_var=no
9358
      ;;
9359
 
9360
    *)
9361
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9362
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9363
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9364
      else
9365
	ld_shlibs=no
9366
      fi
9367
      ;;
9368
    esac
9369
 
9370
    if test no = "$ld_shlibs"; then
9371
      runpath_var=
9372
      hardcode_libdir_flag_spec=
9373
      export_dynamic_flag_spec=
9374
      whole_archive_flag_spec=
9375
    fi
9376
  else
9377
    # PORTME fill in a description of your system's linker (not GNU ld)
9378
    case $host_os in
9379
    aix3*)
9380
      allow_undefined_flag=unsupported
9381
      always_export_symbols=yes
9382
      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'
9383
      # Note: this linker hardcodes the directories in LIBPATH if there
9384
      # are no directories specified by -L.
9385
      hardcode_minus_L=yes
9386
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9387
	# Neither direct hardcoding nor static linking is supported with a
9388
	# broken collect2.
9389
	hardcode_direct=unsupported
9390
      fi
9391
      ;;
9392
 
9393
    aix[4-9]*)
9394
      if test ia64 = "$host_cpu"; then
9395
	# On IA64, the linker does run time linking by default, so we don't
9396
	# have to do anything special.
9397
	aix_use_runtimelinking=no
9398
	exp_sym_flag='-Bexport'
9399
	no_entry_flag=
9400
      else
9401
	# If we're using GNU nm, then we don't want the "-C" option.
9402
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9403
	# Without the "-l" option, or with the "-B" option, AIX nm treats
9404
	# weak defined symbols like other global defined symbols, whereas
9405
	# GNU nm marks them as "W".
9406
	# While the 'weak' keyword is ignored in the Export File, we need
9407
	# it in the Import File for the 'aix-soname' feature, so we have
9408
	# to replace the "-B" option with "-P" for AIX nm.
9409
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9410
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9411
	else
9412
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9413
	fi
9414
	aix_use_runtimelinking=no
9415
 
9416
	# Test if we are trying to use run time linking or normal
9417
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9418
	# have runtime linking enabled, and use it for executables.
9419
	# For shared libraries, we enable/disable runtime linking
9420
	# depending on the kind of the shared library created -
9421
	# when "with_aix_soname,aix_use_runtimelinking" is:
9422
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9423
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9424
	#            lib.a           static archive
9425
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9426
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9427
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9428
	#            lib.a(lib.so.V) shared, rtl:no
9429
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9430
	#            lib.a           static archive
9431
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9432
	  for ld_flag in $LDFLAGS; do
9433
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9434
	    aix_use_runtimelinking=yes
9435
	    break
9436
	  fi
9437
	  done
9438
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9439
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9440
	    # so we don't have lib.a shared libs to link our executables.
9441
	    # We have to force runtime linking in this case.
9442
	    aix_use_runtimelinking=yes
9443
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9444
	  fi
9445
	  ;;
9446
	esac
9447
 
9448
	exp_sym_flag='-bexport'
9449
	no_entry_flag='-bnoentry'
9450
      fi
9451
 
9452
      # When large executables or shared objects are built, AIX ld can
9453
      # have problems creating the table of contents.  If linking a library
9454
      # or program results in "error TOC overflow" add -mminimal-toc to
9455
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9456
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9457
 
9458
      archive_cmds=''
9459
      hardcode_direct=yes
9460
      hardcode_direct_absolute=yes
9461
      hardcode_libdir_separator=':'
9462
      link_all_deplibs=yes
9463
      file_list_spec='$wl-f,'
9464
      case $with_aix_soname,$aix_use_runtimelinking in
9465
      aix,*) ;; # traditional, no import file
9466
      svr4,* | *,yes) # use import file
9467
	# The Import File defines what to hardcode.
9468
	hardcode_direct=no
9469
	hardcode_direct_absolute=no
9470
	;;
9471
      esac
9472
 
9473
      if test yes = "$GCC"; then
9474
	case $host_os in aix4.[012]|aix4.[012].*)
9475
	# We only want to do this on AIX 4.2 and lower, the check
9476
	# below for broken collect2 doesn't work under 4.3+
9477
	  collect2name=`$CC -print-prog-name=collect2`
9478
	  if test -f "$collect2name" &&
9479
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9480
	  then
9481
	  # We have reworked collect2
9482
	  :
9483
	  else
9484
	  # We have old collect2
9485
	  hardcode_direct=unsupported
9486
	  # It fails to find uninstalled libraries when the uninstalled
9487
	  # path is not listed in the libpath.  Setting hardcode_minus_L
9488
	  # to unsupported forces relinking
9489
	  hardcode_minus_L=yes
9490
	  hardcode_libdir_flag_spec='-L$libdir'
9491
	  hardcode_libdir_separator=
9492
	  fi
9493
	  ;;
9494
	esac
9495
	shared_flag='-shared'
9496
	if test yes = "$aix_use_runtimelinking"; then
9497
	  shared_flag="$shared_flag "'$wl-G'
9498
	fi
9499
	# Need to ensure runtime linking is disabled for the traditional
9500
	# shared library, or the linker may eventually find shared libraries
9501
	# /with/ Import File - we do not want to mix them.
9502
	shared_flag_aix='-shared'
9503
	shared_flag_svr4='-shared $wl-G'
9504
      else
9505
	# not using gcc
9506
	if test ia64 = "$host_cpu"; then
9507
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9508
	# chokes on -Wl,-G. The following line is correct:
9509
	  shared_flag='-G'
9510
	else
9511
	  if test yes = "$aix_use_runtimelinking"; then
9512
	    shared_flag='$wl-G'
9513
	  else
9514
	    shared_flag='$wl-bM:SRE'
9515
	  fi
9516
	  shared_flag_aix='$wl-bM:SRE'
9517
	  shared_flag_svr4='$wl-G'
9518
	fi
9519
      fi
9520
 
9521
      export_dynamic_flag_spec='$wl-bexpall'
9522
      # It seems that -bexpall does not export symbols beginning with
9523
      # underscore (_), so it is better to generate a list of symbols to export.
9524
      always_export_symbols=yes
9525
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9526
	# Warning - without using the other runtime loading flags (-brtl),
9527
	# -berok will link without error, but may produce a broken library.
9528
	allow_undefined_flag='-berok'
9529
        # Determine the default libpath from the value encoded in an
9530
        # empty executable.
9531
        if test set = "${lt_cv_aix_libpath+set}"; then
9532
  aix_libpath=$lt_cv_aix_libpath
9533
else
9534
  if ${lt_cv_aix_libpath_+:} false; then :
9535
  $as_echo_n "(cached) " >&6
9536
else
9537
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538
/* end confdefs.h.  */
9539
 
9540
int
9541
main ()
9542
{
9543
 
9544
  ;
9545
  return 0;
9546
}
9547
_ACEOF
9548
if ac_fn_c_try_link "$LINENO"; then :
9549
 
9550
  lt_aix_libpath_sed='
9551
      /Import File Strings/,/^$/ {
9552
	  /^0/ {
9553
	      s/^0  *\([^ ]*\) *$/\1/
9554
	      p
9555
	  }
9556
      }'
9557
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558
  # Check for a 64-bit object if we didn't find anything.
9559
  if test -z "$lt_cv_aix_libpath_"; then
9560
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561
  fi
9562
fi
9563
rm -f core conftest.err conftest.$ac_objext \
9564
    conftest$ac_exeext conftest.$ac_ext
9565
  if test -z "$lt_cv_aix_libpath_"; then
9566
    lt_cv_aix_libpath_=/usr/lib:/lib
9567
  fi
9568
 
9569
fi
9570
 
9571
  aix_libpath=$lt_cv_aix_libpath_
9572
fi
9573
 
9574
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9575
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9576
      else
9577
	if test ia64 = "$host_cpu"; then
9578
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9579
	  allow_undefined_flag="-z nodefs"
9580
	  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"
9581
	else
9582
	 # Determine the default libpath from the value encoded in an
9583
	 # empty executable.
9584
	 if test set = "${lt_cv_aix_libpath+set}"; then
9585
  aix_libpath=$lt_cv_aix_libpath
9586
else
9587
  if ${lt_cv_aix_libpath_+:} false; then :
9588
  $as_echo_n "(cached) " >&6
9589
else
9590
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591
/* end confdefs.h.  */
9592
 
9593
int
9594
main ()
9595
{
9596
 
9597
  ;
9598
  return 0;
9599
}
9600
_ACEOF
9601
if ac_fn_c_try_link "$LINENO"; then :
9602
 
9603
  lt_aix_libpath_sed='
9604
      /Import File Strings/,/^$/ {
9605
	  /^0/ {
9606
	      s/^0  *\([^ ]*\) *$/\1/
9607
	      p
9608
	  }
9609
      }'
9610
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611
  # Check for a 64-bit object if we didn't find anything.
9612
  if test -z "$lt_cv_aix_libpath_"; then
9613
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614
  fi
9615
fi
9616
rm -f core conftest.err conftest.$ac_objext \
9617
    conftest$ac_exeext conftest.$ac_ext
9618
  if test -z "$lt_cv_aix_libpath_"; then
9619
    lt_cv_aix_libpath_=/usr/lib:/lib
9620
  fi
9621
 
9622
fi
9623
 
9624
  aix_libpath=$lt_cv_aix_libpath_
9625
fi
9626
 
9627
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9628
	  # Warning - without using the other run time loading flags,
9629
	  # -berok will link without error, but may produce a broken library.
9630
	  no_undefined_flag=' $wl-bernotok'
9631
	  allow_undefined_flag=' $wl-berok'
9632
	  if test yes = "$with_gnu_ld"; then
9633
	    # We only use this code for GNU lds that support --whole-archive.
9634
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9635
	  else
9636
	    # Exported symbols can be pulled into shared objects from archives
9637
	    whole_archive_flag_spec='$convenience'
9638
	  fi
9639
	  archive_cmds_need_lc=yes
9640
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9641
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9642
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9643
	  if test svr4 != "$with_aix_soname"; then
9644
	    # This is similar to how AIX traditionally builds its shared libraries.
9645
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9646
	  fi
9647
	  if test aix != "$with_aix_soname"; then
9648
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9649
	  else
9650
	    # used by -dlpreopen to get the symbols
9651
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9652
	  fi
9653
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9654
	fi
9655
      fi
9656
      ;;
9657
 
9658
    amigaos*)
9659
      case $host_cpu in
9660
      powerpc)
9661
            # see comment about AmigaOS4 .so support
9662
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9663
            archive_expsym_cmds=''
9664
        ;;
9665
      m68k)
9666
            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)'
9667
            hardcode_libdir_flag_spec='-L$libdir'
9668
            hardcode_minus_L=yes
9669
        ;;
9670
      esac
9671
      ;;
9672
 
9673
    bsdi[45]*)
9674
      export_dynamic_flag_spec=-rdynamic
9675
      ;;
9676
 
7 mjames 9677
    cygwin* | mingw* | pw32* | cegcc*)
2 mjames 9678
      # When not using gcc, we currently assume that we are using
9679
      # Microsoft Visual C++.
9680
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9681
      # no search path for DLLs.
9682
      case $cc_basename in
9683
      cl*)
9684
	# Native MSVC
9685
	hardcode_libdir_flag_spec=' '
9686
	allow_undefined_flag=unsupported
9687
	always_export_symbols=yes
9688
	file_list_spec='@'
9689
	# Tell ltmain to make .lib files, not .a files.
9690
	libext=lib
9691
	# Tell ltmain to make .dll files, not .so files.
9692
	shrext_cmds=.dll
9693
	# FIXME: Setting linknames here is a bad hack.
9694
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9695
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9696
            cp "$export_symbols" "$output_objdir/$soname.def";
9697
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9698
          else
9699
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9700
          fi~
9701
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9702
          linknames='
9703
	# The linker will not automatically build a static lib if we build a DLL.
9704
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9705
	enable_shared_with_static_runtimes=yes
9706
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9707
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9708
	# Don't use ranlib
9709
	old_postinstall_cmds='chmod 644 $oldlib'
9710
	postlink_cmds='lt_outputfile="@OUTPUT@"~
9711
          lt_tool_outputfile="@TOOL_OUTPUT@"~
9712
          case $lt_outputfile in
9713
            *.exe|*.EXE) ;;
9714
            *)
9715
              lt_outputfile=$lt_outputfile.exe
9716
              lt_tool_outputfile=$lt_tool_outputfile.exe
9717
              ;;
9718
          esac~
9719
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9720
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9721
            $RM "$lt_outputfile.manifest";
9722
          fi'
9723
	;;
9724
      *)
9725
	# Assume MSVC wrapper
9726
	hardcode_libdir_flag_spec=' '
9727
	allow_undefined_flag=unsupported
9728
	# Tell ltmain to make .lib files, not .a files.
9729
	libext=lib
9730
	# Tell ltmain to make .dll files, not .so files.
9731
	shrext_cmds=.dll
9732
	# FIXME: Setting linknames here is a bad hack.
9733
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9734
	# The linker will automatically build a .lib file if we build a DLL.
9735
	old_archive_from_new_cmds='true'
9736
	# FIXME: Should let the user specify the lib program.
9737
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9738
	enable_shared_with_static_runtimes=yes
9739
	;;
9740
      esac
9741
      ;;
9742
 
9743
    darwin* | rhapsody*)
9744
 
9745
 
9746
  archive_cmds_need_lc=no
9747
  hardcode_direct=no
9748
  hardcode_automatic=yes
9749
  hardcode_shlibpath_var=unsupported
9750
  if test yes = "$lt_cv_ld_force_load"; then
9751
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9752
 
9753
  else
9754
    whole_archive_flag_spec=''
9755
  fi
9756
  link_all_deplibs=yes
9757
  allow_undefined_flag=$_lt_dar_allow_undefined
9758
  case $cc_basename in
9759
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9760
     *) _lt_dar_can_shared=$GCC ;;
9761
  esac
9762
  if test yes = "$_lt_dar_can_shared"; then
9763
    output_verbose_link_cmd=func_echo_all
9764
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9765
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9766
    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"
9767
    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"
9768
 
9769
  else
9770
  ld_shlibs=no
9771
  fi
9772
 
9773
      ;;
9774
 
9775
    dgux*)
9776
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777
      hardcode_libdir_flag_spec='-L$libdir'
9778
      hardcode_shlibpath_var=no
9779
      ;;
9780
 
9781
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9782
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9783
    # does not break anything, and helps significantly (at the cost of a little
9784
    # extra space).
9785
    freebsd2.2*)
9786
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9787
      hardcode_libdir_flag_spec='-R$libdir'
9788
      hardcode_direct=yes
9789
      hardcode_shlibpath_var=no
9790
      ;;
9791
 
9792
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9793
    freebsd2.*)
9794
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9795
      hardcode_direct=yes
9796
      hardcode_minus_L=yes
9797
      hardcode_shlibpath_var=no
9798
      ;;
9799
 
9800
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9801
    freebsd* | dragonfly*)
9802
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9803
      hardcode_libdir_flag_spec='-R$libdir'
9804
      hardcode_direct=yes
9805
      hardcode_shlibpath_var=no
9806
      ;;
9807
 
9808
    hpux9*)
9809
      if test yes = "$GCC"; then
9810
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9811
      else
9812
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9813
      fi
9814
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9815
      hardcode_libdir_separator=:
9816
      hardcode_direct=yes
9817
 
9818
      # hardcode_minus_L: Not really in the search PATH,
9819
      # but as the default location of the library.
9820
      hardcode_minus_L=yes
9821
      export_dynamic_flag_spec='$wl-E'
9822
      ;;
9823
 
9824
    hpux10*)
9825
      if test yes,no = "$GCC,$with_gnu_ld"; then
9826
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9827
      else
9828
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9829
      fi
9830
      if test no = "$with_gnu_ld"; then
9831
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9832
	hardcode_libdir_separator=:
9833
	hardcode_direct=yes
9834
	hardcode_direct_absolute=yes
9835
	export_dynamic_flag_spec='$wl-E'
9836
	# hardcode_minus_L: Not really in the search PATH,
9837
	# but as the default location of the library.
9838
	hardcode_minus_L=yes
9839
      fi
9840
      ;;
9841
 
9842
    hpux11*)
9843
      if test yes,no = "$GCC,$with_gnu_ld"; then
9844
	case $host_cpu in
9845
	hppa*64*)
9846
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9847
	  ;;
9848
	ia64*)
9849
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9850
	  ;;
9851
	*)
9852
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853
	  ;;
9854
	esac
9855
      else
9856
	case $host_cpu in
9857
	hppa*64*)
9858
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9859
	  ;;
9860
	ia64*)
9861
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862
	  ;;
9863
	*)
9864
 
9865
	  # Older versions of the 11.00 compiler do not understand -b yet
9866
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9867
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9868
$as_echo_n "checking if $CC understands -b... " >&6; }
9869
if ${lt_cv_prog_compiler__b+:} false; then :
9870
  $as_echo_n "(cached) " >&6
9871
else
9872
  lt_cv_prog_compiler__b=no
9873
   save_LDFLAGS=$LDFLAGS
9874
   LDFLAGS="$LDFLAGS -b"
9875
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9876
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9877
     # The linker can only warn and ignore the option if not recognized
9878
     # So say no if there are warnings
9879
     if test -s conftest.err; then
9880
       # Append any errors to the config.log.
9881
       cat conftest.err 1>&5
9882
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9883
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884
       if diff conftest.exp conftest.er2 >/dev/null; then
9885
         lt_cv_prog_compiler__b=yes
9886
       fi
9887
     else
9888
       lt_cv_prog_compiler__b=yes
9889
     fi
9890
   fi
9891
   $RM -r conftest*
9892
   LDFLAGS=$save_LDFLAGS
9893
 
9894
fi
9895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9896
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9897
 
9898
if test yes = "$lt_cv_prog_compiler__b"; then
9899
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900
else
9901
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9902
fi
9903
 
9904
	  ;;
9905
	esac
9906
      fi
9907
      if test no = "$with_gnu_ld"; then
9908
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9909
	hardcode_libdir_separator=:
9910
 
9911
	case $host_cpu in
9912
	hppa*64*|ia64*)
9913
	  hardcode_direct=no
9914
	  hardcode_shlibpath_var=no
9915
	  ;;
9916
	*)
9917
	  hardcode_direct=yes
9918
	  hardcode_direct_absolute=yes
9919
	  export_dynamic_flag_spec='$wl-E'
9920
 
9921
	  # hardcode_minus_L: Not really in the search PATH,
9922
	  # but as the default location of the library.
9923
	  hardcode_minus_L=yes
9924
	  ;;
9925
	esac
9926
      fi
9927
      ;;
9928
 
9929
    irix5* | irix6* | nonstopux*)
9930
      if test yes = "$GCC"; then
9931
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9932
	# Try to use the -exported_symbol ld option, if it does not
9933
	# work, assume that -exports_file does not work either and
9934
	# implicitly export all symbols.
9935
	# This should be the same for all languages, so no per-tag cache variable.
9936
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9937
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9938
if ${lt_cv_irix_exported_symbol+:} false; then :
9939
  $as_echo_n "(cached) " >&6
9940
else
9941
  save_LDFLAGS=$LDFLAGS
9942
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9943
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944
/* end confdefs.h.  */
9945
int foo (void) { return 0; }
9946
_ACEOF
9947
if ac_fn_c_try_link "$LINENO"; then :
9948
  lt_cv_irix_exported_symbol=yes
9949
else
9950
  lt_cv_irix_exported_symbol=no
9951
fi
9952
rm -f core conftest.err conftest.$ac_objext \
9953
    conftest$ac_exeext conftest.$ac_ext
9954
           LDFLAGS=$save_LDFLAGS
9955
fi
9956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9957
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9958
	if test yes = "$lt_cv_irix_exported_symbol"; then
9959
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9960
	fi
7 mjames 9961
	link_all_deplibs=no
2 mjames 9962
      else
9963
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9964
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9965
      fi
9966
      archive_cmds_need_lc='no'
9967
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9968
      hardcode_libdir_separator=:
9969
      inherit_rpath=yes
9970
      link_all_deplibs=yes
9971
      ;;
9972
 
9973
    linux*)
9974
      case $cc_basename in
9975
      tcc*)
9976
	# Fabrice Bellard et al's Tiny C Compiler
9977
	ld_shlibs=yes
9978
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979
	;;
9980
      esac
9981
      ;;
9982
 
7 mjames 9983
    netbsd* | netbsdelf*-gnu)
2 mjames 9984
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9985
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9986
      else
9987
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9988
      fi
9989
      hardcode_libdir_flag_spec='-R$libdir'
9990
      hardcode_direct=yes
9991
      hardcode_shlibpath_var=no
9992
      ;;
9993
 
9994
    newsos6)
9995
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996
      hardcode_direct=yes
9997
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9998
      hardcode_libdir_separator=:
9999
      hardcode_shlibpath_var=no
10000
      ;;
10001
 
10002
    *nto* | *qnx*)
10003
      ;;
10004
 
10005
    openbsd* | bitrig*)
10006
      if test -f /usr/libexec/ld.so; then
10007
	hardcode_direct=yes
10008
	hardcode_shlibpath_var=no
10009
	hardcode_direct_absolute=yes
10010
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10011
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10012
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10013
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10014
	  export_dynamic_flag_spec='$wl-E'
10015
	else
10016
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10017
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10018
	fi
10019
      else
10020
	ld_shlibs=no
10021
      fi
10022
      ;;
10023
 
10024
    os2*)
10025
      hardcode_libdir_flag_spec='-L$libdir'
10026
      hardcode_minus_L=yes
10027
      allow_undefined_flag=unsupported
10028
      shrext_cmds=.dll
10029
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10030
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10031
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10032
	$ECHO EXPORTS >> $output_objdir/$libname.def~
10033
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10034
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10035
	emximp -o $lib $output_objdir/$libname.def'
10036
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10037
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10038
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10039
	$ECHO EXPORTS >> $output_objdir/$libname.def~
10040
	prefix_cmds="$SED"~
10041
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10042
	  prefix_cmds="$prefix_cmds -e 1d";
10043
	fi~
10044
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10045
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10046
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10047
	emximp -o $lib $output_objdir/$libname.def'
10048
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10049
      enable_shared_with_static_runtimes=yes
10050
      ;;
10051
 
10052
    osf3*)
10053
      if test yes = "$GCC"; then
10054
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10055
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10056
      else
10057
	allow_undefined_flag=' -expect_unresolved \*'
10058
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10059
      fi
10060
      archive_cmds_need_lc='no'
10061
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10062
      hardcode_libdir_separator=:
10063
      ;;
10064
 
10065
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10066
      if test yes = "$GCC"; then
10067
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10068
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10069
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10070
      else
10071
	allow_undefined_flag=' -expect_unresolved \*'
10072
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10073
	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~
10074
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10075
 
10076
	# Both c and cxx compiler support -rpath directly
10077
	hardcode_libdir_flag_spec='-rpath $libdir'
10078
      fi
10079
      archive_cmds_need_lc='no'
10080
      hardcode_libdir_separator=:
10081
      ;;
10082
 
10083
    solaris*)
10084
      no_undefined_flag=' -z defs'
10085
      if test yes = "$GCC"; then
10086
	wlarc='$wl'
10087
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10088
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10089
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10090
      else
10091
	case `$CC -V 2>&1` in
10092
	*"Compilers 5.0"*)
10093
	  wlarc=''
10094
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10097
	  ;;
10098
	*)
10099
	  wlarc='$wl'
10100
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10101
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10102
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10103
	  ;;
10104
	esac
10105
      fi
10106
      hardcode_libdir_flag_spec='-R$libdir'
10107
      hardcode_shlibpath_var=no
10108
      case $host_os in
10109
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10110
      *)
10111
	# The compiler driver will combine and reorder linker options,
10112
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10113
	# but is careful enough not to reorder.
10114
	# Supported since Solaris 2.6 (maybe 2.5.1?)
10115
	if test yes = "$GCC"; then
10116
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10117
	else
10118
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10119
	fi
10120
	;;
10121
      esac
10122
      link_all_deplibs=yes
10123
      ;;
10124
 
10125
    sunos4*)
10126
      if test sequent = "$host_vendor"; then
10127
	# Use $CC to link under sequent, because it throws in some extra .o
10128
	# files that make .init and .fini sections work.
10129
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10130
      else
10131
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10132
      fi
10133
      hardcode_libdir_flag_spec='-L$libdir'
10134
      hardcode_direct=yes
10135
      hardcode_minus_L=yes
10136
      hardcode_shlibpath_var=no
10137
      ;;
10138
 
10139
    sysv4)
10140
      case $host_vendor in
10141
	sni)
10142
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143
	  hardcode_direct=yes # is this really true???
10144
	;;
10145
	siemens)
10146
	  ## LD is ld it makes a PLAMLIB
10147
	  ## CC just makes a GrossModule.
10148
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10149
	  reload_cmds='$CC -r -o $output$reload_objs'
10150
	  hardcode_direct=no
10151
        ;;
10152
	motorola)
10153
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10155
	;;
10156
      esac
10157
      runpath_var='LD_RUN_PATH'
10158
      hardcode_shlibpath_var=no
10159
      ;;
10160
 
10161
    sysv4.3*)
10162
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163
      hardcode_shlibpath_var=no
10164
      export_dynamic_flag_spec='-Bexport'
10165
      ;;
10166
 
10167
    sysv4*MP*)
10168
      if test -d /usr/nec; then
10169
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170
	hardcode_shlibpath_var=no
10171
	runpath_var=LD_RUN_PATH
10172
	hardcode_runpath_var=yes
10173
	ld_shlibs=yes
10174
      fi
10175
      ;;
10176
 
10177
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10178
      no_undefined_flag='$wl-z,text'
10179
      archive_cmds_need_lc=no
10180
      hardcode_shlibpath_var=no
10181
      runpath_var='LD_RUN_PATH'
10182
 
10183
      if test yes = "$GCC"; then
10184
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186
      else
10187
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189
      fi
10190
      ;;
10191
 
10192
    sysv5* | sco3.2v5* | sco5v6*)
10193
      # Note: We CANNOT use -z defs as we might desire, because we do not
10194
      # link with -lc, and that would cause any symbols used from libc to
10195
      # always be unresolved, which means just about no library would
10196
      # ever link correctly.  If we're not using GNU ld we use -z text
10197
      # though, which does catch some bad symbols but isn't as heavy-handed
10198
      # as -z defs.
10199
      no_undefined_flag='$wl-z,text'
10200
      allow_undefined_flag='$wl-z,nodefs'
10201
      archive_cmds_need_lc=no
10202
      hardcode_shlibpath_var=no
10203
      hardcode_libdir_flag_spec='$wl-R,$libdir'
10204
      hardcode_libdir_separator=':'
10205
      link_all_deplibs=yes
10206
      export_dynamic_flag_spec='$wl-Bexport'
10207
      runpath_var='LD_RUN_PATH'
10208
 
10209
      if test yes = "$GCC"; then
10210
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212
      else
10213
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215
      fi
10216
      ;;
10217
 
10218
    uts4*)
10219
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220
      hardcode_libdir_flag_spec='-L$libdir'
10221
      hardcode_shlibpath_var=no
10222
      ;;
10223
 
10224
    *)
10225
      ld_shlibs=no
10226
      ;;
10227
    esac
10228
 
10229
    if test sni = "$host_vendor"; then
10230
      case $host in
10231
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10232
	export_dynamic_flag_spec='$wl-Blargedynsym'
10233
	;;
10234
      esac
10235
    fi
10236
  fi
10237
 
10238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10239
$as_echo "$ld_shlibs" >&6; }
10240
test no = "$ld_shlibs" && can_build_shared=no
10241
 
10242
with_gnu_ld=$with_gnu_ld
10243
 
10244
 
10245
 
10246
 
10247
 
10248
 
10249
 
10250
 
10251
 
10252
 
10253
 
10254
 
10255
 
10256
 
10257
 
10258
#
10259
# Do we need to explicitly link libc?
10260
#
10261
case "x$archive_cmds_need_lc" in
10262
x|xyes)
10263
  # Assume -lc should be added
10264
  archive_cmds_need_lc=yes
10265
 
10266
  if test yes,yes = "$GCC,$enable_shared"; then
10267
    case $archive_cmds in
10268
    *'~'*)
10269
      # FIXME: we may have to deal with multi-command sequences.
10270
      ;;
10271
    '$CC '*)
10272
      # Test whether the compiler implicitly links with -lc since on some
10273
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10274
      # to ld, don't add -lc before -lgcc.
10275
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10276
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10277
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10278
  $as_echo_n "(cached) " >&6
10279
else
10280
  $RM conftest*
10281
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10282
 
10283
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10284
  (eval $ac_compile) 2>&5
10285
  ac_status=$?
10286
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10287
  test $ac_status = 0; } 2>conftest.err; then
10288
	  soname=conftest
10289
	  lib=conftest
10290
	  libobjs=conftest.$ac_objext
10291
	  deplibs=
10292
	  wl=$lt_prog_compiler_wl
10293
	  pic_flag=$lt_prog_compiler_pic
10294
	  compiler_flags=-v
10295
	  linker_flags=-v
10296
	  verstring=
10297
	  output_objdir=.
10298
	  libname=conftest
10299
	  lt_save_allow_undefined_flag=$allow_undefined_flag
10300
	  allow_undefined_flag=
10301
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10302
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10303
  ac_status=$?
10304
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10305
  test $ac_status = 0; }
10306
	  then
10307
	    lt_cv_archive_cmds_need_lc=no
10308
	  else
10309
	    lt_cv_archive_cmds_need_lc=yes
10310
	  fi
10311
	  allow_undefined_flag=$lt_save_allow_undefined_flag
10312
	else
10313
	  cat conftest.err 1>&5
10314
	fi
10315
	$RM conftest*
10316
 
10317
fi
10318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10319
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10320
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10321
      ;;
10322
    esac
10323
  fi
10324
  ;;
10325
esac
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
 
10393
 
10394
 
10395
 
10396
 
10397
 
10398
 
10399
 
10400
 
10401
 
10402
 
10403
 
10404
 
10405
 
10406
 
10407
 
10408
 
10409
 
10410
 
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
 
10445
 
10446
 
10447
 
10448
 
10449
 
10450
 
10451
 
10452
 
10453
 
10454
 
10455
 
10456
 
10457
 
10458
 
10459
 
10460
 
10461
 
10462
 
10463
 
10464
 
10465
 
10466
 
10467
 
10468
 
10469
 
10470
 
10471
 
10472
 
10473
 
10474
 
10475
 
10476
 
10477
 
10478
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10479
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10480
 
10481
if test yes = "$GCC"; then
10482
  case $host_os in
10483
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10484
    *) lt_awk_arg='/^libraries:/' ;;
10485
  esac
10486
  case $host_os in
10487
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10488
    *) lt_sed_strip_eq='s|=/|/|g' ;;
10489
  esac
10490
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10491
  case $lt_search_path_spec in
10492
  *\;*)
10493
    # if the path contains ";" then we assume it to be the separator
10494
    # otherwise default to the standard path separator (i.e. ":") - it is
10495
    # assumed that no part of a normal pathname contains ";" but that should
10496
    # okay in the real world where ";" in dirpaths is itself problematic.
10497
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10498
    ;;
10499
  *)
10500
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10501
    ;;
10502
  esac
10503
  # Ok, now we have the path, separated by spaces, we can step through it
10504
  # and add multilib dir if necessary...
10505
  lt_tmp_lt_search_path_spec=
10506
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10507
  # ...but if some path component already ends with the multilib dir we assume
10508
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10509
  case "$lt_multi_os_dir; $lt_search_path_spec " in
10510
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10511
    lt_multi_os_dir=
10512
    ;;
10513
  esac
10514
  for lt_sys_path in $lt_search_path_spec; do
10515
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10516
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10517
    elif test -n "$lt_multi_os_dir"; then
10518
      test -d "$lt_sys_path" && \
10519
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10520
    fi
10521
  done
10522
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10523
BEGIN {RS = " "; FS = "/|\n";} {
10524
  lt_foo = "";
10525
  lt_count = 0;
10526
  for (lt_i = NF; lt_i > 0; lt_i--) {
10527
    if ($lt_i != "" && $lt_i != ".") {
10528
      if ($lt_i == "..") {
10529
        lt_count++;
10530
      } else {
10531
        if (lt_count == 0) {
10532
          lt_foo = "/" $lt_i lt_foo;
10533
        } else {
10534
          lt_count--;
10535
        }
10536
      }
10537
    }
10538
  }
10539
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10540
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10541
}'`
10542
  # AWK program above erroneously prepends '/' to C:/dos/paths
10543
  # for these hosts.
10544
  case $host_os in
10545
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10546
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10547
  esac
10548
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10549
else
10550
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10551
fi
10552
library_names_spec=
10553
libname_spec='lib$name'
10554
soname_spec=
10555
shrext_cmds=.so
10556
postinstall_cmds=
10557
postuninstall_cmds=
10558
finish_cmds=
10559
finish_eval=
10560
shlibpath_var=
10561
shlibpath_overrides_runpath=unknown
10562
version_type=none
10563
dynamic_linker="$host_os ld.so"
10564
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10565
need_lib_prefix=unknown
10566
hardcode_into_libs=no
10567
 
10568
# when you set need_version to no, make sure it does not cause -set_version
10569
# flags to be left without arguments
10570
need_version=unknown
10571
 
10572
 
10573
 
10574
case $host_os in
10575
aix3*)
10576
  version_type=linux # correct to gnu/linux during the next big refactor
10577
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10578
  shlibpath_var=LIBPATH
10579
 
10580
  # AIX 3 has no versioning support, so we append a major version to the name.
10581
  soname_spec='$libname$release$shared_ext$major'
10582
  ;;
10583
 
10584
aix[4-9]*)
10585
  version_type=linux # correct to gnu/linux during the next big refactor
10586
  need_lib_prefix=no
10587
  need_version=no
10588
  hardcode_into_libs=yes
10589
  if test ia64 = "$host_cpu"; then
10590
    # AIX 5 supports IA64
10591
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10592
    shlibpath_var=LD_LIBRARY_PATH
10593
  else
10594
    # With GCC up to 2.95.x, collect2 would create an import file
10595
    # for dependence libraries.  The import file would start with
10596
    # the line '#! .'.  This would cause the generated library to
10597
    # depend on '.', always an invalid library.  This was fixed in
10598
    # development snapshots of GCC prior to 3.0.
10599
    case $host_os in
10600
      aix4 | aix4.[01] | aix4.[01].*)
10601
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10602
	   echo ' yes '
10603
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10604
	:
10605
      else
10606
	can_build_shared=no
10607
      fi
10608
      ;;
10609
    esac
10610
    # Using Import Files as archive members, it is possible to support
10611
    # filename-based versioning of shared library archives on AIX. While
10612
    # this would work for both with and without runtime linking, it will
10613
    # prevent static linking of such archives. So we do filename-based
10614
    # shared library versioning with .so extension only, which is used
10615
    # when both runtime linking and shared linking is enabled.
10616
    # Unfortunately, runtime linking may impact performance, so we do
10617
    # not want this to be the default eventually. Also, we use the
10618
    # versioned .so libs for executables only if there is the -brtl
10619
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10620
    # To allow for filename-based versioning support, we need to create
10621
    # libNAME.so.V as an archive file, containing:
10622
    # *) an Import File, referring to the versioned filename of the
10623
    #    archive as well as the shared archive member, telling the
10624
    #    bitwidth (32 or 64) of that shared object, and providing the
10625
    #    list of exported symbols of that shared object, eventually
10626
    #    decorated with the 'weak' keyword
10627
    # *) the shared object with the F_LOADONLY flag set, to really avoid
10628
    #    it being seen by the linker.
10629
    # At run time we better use the real file rather than another symlink,
10630
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10631
 
10632
    case $with_aix_soname,$aix_use_runtimelinking in
10633
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10634
    # soname into executable. Probably we can add versioning support to
10635
    # collect2, so additional links can be useful in future.
10636
    aix,yes) # traditional libtool
10637
      dynamic_linker='AIX unversionable lib.so'
10638
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10639
      # instead of lib<name>.a to let people know that these are not
10640
      # typical AIX shared libraries.
10641
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10642
      ;;
10643
    aix,no) # traditional AIX only
10644
      dynamic_linker='AIX lib.a(lib.so.V)'
10645
      # We preserve .a as extension for shared libraries through AIX4.2
10646
      # and later when we are not doing run time linking.
10647
      library_names_spec='$libname$release.a $libname.a'
10648
      soname_spec='$libname$release$shared_ext$major'
10649
      ;;
10650
    svr4,*) # full svr4 only
10651
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10652
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10653
      # We do not specify a path in Import Files, so LIBPATH fires.
10654
      shlibpath_overrides_runpath=yes
10655
      ;;
10656
    *,yes) # both, prefer svr4
10657
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10658
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10659
      # unpreferred sharedlib libNAME.a needs extra handling
10660
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10661
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10662
      # We do not specify a path in Import Files, so LIBPATH fires.
10663
      shlibpath_overrides_runpath=yes
10664
      ;;
10665
    *,no) # both, prefer aix
10666
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10667
      library_names_spec='$libname$release.a $libname.a'
10668
      soname_spec='$libname$release$shared_ext$major'
10669
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10670
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10671
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10672
      ;;
10673
    esac
10674
    shlibpath_var=LIBPATH
10675
  fi
10676
  ;;
10677
 
10678
amigaos*)
10679
  case $host_cpu in
10680
  powerpc)
10681
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10682
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10683
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10684
    ;;
10685
  m68k)
10686
    library_names_spec='$libname.ixlibrary $libname.a'
10687
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10688
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10689
    ;;
10690
  esac
10691
  ;;
10692
 
10693
beos*)
10694
  library_names_spec='$libname$shared_ext'
10695
  dynamic_linker="$host_os ld.so"
10696
  shlibpath_var=LIBRARY_PATH
10697
  ;;
10698
 
10699
bsdi[45]*)
10700
  version_type=linux # correct to gnu/linux during the next big refactor
10701
  need_version=no
10702
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10703
  soname_spec='$libname$release$shared_ext$major'
10704
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10705
  shlibpath_var=LD_LIBRARY_PATH
10706
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10707
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10708
  # the default ld.so.conf also contains /usr/contrib/lib and
10709
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10710
  # libtool to hard-code these into programs
10711
  ;;
10712
 
7 mjames 10713
cygwin* | mingw* | pw32* | cegcc*)
2 mjames 10714
  version_type=windows
10715
  shrext_cmds=.dll
10716
  need_version=no
10717
  need_lib_prefix=no
10718
 
10719
  case $GCC,$cc_basename in
10720
  yes,*)
10721
    # gcc
10722
    library_names_spec='$libname.dll.a'
10723
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10724
    postinstall_cmds='base_file=`basename \$file`~
10725
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10726
      dldir=$destdir/`dirname \$dlpath`~
10727
      test -d \$dldir || mkdir -p \$dldir~
10728
      $install_prog $dir/$dlname \$dldir/$dlname~
10729
      chmod a+x \$dldir/$dlname~
10730
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10731
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10732
      fi'
10733
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10734
      dlpath=$dir/\$dldll~
10735
       $RM \$dlpath'
10736
    shlibpath_overrides_runpath=yes
10737
 
10738
    case $host_os in
10739
    cygwin*)
10740
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10741
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10742
 
10743
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10744
      ;;
10745
    mingw* | cegcc*)
10746
      # MinGW DLLs use traditional 'lib' prefix
10747
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10748
      ;;
10749
    pw32*)
10750
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10751
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10752
      ;;
10753
    esac
10754
    dynamic_linker='Win32 ld.exe'
10755
    ;;
10756
 
10757
  *,cl*)
10758
    # Native MSVC
10759
    libname_spec='$name'
10760
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10761
    library_names_spec='$libname.dll.lib'
10762
 
10763
    case $build_os in
10764
    mingw*)
10765
      sys_lib_search_path_spec=
10766
      lt_save_ifs=$IFS
10767
      IFS=';'
10768
      for lt_path in $LIB
10769
      do
10770
        IFS=$lt_save_ifs
10771
        # Let DOS variable expansion print the short 8.3 style file name.
10772
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10773
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10774
      done
10775
      IFS=$lt_save_ifs
10776
      # Convert to MSYS style.
10777
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10778
      ;;
7 mjames 10779
    cygwin*)
2 mjames 10780
      # Convert to unix form, then to dos form, then back to unix form
10781
      # but this time dos style (no spaces!) so that the unix form looks
10782
      # like /cygdrive/c/PROGRA~1:/cygdr...
10783
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10784
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10785
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10786
      ;;
10787
    *)
10788
      sys_lib_search_path_spec=$LIB
10789
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10790
        # It is most probably a Windows format PATH.
10791
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10792
      else
10793
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10794
      fi
10795
      # FIXME: find the short name or the path components, as spaces are
10796
      # common. (e.g. "Program Files" -> "PROGRA~1")
10797
      ;;
10798
    esac
10799
 
10800
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10801
    postinstall_cmds='base_file=`basename \$file`~
10802
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10803
      dldir=$destdir/`dirname \$dlpath`~
10804
      test -d \$dldir || mkdir -p \$dldir~
10805
      $install_prog $dir/$dlname \$dldir/$dlname'
10806
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10807
      dlpath=$dir/\$dldll~
10808
       $RM \$dlpath'
10809
    shlibpath_overrides_runpath=yes
10810
    dynamic_linker='Win32 link.exe'
10811
    ;;
10812
 
10813
  *)
10814
    # Assume MSVC wrapper
10815
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10816
    dynamic_linker='Win32 ld.exe'
10817
    ;;
10818
  esac
10819
  # FIXME: first we should search . and the directory the executable is in
10820
  shlibpath_var=PATH
10821
  ;;
10822
 
10823
darwin* | rhapsody*)
10824
  dynamic_linker="$host_os dyld"
10825
  version_type=darwin
10826
  need_lib_prefix=no
10827
  need_version=no
10828
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10829
  soname_spec='$libname$release$major$shared_ext'
10830
  shlibpath_overrides_runpath=yes
10831
  shlibpath_var=DYLD_LIBRARY_PATH
10832
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10833
 
10834
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10835
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10836
  ;;
10837
 
10838
dgux*)
10839
  version_type=linux # correct to gnu/linux during the next big refactor
10840
  need_lib_prefix=no
10841
  need_version=no
10842
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10843
  soname_spec='$libname$release$shared_ext$major'
10844
  shlibpath_var=LD_LIBRARY_PATH
10845
  ;;
10846
 
10847
freebsd* | dragonfly*)
10848
  # DragonFly does not have aout.  When/if they implement a new
10849
  # versioning mechanism, adjust this.
10850
  if test -x /usr/bin/objformat; then
10851
    objformat=`/usr/bin/objformat`
10852
  else
10853
    case $host_os in
10854
    freebsd[23].*) objformat=aout ;;
10855
    *) objformat=elf ;;
10856
    esac
10857
  fi
10858
  version_type=freebsd-$objformat
10859
  case $version_type in
10860
    freebsd-elf*)
10861
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10862
      soname_spec='$libname$release$shared_ext$major'
10863
      need_version=no
10864
      need_lib_prefix=no
10865
      ;;
10866
    freebsd-*)
10867
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10868
      need_version=yes
10869
      ;;
10870
  esac
10871
  shlibpath_var=LD_LIBRARY_PATH
10872
  case $host_os in
10873
  freebsd2.*)
10874
    shlibpath_overrides_runpath=yes
10875
    ;;
10876
  freebsd3.[01]* | freebsdelf3.[01]*)
10877
    shlibpath_overrides_runpath=yes
10878
    hardcode_into_libs=yes
10879
    ;;
10880
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10881
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10882
    shlibpath_overrides_runpath=no
10883
    hardcode_into_libs=yes
10884
    ;;
10885
  *) # from 4.6 on, and DragonFly
10886
    shlibpath_overrides_runpath=yes
10887
    hardcode_into_libs=yes
10888
    ;;
10889
  esac
10890
  ;;
10891
 
10892
haiku*)
10893
  version_type=linux # correct to gnu/linux during the next big refactor
10894
  need_lib_prefix=no
10895
  need_version=no
10896
  dynamic_linker="$host_os runtime_loader"
10897
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10898
  soname_spec='$libname$release$shared_ext$major'
10899
  shlibpath_var=LIBRARY_PATH
10900
  shlibpath_overrides_runpath=no
10901
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10902
  hardcode_into_libs=yes
10903
  ;;
10904
 
10905
hpux9* | hpux10* | hpux11*)
10906
  # Give a soname corresponding to the major version so that dld.sl refuses to
10907
  # link against other versions.
10908
  version_type=sunos
10909
  need_lib_prefix=no
10910
  need_version=no
10911
  case $host_cpu in
10912
  ia64*)
10913
    shrext_cmds='.so'
10914
    hardcode_into_libs=yes
10915
    dynamic_linker="$host_os dld.so"
10916
    shlibpath_var=LD_LIBRARY_PATH
10917
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10918
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919
    soname_spec='$libname$release$shared_ext$major'
10920
    if test 32 = "$HPUX_IA64_MODE"; then
10921
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10922
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10923
    else
10924
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10925
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10926
    fi
10927
    ;;
10928
  hppa*64*)
10929
    shrext_cmds='.sl'
10930
    hardcode_into_libs=yes
10931
    dynamic_linker="$host_os dld.sl"
10932
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10933
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10934
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935
    soname_spec='$libname$release$shared_ext$major'
10936
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10937
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10938
    ;;
10939
  *)
10940
    shrext_cmds='.sl'
10941
    dynamic_linker="$host_os dld.sl"
10942
    shlibpath_var=SHLIB_PATH
10943
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10944
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10945
    soname_spec='$libname$release$shared_ext$major'
10946
    ;;
10947
  esac
10948
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10949
  postinstall_cmds='chmod 555 $lib'
10950
  # or fails outright, so override atomically:
10951
  install_override_mode=555
10952
  ;;
10953
 
10954
interix[3-9]*)
10955
  version_type=linux # correct to gnu/linux during the next big refactor
10956
  need_lib_prefix=no
10957
  need_version=no
10958
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10959
  soname_spec='$libname$release$shared_ext$major'
10960
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10961
  shlibpath_var=LD_LIBRARY_PATH
10962
  shlibpath_overrides_runpath=no
10963
  hardcode_into_libs=yes
10964
  ;;
10965
 
10966
irix5* | irix6* | nonstopux*)
10967
  case $host_os in
10968
    nonstopux*) version_type=nonstopux ;;
10969
    *)
10970
	if test yes = "$lt_cv_prog_gnu_ld"; then
10971
		version_type=linux # correct to gnu/linux during the next big refactor
10972
	else
10973
		version_type=irix
10974
	fi ;;
10975
  esac
10976
  need_lib_prefix=no
10977
  need_version=no
10978
  soname_spec='$libname$release$shared_ext$major'
10979
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10980
  case $host_os in
10981
  irix5* | nonstopux*)
10982
    libsuff= shlibsuff=
10983
    ;;
10984
  *)
10985
    case $LD in # libtool.m4 will add one of these switches to LD
10986
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10987
      libsuff= shlibsuff= libmagic=32-bit;;
10988
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10989
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10990
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10991
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10992
    *) libsuff= shlibsuff= libmagic=never-match;;
10993
    esac
10994
    ;;
10995
  esac
10996
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10997
  shlibpath_overrides_runpath=no
10998
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10999
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11000
  hardcode_into_libs=yes
11001
  ;;
11002
 
11003
# No shared lib support for Linux oldld, aout, or coff.
11004
linux*oldld* | linux*aout* | linux*coff*)
11005
  dynamic_linker=no
11006
  ;;
11007
 
11008
linux*android*)
11009
  version_type=none # Android doesn't support versioned libraries.
11010
  need_lib_prefix=no
11011
  need_version=no
11012
  library_names_spec='$libname$release$shared_ext'
11013
  soname_spec='$libname$release$shared_ext'
11014
  finish_cmds=
11015
  shlibpath_var=LD_LIBRARY_PATH
11016
  shlibpath_overrides_runpath=yes
11017
 
11018
  # This implies no fast_install, which is unacceptable.
11019
  # Some rework will be needed to allow for fast_install
11020
  # before this can be enabled.
11021
  hardcode_into_libs=yes
11022
 
11023
  dynamic_linker='Android linker'
11024
  # Don't embed -rpath directories since the linker doesn't support them.
11025
  hardcode_libdir_flag_spec='-L$libdir'
11026
  ;;
11027
 
11028
# This must be glibc/ELF.
11029
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11030
  version_type=linux # correct to gnu/linux during the next big refactor
11031
  need_lib_prefix=no
11032
  need_version=no
11033
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034
  soname_spec='$libname$release$shared_ext$major'
11035
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11036
  shlibpath_var=LD_LIBRARY_PATH
11037
  shlibpath_overrides_runpath=no
11038
 
11039
  # Some binutils ld are patched to set DT_RUNPATH
11040
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11041
  $as_echo_n "(cached) " >&6
11042
else
11043
  lt_cv_shlibpath_overrides_runpath=no
11044
    save_LDFLAGS=$LDFLAGS
11045
    save_libdir=$libdir
11046
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11047
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11048
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049
/* end confdefs.h.  */
11050
 
11051
int
11052
main ()
11053
{
11054
 
11055
  ;
11056
  return 0;
11057
}
11058
_ACEOF
11059
if ac_fn_c_try_link "$LINENO"; then :
11060
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11061
  lt_cv_shlibpath_overrides_runpath=yes
11062
fi
11063
fi
11064
rm -f core conftest.err conftest.$ac_objext \
11065
    conftest$ac_exeext conftest.$ac_ext
11066
    LDFLAGS=$save_LDFLAGS
11067
    libdir=$save_libdir
11068
 
11069
fi
11070
 
11071
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11072
 
11073
  # This implies no fast_install, which is unacceptable.
11074
  # Some rework will be needed to allow for fast_install
11075
  # before this can be enabled.
11076
  hardcode_into_libs=yes
11077
 
11078
  # Ideally, we could use ldconfig to report *all* directores which are
11079
  # searched for libraries, however this is still not possible.  Aside from not
11080
  # being certain /sbin/ldconfig is available, command
11081
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11082
  # even though it is searched at run-time.  Try to do the best guess by
11083
  # appending ld.so.conf contents (and includes) to the search path.
11084
  if test -f /etc/ld.so.conf; then
11085
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11086
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11087
  fi
11088
 
11089
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11090
  # powerpc, because MkLinux only supported shared libraries with the
11091
  # GNU dynamic linker.  Since this was broken with cross compilers,
11092
  # most powerpc-linux boxes support dynamic linking these days and
11093
  # people can always --disable-shared, the test was removed, and we
11094
  # assume the GNU/Linux dynamic linker is in use.
11095
  dynamic_linker='GNU/Linux ld.so'
11096
  ;;
11097
 
7 mjames 11098
netbsdelf*-gnu)
11099
  version_type=linux
11100
  need_lib_prefix=no
11101
  need_version=no
11102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103
  soname_spec='${libname}${release}${shared_ext}$major'
11104
  shlibpath_var=LD_LIBRARY_PATH
11105
  shlibpath_overrides_runpath=no
11106
  hardcode_into_libs=yes
11107
  dynamic_linker='NetBSD ld.elf_so'
11108
  ;;
11109
 
2 mjames 11110
netbsd*)
11111
  version_type=sunos
11112
  need_lib_prefix=no
11113
  need_version=no
11114
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11115
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11116
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11117
    dynamic_linker='NetBSD (a.out) ld.so'
11118
  else
11119
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11120
    soname_spec='$libname$release$shared_ext$major'
11121
    dynamic_linker='NetBSD ld.elf_so'
11122
  fi
11123
  shlibpath_var=LD_LIBRARY_PATH
11124
  shlibpath_overrides_runpath=yes
11125
  hardcode_into_libs=yes
11126
  ;;
11127
 
11128
newsos6)
11129
  version_type=linux # correct to gnu/linux during the next big refactor
11130
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131
  shlibpath_var=LD_LIBRARY_PATH
11132
  shlibpath_overrides_runpath=yes
11133
  ;;
11134
 
11135
*nto* | *qnx*)
11136
  version_type=qnx
11137
  need_lib_prefix=no
11138
  need_version=no
11139
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140
  soname_spec='$libname$release$shared_ext$major'
11141
  shlibpath_var=LD_LIBRARY_PATH
11142
  shlibpath_overrides_runpath=no
11143
  hardcode_into_libs=yes
11144
  dynamic_linker='ldqnx.so'
11145
  ;;
11146
 
11147
openbsd* | bitrig*)
11148
  version_type=sunos
11149
  sys_lib_dlsearch_path_spec=/usr/lib
11150
  need_lib_prefix=no
11151
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11152
    need_version=no
11153
  else
11154
    need_version=yes
11155
  fi
11156
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11157
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11158
  shlibpath_var=LD_LIBRARY_PATH
11159
  shlibpath_overrides_runpath=yes
11160
  ;;
11161
 
11162
os2*)
11163
  libname_spec='$name'
11164
  version_type=windows
11165
  shrext_cmds=.dll
11166
  need_version=no
11167
  need_lib_prefix=no
11168
  # OS/2 can only load a DLL with a base name of 8 characters or less.
11169
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11170
    v=$($ECHO $release$versuffix | tr -d .-);
11171
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11172
    $ECHO $n$v`$shared_ext'
11173
  library_names_spec='${libname}_dll.$libext'
11174
  dynamic_linker='OS/2 ld.exe'
11175
  shlibpath_var=BEGINLIBPATH
11176
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11177
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11178
  postinstall_cmds='base_file=`basename \$file`~
11179
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11180
    dldir=$destdir/`dirname \$dlpath`~
11181
    test -d \$dldir || mkdir -p \$dldir~
11182
    $install_prog $dir/$dlname \$dldir/$dlname~
11183
    chmod a+x \$dldir/$dlname~
11184
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11185
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11186
    fi'
11187
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11188
    dlpath=$dir/\$dldll~
11189
    $RM \$dlpath'
11190
  ;;
11191
 
11192
osf3* | osf4* | osf5*)
11193
  version_type=osf
11194
  need_lib_prefix=no
11195
  need_version=no
11196
  soname_spec='$libname$release$shared_ext$major'
11197
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198
  shlibpath_var=LD_LIBRARY_PATH
11199
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11200
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11201
  ;;
11202
 
11203
rdos*)
11204
  dynamic_linker=no
11205
  ;;
11206
 
11207
solaris*)
11208
  version_type=linux # correct to gnu/linux during the next big refactor
11209
  need_lib_prefix=no
11210
  need_version=no
11211
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11212
  soname_spec='$libname$release$shared_ext$major'
11213
  shlibpath_var=LD_LIBRARY_PATH
11214
  shlibpath_overrides_runpath=yes
11215
  hardcode_into_libs=yes
11216
  # ldd complains unless libraries are executable
11217
  postinstall_cmds='chmod +x $lib'
11218
  ;;
11219
 
11220
sunos4*)
11221
  version_type=sunos
11222
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11223
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11224
  shlibpath_var=LD_LIBRARY_PATH
11225
  shlibpath_overrides_runpath=yes
11226
  if test yes = "$with_gnu_ld"; then
11227
    need_lib_prefix=no
11228
  fi
11229
  need_version=yes
11230
  ;;
11231
 
11232
sysv4 | sysv4.3*)
11233
  version_type=linux # correct to gnu/linux during the next big refactor
11234
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11235
  soname_spec='$libname$release$shared_ext$major'
11236
  shlibpath_var=LD_LIBRARY_PATH
11237
  case $host_vendor in
11238
    sni)
11239
      shlibpath_overrides_runpath=no
11240
      need_lib_prefix=no
11241
      runpath_var=LD_RUN_PATH
11242
      ;;
11243
    siemens)
11244
      need_lib_prefix=no
11245
      ;;
11246
    motorola)
11247
      need_lib_prefix=no
11248
      need_version=no
11249
      shlibpath_overrides_runpath=no
11250
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11251
      ;;
11252
  esac
11253
  ;;
11254
 
11255
sysv4*MP*)
11256
  if test -d /usr/nec; then
11257
    version_type=linux # correct to gnu/linux during the next big refactor
11258
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11259
    soname_spec='$libname$shared_ext.$major'
11260
    shlibpath_var=LD_LIBRARY_PATH
11261
  fi
11262
  ;;
11263
 
11264
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11265
  version_type=sco
11266
  need_lib_prefix=no
11267
  need_version=no
11268
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11269
  soname_spec='$libname$release$shared_ext$major'
11270
  shlibpath_var=LD_LIBRARY_PATH
11271
  shlibpath_overrides_runpath=yes
11272
  hardcode_into_libs=yes
11273
  if test yes = "$with_gnu_ld"; then
11274
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11275
  else
11276
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11277
    case $host_os in
11278
      sco3.2v5*)
11279
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11280
	;;
11281
    esac
11282
  fi
11283
  sys_lib_dlsearch_path_spec='/usr/lib'
11284
  ;;
11285
 
11286
tpf*)
11287
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11288
  version_type=linux # correct to gnu/linux during the next big refactor
11289
  need_lib_prefix=no
11290
  need_version=no
11291
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292
  shlibpath_var=LD_LIBRARY_PATH
11293
  shlibpath_overrides_runpath=no
11294
  hardcode_into_libs=yes
11295
  ;;
11296
 
11297
uts4*)
11298
  version_type=linux # correct to gnu/linux during the next big refactor
11299
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300
  soname_spec='$libname$release$shared_ext$major'
11301
  shlibpath_var=LD_LIBRARY_PATH
11302
  ;;
11303
 
11304
*)
11305
  dynamic_linker=no
11306
  ;;
11307
esac
11308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11309
$as_echo "$dynamic_linker" >&6; }
11310
test no = "$dynamic_linker" && can_build_shared=no
11311
 
11312
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11313
if test yes = "$GCC"; then
11314
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11315
fi
11316
 
11317
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11318
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11319
fi
11320
 
11321
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11322
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11323
fi
11324
 
11325
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11326
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11327
 
11328
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11329
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11330
 
11331
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11332
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11333
 
11334
 
11335
 
11336
 
11337
 
11338
 
11339
 
11340
 
11341
 
11342
 
11343
 
11344
 
11345
 
11346
 
11347
 
11348
 
11349
 
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
 
11360
 
11361
 
11362
 
11363
 
11364
 
11365
 
11366
 
11367
 
11368
 
11369
 
11370
 
11371
 
11372
 
11373
 
11374
 
11375
 
11376
 
11377
 
11378
 
11379
 
11380
 
11381
 
11382
 
11383
 
11384
 
11385
 
11386
 
11387
 
11388
 
11389
 
11390
 
11391
 
11392
 
11393
 
11394
 
11395
 
11396
 
11397
 
11398
 
11399
 
11400
 
11401
 
11402
 
11403
 
11404
 
11405
 
11406
 
11407
 
11408
 
11409
 
11410
 
11411
 
11412
 
11413
 
11414
 
11415
 
11416
 
11417
 
11418
 
11419
 
11420
 
11421
 
11422
 
11423
 
11424
 
11425
 
11426
 
11427
 
11428
 
11429
 
11430
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11431
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11432
hardcode_action=
11433
if test -n "$hardcode_libdir_flag_spec" ||
11434
   test -n "$runpath_var" ||
11435
   test yes = "$hardcode_automatic"; then
11436
 
11437
  # We can hardcode non-existent directories.
11438
  if test no != "$hardcode_direct" &&
11439
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11440
     # have to relink, otherwise we might link with an installed library
11441
     # when we should be linking with a yet-to-be-installed one
11442
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11443
     test no != "$hardcode_minus_L"; then
11444
    # Linking always hardcodes the temporary library directory.
11445
    hardcode_action=relink
11446
  else
11447
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11448
    hardcode_action=immediate
11449
  fi
11450
else
11451
  # We cannot hardcode anything, or else we can only hardcode existing
11452
  # directories.
11453
  hardcode_action=unsupported
11454
fi
11455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11456
$as_echo "$hardcode_action" >&6; }
11457
 
11458
if test relink = "$hardcode_action" ||
11459
   test yes = "$inherit_rpath"; then
11460
  # Fast installation is not supported
11461
  enable_fast_install=no
11462
elif test yes = "$shlibpath_overrides_runpath" ||
11463
     test no = "$enable_shared"; then
11464
  # Fast installation is not necessary
11465
  enable_fast_install=needless
11466
fi
11467
 
11468
 
11469
 
11470
 
11471
 
11472
 
11473
  if test yes != "$enable_dlopen"; then
11474
  enable_dlopen=unknown
11475
  enable_dlopen_self=unknown
11476
  enable_dlopen_self_static=unknown
11477
else
11478
  lt_cv_dlopen=no
11479
  lt_cv_dlopen_libs=
11480
 
11481
  case $host_os in
11482
  beos*)
11483
    lt_cv_dlopen=load_add_on
11484
    lt_cv_dlopen_libs=
11485
    lt_cv_dlopen_self=yes
11486
    ;;
11487
 
11488
  mingw* | pw32* | cegcc*)
11489
    lt_cv_dlopen=LoadLibrary
11490
    lt_cv_dlopen_libs=
11491
    ;;
11492
 
7 mjames 11493
  cygwin*)
2 mjames 11494
    lt_cv_dlopen=dlopen
11495
    lt_cv_dlopen_libs=
11496
    ;;
11497
 
11498
  darwin*)
11499
    # if libdl is installed we need to link against it
11500
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11501
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11502
if ${ac_cv_lib_dl_dlopen+:} false; then :
11503
  $as_echo_n "(cached) " >&6
11504
else
11505
  ac_check_lib_save_LIBS=$LIBS
11506
LIBS="-ldl  $LIBS"
11507
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508
/* end confdefs.h.  */
11509
 
11510
/* Override any GCC internal prototype to avoid an error.
11511
   Use char because int might match the return type of a GCC
11512
   builtin and then its argument prototype would still apply.  */
11513
#ifdef __cplusplus
11514
extern "C"
11515
#endif
11516
char dlopen ();
11517
int
11518
main ()
11519
{
11520
return dlopen ();
11521
  ;
11522
  return 0;
11523
}
11524
_ACEOF
11525
if ac_fn_c_try_link "$LINENO"; then :
11526
  ac_cv_lib_dl_dlopen=yes
11527
else
11528
  ac_cv_lib_dl_dlopen=no
11529
fi
11530
rm -f core conftest.err conftest.$ac_objext \
11531
    conftest$ac_exeext conftest.$ac_ext
11532
LIBS=$ac_check_lib_save_LIBS
11533
fi
11534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11535
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11536
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11537
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11538
else
11539
 
11540
    lt_cv_dlopen=dyld
11541
    lt_cv_dlopen_libs=
11542
    lt_cv_dlopen_self=yes
11543
 
11544
fi
11545
 
11546
    ;;
11547
 
11548
  tpf*)
11549
    # Don't try to run any link tests for TPF.  We know it's impossible
11550
    # because TPF is a cross-compiler, and we know how we open DSOs.
11551
    lt_cv_dlopen=dlopen
11552
    lt_cv_dlopen_libs=
11553
    lt_cv_dlopen_self=no
11554
    ;;
11555
 
11556
  *)
11557
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11558
if test "x$ac_cv_func_shl_load" = xyes; then :
11559
  lt_cv_dlopen=shl_load
11560
else
11561
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11562
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11563
if ${ac_cv_lib_dld_shl_load+:} false; then :
11564
  $as_echo_n "(cached) " >&6
11565
else
11566
  ac_check_lib_save_LIBS=$LIBS
11567
LIBS="-ldld  $LIBS"
11568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569
/* end confdefs.h.  */
11570
 
11571
/* Override any GCC internal prototype to avoid an error.
11572
   Use char because int might match the return type of a GCC
11573
   builtin and then its argument prototype would still apply.  */
11574
#ifdef __cplusplus
11575
extern "C"
11576
#endif
11577
char shl_load ();
11578
int
11579
main ()
11580
{
11581
return shl_load ();
11582
  ;
11583
  return 0;
11584
}
11585
_ACEOF
11586
if ac_fn_c_try_link "$LINENO"; then :
11587
  ac_cv_lib_dld_shl_load=yes
11588
else
11589
  ac_cv_lib_dld_shl_load=no
11590
fi
11591
rm -f core conftest.err conftest.$ac_objext \
11592
    conftest$ac_exeext conftest.$ac_ext
11593
LIBS=$ac_check_lib_save_LIBS
11594
fi
11595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11596
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11597
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11598
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11599
else
11600
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11601
if test "x$ac_cv_func_dlopen" = xyes; then :
11602
  lt_cv_dlopen=dlopen
11603
else
11604
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11605
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11606
if ${ac_cv_lib_dl_dlopen+:} false; then :
11607
  $as_echo_n "(cached) " >&6
11608
else
11609
  ac_check_lib_save_LIBS=$LIBS
11610
LIBS="-ldl  $LIBS"
11611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612
/* end confdefs.h.  */
11613
 
11614
/* Override any GCC internal prototype to avoid an error.
11615
   Use char because int might match the return type of a GCC
11616
   builtin and then its argument prototype would still apply.  */
11617
#ifdef __cplusplus
11618
extern "C"
11619
#endif
11620
char dlopen ();
11621
int
11622
main ()
11623
{
11624
return dlopen ();
11625
  ;
11626
  return 0;
11627
}
11628
_ACEOF
11629
if ac_fn_c_try_link "$LINENO"; then :
11630
  ac_cv_lib_dl_dlopen=yes
11631
else
11632
  ac_cv_lib_dl_dlopen=no
11633
fi
11634
rm -f core conftest.err conftest.$ac_objext \
11635
    conftest$ac_exeext conftest.$ac_ext
11636
LIBS=$ac_check_lib_save_LIBS
11637
fi
11638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11639
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11640
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11641
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11642
else
11643
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11644
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11645
if ${ac_cv_lib_svld_dlopen+:} false; then :
11646
  $as_echo_n "(cached) " >&6
11647
else
11648
  ac_check_lib_save_LIBS=$LIBS
11649
LIBS="-lsvld  $LIBS"
11650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651
/* end confdefs.h.  */
11652
 
11653
/* Override any GCC internal prototype to avoid an error.
11654
   Use char because int might match the return type of a GCC
11655
   builtin and then its argument prototype would still apply.  */
11656
#ifdef __cplusplus
11657
extern "C"
11658
#endif
11659
char dlopen ();
11660
int
11661
main ()
11662
{
11663
return dlopen ();
11664
  ;
11665
  return 0;
11666
}
11667
_ACEOF
11668
if ac_fn_c_try_link "$LINENO"; then :
11669
  ac_cv_lib_svld_dlopen=yes
11670
else
11671
  ac_cv_lib_svld_dlopen=no
11672
fi
11673
rm -f core conftest.err conftest.$ac_objext \
11674
    conftest$ac_exeext conftest.$ac_ext
11675
LIBS=$ac_check_lib_save_LIBS
11676
fi
11677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11678
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11679
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11680
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11681
else
11682
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11683
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11684
if ${ac_cv_lib_dld_dld_link+:} false; then :
11685
  $as_echo_n "(cached) " >&6
11686
else
11687
  ac_check_lib_save_LIBS=$LIBS
11688
LIBS="-ldld  $LIBS"
11689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690
/* end confdefs.h.  */
11691
 
11692
/* Override any GCC internal prototype to avoid an error.
11693
   Use char because int might match the return type of a GCC
11694
   builtin and then its argument prototype would still apply.  */
11695
#ifdef __cplusplus
11696
extern "C"
11697
#endif
11698
char dld_link ();
11699
int
11700
main ()
11701
{
11702
return dld_link ();
11703
  ;
11704
  return 0;
11705
}
11706
_ACEOF
11707
if ac_fn_c_try_link "$LINENO"; then :
11708
  ac_cv_lib_dld_dld_link=yes
11709
else
11710
  ac_cv_lib_dld_dld_link=no
11711
fi
11712
rm -f core conftest.err conftest.$ac_objext \
11713
    conftest$ac_exeext conftest.$ac_ext
11714
LIBS=$ac_check_lib_save_LIBS
11715
fi
11716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11717
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11718
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11719
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11720
fi
11721
 
11722
 
11723
fi
11724
 
11725
 
11726
fi
11727
 
11728
 
11729
fi
11730
 
11731
 
11732
fi
11733
 
11734
 
11735
fi
11736
 
11737
    ;;
11738
  esac
11739
 
11740
  if test no = "$lt_cv_dlopen"; then
11741
    enable_dlopen=no
11742
  else
11743
    enable_dlopen=yes
11744
  fi
11745
 
11746
  case $lt_cv_dlopen in
11747
  dlopen)
11748
    save_CPPFLAGS=$CPPFLAGS
11749
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11750
 
11751
    save_LDFLAGS=$LDFLAGS
11752
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11753
 
11754
    save_LIBS=$LIBS
11755
    LIBS="$lt_cv_dlopen_libs $LIBS"
11756
 
11757
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11758
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11759
if ${lt_cv_dlopen_self+:} false; then :
11760
  $as_echo_n "(cached) " >&6
11761
else
11762
  	  if test yes = "$cross_compiling"; then :
11763
  lt_cv_dlopen_self=cross
11764
else
11765
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11766
  lt_status=$lt_dlunknown
11767
  cat > conftest.$ac_ext <<_LT_EOF
11768
#line $LINENO "configure"
11769
#include "confdefs.h"
11770
 
11771
#if HAVE_DLFCN_H
11772
#include <dlfcn.h>
11773
#endif
11774
 
11775
#include <stdio.h>
11776
 
11777
#ifdef RTLD_GLOBAL
11778
#  define LT_DLGLOBAL		RTLD_GLOBAL
11779
#else
11780
#  ifdef DL_GLOBAL
11781
#    define LT_DLGLOBAL		DL_GLOBAL
11782
#  else
11783
#    define LT_DLGLOBAL		0
11784
#  endif
11785
#endif
11786
 
11787
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11788
   find out it does not work in some platform. */
11789
#ifndef LT_DLLAZY_OR_NOW
11790
#  ifdef RTLD_LAZY
11791
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11792
#  else
11793
#    ifdef DL_LAZY
11794
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11795
#    else
11796
#      ifdef RTLD_NOW
11797
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11798
#      else
11799
#        ifdef DL_NOW
11800
#          define LT_DLLAZY_OR_NOW	DL_NOW
11801
#        else
11802
#          define LT_DLLAZY_OR_NOW	0
11803
#        endif
11804
#      endif
11805
#    endif
11806
#  endif
11807
#endif
11808
 
11809
/* When -fvisibility=hidden is used, assume the code has been annotated
11810
   correspondingly for the symbols needed.  */
11811
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11812
int fnord () __attribute__((visibility("default")));
11813
#endif
11814
 
11815
int fnord () { return 42; }
11816
int main ()
11817
{
11818
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11819
  int status = $lt_dlunknown;
11820
 
11821
  if (self)
11822
    {
11823
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11824
      else
11825
        {
11826
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11827
          else puts (dlerror ());
11828
	}
11829
      /* dlclose (self); */
11830
    }
11831
  else
11832
    puts (dlerror ());
11833
 
11834
  return status;
11835
}
11836
_LT_EOF
11837
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11838
  (eval $ac_link) 2>&5
11839
  ac_status=$?
11840
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11841
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11842
    (./conftest; exit; ) >&5 2>/dev/null
11843
    lt_status=$?
11844
    case x$lt_status in
11845
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11846
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11847
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11848
    esac
11849
  else :
11850
    # compilation failed
11851
    lt_cv_dlopen_self=no
11852
  fi
11853
fi
11854
rm -fr conftest*
11855
 
11856
 
11857
fi
11858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11859
$as_echo "$lt_cv_dlopen_self" >&6; }
11860
 
11861
    if test yes = "$lt_cv_dlopen_self"; then
11862
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11863
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11864
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11865
if ${lt_cv_dlopen_self_static+:} false; then :
11866
  $as_echo_n "(cached) " >&6
11867
else
11868
  	  if test yes = "$cross_compiling"; then :
11869
  lt_cv_dlopen_self_static=cross
11870
else
11871
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11872
  lt_status=$lt_dlunknown
11873
  cat > conftest.$ac_ext <<_LT_EOF
11874
#line $LINENO "configure"
11875
#include "confdefs.h"
11876
 
11877
#if HAVE_DLFCN_H
11878
#include <dlfcn.h>
11879
#endif
11880
 
11881
#include <stdio.h>
11882
 
11883
#ifdef RTLD_GLOBAL
11884
#  define LT_DLGLOBAL		RTLD_GLOBAL
11885
#else
11886
#  ifdef DL_GLOBAL
11887
#    define LT_DLGLOBAL		DL_GLOBAL
11888
#  else
11889
#    define LT_DLGLOBAL		0
11890
#  endif
11891
#endif
11892
 
11893
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11894
   find out it does not work in some platform. */
11895
#ifndef LT_DLLAZY_OR_NOW
11896
#  ifdef RTLD_LAZY
11897
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11898
#  else
11899
#    ifdef DL_LAZY
11900
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11901
#    else
11902
#      ifdef RTLD_NOW
11903
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11904
#      else
11905
#        ifdef DL_NOW
11906
#          define LT_DLLAZY_OR_NOW	DL_NOW
11907
#        else
11908
#          define LT_DLLAZY_OR_NOW	0
11909
#        endif
11910
#      endif
11911
#    endif
11912
#  endif
11913
#endif
11914
 
11915
/* When -fvisibility=hidden is used, assume the code has been annotated
11916
   correspondingly for the symbols needed.  */
11917
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11918
int fnord () __attribute__((visibility("default")));
11919
#endif
11920
 
11921
int fnord () { return 42; }
11922
int main ()
11923
{
11924
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11925
  int status = $lt_dlunknown;
11926
 
11927
  if (self)
11928
    {
11929
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11930
      else
11931
        {
11932
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11933
          else puts (dlerror ());
11934
	}
11935
      /* dlclose (self); */
11936
    }
11937
  else
11938
    puts (dlerror ());
11939
 
11940
  return status;
11941
}
11942
_LT_EOF
11943
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11944
  (eval $ac_link) 2>&5
11945
  ac_status=$?
11946
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11947
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11948
    (./conftest; exit; ) >&5 2>/dev/null
11949
    lt_status=$?
11950
    case x$lt_status in
11951
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11952
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11953
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11954
    esac
11955
  else :
11956
    # compilation failed
11957
    lt_cv_dlopen_self_static=no
11958
  fi
11959
fi
11960
rm -fr conftest*
11961
 
11962
 
11963
fi
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11965
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11966
    fi
11967
 
11968
    CPPFLAGS=$save_CPPFLAGS
11969
    LDFLAGS=$save_LDFLAGS
11970
    LIBS=$save_LIBS
11971
    ;;
11972
  esac
11973
 
11974
  case $lt_cv_dlopen_self in
11975
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11976
  *) enable_dlopen_self=unknown ;;
11977
  esac
11978
 
11979
  case $lt_cv_dlopen_self_static in
11980
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11981
  *) enable_dlopen_self_static=unknown ;;
11982
  esac
11983
fi
11984
 
11985
 
11986
 
11987
 
11988
 
11989
 
11990
 
11991
 
11992
 
11993
 
11994
 
11995
 
11996
 
11997
 
11998
 
11999
 
12000
 
12001
striplib=
12002
old_striplib=
12003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12004
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12005
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12006
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12007
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12008
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009
$as_echo "yes" >&6; }
12010
else
12011
# FIXME - insert some real tests, host_os isn't really good enough
12012
  case $host_os in
12013
  darwin*)
12014
    if test -n "$STRIP"; then
12015
      striplib="$STRIP -x"
12016
      old_striplib="$STRIP -S"
12017
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12018
$as_echo "yes" >&6; }
12019
    else
12020
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021
$as_echo "no" >&6; }
12022
    fi
12023
    ;;
12024
  *)
12025
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026
$as_echo "no" >&6; }
12027
    ;;
12028
  esac
12029
fi
12030
 
12031
 
12032
 
12033
 
12034
 
12035
 
12036
 
12037
 
12038
 
12039
 
12040
 
12041
 
12042
  # Report what library types will actually be built
12043
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12044
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12046
$as_echo "$can_build_shared" >&6; }
12047
 
12048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12049
$as_echo_n "checking whether to build shared libraries... " >&6; }
12050
  test no = "$can_build_shared" && enable_shared=no
12051
 
12052
  # On AIX, shared libraries and static libraries use the same namespace, and
12053
  # are all built from PIC.
12054
  case $host_os in
12055
  aix3*)
12056
    test yes = "$enable_shared" && enable_static=no
12057
    if test -n "$RANLIB"; then
12058
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12059
      postinstall_cmds='$RANLIB $lib'
12060
    fi
12061
    ;;
12062
 
12063
  aix[4-9]*)
12064
    if test ia64 != "$host_cpu"; then
12065
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12066
      yes,aix,yes) ;;			# shared object as lib.so file only
12067
      yes,svr4,*) ;;			# shared object as lib.so archive member only
12068
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12069
      esac
12070
    fi
12071
    ;;
12072
  esac
12073
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12074
$as_echo "$enable_shared" >&6; }
12075
 
12076
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12077
$as_echo_n "checking whether to build static libraries... " >&6; }
12078
  # Make sure either enable_shared or enable_static is yes.
12079
  test yes = "$enable_shared" || enable_static=yes
12080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12081
$as_echo "$enable_static" >&6; }
12082
 
12083
 
12084
 
12085
 
12086
fi
12087
ac_ext=c
12088
ac_cpp='$CPP $CPPFLAGS'
12089
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12090
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12091
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12092
 
12093
CC=$lt_save_CC
12094
 
12095
 
12096
 
12097
 
12098
 
12099
 
12100
 
12101
 
12102
 
12103
 
12104
 
12105
 
12106
 
12107
 
12108
 
12109
        ac_config_commands="$ac_config_commands libtool"
12110
 
12111
 
12112
 
12113
 
12114
# Only expand once:
12115
 
12116
 
12117
 
12118
 
12119
for ac_prog in flex lex
12120
do
12121
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12122
set dummy $ac_prog; ac_word=$2
12123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124
$as_echo_n "checking for $ac_word... " >&6; }
12125
if ${ac_cv_prog_LEX+:} false; then :
12126
  $as_echo_n "(cached) " >&6
12127
else
12128
  if test -n "$LEX"; then
12129
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12130
else
12131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132
for as_dir in $PATH
12133
do
12134
  IFS=$as_save_IFS
12135
  test -z "$as_dir" && as_dir=.
12136
    for ac_exec_ext in '' $ac_executable_extensions; do
12137
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138
    ac_cv_prog_LEX="$ac_prog"
12139
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140
    break 2
12141
  fi
12142
done
12143
  done
12144
IFS=$as_save_IFS
12145
 
12146
fi
12147
fi
12148
LEX=$ac_cv_prog_LEX
12149
if test -n "$LEX"; then
12150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12151
$as_echo "$LEX" >&6; }
12152
else
12153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154
$as_echo "no" >&6; }
12155
fi
12156
 
12157
 
12158
  test -n "$LEX" && break
12159
done
12160
test -n "$LEX" || LEX=":"
12161
 
12162
if test "x$LEX" != "x:"; then
12163
  cat >conftest.l <<_ACEOF
12164
%%
12165
a { ECHO; }
12166
b { REJECT; }
12167
c { yymore (); }
12168
d { yyless (1); }
12169
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12170
    yyless ((input () != 0)); }
12171
f { unput (yytext[0]); }
12172
. { BEGIN INITIAL; }
12173
%%
12174
#ifdef YYTEXT_POINTER
12175
extern char *yytext;
12176
#endif
12177
int
12178
main (void)
12179
{
12180
  return ! yylex () + ! yywrap ();
12181
}
12182
_ACEOF
12183
{ { ac_try="$LEX conftest.l"
12184
case "(($ac_try" in
12185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186
  *) ac_try_echo=$ac_try;;
12187
esac
12188
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12189
$as_echo "$ac_try_echo"; } >&5
12190
  (eval "$LEX conftest.l") 2>&5
12191
  ac_status=$?
12192
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193
  test $ac_status = 0; }
12194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12195
$as_echo_n "checking lex output file root... " >&6; }
12196
if ${ac_cv_prog_lex_root+:} false; then :
12197
  $as_echo_n "(cached) " >&6
12198
else
12199
 
12200
if test -f lex.yy.c; then
12201
  ac_cv_prog_lex_root=lex.yy
12202
elif test -f lexyy.c; then
12203
  ac_cv_prog_lex_root=lexyy
12204
else
12205
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12206
fi
12207
fi
12208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12209
$as_echo "$ac_cv_prog_lex_root" >&6; }
12210
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12211
 
12212
if test -z "${LEXLIB+set}"; then
12213
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12214
$as_echo_n "checking lex library... " >&6; }
12215
if ${ac_cv_lib_lex+:} false; then :
12216
  $as_echo_n "(cached) " >&6
12217
else
12218
 
12219
    ac_save_LIBS=$LIBS
12220
    ac_cv_lib_lex='none needed'
12221
    for ac_lib in '' -lfl -ll; do
12222
      LIBS="$ac_lib $ac_save_LIBS"
12223
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224
/* end confdefs.h.  */
12225
`cat $LEX_OUTPUT_ROOT.c`
12226
_ACEOF
12227
if ac_fn_c_try_link "$LINENO"; then :
12228
  ac_cv_lib_lex=$ac_lib
12229
fi
12230
rm -f core conftest.err conftest.$ac_objext \
12231
    conftest$ac_exeext conftest.$ac_ext
12232
      test "$ac_cv_lib_lex" != 'none needed' && break
12233
    done
12234
    LIBS=$ac_save_LIBS
12235
 
12236
fi
12237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12238
$as_echo "$ac_cv_lib_lex" >&6; }
12239
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12240
fi
12241
 
12242
 
12243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12244
$as_echo_n "checking whether yytext is a pointer... " >&6; }
12245
if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12246
  $as_echo_n "(cached) " >&6
12247
else
12248
  # POSIX says lex can declare yytext either as a pointer or an array; the
12249
# default is implementation-dependent.  Figure out which it is, since
12250
# not all implementations provide the %pointer and %array declarations.
12251
ac_cv_prog_lex_yytext_pointer=no
12252
ac_save_LIBS=$LIBS
12253
LIBS="$LEXLIB $ac_save_LIBS"
12254
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255
/* end confdefs.h.  */
12256
 
12257
  #define YYTEXT_POINTER 1
12258
`cat $LEX_OUTPUT_ROOT.c`
12259
_ACEOF
12260
if ac_fn_c_try_link "$LINENO"; then :
12261
  ac_cv_prog_lex_yytext_pointer=yes
12262
fi
12263
rm -f core conftest.err conftest.$ac_objext \
12264
    conftest$ac_exeext conftest.$ac_ext
12265
LIBS=$ac_save_LIBS
12266
 
12267
fi
12268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12269
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12270
if test $ac_cv_prog_lex_yytext_pointer = yes; then
12271
 
12272
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12273
 
12274
fi
12275
rm -f conftest.l $LEX_OUTPUT_ROOT.c
12276
 
12277
fi
12278
 
12279
 
12280
for ac_prog in 'bison -y' byacc
12281
do
12282
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12283
set dummy $ac_prog; ac_word=$2
12284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285
$as_echo_n "checking for $ac_word... " >&6; }
12286
if ${ac_cv_prog_YACC+:} false; then :
12287
  $as_echo_n "(cached) " >&6
12288
else
12289
  if test -n "$YACC"; then
12290
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12291
else
12292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293
for as_dir in $PATH
12294
do
12295
  IFS=$as_save_IFS
12296
  test -z "$as_dir" && as_dir=.
12297
    for ac_exec_ext in '' $ac_executable_extensions; do
12298
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12299
    ac_cv_prog_YACC="$ac_prog"
12300
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301
    break 2
12302
  fi
12303
done
12304
  done
12305
IFS=$as_save_IFS
12306
 
12307
fi
12308
fi
12309
YACC=$ac_cv_prog_YACC
12310
if test -n "$YACC"; then
12311
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12312
$as_echo "$YACC" >&6; }
12313
else
12314
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315
$as_echo "no" >&6; }
12316
fi
12317
 
12318
 
12319
  test -n "$YACC" && break
12320
done
12321
test -n "$YACC" || YACC="yacc"
12322
 
12323
AM_YFLAGS = -d
12324
 
12325
ac_config_headers="$ac_config_headers config.h:config.in"
12326
 
12327
 
12328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12329
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12330
    # Check whether --enable-maintainer-mode was given.
12331
if test "${enable_maintainer_mode+set}" = set; then :
12332
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12333
else
12334
  USE_MAINTAINER_MODE=no
12335
fi
12336
 
12337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12338
$as_echo "$USE_MAINTAINER_MODE" >&6; }
12339
   if test $USE_MAINTAINER_MODE = yes; then
12340
  MAINTAINER_MODE_TRUE=
12341
  MAINTAINER_MODE_FALSE='#'
12342
else
12343
  MAINTAINER_MODE_TRUE='#'
12344
  MAINTAINER_MODE_FALSE=
12345
fi
12346
 
12347
  MAINT=$MAINTAINER_MODE_TRUE
12348
 
12349
 
12350
 
12351
for ac_header in regexp.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h netdb.h
12352
do :
12353
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12355
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12356
  cat >>confdefs.h <<_ACEOF
12357
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12358
_ACEOF
12359
 
12360
fi
12361
 
12362
done
12363
 
12364
 
12365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
12366
$as_echo_n "checking for library containing regcomp... " >&6; }
12367
if ${ac_cv_search_regcomp+:} false; then :
12368
  $as_echo_n "(cached) " >&6
12369
else
12370
  ac_func_search_save_LIBS=$LIBS
12371
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372
/* end confdefs.h.  */
12373
 
12374
/* Override any GCC internal prototype to avoid an error.
12375
   Use char because int might match the return type of a GCC
12376
   builtin and then its argument prototype would still apply.  */
12377
#ifdef __cplusplus
12378
extern "C"
12379
#endif
12380
char regcomp ();
12381
int
12382
main ()
12383
{
12384
return regcomp ();
12385
  ;
12386
  return 0;
12387
}
12388
_ACEOF
12389
for ac_lib in '' pcre2 pcre regex ; do
12390
  if test -z "$ac_lib"; then
12391
    ac_res="none required"
12392
  else
12393
    ac_res=-l$ac_lib
12394
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12395
  fi
12396
  if ac_fn_c_try_link "$LINENO"; then :
12397
  ac_cv_search_regcomp=$ac_res
12398
fi
12399
rm -f core conftest.err conftest.$ac_objext \
12400
    conftest$ac_exeext
12401
  if ${ac_cv_search_regcomp+:} false; then :
12402
  break
12403
fi
12404
done
12405
if ${ac_cv_search_regcomp+:} false; then :
12406
 
12407
else
12408
  ac_cv_search_regcomp=no
12409
fi
12410
rm conftest.$ac_ext
12411
LIBS=$ac_func_search_save_LIBS
12412
fi
12413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
12414
$as_echo "$ac_cv_search_regcomp" >&6; }
12415
ac_res=$ac_cv_search_regcomp
12416
if test "$ac_res" != no; then :
12417
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12418
 
12419
else
12420
 
12421
  as_fn_error $? "unable to find regcomp() function" "$LINENO" 5
12422
 
12423
fi
12424
 
12425
 
12426
ac_ext=c
12427
ac_cpp='$CPP $CPPFLAGS'
12428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431
if test -n "$ac_tool_prefix"; then
12432
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12433
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435
$as_echo_n "checking for $ac_word... " >&6; }
12436
if ${ac_cv_prog_CC+:} false; then :
12437
  $as_echo_n "(cached) " >&6
12438
else
12439
  if test -n "$CC"; then
12440
  ac_cv_prog_CC="$CC" # Let the user override the test.
12441
else
12442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443
for as_dir in $PATH
12444
do
12445
  IFS=$as_save_IFS
12446
  test -z "$as_dir" && as_dir=.
12447
    for ac_exec_ext in '' $ac_executable_extensions; do
12448
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12450
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451
    break 2
12452
  fi
12453
done
12454
  done
12455
IFS=$as_save_IFS
12456
 
12457
fi
12458
fi
12459
CC=$ac_cv_prog_CC
12460
if test -n "$CC"; then
12461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12462
$as_echo "$CC" >&6; }
12463
else
12464
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465
$as_echo "no" >&6; }
12466
fi
12467
 
12468
 
12469
fi
12470
if test -z "$ac_cv_prog_CC"; then
12471
  ac_ct_CC=$CC
12472
  # Extract the first word of "gcc", so it can be a program name with args.
12473
set dummy gcc; ac_word=$2
12474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475
$as_echo_n "checking for $ac_word... " >&6; }
12476
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12477
  $as_echo_n "(cached) " >&6
12478
else
12479
  if test -n "$ac_ct_CC"; then
12480
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12481
else
12482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483
for as_dir in $PATH
12484
do
12485
  IFS=$as_save_IFS
12486
  test -z "$as_dir" && as_dir=.
12487
    for ac_exec_ext in '' $ac_executable_extensions; do
12488
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489
    ac_cv_prog_ac_ct_CC="gcc"
12490
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491
    break 2
12492
  fi
12493
done
12494
  done
12495
IFS=$as_save_IFS
12496
 
12497
fi
12498
fi
12499
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12500
if test -n "$ac_ct_CC"; then
12501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12502
$as_echo "$ac_ct_CC" >&6; }
12503
else
12504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505
$as_echo "no" >&6; }
12506
fi
12507
 
12508
  if test "x$ac_ct_CC" = x; then
12509
    CC=""
12510
  else
12511
    case $cross_compiling:$ac_tool_warned in
12512
yes:)
12513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515
ac_tool_warned=yes ;;
12516
esac
12517
    CC=$ac_ct_CC
12518
  fi
12519
else
12520
  CC="$ac_cv_prog_CC"
12521
fi
12522
 
12523
if test -z "$CC"; then
12524
          if test -n "$ac_tool_prefix"; then
12525
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12526
set dummy ${ac_tool_prefix}cc; ac_word=$2
12527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528
$as_echo_n "checking for $ac_word... " >&6; }
12529
if ${ac_cv_prog_CC+:} false; then :
12530
  $as_echo_n "(cached) " >&6
12531
else
12532
  if test -n "$CC"; then
12533
  ac_cv_prog_CC="$CC" # Let the user override the test.
12534
else
12535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536
for as_dir in $PATH
12537
do
12538
  IFS=$as_save_IFS
12539
  test -z "$as_dir" && as_dir=.
12540
    for ac_exec_ext in '' $ac_executable_extensions; do
12541
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542
    ac_cv_prog_CC="${ac_tool_prefix}cc"
12543
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544
    break 2
12545
  fi
12546
done
12547
  done
12548
IFS=$as_save_IFS
12549
 
12550
fi
12551
fi
12552
CC=$ac_cv_prog_CC
12553
if test -n "$CC"; then
12554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12555
$as_echo "$CC" >&6; }
12556
else
12557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558
$as_echo "no" >&6; }
12559
fi
12560
 
12561
 
12562
  fi
12563
fi
12564
if test -z "$CC"; then
12565
  # Extract the first word of "cc", so it can be a program name with args.
12566
set dummy cc; ac_word=$2
12567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568
$as_echo_n "checking for $ac_word... " >&6; }
12569
if ${ac_cv_prog_CC+:} false; then :
12570
  $as_echo_n "(cached) " >&6
12571
else
12572
  if test -n "$CC"; then
12573
  ac_cv_prog_CC="$CC" # Let the user override the test.
12574
else
12575
  ac_prog_rejected=no
12576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577
for as_dir in $PATH
12578
do
12579
  IFS=$as_save_IFS
12580
  test -z "$as_dir" && as_dir=.
12581
    for ac_exec_ext in '' $ac_executable_extensions; do
12582
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12583
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12584
       ac_prog_rejected=yes
12585
       continue
12586
     fi
12587
    ac_cv_prog_CC="cc"
12588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589
    break 2
12590
  fi
12591
done
12592
  done
12593
IFS=$as_save_IFS
12594
 
12595
if test $ac_prog_rejected = yes; then
12596
  # We found a bogon in the path, so make sure we never use it.
12597
  set dummy $ac_cv_prog_CC
12598
  shift
12599
  if test $# != 0; then
12600
    # We chose a different compiler from the bogus one.
12601
    # However, it has the same basename, so the bogon will be chosen
12602
    # first if we set CC to just the basename; use the full file name.
12603
    shift
12604
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12605
  fi
12606
fi
12607
fi
12608
fi
12609
CC=$ac_cv_prog_CC
12610
if test -n "$CC"; then
12611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12612
$as_echo "$CC" >&6; }
12613
else
12614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615
$as_echo "no" >&6; }
12616
fi
12617
 
12618
 
12619
fi
12620
if test -z "$CC"; then
12621
  if test -n "$ac_tool_prefix"; then
12622
  for ac_prog in cl.exe
12623
  do
12624
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12625
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627
$as_echo_n "checking for $ac_word... " >&6; }
12628
if ${ac_cv_prog_CC+:} false; then :
12629
  $as_echo_n "(cached) " >&6
12630
else
12631
  if test -n "$CC"; then
12632
  ac_cv_prog_CC="$CC" # Let the user override the test.
12633
else
12634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635
for as_dir in $PATH
12636
do
12637
  IFS=$as_save_IFS
12638
  test -z "$as_dir" && as_dir=.
12639
    for ac_exec_ext in '' $ac_executable_extensions; do
12640
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12642
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643
    break 2
12644
  fi
12645
done
12646
  done
12647
IFS=$as_save_IFS
12648
 
12649
fi
12650
fi
12651
CC=$ac_cv_prog_CC
12652
if test -n "$CC"; then
12653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12654
$as_echo "$CC" >&6; }
12655
else
12656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657
$as_echo "no" >&6; }
12658
fi
12659
 
12660
 
12661
    test -n "$CC" && break
12662
  done
12663
fi
12664
if test -z "$CC"; then
12665
  ac_ct_CC=$CC
12666
  for ac_prog in cl.exe
12667
do
12668
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12669
set dummy $ac_prog; ac_word=$2
12670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671
$as_echo_n "checking for $ac_word... " >&6; }
12672
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12673
  $as_echo_n "(cached) " >&6
12674
else
12675
  if test -n "$ac_ct_CC"; then
12676
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12677
else
12678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679
for as_dir in $PATH
12680
do
12681
  IFS=$as_save_IFS
12682
  test -z "$as_dir" && as_dir=.
12683
    for ac_exec_ext in '' $ac_executable_extensions; do
12684
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12685
    ac_cv_prog_ac_ct_CC="$ac_prog"
12686
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687
    break 2
12688
  fi
12689
done
12690
  done
12691
IFS=$as_save_IFS
12692
 
12693
fi
12694
fi
12695
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12696
if test -n "$ac_ct_CC"; then
12697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12698
$as_echo "$ac_ct_CC" >&6; }
12699
else
12700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701
$as_echo "no" >&6; }
12702
fi
12703
 
12704
 
12705
  test -n "$ac_ct_CC" && break
12706
done
12707
 
12708
  if test "x$ac_ct_CC" = x; then
12709
    CC=""
12710
  else
12711
    case $cross_compiling:$ac_tool_warned in
12712
yes:)
12713
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12714
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12715
ac_tool_warned=yes ;;
12716
esac
12717
    CC=$ac_ct_CC
12718
  fi
12719
fi
12720
 
12721
fi
12722
 
12723
 
12724
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12726
as_fn_error $? "no acceptable C compiler found in \$PATH
12727
See \`config.log' for more details" "$LINENO" 5; }
12728
 
12729
# Provide some information about the compiler.
12730
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12731
set X $ac_compile
12732
ac_compiler=$2
12733
for ac_option in --version -v -V -qversion; do
12734
  { { ac_try="$ac_compiler $ac_option >&5"
12735
case "(($ac_try" in
12736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737
  *) ac_try_echo=$ac_try;;
12738
esac
12739
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12740
$as_echo "$ac_try_echo"; } >&5
12741
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12742
  ac_status=$?
12743
  if test -s conftest.err; then
12744
    sed '10a\
12745
... rest of stderr output deleted ...
12746
         10q' conftest.err >conftest.er1
12747
    cat conftest.er1 >&5
12748
  fi
12749
  rm -f conftest.er1 conftest.err
12750
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12751
  test $ac_status = 0; }
12752
done
12753
 
12754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12755
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12756
if ${ac_cv_c_compiler_gnu+:} false; then :
12757
  $as_echo_n "(cached) " >&6
12758
else
12759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760
/* end confdefs.h.  */
12761
 
12762
int
12763
main ()
12764
{
12765
#ifndef __GNUC__
12766
       choke me
12767
#endif
12768
 
12769
  ;
12770
  return 0;
12771
}
12772
_ACEOF
12773
if ac_fn_c_try_compile "$LINENO"; then :
12774
  ac_compiler_gnu=yes
12775
else
12776
  ac_compiler_gnu=no
12777
fi
12778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12780
 
12781
fi
12782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12783
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12784
if test $ac_compiler_gnu = yes; then
12785
  GCC=yes
12786
else
12787
  GCC=
12788
fi
12789
ac_test_CFLAGS=${CFLAGS+set}
12790
ac_save_CFLAGS=$CFLAGS
12791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12792
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12793
if ${ac_cv_prog_cc_g+:} false; then :
12794
  $as_echo_n "(cached) " >&6
12795
else
12796
  ac_save_c_werror_flag=$ac_c_werror_flag
12797
   ac_c_werror_flag=yes
12798
   ac_cv_prog_cc_g=no
12799
   CFLAGS="-g"
12800
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801
/* end confdefs.h.  */
12802
 
12803
int
12804
main ()
12805
{
12806
 
12807
  ;
12808
  return 0;
12809
}
12810
_ACEOF
12811
if ac_fn_c_try_compile "$LINENO"; then :
12812
  ac_cv_prog_cc_g=yes
12813
else
12814
  CFLAGS=""
12815
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816
/* end confdefs.h.  */
12817
 
12818
int
12819
main ()
12820
{
12821
 
12822
  ;
12823
  return 0;
12824
}
12825
_ACEOF
12826
if ac_fn_c_try_compile "$LINENO"; then :
12827
 
12828
else
12829
  ac_c_werror_flag=$ac_save_c_werror_flag
12830
	 CFLAGS="-g"
12831
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832
/* end confdefs.h.  */
12833
 
12834
int
12835
main ()
12836
{
12837
 
12838
  ;
12839
  return 0;
12840
}
12841
_ACEOF
12842
if ac_fn_c_try_compile "$LINENO"; then :
12843
  ac_cv_prog_cc_g=yes
12844
fi
12845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846
fi
12847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848
fi
12849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850
   ac_c_werror_flag=$ac_save_c_werror_flag
12851
fi
12852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12853
$as_echo "$ac_cv_prog_cc_g" >&6; }
12854
if test "$ac_test_CFLAGS" = set; then
12855
  CFLAGS=$ac_save_CFLAGS
12856
elif test $ac_cv_prog_cc_g = yes; then
12857
  if test "$GCC" = yes; then
12858
    CFLAGS="-g -O2"
12859
  else
12860
    CFLAGS="-g"
12861
  fi
12862
else
12863
  if test "$GCC" = yes; then
12864
    CFLAGS="-O2"
12865
  else
12866
    CFLAGS=
12867
  fi
12868
fi
12869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12870
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12871
if ${ac_cv_prog_cc_c89+:} false; then :
12872
  $as_echo_n "(cached) " >&6
12873
else
12874
  ac_cv_prog_cc_c89=no
12875
ac_save_CC=$CC
12876
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877
/* end confdefs.h.  */
12878
#include <stdarg.h>
12879
#include <stdio.h>
12880
struct stat;
12881
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12882
struct buf { int x; };
12883
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12884
static char *e (p, i)
12885
     char **p;
12886
     int i;
12887
{
12888
  return p[i];
12889
}
12890
static char *f (char * (*g) (char **, int), char **p, ...)
12891
{
12892
  char *s;
12893
  va_list v;
12894
  va_start (v,p);
12895
  s = g (p, va_arg (v,int));
12896
  va_end (v);
12897
  return s;
12898
}
12899
 
12900
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12901
   function prototypes and stuff, but not '\xHH' hex character constants.
12902
   These don't provoke an error unfortunately, instead are silently treated
12903
   as 'x'.  The following induces an error, until -std is added to get
12904
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12905
   array size at least.  It's necessary to write '\x00'==0 to get something
12906
   that's true only with -std.  */
12907
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12908
 
12909
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12910
   inside strings and character constants.  */
12911
#define FOO(x) 'x'
12912
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12913
 
12914
int test (int i, double x);
12915
struct s1 {int (*f) (int a);};
12916
struct s2 {int (*f) (double a);};
12917
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12918
int argc;
12919
char **argv;
12920
int
12921
main ()
12922
{
12923
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12924
  ;
12925
  return 0;
12926
}
12927
_ACEOF
12928
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12929
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12930
do
12931
  CC="$ac_save_CC $ac_arg"
12932
  if ac_fn_c_try_compile "$LINENO"; then :
12933
  ac_cv_prog_cc_c89=$ac_arg
12934
fi
12935
rm -f core conftest.err conftest.$ac_objext
12936
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12937
done
12938
rm -f conftest.$ac_ext
12939
CC=$ac_save_CC
12940
 
12941
fi
12942
# AC_CACHE_VAL
12943
case "x$ac_cv_prog_cc_c89" in
12944
  x)
12945
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12946
$as_echo "none needed" >&6; } ;;
12947
  xno)
12948
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12949
$as_echo "unsupported" >&6; } ;;
12950
  *)
12951
    CC="$CC $ac_cv_prog_cc_c89"
12952
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12953
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12954
esac
12955
if test "x$ac_cv_prog_cc_c89" != xno; then :
12956
 
12957
fi
12958
 
12959
ac_ext=c
12960
ac_cpp='$CPP $CPPFLAGS'
12961
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
 
12965
ac_ext=c
12966
ac_cpp='$CPP $CPPFLAGS'
12967
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12971
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12972
if ${am_cv_prog_cc_c_o+:} false; then :
12973
  $as_echo_n "(cached) " >&6
12974
else
12975
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976
/* end confdefs.h.  */
12977
 
12978
int
12979
main ()
12980
{
12981
 
12982
  ;
12983
  return 0;
12984
}
12985
_ACEOF
12986
  # Make sure it works both with $CC and with simple cc.
12987
  # Following AC_PROG_CC_C_O, we do the test twice because some
12988
  # compilers refuse to overwrite an existing .o file with -o,
12989
  # though they will create one.
12990
  am_cv_prog_cc_c_o=yes
12991
  for am_i in 1 2; do
12992
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12993
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12994
   ac_status=$?
12995
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996
   (exit $ac_status); } \
12997
         && test -f conftest2.$ac_objext; then
12998
      : OK
12999
    else
13000
      am_cv_prog_cc_c_o=no
13001
      break
13002
    fi
13003
  done
13004
  rm -f core conftest*
13005
  unset am_i
13006
fi
13007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13008
$as_echo "$am_cv_prog_cc_c_o" >&6; }
13009
if test "$am_cv_prog_cc_c_o" != yes; then
13010
   # Losing compiler, so override with the script.
13011
   # FIXME: It is wrong to rewrite CC.
13012
   # But if we don't then we get into trouble of one sort or another.
13013
   # A longer-term fix would be to have automake use am__CC in this case,
13014
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13015
   CC="$am_aux_dir/compile $CC"
13016
fi
13017
ac_ext=c
13018
ac_cpp='$CPP $CPPFLAGS'
13019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13022
 
13023
 
13024
depcc="$CC"   am_compiler_list=
13025
 
13026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13027
$as_echo_n "checking dependency style of $depcc... " >&6; }
13028
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13029
  $as_echo_n "(cached) " >&6
13030
else
13031
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13032
  # We make a subdir and do the tests there.  Otherwise we can end up
13033
  # making bogus files that we don't know about and never remove.  For
13034
  # instance it was reported that on HP-UX the gcc test will end up
13035
  # making a dummy file named 'D' -- because '-MD' means "put the output
13036
  # in D".
13037
  rm -rf conftest.dir
13038
  mkdir conftest.dir
13039
  # Copy depcomp to subdir because otherwise we won't find it if we're
13040
  # using a relative directory.
13041
  cp "$am_depcomp" conftest.dir
13042
  cd conftest.dir
13043
  # We will build objects and dependencies in a subdirectory because
13044
  # it helps to detect inapplicable dependency modes.  For instance
13045
  # both Tru64's cc and ICC support -MD to output dependencies as a
13046
  # side effect of compilation, but ICC will put the dependencies in
13047
  # the current directory while Tru64 will put them in the object
13048
  # directory.
13049
  mkdir sub
13050
 
13051
  am_cv_CC_dependencies_compiler_type=none
13052
  if test "$am_compiler_list" = ""; then
13053
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13054
  fi
13055
  am__universal=false
13056
  case " $depcc " in #(
13057
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13058
     esac
13059
 
13060
  for depmode in $am_compiler_list; do
13061
    # Setup a source with many dependencies, because some compilers
13062
    # like to wrap large dependency lists on column 80 (with \), and
13063
    # we should not choose a depcomp mode which is confused by this.
13064
    #
13065
    # We need to recreate these files for each test, as the compiler may
13066
    # overwrite some of them when testing with obscure command lines.
13067
    # This happens at least with the AIX C compiler.
13068
    : > sub/conftest.c
13069
    for i in 1 2 3 4 5 6; do
13070
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13071
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13072
      # Solaris 10 /bin/sh.
13073
      echo '/* dummy */' > sub/conftst$i.h
13074
    done
13075
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13076
 
13077
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13078
    # mode.  It turns out that the SunPro C++ compiler does not properly
13079
    # handle '-M -o', and we need to detect this.  Also, some Intel
13080
    # versions had trouble with output in subdirs.
13081
    am__obj=sub/conftest.${OBJEXT-o}
13082
    am__minus_obj="-o $am__obj"
13083
    case $depmode in
13084
    gcc)
13085
      # This depmode causes a compiler race in universal mode.
13086
      test "$am__universal" = false || continue
13087
      ;;
13088
    nosideeffect)
13089
      # After this tag, mechanisms are not by side-effect, so they'll
13090
      # only be used when explicitly requested.
13091
      if test "x$enable_dependency_tracking" = xyes; then
13092
	continue
13093
      else
13094
	break
13095
      fi
13096
      ;;
13097
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13098
      # This compiler won't grok '-c -o', but also, the minuso test has
13099
      # not run yet.  These depmodes are late enough in the game, and
13100
      # so weak that their functioning should not be impacted.
13101
      am__obj=conftest.${OBJEXT-o}
13102
      am__minus_obj=
13103
      ;;
13104
    none) break ;;
13105
    esac
13106
    if depmode=$depmode \
13107
       source=sub/conftest.c object=$am__obj \
13108
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13109
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13110
         >/dev/null 2>conftest.err &&
13111
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13112
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13113
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13114
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13115
      # icc doesn't choke on unknown options, it will just issue warnings
13116
      # or remarks (even with -Werror).  So we grep stderr for any message
13117
      # that says an option was ignored or not supported.
13118
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13119
      #   icc: Command line warning: ignoring option '-M'; no argument required
13120
      # The diagnosis changed in icc 8.0:
13121
      #   icc: Command line remark: option '-MP' not supported
13122
      if (grep 'ignoring option' conftest.err ||
13123
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13124
        am_cv_CC_dependencies_compiler_type=$depmode
13125
        break
13126
      fi
13127
    fi
13128
  done
13129
 
13130
  cd ..
13131
  rm -rf conftest.dir
13132
else
13133
  am_cv_CC_dependencies_compiler_type=none
13134
fi
13135
 
13136
fi
13137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13138
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13139
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13140
 
13141
 if
13142
  test "x$enable_dependency_tracking" != xno \
13143
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13144
  am__fastdepCC_TRUE=
13145
  am__fastdepCC_FALSE='#'
13146
else
13147
  am__fastdepCC_TRUE='#'
13148
  am__fastdepCC_FALSE=
13149
fi
13150
 
13151
 
13152
 
13153
test ! -z "$GCC" &&  CFLAGS="$CFLAGS -Wall -W -Wundef -Wshadow -Wsequence-point"
13154
 
13155
ac_ext=cpp
13156
ac_cpp='$CXXCPP $CPPFLAGS'
13157
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13160
if test -z "$CXX"; then
13161
  if test -n "$CCC"; then
13162
    CXX=$CCC
13163
  else
13164
    if test -n "$ac_tool_prefix"; then
13165
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13166
  do
13167
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13168
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13170
$as_echo_n "checking for $ac_word... " >&6; }
13171
if ${ac_cv_prog_CXX+:} false; then :
13172
  $as_echo_n "(cached) " >&6
13173
else
13174
  if test -n "$CXX"; then
13175
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13176
else
13177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178
for as_dir in $PATH
13179
do
13180
  IFS=$as_save_IFS
13181
  test -z "$as_dir" && as_dir=.
13182
    for ac_exec_ext in '' $ac_executable_extensions; do
13183
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13185
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186
    break 2
13187
  fi
13188
done
13189
  done
13190
IFS=$as_save_IFS
13191
 
13192
fi
13193
fi
13194
CXX=$ac_cv_prog_CXX
13195
if test -n "$CXX"; then
13196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13197
$as_echo "$CXX" >&6; }
13198
else
13199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200
$as_echo "no" >&6; }
13201
fi
13202
 
13203
 
13204
    test -n "$CXX" && break
13205
  done
13206
fi
13207
if test -z "$CXX"; then
13208
  ac_ct_CXX=$CXX
13209
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13210
do
13211
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13212
set dummy $ac_prog; ac_word=$2
13213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214
$as_echo_n "checking for $ac_word... " >&6; }
13215
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13216
  $as_echo_n "(cached) " >&6
13217
else
13218
  if test -n "$ac_ct_CXX"; then
13219
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13220
else
13221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222
for as_dir in $PATH
13223
do
13224
  IFS=$as_save_IFS
13225
  test -z "$as_dir" && as_dir=.
13226
    for ac_exec_ext in '' $ac_executable_extensions; do
13227
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13228
    ac_cv_prog_ac_ct_CXX="$ac_prog"
13229
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230
    break 2
13231
  fi
13232
done
13233
  done
13234
IFS=$as_save_IFS
13235
 
13236
fi
13237
fi
13238
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13239
if test -n "$ac_ct_CXX"; then
13240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13241
$as_echo "$ac_ct_CXX" >&6; }
13242
else
13243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244
$as_echo "no" >&6; }
13245
fi
13246
 
13247
 
13248
  test -n "$ac_ct_CXX" && break
13249
done
13250
 
13251
  if test "x$ac_ct_CXX" = x; then
13252
    CXX="g++"
13253
  else
13254
    case $cross_compiling:$ac_tool_warned in
13255
yes:)
13256
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13257
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13258
ac_tool_warned=yes ;;
13259
esac
13260
    CXX=$ac_ct_CXX
13261
  fi
13262
fi
13263
 
13264
  fi
13265
fi
13266
# Provide some information about the compiler.
13267
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13268
set X $ac_compile
13269
ac_compiler=$2
13270
for ac_option in --version -v -V -qversion; do
13271
  { { ac_try="$ac_compiler $ac_option >&5"
13272
case "(($ac_try" in
13273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274
  *) ac_try_echo=$ac_try;;
13275
esac
13276
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13277
$as_echo "$ac_try_echo"; } >&5
13278
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13279
  ac_status=$?
13280
  if test -s conftest.err; then
13281
    sed '10a\
13282
... rest of stderr output deleted ...
13283
         10q' conftest.err >conftest.er1
13284
    cat conftest.er1 >&5
13285
  fi
13286
  rm -f conftest.er1 conftest.err
13287
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13288
  test $ac_status = 0; }
13289
done
13290
 
13291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13292
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13293
if ${ac_cv_cxx_compiler_gnu+:} false; then :
13294
  $as_echo_n "(cached) " >&6
13295
else
13296
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297
/* end confdefs.h.  */
13298
 
13299
int
13300
main ()
13301
{
13302
#ifndef __GNUC__
13303
       choke me
13304
#endif
13305
 
13306
  ;
13307
  return 0;
13308
}
13309
_ACEOF
13310
if ac_fn_cxx_try_compile "$LINENO"; then :
13311
  ac_compiler_gnu=yes
13312
else
13313
  ac_compiler_gnu=no
13314
fi
13315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13317
 
13318
fi
13319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13320
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13321
if test $ac_compiler_gnu = yes; then
13322
  GXX=yes
13323
else
13324
  GXX=
13325
fi
13326
ac_test_CXXFLAGS=${CXXFLAGS+set}
13327
ac_save_CXXFLAGS=$CXXFLAGS
13328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13329
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13330
if ${ac_cv_prog_cxx_g+:} false; then :
13331
  $as_echo_n "(cached) " >&6
13332
else
13333
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13334
   ac_cxx_werror_flag=yes
13335
   ac_cv_prog_cxx_g=no
13336
   CXXFLAGS="-g"
13337
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338
/* end confdefs.h.  */
13339
 
13340
int
13341
main ()
13342
{
13343
 
13344
  ;
13345
  return 0;
13346
}
13347
_ACEOF
13348
if ac_fn_cxx_try_compile "$LINENO"; then :
13349
  ac_cv_prog_cxx_g=yes
13350
else
13351
  CXXFLAGS=""
13352
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353
/* end confdefs.h.  */
13354
 
13355
int
13356
main ()
13357
{
13358
 
13359
  ;
13360
  return 0;
13361
}
13362
_ACEOF
13363
if ac_fn_cxx_try_compile "$LINENO"; then :
13364
 
13365
else
13366
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13367
	 CXXFLAGS="-g"
13368
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369
/* end confdefs.h.  */
13370
 
13371
int
13372
main ()
13373
{
13374
 
13375
  ;
13376
  return 0;
13377
}
13378
_ACEOF
13379
if ac_fn_cxx_try_compile "$LINENO"; then :
13380
  ac_cv_prog_cxx_g=yes
13381
fi
13382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383
fi
13384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385
fi
13386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13388
fi
13389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13390
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13391
if test "$ac_test_CXXFLAGS" = set; then
13392
  CXXFLAGS=$ac_save_CXXFLAGS
13393
elif test $ac_cv_prog_cxx_g = yes; then
13394
  if test "$GXX" = yes; then
13395
    CXXFLAGS="-g -O2"
13396
  else
13397
    CXXFLAGS="-g"
13398
  fi
13399
else
13400
  if test "$GXX" = yes; then
13401
    CXXFLAGS="-O2"
13402
  else
13403
    CXXFLAGS=
13404
  fi
13405
fi
13406
ac_ext=c
13407
ac_cpp='$CPP $CPPFLAGS'
13408
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13409
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13410
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13411
 
13412
depcc="$CXX"  am_compiler_list=
13413
 
13414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13415
$as_echo_n "checking dependency style of $depcc... " >&6; }
13416
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13417
  $as_echo_n "(cached) " >&6
13418
else
13419
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13420
  # We make a subdir and do the tests there.  Otherwise we can end up
13421
  # making bogus files that we don't know about and never remove.  For
13422
  # instance it was reported that on HP-UX the gcc test will end up
13423
  # making a dummy file named 'D' -- because '-MD' means "put the output
13424
  # in D".
13425
  rm -rf conftest.dir
13426
  mkdir conftest.dir
13427
  # Copy depcomp to subdir because otherwise we won't find it if we're
13428
  # using a relative directory.
13429
  cp "$am_depcomp" conftest.dir
13430
  cd conftest.dir
13431
  # We will build objects and dependencies in a subdirectory because
13432
  # it helps to detect inapplicable dependency modes.  For instance
13433
  # both Tru64's cc and ICC support -MD to output dependencies as a
13434
  # side effect of compilation, but ICC will put the dependencies in
13435
  # the current directory while Tru64 will put them in the object
13436
  # directory.
13437
  mkdir sub
13438
 
13439
  am_cv_CXX_dependencies_compiler_type=none
13440
  if test "$am_compiler_list" = ""; then
13441
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13442
  fi
13443
  am__universal=false
13444
  case " $depcc " in #(
13445
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13446
     esac
13447
 
13448
  for depmode in $am_compiler_list; do
13449
    # Setup a source with many dependencies, because some compilers
13450
    # like to wrap large dependency lists on column 80 (with \), and
13451
    # we should not choose a depcomp mode which is confused by this.
13452
    #
13453
    # We need to recreate these files for each test, as the compiler may
13454
    # overwrite some of them when testing with obscure command lines.
13455
    # This happens at least with the AIX C compiler.
13456
    : > sub/conftest.c
13457
    for i in 1 2 3 4 5 6; do
13458
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13459
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13460
      # Solaris 10 /bin/sh.
13461
      echo '/* dummy */' > sub/conftst$i.h
13462
    done
13463
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13464
 
13465
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13466
    # mode.  It turns out that the SunPro C++ compiler does not properly
13467
    # handle '-M -o', and we need to detect this.  Also, some Intel
13468
    # versions had trouble with output in subdirs.
13469
    am__obj=sub/conftest.${OBJEXT-o}
13470
    am__minus_obj="-o $am__obj"
13471
    case $depmode in
13472
    gcc)
13473
      # This depmode causes a compiler race in universal mode.
13474
      test "$am__universal" = false || continue
13475
      ;;
13476
    nosideeffect)
13477
      # After this tag, mechanisms are not by side-effect, so they'll
13478
      # only be used when explicitly requested.
13479
      if test "x$enable_dependency_tracking" = xyes; then
13480
	continue
13481
      else
13482
	break
13483
      fi
13484
      ;;
13485
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13486
      # This compiler won't grok '-c -o', but also, the minuso test has
13487
      # not run yet.  These depmodes are late enough in the game, and
13488
      # so weak that their functioning should not be impacted.
13489
      am__obj=conftest.${OBJEXT-o}
13490
      am__minus_obj=
13491
      ;;
13492
    none) break ;;
13493
    esac
13494
    if depmode=$depmode \
13495
       source=sub/conftest.c object=$am__obj \
13496
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13497
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13498
         >/dev/null 2>conftest.err &&
13499
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13500
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13501
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13502
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13503
      # icc doesn't choke on unknown options, it will just issue warnings
13504
      # or remarks (even with -Werror).  So we grep stderr for any message
13505
      # that says an option was ignored or not supported.
13506
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13507
      #   icc: Command line warning: ignoring option '-M'; no argument required
13508
      # The diagnosis changed in icc 8.0:
13509
      #   icc: Command line remark: option '-MP' not supported
13510
      if (grep 'ignoring option' conftest.err ||
13511
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13512
        am_cv_CXX_dependencies_compiler_type=$depmode
13513
        break
13514
      fi
13515
    fi
13516
  done
13517
 
13518
  cd ..
13519
  rm -rf conftest.dir
13520
else
13521
  am_cv_CXX_dependencies_compiler_type=none
13522
fi
13523
 
13524
fi
13525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13526
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13527
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13528
 
13529
 if
13530
  test "x$enable_dependency_tracking" != xno \
13531
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13532
  am__fastdepCXX_TRUE=
13533
  am__fastdepCXX_FALSE='#'
13534
else
13535
  am__fastdepCXX_TRUE='#'
13536
  am__fastdepCXX_FALSE=
13537
fi
13538
 
13539
 
13540
 
13541
 
13542
func_stripname_cnf ()
13543
{
13544
  case $2 in
13545
  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13546
  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13547
  esac
13548
} # func_stripname_cnf
13549
 
13550
      if test -n "$CXX" && ( test no != "$CXX" &&
13551
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13552
    (test g++ != "$CXX"))); then
13553
  ac_ext=cpp
13554
ac_cpp='$CXXCPP $CPPFLAGS'
13555
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13556
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13557
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13559
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13560
if test -z "$CXXCPP"; then
13561
  if ${ac_cv_prog_CXXCPP+:} false; then :
13562
  $as_echo_n "(cached) " >&6
13563
else
13564
      # Double quotes because CXXCPP needs to be expanded
13565
    for CXXCPP in "$CXX -E" "/lib/cpp"
13566
    do
13567
      ac_preproc_ok=false
13568
for ac_cxx_preproc_warn_flag in '' yes
13569
do
13570
  # Use a header file that comes with gcc, so configuring glibc
13571
  # with a fresh cross-compiler works.
13572
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13573
  # <limits.h> exists even on freestanding compilers.
13574
  # On the NeXT, cc -E runs the code through the compiler's parser,
13575
  # not just through cpp. "Syntax error" is here to catch this case.
13576
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577
/* end confdefs.h.  */
13578
#ifdef __STDC__
13579
# include <limits.h>
13580
#else
13581
# include <assert.h>
13582
#endif
13583
		     Syntax error
13584
_ACEOF
13585
if ac_fn_cxx_try_cpp "$LINENO"; then :
13586
 
13587
else
13588
  # Broken: fails on valid input.
13589
continue
13590
fi
13591
rm -f conftest.err conftest.i conftest.$ac_ext
13592
 
13593
  # OK, works on sane cases.  Now check whether nonexistent headers
13594
  # can be detected and how.
13595
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596
/* end confdefs.h.  */
13597
#include <ac_nonexistent.h>
13598
_ACEOF
13599
if ac_fn_cxx_try_cpp "$LINENO"; then :
13600
  # Broken: success on invalid input.
13601
continue
13602
else
13603
  # Passes both tests.
13604
ac_preproc_ok=:
13605
break
13606
fi
13607
rm -f conftest.err conftest.i conftest.$ac_ext
13608
 
13609
done
13610
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13611
rm -f conftest.i conftest.err conftest.$ac_ext
13612
if $ac_preproc_ok; then :
13613
  break
13614
fi
13615
 
13616
    done
13617
    ac_cv_prog_CXXCPP=$CXXCPP
13618
 
13619
fi
13620
  CXXCPP=$ac_cv_prog_CXXCPP
13621
else
13622
  ac_cv_prog_CXXCPP=$CXXCPP
13623
fi
13624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13625
$as_echo "$CXXCPP" >&6; }
13626
ac_preproc_ok=false
13627
for ac_cxx_preproc_warn_flag in '' yes
13628
do
13629
  # Use a header file that comes with gcc, so configuring glibc
13630
  # with a fresh cross-compiler works.
13631
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13632
  # <limits.h> exists even on freestanding compilers.
13633
  # On the NeXT, cc -E runs the code through the compiler's parser,
13634
  # not just through cpp. "Syntax error" is here to catch this case.
13635
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636
/* end confdefs.h.  */
13637
#ifdef __STDC__
13638
# include <limits.h>
13639
#else
13640
# include <assert.h>
13641
#endif
13642
		     Syntax error
13643
_ACEOF
13644
if ac_fn_cxx_try_cpp "$LINENO"; then :
13645
 
13646
else
13647
  # Broken: fails on valid input.
13648
continue
13649
fi
13650
rm -f conftest.err conftest.i conftest.$ac_ext
13651
 
13652
  # OK, works on sane cases.  Now check whether nonexistent headers
13653
  # can be detected and how.
13654
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655
/* end confdefs.h.  */
13656
#include <ac_nonexistent.h>
13657
_ACEOF
13658
if ac_fn_cxx_try_cpp "$LINENO"; then :
13659
  # Broken: success on invalid input.
13660
continue
13661
else
13662
  # Passes both tests.
13663
ac_preproc_ok=:
13664
break
13665
fi
13666
rm -f conftest.err conftest.i conftest.$ac_ext
13667
 
13668
done
13669
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13670
rm -f conftest.i conftest.err conftest.$ac_ext
13671
if $ac_preproc_ok; then :
13672
 
13673
else
13674
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13675
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13676
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13677
See \`config.log' for more details" "$LINENO" 5; }
13678
fi
13679
 
13680
ac_ext=c
13681
ac_cpp='$CPP $CPPFLAGS'
13682
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13683
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13684
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13685
 
13686
else
13687
  _lt_caught_CXX_error=yes
13688
fi
13689
 
13690
ac_ext=cpp
13691
ac_cpp='$CXXCPP $CPPFLAGS'
13692
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13695
 
13696
archive_cmds_need_lc_CXX=no
13697
allow_undefined_flag_CXX=
13698
always_export_symbols_CXX=no
13699
archive_expsym_cmds_CXX=
13700
compiler_needs_object_CXX=no
13701
export_dynamic_flag_spec_CXX=
13702
hardcode_direct_CXX=no
13703
hardcode_direct_absolute_CXX=no
13704
hardcode_libdir_flag_spec_CXX=
13705
hardcode_libdir_separator_CXX=
13706
hardcode_minus_L_CXX=no
13707
hardcode_shlibpath_var_CXX=unsupported
13708
hardcode_automatic_CXX=no
13709
inherit_rpath_CXX=no
13710
module_cmds_CXX=
13711
module_expsym_cmds_CXX=
13712
link_all_deplibs_CXX=unknown
13713
old_archive_cmds_CXX=$old_archive_cmds
13714
reload_flag_CXX=$reload_flag
13715
reload_cmds_CXX=$reload_cmds
13716
no_undefined_flag_CXX=
13717
whole_archive_flag_spec_CXX=
13718
enable_shared_with_static_runtimes_CXX=no
13719
 
13720
# Source file extension for C++ test sources.
13721
ac_ext=cpp
13722
 
13723
# Object file extension for compiled C++ test sources.
13724
objext=o
13725
objext_CXX=$objext
13726
 
13727
# No sense in running all these tests if we already determined that
13728
# the CXX compiler isn't working.  Some variables (like enable_shared)
13729
# are currently assumed to apply to all compilers on this platform,
13730
# and will be corrupted by setting them based on a non-working compiler.
13731
if test yes != "$_lt_caught_CXX_error"; then
13732
  # Code to be used in simple compile tests
13733
  lt_simple_compile_test_code="int some_variable = 0;"
13734
 
13735
  # Code to be used in simple link tests
13736
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13737
 
13738
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13739
 
13740
 
13741
 
13742
 
13743
 
13744
 
13745
# If no C compiler was specified, use CC.
13746
LTCC=${LTCC-"$CC"}
13747
 
13748
# If no C compiler flags were specified, use CFLAGS.
13749
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13750
 
13751
# Allow CC to be a program name with arguments.
13752
compiler=$CC
13753
 
13754
 
13755
  # save warnings/boilerplate of simple test code
13756
  ac_outfile=conftest.$ac_objext
13757
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13758
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13759
_lt_compiler_boilerplate=`cat conftest.err`
13760
$RM conftest*
13761
 
13762
  ac_outfile=conftest.$ac_objext
13763
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13764
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13765
_lt_linker_boilerplate=`cat conftest.err`
13766
$RM -r conftest*
13767
 
13768
 
13769
  # Allow CC to be a program name with arguments.
13770
  lt_save_CC=$CC
13771
  lt_save_CFLAGS=$CFLAGS
13772
  lt_save_LD=$LD
13773
  lt_save_GCC=$GCC
13774
  GCC=$GXX
13775
  lt_save_with_gnu_ld=$with_gnu_ld
13776
  lt_save_path_LD=$lt_cv_path_LD
13777
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13778
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13779
  else
13780
    $as_unset lt_cv_prog_gnu_ld
13781
  fi
13782
  if test -n "${lt_cv_path_LDCXX+set}"; then
13783
    lt_cv_path_LD=$lt_cv_path_LDCXX
13784
  else
13785
    $as_unset lt_cv_path_LD
13786
  fi
13787
  test -z "${LDCXX+set}" || LD=$LDCXX
13788
  CC=${CXX-"c++"}
13789
  CFLAGS=$CXXFLAGS
13790
  compiler=$CC
13791
  compiler_CXX=$CC
13792
  func_cc_basename $compiler
13793
cc_basename=$func_cc_basename_result
13794
 
13795
 
13796
  if test -n "$compiler"; then
13797
    # We don't want -fno-exception when compiling C++ code, so set the
13798
    # no_builtin_flag separately
13799
    if test yes = "$GXX"; then
13800
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13801
    else
13802
      lt_prog_compiler_no_builtin_flag_CXX=
13803
    fi
13804
 
13805
    if test yes = "$GXX"; then
13806
      # Set up default GNU C++ configuration
13807
 
13808
 
13809
 
13810
# Check whether --with-gnu-ld was given.
13811
if test "${with_gnu_ld+set}" = set; then :
13812
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13813
else
13814
  with_gnu_ld=no
13815
fi
13816
 
13817
ac_prog=ld
13818
if test yes = "$GCC"; then
13819
  # Check if gcc -print-prog-name=ld gives a path.
13820
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13821
$as_echo_n "checking for ld used by $CC... " >&6; }
13822
  case $host in
13823
  *-*-mingw*)
13824
    # gcc leaves a trailing carriage return, which upsets mingw
13825
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13826
  *)
13827
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13828
  esac
13829
  case $ac_prog in
13830
    # Accept absolute paths.
13831
    [\\/]* | ?:[\\/]*)
13832
      re_direlt='/[^/][^/]*/\.\./'
13833
      # Canonicalize the pathname of ld
13834
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13835
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13836
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13837
      done
13838
      test -z "$LD" && LD=$ac_prog
13839
      ;;
13840
  "")
13841
    # If it fails, then pretend we aren't using GCC.
13842
    ac_prog=ld
13843
    ;;
13844
  *)
13845
    # If it is relative, then search for the first ld in PATH.
13846
    with_gnu_ld=unknown
13847
    ;;
13848
  esac
13849
elif test yes = "$with_gnu_ld"; then
13850
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13851
$as_echo_n "checking for GNU ld... " >&6; }
13852
else
13853
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13854
$as_echo_n "checking for non-GNU ld... " >&6; }
13855
fi
13856
if ${lt_cv_path_LD+:} false; then :
13857
  $as_echo_n "(cached) " >&6
13858
else
13859
  if test -z "$LD"; then
13860
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13861
  for ac_dir in $PATH; do
13862
    IFS=$lt_save_ifs
13863
    test -z "$ac_dir" && ac_dir=.
13864
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13865
      lt_cv_path_LD=$ac_dir/$ac_prog
13866
      # Check to see if the program is GNU ld.  I'd rather use --version,
13867
      # but apparently some variants of GNU ld only accept -v.
13868
      # Break only if it was the GNU/non-GNU ld that we prefer.
13869
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13870
      *GNU* | *'with BFD'*)
13871
	test no != "$with_gnu_ld" && break
13872
	;;
13873
      *)
13874
	test yes != "$with_gnu_ld" && break
13875
	;;
13876
      esac
13877
    fi
13878
  done
13879
  IFS=$lt_save_ifs
13880
else
13881
  lt_cv_path_LD=$LD # Let the user override the test with a path.
13882
fi
13883
fi
13884
 
13885
LD=$lt_cv_path_LD
13886
if test -n "$LD"; then
13887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13888
$as_echo "$LD" >&6; }
13889
else
13890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891
$as_echo "no" >&6; }
13892
fi
13893
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13895
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13896
if ${lt_cv_prog_gnu_ld+:} false; then :
13897
  $as_echo_n "(cached) " >&6
13898
else
13899
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13900
case `$LD -v 2>&1 </dev/null` in
13901
*GNU* | *'with BFD'*)
13902
  lt_cv_prog_gnu_ld=yes
13903
  ;;
13904
*)
13905
  lt_cv_prog_gnu_ld=no
13906
  ;;
13907
esac
13908
fi
13909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13910
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13911
with_gnu_ld=$lt_cv_prog_gnu_ld
13912
 
13913
 
13914
 
13915
 
13916
 
13917
 
13918
 
13919
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13920
      # archiving commands below assume that GNU ld is being used.
13921
      if test yes = "$with_gnu_ld"; then
13922
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13923
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13924
 
13925
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13926
        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13927
 
13928
        # If archive_cmds runs LD, not CC, wlarc should be empty
13929
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13930
        #     investigate it a little bit more. (MM)
13931
        wlarc='$wl'
13932
 
13933
        # ancient GNU ld didn't support --whole-archive et. al.
13934
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13935
	  $GREP 'no-whole-archive' > /dev/null; then
13936
          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13937
        else
13938
          whole_archive_flag_spec_CXX=
13939
        fi
13940
      else
13941
        with_gnu_ld=no
13942
        wlarc=
13943
 
13944
        # A generic and very simple default shared library creation
13945
        # command for GNU C++ for the case where it uses the native
13946
        # linker, instead of GNU ld.  If possible, this setting should
13947
        # overridden to take advantage of the native linker features on
13948
        # the platform it is being used on.
13949
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13950
      fi
13951
 
13952
      # Commands to make compiler produce verbose output that lists
13953
      # what "hidden" libraries, object files and flags are used when
13954
      # linking a shared library.
13955
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13956
 
13957
    else
13958
      GXX=no
13959
      with_gnu_ld=no
13960
      wlarc=
13961
    fi
13962
 
13963
    # PORTME: fill in a description of your system's C++ link characteristics
13964
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13965
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13966
    ld_shlibs_CXX=yes
13967
    case $host_os in
13968
      aix3*)
13969
        # FIXME: insert proper C++ library support
13970
        ld_shlibs_CXX=no
13971
        ;;
13972
      aix[4-9]*)
13973
        if test ia64 = "$host_cpu"; then
13974
          # On IA64, the linker does run time linking by default, so we don't
13975
          # have to do anything special.
13976
          aix_use_runtimelinking=no
13977
          exp_sym_flag='-Bexport'
13978
          no_entry_flag=
13979
        else
13980
          aix_use_runtimelinking=no
13981
 
13982
          # Test if we are trying to use run time linking or normal
13983
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13984
          # have runtime linking enabled, and use it for executables.
13985
          # For shared libraries, we enable/disable runtime linking
13986
          # depending on the kind of the shared library created -
13987
          # when "with_aix_soname,aix_use_runtimelinking" is:
13988
          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13989
          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13990
          #            lib.a           static archive
13991
          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13992
          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13993
          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13994
          #            lib.a(lib.so.V) shared, rtl:no
13995
          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13996
          #            lib.a           static archive
13997
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13998
	    for ld_flag in $LDFLAGS; do
13999
	      case $ld_flag in
14000
	      *-brtl*)
14001
	        aix_use_runtimelinking=yes
14002
	        break
14003
	        ;;
14004
	      esac
14005
	    done
14006
	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14007
	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14008
	      # so we don't have lib.a shared libs to link our executables.
14009
	      # We have to force runtime linking in this case.
14010
	      aix_use_runtimelinking=yes
14011
	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14012
	    fi
14013
	    ;;
14014
          esac
14015
 
14016
          exp_sym_flag='-bexport'
14017
          no_entry_flag='-bnoentry'
14018
        fi
14019
 
14020
        # When large executables or shared objects are built, AIX ld can
14021
        # have problems creating the table of contents.  If linking a library
14022
        # or program results in "error TOC overflow" add -mminimal-toc to
14023
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14024
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14025
 
14026
        archive_cmds_CXX=''
14027
        hardcode_direct_CXX=yes
14028
        hardcode_direct_absolute_CXX=yes
14029
        hardcode_libdir_separator_CXX=':'
14030
        link_all_deplibs_CXX=yes
14031
        file_list_spec_CXX='$wl-f,'
14032
        case $with_aix_soname,$aix_use_runtimelinking in
14033
        aix,*) ;;	# no import file
14034
        svr4,* | *,yes) # use import file
14035
          # The Import File defines what to hardcode.
14036
          hardcode_direct_CXX=no
14037
          hardcode_direct_absolute_CXX=no
14038
          ;;
14039
        esac
14040
 
14041
        if test yes = "$GXX"; then
14042
          case $host_os in aix4.[012]|aix4.[012].*)
14043
          # We only want to do this on AIX 4.2 and lower, the check
14044
          # below for broken collect2 doesn't work under 4.3+
14045
	  collect2name=`$CC -print-prog-name=collect2`
14046
	  if test -f "$collect2name" &&
14047
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14048
	  then
14049
	    # We have reworked collect2
14050
	    :
14051
	  else
14052
	    # We have old collect2
14053
	    hardcode_direct_CXX=unsupported
14054
	    # It fails to find uninstalled libraries when the uninstalled
14055
	    # path is not listed in the libpath.  Setting hardcode_minus_L
14056
	    # to unsupported forces relinking
14057
	    hardcode_minus_L_CXX=yes
14058
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14059
	    hardcode_libdir_separator_CXX=
14060
	  fi
14061
          esac
14062
          shared_flag='-shared'
14063
	  if test yes = "$aix_use_runtimelinking"; then
14064
	    shared_flag=$shared_flag' $wl-G'
14065
	  fi
14066
	  # Need to ensure runtime linking is disabled for the traditional
14067
	  # shared library, or the linker may eventually find shared libraries
14068
	  # /with/ Import File - we do not want to mix them.
14069
	  shared_flag_aix='-shared'
14070
	  shared_flag_svr4='-shared $wl-G'
14071
        else
14072
          # not using gcc
14073
          if test ia64 = "$host_cpu"; then
14074
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14075
	  # chokes on -Wl,-G. The following line is correct:
14076
	  shared_flag='-G'
14077
          else
14078
	    if test yes = "$aix_use_runtimelinking"; then
14079
	      shared_flag='$wl-G'
14080
	    else
14081
	      shared_flag='$wl-bM:SRE'
14082
	    fi
14083
	    shared_flag_aix='$wl-bM:SRE'
14084
	    shared_flag_svr4='$wl-G'
14085
          fi
14086
        fi
14087
 
14088
        export_dynamic_flag_spec_CXX='$wl-bexpall'
14089
        # It seems that -bexpall does not export symbols beginning with
14090
        # underscore (_), so it is better to generate a list of symbols to
14091
	# export.
14092
        always_export_symbols_CXX=yes
14093
	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14094
          # Warning - without using the other runtime loading flags (-brtl),
14095
          # -berok will link without error, but may produce a broken library.
14096
          # The "-G" linker flag allows undefined symbols.
14097
          no_undefined_flag_CXX='-bernotok'
14098
          # Determine the default libpath from the value encoded in an empty
14099
          # executable.
14100
          if test set = "${lt_cv_aix_libpath+set}"; then
14101
  aix_libpath=$lt_cv_aix_libpath
14102
else
14103
  if ${lt_cv_aix_libpath__CXX+:} false; then :
14104
  $as_echo_n "(cached) " >&6
14105
else
14106
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107
/* end confdefs.h.  */
14108
 
14109
int
14110
main ()
14111
{
14112
 
14113
  ;
14114
  return 0;
14115
}
14116
_ACEOF
14117
if ac_fn_cxx_try_link "$LINENO"; then :
14118
 
14119
  lt_aix_libpath_sed='
14120
      /Import File Strings/,/^$/ {
14121
	  /^0/ {
14122
	      s/^0  *\([^ ]*\) *$/\1/
14123
	      p
14124
	  }
14125
      }'
14126
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14127
  # Check for a 64-bit object if we didn't find anything.
14128
  if test -z "$lt_cv_aix_libpath__CXX"; then
14129
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14130
  fi
14131
fi
14132
rm -f core conftest.err conftest.$ac_objext \
14133
    conftest$ac_exeext conftest.$ac_ext
14134
  if test -z "$lt_cv_aix_libpath__CXX"; then
14135
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14136
  fi
14137
 
14138
fi
14139
 
14140
  aix_libpath=$lt_cv_aix_libpath__CXX
14141
fi
14142
 
14143
          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14144
 
14145
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14146
        else
14147
          if test ia64 = "$host_cpu"; then
14148
	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14149
	    allow_undefined_flag_CXX="-z nodefs"
14150
	    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"
14151
          else
14152
	    # Determine the default libpath from the value encoded in an
14153
	    # empty executable.
14154
	    if test set = "${lt_cv_aix_libpath+set}"; then
14155
  aix_libpath=$lt_cv_aix_libpath
14156
else
14157
  if ${lt_cv_aix_libpath__CXX+:} false; then :
14158
  $as_echo_n "(cached) " >&6
14159
else
14160
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161
/* end confdefs.h.  */
14162
 
14163
int
14164
main ()
14165
{
14166
 
14167
  ;
14168
  return 0;
14169
}
14170
_ACEOF
14171
if ac_fn_cxx_try_link "$LINENO"; then :
14172
 
14173
  lt_aix_libpath_sed='
14174
      /Import File Strings/,/^$/ {
14175
	  /^0/ {
14176
	      s/^0  *\([^ ]*\) *$/\1/
14177
	      p
14178
	  }
14179
      }'
14180
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14181
  # Check for a 64-bit object if we didn't find anything.
14182
  if test -z "$lt_cv_aix_libpath__CXX"; then
14183
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14184
  fi
14185
fi
14186
rm -f core conftest.err conftest.$ac_objext \
14187
    conftest$ac_exeext conftest.$ac_ext
14188
  if test -z "$lt_cv_aix_libpath__CXX"; then
14189
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14190
  fi
14191
 
14192
fi
14193
 
14194
  aix_libpath=$lt_cv_aix_libpath__CXX
14195
fi
14196
 
14197
	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14198
	    # Warning - without using the other run time loading flags,
14199
	    # -berok will link without error, but may produce a broken library.
14200
	    no_undefined_flag_CXX=' $wl-bernotok'
14201
	    allow_undefined_flag_CXX=' $wl-berok'
14202
	    if test yes = "$with_gnu_ld"; then
14203
	      # We only use this code for GNU lds that support --whole-archive.
14204
	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14205
	    else
14206
	      # Exported symbols can be pulled into shared objects from archives
14207
	      whole_archive_flag_spec_CXX='$convenience'
14208
	    fi
14209
	    archive_cmds_need_lc_CXX=yes
14210
	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14211
	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14212
	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14213
	    if test svr4 != "$with_aix_soname"; then
14214
	      # This is similar to how AIX traditionally builds its shared
14215
	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14216
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14217
	    fi
14218
	    if test aix != "$with_aix_soname"; then
14219
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14220
	    else
14221
	      # used by -dlpreopen to get the symbols
14222
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14223
	    fi
14224
	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14225
          fi
14226
        fi
14227
        ;;
14228
 
14229
      beos*)
14230
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14231
	  allow_undefined_flag_CXX=unsupported
14232
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14233
	  # support --undefined.  This deserves some investigation.  FIXME
14234
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14235
	else
14236
	  ld_shlibs_CXX=no
14237
	fi
14238
	;;
14239
 
14240
      chorus*)
14241
        case $cc_basename in
14242
          *)
14243
	  # FIXME: insert proper C++ library support
14244
	  ld_shlibs_CXX=no
14245
	  ;;
14246
        esac
14247
        ;;
14248
 
7 mjames 14249
      cygwin* | mingw* | pw32* | cegcc*)
2 mjames 14250
	case $GXX,$cc_basename in
14251
	,cl* | no,cl*)
14252
	  # Native MSVC
14253
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14254
	  # no search path for DLLs.
14255
	  hardcode_libdir_flag_spec_CXX=' '
14256
	  allow_undefined_flag_CXX=unsupported
14257
	  always_export_symbols_CXX=yes
14258
	  file_list_spec_CXX='@'
14259
	  # Tell ltmain to make .lib files, not .a files.
14260
	  libext=lib
14261
	  # Tell ltmain to make .dll files, not .so files.
14262
	  shrext_cmds=.dll
14263
	  # FIXME: Setting linknames here is a bad hack.
14264
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14265
	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14266
              cp "$export_symbols" "$output_objdir/$soname.def";
14267
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14268
            else
14269
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14270
            fi~
14271
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14272
            linknames='
14273
	  # The linker will not automatically build a static lib if we build a DLL.
14274
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14275
	  enable_shared_with_static_runtimes_CXX=yes
14276
	  # Don't use ranlib
14277
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14278
	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14279
            lt_tool_outputfile="@TOOL_OUTPUT@"~
14280
            case $lt_outputfile in
14281
              *.exe|*.EXE) ;;
14282
              *)
14283
                lt_outputfile=$lt_outputfile.exe
14284
                lt_tool_outputfile=$lt_tool_outputfile.exe
14285
                ;;
14286
            esac~
14287
            func_to_tool_file "$lt_outputfile"~
14288
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14289
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14290
              $RM "$lt_outputfile.manifest";
14291
            fi'
14292
	  ;;
14293
	*)
14294
	  # g++
14295
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14296
	  # as there is no search path for DLLs.
14297
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14298
	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14299
	  allow_undefined_flag_CXX=unsupported
14300
	  always_export_symbols_CXX=no
14301
	  enable_shared_with_static_runtimes_CXX=yes
14302
 
14303
	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14304
	    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'
14305
	    # If the export-symbols file already is a .def file, use it as
14306
	    # is; otherwise, prepend EXPORTS...
14307
	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14308
              cp $export_symbols $output_objdir/$soname.def;
14309
            else
14310
              echo EXPORTS > $output_objdir/$soname.def;
14311
              cat $export_symbols >> $output_objdir/$soname.def;
14312
            fi~
14313
            $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'
14314
	  else
14315
	    ld_shlibs_CXX=no
14316
	  fi
14317
	  ;;
14318
	esac
14319
	;;
14320
      darwin* | rhapsody*)
14321
 
14322
 
14323
  archive_cmds_need_lc_CXX=no
14324
  hardcode_direct_CXX=no
14325
  hardcode_automatic_CXX=yes
14326
  hardcode_shlibpath_var_CXX=unsupported
14327
  if test yes = "$lt_cv_ld_force_load"; then
14328
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14329
 
14330
  else
14331
    whole_archive_flag_spec_CXX=''
14332
  fi
14333
  link_all_deplibs_CXX=yes
14334
  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14335
  case $cc_basename in
14336
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14337
     *) _lt_dar_can_shared=$GCC ;;
14338
  esac
14339
  if test yes = "$_lt_dar_can_shared"; then
14340
    output_verbose_link_cmd=func_echo_all
14341
    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"
14342
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14343
    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"
14344
    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"
14345
       if test yes != "$lt_cv_apple_cc_single_mod"; then
14346
      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"
14347
      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"
14348
    fi
14349
 
14350
  else
14351
  ld_shlibs_CXX=no
14352
  fi
14353
 
14354
	;;
14355
 
14356
      os2*)
14357
	hardcode_libdir_flag_spec_CXX='-L$libdir'
14358
	hardcode_minus_L_CXX=yes
14359
	allow_undefined_flag_CXX=unsupported
14360
	shrext_cmds=.dll
14361
	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14362
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14363
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14364
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14365
	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14366
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14367
	  emximp -o $lib $output_objdir/$libname.def'
14368
	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14369
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14370
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14371
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14372
	  prefix_cmds="$SED"~
14373
	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14374
	    prefix_cmds="$prefix_cmds -e 1d";
14375
	  fi~
14376
	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14377
	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14378
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14379
	  emximp -o $lib $output_objdir/$libname.def'
14380
	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14381
	enable_shared_with_static_runtimes_CXX=yes
14382
	;;
14383
 
14384
      dgux*)
14385
        case $cc_basename in
14386
          ec++*)
14387
	    # FIXME: insert proper C++ library support
14388
	    ld_shlibs_CXX=no
14389
	    ;;
14390
          ghcx*)
14391
	    # Green Hills C++ Compiler
14392
	    # FIXME: insert proper C++ library support
14393
	    ld_shlibs_CXX=no
14394
	    ;;
14395
          *)
14396
	    # FIXME: insert proper C++ library support
14397
	    ld_shlibs_CXX=no
14398
	    ;;
14399
        esac
14400
        ;;
14401
 
14402
      freebsd2.*)
14403
        # C++ shared libraries reported to be fairly broken before
14404
	# switch to ELF
14405
        ld_shlibs_CXX=no
14406
        ;;
14407
 
14408
      freebsd-elf*)
14409
        archive_cmds_need_lc_CXX=no
14410
        ;;
14411
 
14412
      freebsd* | dragonfly*)
14413
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14414
        # conventions
14415
        ld_shlibs_CXX=yes
14416
        ;;
14417
 
14418
      haiku*)
14419
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14420
        link_all_deplibs_CXX=yes
14421
        ;;
14422
 
14423
      hpux9*)
14424
        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14425
        hardcode_libdir_separator_CXX=:
14426
        export_dynamic_flag_spec_CXX='$wl-E'
14427
        hardcode_direct_CXX=yes
14428
        hardcode_minus_L_CXX=yes # Not in the search PATH,
14429
				             # but as the default
14430
				             # location of the library.
14431
 
14432
        case $cc_basename in
14433
          CC*)
14434
            # FIXME: insert proper C++ library support
14435
            ld_shlibs_CXX=no
14436
            ;;
14437
          aCC*)
14438
            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14439
            # Commands to make compiler produce verbose output that lists
14440
            # what "hidden" libraries, object files and flags are used when
14441
            # linking a shared library.
14442
            #
14443
            # There doesn't appear to be a way to prevent this compiler from
14444
            # explicitly linking system object files so we need to strip them
14445
            # from the output so that they don't get included in the library
14446
            # dependencies.
14447
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14448
            ;;
14449
          *)
14450
            if test yes = "$GXX"; then
14451
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14452
            else
14453
              # FIXME: insert proper C++ library support
14454
              ld_shlibs_CXX=no
14455
            fi
14456
            ;;
14457
        esac
14458
        ;;
14459
 
14460
      hpux10*|hpux11*)
14461
        if test no = "$with_gnu_ld"; then
14462
	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14463
	  hardcode_libdir_separator_CXX=:
14464
 
14465
          case $host_cpu in
14466
            hppa*64*|ia64*)
14467
              ;;
14468
            *)
14469
	      export_dynamic_flag_spec_CXX='$wl-E'
14470
              ;;
14471
          esac
14472
        fi
14473
        case $host_cpu in
14474
          hppa*64*|ia64*)
14475
            hardcode_direct_CXX=no
14476
            hardcode_shlibpath_var_CXX=no
14477
            ;;
14478
          *)
14479
            hardcode_direct_CXX=yes
14480
            hardcode_direct_absolute_CXX=yes
14481
            hardcode_minus_L_CXX=yes # Not in the search PATH,
14482
					         # but as the default
14483
					         # location of the library.
14484
            ;;
14485
        esac
14486
 
14487
        case $cc_basename in
14488
          CC*)
14489
	    # FIXME: insert proper C++ library support
14490
	    ld_shlibs_CXX=no
14491
	    ;;
14492
          aCC*)
14493
	    case $host_cpu in
14494
	      hppa*64*)
14495
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14496
	        ;;
14497
	      ia64*)
14498
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14499
	        ;;
14500
	      *)
14501
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14502
	        ;;
14503
	    esac
14504
	    # Commands to make compiler produce verbose output that lists
14505
	    # what "hidden" libraries, object files and flags are used when
14506
	    # linking a shared library.
14507
	    #
14508
	    # There doesn't appear to be a way to prevent this compiler from
14509
	    # explicitly linking system object files so we need to strip them
14510
	    # from the output so that they don't get included in the library
14511
	    # dependencies.
14512
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14513
	    ;;
14514
          *)
14515
	    if test yes = "$GXX"; then
14516
	      if test no = "$with_gnu_ld"; then
14517
	        case $host_cpu in
14518
	          hppa*64*)
14519
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14520
	            ;;
14521
	          ia64*)
14522
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14523
	            ;;
14524
	          *)
14525
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14526
	            ;;
14527
	        esac
14528
	      fi
14529
	    else
14530
	      # FIXME: insert proper C++ library support
14531
	      ld_shlibs_CXX=no
14532
	    fi
14533
	    ;;
14534
        esac
14535
        ;;
14536
 
14537
      interix[3-9]*)
14538
	hardcode_direct_CXX=no
14539
	hardcode_shlibpath_var_CXX=no
14540
	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14541
	export_dynamic_flag_spec_CXX='$wl-E'
14542
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14543
	# Instead, shared libraries are loaded at an image base (0x10000000 by
14544
	# default) and relocated if they conflict, which is a slow very memory
14545
	# consuming and fragmenting process.  To avoid this, we pick a random,
14546
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14547
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14548
	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'
14549
	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'
14550
	;;
14551
      irix5* | irix6*)
14552
        case $cc_basename in
14553
          CC*)
14554
	    # SGI C++
14555
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14556
 
14557
	    # Archives containing C++ object files must be created using
14558
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14559
	    # necessary to make sure instantiated templates are included
14560
	    # in the archive.
14561
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14562
	    ;;
14563
          *)
14564
	    if test yes = "$GXX"; then
14565
	      if test no = "$with_gnu_ld"; then
14566
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14567
	      else
14568
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14569
	      fi
14570
	    fi
14571
	    link_all_deplibs_CXX=yes
14572
	    ;;
14573
        esac
14574
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14575
        hardcode_libdir_separator_CXX=:
14576
        inherit_rpath_CXX=yes
14577
        ;;
14578
 
14579
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14580
        case $cc_basename in
14581
          KCC*)
14582
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14583
 
14584
	    # KCC will only create a shared library if the output file
14585
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14586
	    # to its proper name (with version) after linking.
14587
	    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'
14588
	    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'
14589
	    # Commands to make compiler produce verbose output that lists
14590
	    # what "hidden" libraries, object files and flags are used when
14591
	    # linking a shared library.
14592
	    #
14593
	    # There doesn't appear to be a way to prevent this compiler from
14594
	    # explicitly linking system object files so we need to strip them
14595
	    # from the output so that they don't get included in the library
14596
	    # dependencies.
14597
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14598
 
14599
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14600
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14601
 
14602
	    # Archives containing C++ object files must be created using
14603
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14604
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14605
	    ;;
14606
	  icpc* | ecpc* )
14607
	    # Intel C++
14608
	    with_gnu_ld=yes
14609
	    # version 8.0 and above of icpc choke on multiply defined symbols
14610
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14611
	    # earlier do not add the objects themselves.
14612
	    case `$CC -V 2>&1` in
14613
	      *"Version 7."*)
14614
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14615
		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'
14616
		;;
14617
	      *)  # Version 8.0 or newer
14618
	        tmp_idyn=
14619
	        case $host_cpu in
14620
		  ia64*) tmp_idyn=' -i_dynamic';;
14621
		esac
14622
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14623
		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'
14624
		;;
14625
	    esac
14626
	    archive_cmds_need_lc_CXX=no
14627
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14628
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14629
	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14630
	    ;;
14631
          pgCC* | pgcpp*)
14632
            # Portland Group C++ compiler
14633
	    case `$CC -V` in
14634
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14635
	      prelink_cmds_CXX='tpldir=Template.dir~
14636
               rm -rf $tpldir~
14637
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14638
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14639
	      old_archive_cmds_CXX='tpldir=Template.dir~
14640
                rm -rf $tpldir~
14641
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14642
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14643
                $RANLIB $oldlib'
14644
	      archive_cmds_CXX='tpldir=Template.dir~
14645
                rm -rf $tpldir~
14646
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14647
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14648
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14649
                rm -rf $tpldir~
14650
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14651
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14652
	      ;;
14653
	    *) # Version 6 and above use weak symbols
14654
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14655
	      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'
14656
	      ;;
14657
	    esac
14658
 
14659
	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14660
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14661
	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14662
            ;;
14663
	  cxx*)
14664
	    # Compaq C++
14665
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14666
	    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'
14667
 
14668
	    runpath_var=LD_RUN_PATH
14669
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14670
	    hardcode_libdir_separator_CXX=:
14671
 
14672
	    # Commands to make compiler produce verbose output that lists
14673
	    # what "hidden" libraries, object files and flags are used when
14674
	    # linking a shared library.
14675
	    #
14676
	    # There doesn't appear to be a way to prevent this compiler from
14677
	    # explicitly linking system object files so we need to strip them
14678
	    # from the output so that they don't get included in the library
14679
	    # dependencies.
14680
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14681
	    ;;
14682
	  xl* | mpixl* | bgxl*)
14683
	    # IBM XL 8.0 on PPC, with GNU ld
14684
	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14685
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14686
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14687
	    if test yes = "$supports_anon_versioning"; then
14688
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14689
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14690
                echo "local: *; };" >> $output_objdir/$libname.ver~
14691
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14692
	    fi
14693
	    ;;
14694
	  *)
14695
	    case `$CC -V 2>&1 | sed 5q` in
14696
	    *Sun\ C*)
14697
	      # Sun C++ 5.9
14698
	      no_undefined_flag_CXX=' -zdefs'
14699
	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14700
	      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'
14701
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14702
	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14703
	      compiler_needs_object_CXX=yes
14704
 
14705
	      # Not sure whether something based on
14706
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14707
	      # would be better.
14708
	      output_verbose_link_cmd='func_echo_all'
14709
 
14710
	      # Archives containing C++ object files must be created using
14711
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14712
	      # necessary to make sure instantiated templates are included
14713
	      # in the archive.
14714
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14715
	      ;;
14716
	    esac
14717
	    ;;
14718
	esac
14719
	;;
14720
 
14721
      lynxos*)
14722
        # FIXME: insert proper C++ library support
14723
	ld_shlibs_CXX=no
14724
	;;
14725
 
14726
      m88k*)
14727
        # FIXME: insert proper C++ library support
14728
        ld_shlibs_CXX=no
14729
	;;
14730
 
14731
      mvs*)
14732
        case $cc_basename in
14733
          cxx*)
14734
	    # FIXME: insert proper C++ library support
14735
	    ld_shlibs_CXX=no
14736
	    ;;
14737
	  *)
14738
	    # FIXME: insert proper C++ library support
14739
	    ld_shlibs_CXX=no
14740
	    ;;
14741
	esac
14742
	;;
14743
 
14744
      netbsd*)
14745
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14746
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14747
	  wlarc=
14748
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14749
	  hardcode_direct_CXX=yes
14750
	  hardcode_shlibpath_var_CXX=no
14751
	fi
14752
	# Workaround some broken pre-1.5 toolchains
14753
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14754
	;;
14755
 
14756
      *nto* | *qnx*)
14757
        ld_shlibs_CXX=yes
14758
	;;
14759
 
14760
      openbsd* | bitrig*)
14761
	if test -f /usr/libexec/ld.so; then
14762
	  hardcode_direct_CXX=yes
14763
	  hardcode_shlibpath_var_CXX=no
14764
	  hardcode_direct_absolute_CXX=yes
14765
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14766
	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14767
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14768
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14769
	    export_dynamic_flag_spec_CXX='$wl-E'
14770
	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14771
	  fi
14772
	  output_verbose_link_cmd=func_echo_all
14773
	else
14774
	  ld_shlibs_CXX=no
14775
	fi
14776
	;;
14777
 
14778
      osf3* | osf4* | osf5*)
14779
        case $cc_basename in
14780
          KCC*)
14781
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14782
 
14783
	    # KCC will only create a shared library if the output file
14784
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14785
	    # to its proper name (with version) after linking.
14786
	    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'
14787
 
14788
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14789
	    hardcode_libdir_separator_CXX=:
14790
 
14791
	    # Archives containing C++ object files must be created using
14792
	    # the KAI C++ compiler.
14793
	    case $host in
14794
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14795
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14796
	    esac
14797
	    ;;
14798
          RCC*)
14799
	    # Rational C++ 2.4.1
14800
	    # FIXME: insert proper C++ library support
14801
	    ld_shlibs_CXX=no
14802
	    ;;
14803
          cxx*)
14804
	    case $host in
14805
	      osf3*)
14806
	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14807
	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14808
	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14809
		;;
14810
	      *)
14811
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14812
	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14813
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14814
                  echo "-hidden">> $lib.exp~
14815
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14816
                  $RM $lib.exp'
14817
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14818
		;;
14819
	    esac
14820
 
14821
	    hardcode_libdir_separator_CXX=:
14822
 
14823
	    # Commands to make compiler produce verbose output that lists
14824
	    # what "hidden" libraries, object files and flags are used when
14825
	    # linking a shared library.
14826
	    #
14827
	    # There doesn't appear to be a way to prevent this compiler from
14828
	    # explicitly linking system object files so we need to strip them
14829
	    # from the output so that they don't get included in the library
14830
	    # dependencies.
14831
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14832
	    ;;
14833
	  *)
14834
	    if test yes,no = "$GXX,$with_gnu_ld"; then
14835
	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14836
	      case $host in
14837
	        osf3*)
14838
	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14839
		  ;;
14840
	        *)
14841
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14842
		  ;;
14843
	      esac
14844
 
14845
	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14846
	      hardcode_libdir_separator_CXX=:
14847
 
14848
	      # Commands to make compiler produce verbose output that lists
14849
	      # what "hidden" libraries, object files and flags are used when
14850
	      # linking a shared library.
14851
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14852
 
14853
	    else
14854
	      # FIXME: insert proper C++ library support
14855
	      ld_shlibs_CXX=no
14856
	    fi
14857
	    ;;
14858
        esac
14859
        ;;
14860
 
14861
      psos*)
14862
        # FIXME: insert proper C++ library support
14863
        ld_shlibs_CXX=no
14864
        ;;
14865
 
14866
      sunos4*)
14867
        case $cc_basename in
14868
          CC*)
14869
	    # Sun C++ 4.x
14870
	    # FIXME: insert proper C++ library support
14871
	    ld_shlibs_CXX=no
14872
	    ;;
14873
          lcc*)
14874
	    # Lucid
14875
	    # FIXME: insert proper C++ library support
14876
	    ld_shlibs_CXX=no
14877
	    ;;
14878
          *)
14879
	    # FIXME: insert proper C++ library support
14880
	    ld_shlibs_CXX=no
14881
	    ;;
14882
        esac
14883
        ;;
14884
 
14885
      solaris*)
14886
        case $cc_basename in
14887
          CC* | sunCC*)
14888
	    # Sun C++ 4.2, 5.x and Centerline C++
14889
            archive_cmds_need_lc_CXX=yes
14890
	    no_undefined_flag_CXX=' -zdefs'
14891
	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14892
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14893
              $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'
14894
 
14895
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14896
	    hardcode_shlibpath_var_CXX=no
14897
	    case $host_os in
14898
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14899
	      *)
14900
		# The compiler driver will combine and reorder linker options,
14901
		# but understands '-z linker_flag'.
14902
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14903
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14904
	        ;;
14905
	    esac
14906
	    link_all_deplibs_CXX=yes
14907
 
14908
	    output_verbose_link_cmd='func_echo_all'
14909
 
14910
	    # Archives containing C++ object files must be created using
14911
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14912
	    # necessary to make sure instantiated templates are included
14913
	    # in the archive.
14914
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14915
	    ;;
14916
          gcx*)
14917
	    # Green Hills C++ Compiler
14918
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14919
 
14920
	    # The C++ compiler must be used to create the archive.
14921
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14922
	    ;;
14923
          *)
14924
	    # GNU C++ compiler with Solaris linker
14925
	    if test yes,no = "$GXX,$with_gnu_ld"; then
14926
	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14927
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14928
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14929
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14930
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14931
 
14932
	        # Commands to make compiler produce verbose output that lists
14933
	        # what "hidden" libraries, object files and flags are used when
14934
	        # linking a shared library.
14935
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14936
	      else
14937
	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14938
	        # platform.
14939
	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14940
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14941
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14942
 
14943
	        # Commands to make compiler produce verbose output that lists
14944
	        # what "hidden" libraries, object files and flags are used when
14945
	        # linking a shared library.
14946
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14947
	      fi
14948
 
14949
	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14950
	      case $host_os in
14951
		solaris2.[0-5] | solaris2.[0-5].*) ;;
14952
		*)
14953
		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14954
		  ;;
14955
	      esac
14956
	    fi
14957
	    ;;
14958
        esac
14959
        ;;
14960
 
14961
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14962
      no_undefined_flag_CXX='$wl-z,text'
14963
      archive_cmds_need_lc_CXX=no
14964
      hardcode_shlibpath_var_CXX=no
14965
      runpath_var='LD_RUN_PATH'
14966
 
14967
      case $cc_basename in
14968
        CC*)
14969
	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970
	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14971
	  ;;
14972
	*)
14973
	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14974
	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975
	  ;;
14976
      esac
14977
      ;;
14978
 
14979
      sysv5* | sco3.2v5* | sco5v6*)
14980
	# Note: We CANNOT use -z defs as we might desire, because we do not
14981
	# link with -lc, and that would cause any symbols used from libc to
14982
	# always be unresolved, which means just about no library would
14983
	# ever link correctly.  If we're not using GNU ld we use -z text
14984
	# though, which does catch some bad symbols but isn't as heavy-handed
14985
	# as -z defs.
14986
	no_undefined_flag_CXX='$wl-z,text'
14987
	allow_undefined_flag_CXX='$wl-z,nodefs'
14988
	archive_cmds_need_lc_CXX=no
14989
	hardcode_shlibpath_var_CXX=no
14990
	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14991
	hardcode_libdir_separator_CXX=':'
14992
	link_all_deplibs_CXX=yes
14993
	export_dynamic_flag_spec_CXX='$wl-Bexport'
14994
	runpath_var='LD_RUN_PATH'
14995
 
14996
	case $cc_basename in
14997
          CC*)
14998
	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999
	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15001
              '"$old_archive_cmds_CXX"
15002
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15003
              '"$reload_cmds_CXX"
15004
	    ;;
15005
	  *)
15006
	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007
	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008
	    ;;
15009
	esac
15010
      ;;
15011
 
15012
      tandem*)
15013
        case $cc_basename in
15014
          NCC*)
15015
	    # NonStop-UX NCC 3.20
15016
	    # FIXME: insert proper C++ library support
15017
	    ld_shlibs_CXX=no
15018
	    ;;
15019
          *)
15020
	    # FIXME: insert proper C++ library support
15021
	    ld_shlibs_CXX=no
15022
	    ;;
15023
        esac
15024
        ;;
15025
 
15026
      vxworks*)
15027
        # FIXME: insert proper C++ library support
15028
        ld_shlibs_CXX=no
15029
        ;;
15030
 
15031
      *)
15032
        # FIXME: insert proper C++ library support
15033
        ld_shlibs_CXX=no
15034
        ;;
15035
    esac
15036
 
15037
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15038
$as_echo "$ld_shlibs_CXX" >&6; }
15039
    test no = "$ld_shlibs_CXX" && can_build_shared=no
15040
 
15041
    GCC_CXX=$GXX
15042
    LD_CXX=$LD
15043
 
15044
    ## CAVEAT EMPTOR:
15045
    ## There is no encapsulation within the following macros, do not change
15046
    ## the running order or otherwise move them around unless you know exactly
15047
    ## what you are doing...
15048
    # Dependencies to place before and after the object being linked:
15049
predep_objects_CXX=
15050
postdep_objects_CXX=
15051
predeps_CXX=
15052
postdeps_CXX=
15053
compiler_lib_search_path_CXX=
15054
 
15055
cat > conftest.$ac_ext <<_LT_EOF
15056
class Foo
15057
{
15058
public:
15059
  Foo (void) { a = 0; }
15060
private:
15061
  int a;
15062
};
15063
_LT_EOF
15064
 
15065
 
15066
_lt_libdeps_save_CFLAGS=$CFLAGS
15067
case "$CC $CFLAGS " in #(
15068
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15069
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15070
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15071
esac
15072
 
15073
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15074
  (eval $ac_compile) 2>&5
15075
  ac_status=$?
15076
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15077
  test $ac_status = 0; }; then
15078
  # Parse the compiler output and extract the necessary
15079
  # objects, libraries and library flags.
15080
 
15081
  # Sentinel used to keep track of whether or not we are before
15082
  # the conftest object file.
15083
  pre_test_object_deps_done=no
15084
 
15085
  for p in `eval "$output_verbose_link_cmd"`; do
15086
    case $prev$p in
15087
 
7 mjames 15088
    -L* | -R* | -l*)
2 mjames 15089
       # Some compilers place space between "-{L,R}" and the path.
15090
       # Remove the space.
15091
       if test x-L = "$p" ||
15092
          test x-R = "$p"; then
15093
	 prev=$p
15094
	 continue
15095
       fi
15096
 
15097
       # Expand the sysroot to ease extracting the directories later.
15098
       if test -z "$prev"; then
15099
         case $p in
15100
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15101
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15102
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15103
         esac
15104
       fi
15105
       case $p in
15106
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15107
       esac
15108
       if test no = "$pre_test_object_deps_done"; then
15109
	 case $prev in
15110
	 -L | -R)
15111
	   # Internal compiler library paths should come after those
15112
	   # provided the user.  The postdeps already come after the
15113
	   # user supplied libs so there is no need to process them.
15114
	   if test -z "$compiler_lib_search_path_CXX"; then
15115
	     compiler_lib_search_path_CXX=$prev$p
15116
	   else
15117
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15118
	   fi
15119
	   ;;
15120
	 # The "-l" case would never come before the object being
15121
	 # linked, so don't bother handling this case.
15122
	 esac
15123
       else
15124
	 if test -z "$postdeps_CXX"; then
15125
	   postdeps_CXX=$prev$p
15126
	 else
15127
	   postdeps_CXX="${postdeps_CXX} $prev$p"
15128
	 fi
15129
       fi
15130
       prev=
15131
       ;;
15132
 
15133
    *.lto.$objext) ;; # Ignore GCC LTO objects
15134
    *.$objext)
15135
       # This assumes that the test object file only shows up
15136
       # once in the compiler output.
15137
       if test "$p" = "conftest.$objext"; then
15138
	 pre_test_object_deps_done=yes
15139
	 continue
15140
       fi
15141
 
15142
       if test no = "$pre_test_object_deps_done"; then
15143
	 if test -z "$predep_objects_CXX"; then
15144
	   predep_objects_CXX=$p
15145
	 else
15146
	   predep_objects_CXX="$predep_objects_CXX $p"
15147
	 fi
15148
       else
15149
	 if test -z "$postdep_objects_CXX"; then
15150
	   postdep_objects_CXX=$p
15151
	 else
15152
	   postdep_objects_CXX="$postdep_objects_CXX $p"
15153
	 fi
15154
       fi
15155
       ;;
15156
 
15157
    *) ;; # Ignore the rest.
15158
 
15159
    esac
15160
  done
15161
 
15162
  # Clean up.
15163
  rm -f a.out a.exe
15164
else
15165
  echo "libtool.m4: error: problem compiling CXX test program"
15166
fi
15167
 
15168
$RM -f confest.$objext
15169
CFLAGS=$_lt_libdeps_save_CFLAGS
15170
 
15171
# PORTME: override above test on systems where it is broken
15172
case $host_os in
15173
interix[3-9]*)
15174
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15175
  # hack all around it, let's just trust "g++" to DTRT.
15176
  predep_objects_CXX=
15177
  postdep_objects_CXX=
15178
  postdeps_CXX=
15179
  ;;
15180
esac
15181
 
15182
 
15183
case " $postdeps_CXX " in
15184
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15185
esac
15186
 compiler_lib_search_dirs_CXX=
15187
if test -n "${compiler_lib_search_path_CXX}"; then
15188
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15189
fi
15190
 
15191
 
15192
 
15193
 
15194
 
15195
 
15196
 
15197
 
15198
 
15199
 
15200
 
15201
 
15202
 
15203
 
15204
 
15205
 
15206
 
15207
 
15208
 
15209
 
15210
 
15211
 
15212
 
15213
 
15214
 
15215
 
15216
 
15217
 
15218
 
15219
 
15220
 
15221
    lt_prog_compiler_wl_CXX=
15222
lt_prog_compiler_pic_CXX=
15223
lt_prog_compiler_static_CXX=
15224
 
15225
 
15226
  # C++ specific cases for pic, static, wl, etc.
15227
  if test yes = "$GXX"; then
15228
    lt_prog_compiler_wl_CXX='-Wl,'
15229
    lt_prog_compiler_static_CXX='-static'
15230
 
15231
    case $host_os in
15232
    aix*)
15233
      # All AIX code is PIC.
15234
      if test ia64 = "$host_cpu"; then
15235
	# AIX 5 now supports IA64 processor
15236
	lt_prog_compiler_static_CXX='-Bstatic'
15237
      fi
15238
      lt_prog_compiler_pic_CXX='-fPIC'
15239
      ;;
15240
 
15241
    amigaos*)
15242
      case $host_cpu in
15243
      powerpc)
15244
            # see comment about AmigaOS4 .so support
15245
            lt_prog_compiler_pic_CXX='-fPIC'
15246
        ;;
15247
      m68k)
15248
            # FIXME: we need at least 68020 code to build shared libraries, but
15249
            # adding the '-m68020' flag to GCC prevents building anything better,
15250
            # like '-m68040'.
15251
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15252
        ;;
15253
      esac
15254
      ;;
15255
 
15256
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15257
      # PIC is the default for these OSes.
15258
      ;;
7 mjames 15259
    mingw* | cygwin* | os2* | pw32* | cegcc*)
2 mjames 15260
      # This hack is so that the source file can tell whether it is being
15261
      # built for inclusion in a dll (and should export symbols for example).
15262
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15263
      # (--disable-auto-import) libraries
15264
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15265
      case $host_os in
15266
      os2*)
15267
	lt_prog_compiler_static_CXX='$wl-static'
15268
	;;
15269
      esac
15270
      ;;
15271
    darwin* | rhapsody*)
15272
      # PIC is the default on this platform
15273
      # Common symbols not allowed in MH_DYLIB files
15274
      lt_prog_compiler_pic_CXX='-fno-common'
15275
      ;;
15276
    *djgpp*)
15277
      # DJGPP does not support shared libraries at all
15278
      lt_prog_compiler_pic_CXX=
15279
      ;;
15280
    haiku*)
15281
      # PIC is the default for Haiku.
15282
      # The "-static" flag exists, but is broken.
15283
      lt_prog_compiler_static_CXX=
15284
      ;;
15285
    interix[3-9]*)
15286
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15287
      # Instead, we relocate shared libraries at runtime.
15288
      ;;
15289
    sysv4*MP*)
15290
      if test -d /usr/nec; then
15291
	lt_prog_compiler_pic_CXX=-Kconform_pic
15292
      fi
15293
      ;;
15294
    hpux*)
15295
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15296
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15297
      # sets the default TLS model and affects inlining.
15298
      case $host_cpu in
15299
      hppa*64*)
15300
	;;
15301
      *)
15302
	lt_prog_compiler_pic_CXX='-fPIC'
15303
	;;
15304
      esac
15305
      ;;
15306
    *qnx* | *nto*)
15307
      # QNX uses GNU C++, but need to define -shared option too, otherwise
15308
      # it will coredump.
15309
      lt_prog_compiler_pic_CXX='-fPIC -shared'
15310
      ;;
15311
    *)
15312
      lt_prog_compiler_pic_CXX='-fPIC'
15313
      ;;
15314
    esac
15315
  else
15316
    case $host_os in
15317
      aix[4-9]*)
15318
	# All AIX code is PIC.
15319
	if test ia64 = "$host_cpu"; then
15320
	  # AIX 5 now supports IA64 processor
15321
	  lt_prog_compiler_static_CXX='-Bstatic'
15322
	else
15323
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15324
	fi
15325
	;;
15326
      chorus*)
15327
	case $cc_basename in
15328
	cxch68*)
15329
	  # Green Hills C++ Compiler
15330
	  # _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"
15331
	  ;;
15332
	esac
15333
	;;
7 mjames 15334
      mingw* | cygwin* | os2* | pw32* | cegcc*)
2 mjames 15335
	# This hack is so that the source file can tell whether it is being
15336
	# built for inclusion in a dll (and should export symbols for example).
15337
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15338
	;;
15339
      dgux*)
15340
	case $cc_basename in
15341
	  ec++*)
15342
	    lt_prog_compiler_pic_CXX='-KPIC'
15343
	    ;;
15344
	  ghcx*)
15345
	    # Green Hills C++ Compiler
15346
	    lt_prog_compiler_pic_CXX='-pic'
15347
	    ;;
15348
	  *)
15349
	    ;;
15350
	esac
15351
	;;
15352
      freebsd* | dragonfly*)
15353
	# FreeBSD uses GNU C++
15354
	;;
15355
      hpux9* | hpux10* | hpux11*)
15356
	case $cc_basename in
15357
	  CC*)
15358
	    lt_prog_compiler_wl_CXX='-Wl,'
15359
	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15360
	    if test ia64 != "$host_cpu"; then
15361
	      lt_prog_compiler_pic_CXX='+Z'
15362
	    fi
15363
	    ;;
15364
	  aCC*)
15365
	    lt_prog_compiler_wl_CXX='-Wl,'
15366
	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15367
	    case $host_cpu in
15368
	    hppa*64*|ia64*)
15369
	      # +Z the default
15370
	      ;;
15371
	    *)
15372
	      lt_prog_compiler_pic_CXX='+Z'
15373
	      ;;
15374
	    esac
15375
	    ;;
15376
	  *)
15377
	    ;;
15378
	esac
15379
	;;
15380
      interix*)
15381
	# This is c89, which is MS Visual C++ (no shared libs)
15382
	# Anyone wants to do a port?
15383
	;;
15384
      irix5* | irix6* | nonstopux*)
15385
	case $cc_basename in
15386
	  CC*)
15387
	    lt_prog_compiler_wl_CXX='-Wl,'
15388
	    lt_prog_compiler_static_CXX='-non_shared'
15389
	    # CC pic flag -KPIC is the default.
15390
	    ;;
15391
	  *)
15392
	    ;;
15393
	esac
15394
	;;
15395
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15396
	case $cc_basename in
15397
	  KCC*)
15398
	    # KAI C++ Compiler
15399
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15400
	    lt_prog_compiler_pic_CXX='-fPIC'
15401
	    ;;
15402
	  ecpc* )
15403
	    # old Intel C++ for x86_64, which still supported -KPIC.
15404
	    lt_prog_compiler_wl_CXX='-Wl,'
15405
	    lt_prog_compiler_pic_CXX='-KPIC'
15406
	    lt_prog_compiler_static_CXX='-static'
15407
	    ;;
15408
	  icpc* )
15409
	    # Intel C++, used to be incompatible with GCC.
15410
	    # ICC 10 doesn't accept -KPIC any more.
15411
	    lt_prog_compiler_wl_CXX='-Wl,'
15412
	    lt_prog_compiler_pic_CXX='-fPIC'
15413
	    lt_prog_compiler_static_CXX='-static'
15414
	    ;;
15415
	  pgCC* | pgcpp*)
15416
	    # Portland Group C++ compiler
15417
	    lt_prog_compiler_wl_CXX='-Wl,'
15418
	    lt_prog_compiler_pic_CXX='-fpic'
15419
	    lt_prog_compiler_static_CXX='-Bstatic'
15420
	    ;;
15421
	  cxx*)
15422
	    # Compaq C++
15423
	    # Make sure the PIC flag is empty.  It appears that all Alpha
15424
	    # Linux and Compaq Tru64 Unix objects are PIC.
15425
	    lt_prog_compiler_pic_CXX=
15426
	    lt_prog_compiler_static_CXX='-non_shared'
15427
	    ;;
15428
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15429
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15430
	    lt_prog_compiler_wl_CXX='-Wl,'
15431
	    lt_prog_compiler_pic_CXX='-qpic'
15432
	    lt_prog_compiler_static_CXX='-qstaticlink'
15433
	    ;;
15434
	  *)
15435
	    case `$CC -V 2>&1 | sed 5q` in
15436
	    *Sun\ C*)
15437
	      # Sun C++ 5.9
15438
	      lt_prog_compiler_pic_CXX='-KPIC'
15439
	      lt_prog_compiler_static_CXX='-Bstatic'
15440
	      lt_prog_compiler_wl_CXX='-Qoption ld '
15441
	      ;;
15442
	    esac
15443
	    ;;
15444
	esac
15445
	;;
15446
      lynxos*)
15447
	;;
15448
      m88k*)
15449
	;;
15450
      mvs*)
15451
	case $cc_basename in
15452
	  cxx*)
15453
	    lt_prog_compiler_pic_CXX='-W c,exportall'
15454
	    ;;
15455
	  *)
15456
	    ;;
15457
	esac
15458
	;;
7 mjames 15459
      netbsd* | netbsdelf*-gnu)
2 mjames 15460
	;;
15461
      *qnx* | *nto*)
15462
        # QNX uses GNU C++, but need to define -shared option too, otherwise
15463
        # it will coredump.
15464
        lt_prog_compiler_pic_CXX='-fPIC -shared'
15465
        ;;
15466
      osf3* | osf4* | osf5*)
15467
	case $cc_basename in
15468
	  KCC*)
15469
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15470
	    ;;
15471
	  RCC*)
15472
	    # Rational C++ 2.4.1
15473
	    lt_prog_compiler_pic_CXX='-pic'
15474
	    ;;
15475
	  cxx*)
15476
	    # Digital/Compaq C++
15477
	    lt_prog_compiler_wl_CXX='-Wl,'
15478
	    # Make sure the PIC flag is empty.  It appears that all Alpha
15479
	    # Linux and Compaq Tru64 Unix objects are PIC.
15480
	    lt_prog_compiler_pic_CXX=
15481
	    lt_prog_compiler_static_CXX='-non_shared'
15482
	    ;;
15483
	  *)
15484
	    ;;
15485
	esac
15486
	;;
15487
      psos*)
15488
	;;
15489
      solaris*)
15490
	case $cc_basename in
15491
	  CC* | sunCC*)
15492
	    # Sun C++ 4.2, 5.x and Centerline C++
15493
	    lt_prog_compiler_pic_CXX='-KPIC'
15494
	    lt_prog_compiler_static_CXX='-Bstatic'
15495
	    lt_prog_compiler_wl_CXX='-Qoption ld '
15496
	    ;;
15497
	  gcx*)
15498
	    # Green Hills C++ Compiler
15499
	    lt_prog_compiler_pic_CXX='-PIC'
15500
	    ;;
15501
	  *)
15502
	    ;;
15503
	esac
15504
	;;
15505
      sunos4*)
15506
	case $cc_basename in
15507
	  CC*)
15508
	    # Sun C++ 4.x
15509
	    lt_prog_compiler_pic_CXX='-pic'
15510
	    lt_prog_compiler_static_CXX='-Bstatic'
15511
	    ;;
15512
	  lcc*)
15513
	    # Lucid
15514
	    lt_prog_compiler_pic_CXX='-pic'
15515
	    ;;
15516
	  *)
15517
	    ;;
15518
	esac
15519
	;;
15520
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15521
	case $cc_basename in
15522
	  CC*)
15523
	    lt_prog_compiler_wl_CXX='-Wl,'
15524
	    lt_prog_compiler_pic_CXX='-KPIC'
15525
	    lt_prog_compiler_static_CXX='-Bstatic'
15526
	    ;;
15527
	esac
15528
	;;
15529
      tandem*)
15530
	case $cc_basename in
15531
	  NCC*)
15532
	    # NonStop-UX NCC 3.20
15533
	    lt_prog_compiler_pic_CXX='-KPIC'
15534
	    ;;
15535
	  *)
15536
	    ;;
15537
	esac
15538
	;;
15539
      vxworks*)
15540
	;;
15541
      *)
15542
	lt_prog_compiler_can_build_shared_CXX=no
15543
	;;
15544
    esac
15545
  fi
15546
 
15547
case $host_os in
15548
  # For platforms that do not support PIC, -DPIC is meaningless:
15549
  *djgpp*)
15550
    lt_prog_compiler_pic_CXX=
15551
    ;;
15552
  *)
15553
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15554
    ;;
15555
esac
15556
 
15557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15558
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15559
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15560
  $as_echo_n "(cached) " >&6
15561
else
15562
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15563
fi
15564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15565
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15566
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15567
 
15568
#
15569
# Check to make sure the PIC flag actually works.
15570
#
15571
if test -n "$lt_prog_compiler_pic_CXX"; then
15572
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15573
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15574
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15575
  $as_echo_n "(cached) " >&6
15576
else
15577
  lt_cv_prog_compiler_pic_works_CXX=no
15578
   ac_outfile=conftest.$ac_objext
15579
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15581
   # Insert the option either (1) after the last *FLAGS variable, or
15582
   # (2) before a word containing "conftest.", or (3) at the end.
15583
   # Note that $ac_compile itself does not contain backslashes and begins
15584
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15585
   # The option is referenced via a variable to avoid confusing sed.
15586
   lt_compile=`echo "$ac_compile" | $SED \
15587
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15588
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15589
   -e 's:$: $lt_compiler_flag:'`
15590
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15591
   (eval "$lt_compile" 2>conftest.err)
15592
   ac_status=$?
15593
   cat conftest.err >&5
15594
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595
   if (exit $ac_status) && test -s "$ac_outfile"; then
15596
     # The compiler can only warn and ignore the option if not recognized
15597
     # So say no if there are warnings other than the usual output.
15598
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15599
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15600
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15601
       lt_cv_prog_compiler_pic_works_CXX=yes
15602
     fi
15603
   fi
15604
   $RM conftest*
15605
 
15606
fi
15607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15608
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15609
 
15610
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15611
    case $lt_prog_compiler_pic_CXX in
15612
     "" | " "*) ;;
15613
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15614
     esac
15615
else
15616
    lt_prog_compiler_pic_CXX=
15617
     lt_prog_compiler_can_build_shared_CXX=no
15618
fi
15619
 
15620
fi
15621
 
15622
 
15623
 
15624
 
15625
 
15626
#
15627
# Check to make sure the static flag actually works.
15628
#
15629
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15631
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15632
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15633
  $as_echo_n "(cached) " >&6
15634
else
15635
  lt_cv_prog_compiler_static_works_CXX=no
15636
   save_LDFLAGS=$LDFLAGS
15637
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15638
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15639
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15640
     # The linker can only warn and ignore the option if not recognized
15641
     # So say no if there are warnings
15642
     if test -s conftest.err; then
15643
       # Append any errors to the config.log.
15644
       cat conftest.err 1>&5
15645
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15646
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15647
       if diff conftest.exp conftest.er2 >/dev/null; then
15648
         lt_cv_prog_compiler_static_works_CXX=yes
15649
       fi
15650
     else
15651
       lt_cv_prog_compiler_static_works_CXX=yes
15652
     fi
15653
   fi
15654
   $RM -r conftest*
15655
   LDFLAGS=$save_LDFLAGS
15656
 
15657
fi
15658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15659
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15660
 
15661
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15662
    :
15663
else
15664
    lt_prog_compiler_static_CXX=
15665
fi
15666
 
15667
 
15668
 
15669
 
15670
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15671
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15672
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15673
  $as_echo_n "(cached) " >&6
15674
else
15675
  lt_cv_prog_compiler_c_o_CXX=no
15676
   $RM -r conftest 2>/dev/null
15677
   mkdir conftest
15678
   cd conftest
15679
   mkdir out
15680
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15681
 
15682
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15683
   # Insert the option either (1) after the last *FLAGS variable, or
15684
   # (2) before a word containing "conftest.", or (3) at the end.
15685
   # Note that $ac_compile itself does not contain backslashes and begins
15686
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15687
   lt_compile=`echo "$ac_compile" | $SED \
15688
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15689
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15690
   -e 's:$: $lt_compiler_flag:'`
15691
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15692
   (eval "$lt_compile" 2>out/conftest.err)
15693
   ac_status=$?
15694
   cat out/conftest.err >&5
15695
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15697
   then
15698
     # The compiler can only warn and ignore the option if not recognized
15699
     # So say no if there are warnings
15700
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15701
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15702
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15703
       lt_cv_prog_compiler_c_o_CXX=yes
15704
     fi
15705
   fi
15706
   chmod u+w . 2>&5
15707
   $RM conftest*
15708
   # SGI C++ compiler will create directory out/ii_files/ for
15709
   # template instantiation
15710
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15711
   $RM out/* && rmdir out
15712
   cd ..
15713
   $RM -r conftest
15714
   $RM conftest*
15715
 
15716
fi
15717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15718
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15719
 
15720
 
15721
 
15722
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15723
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15724
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15725
  $as_echo_n "(cached) " >&6
15726
else
15727
  lt_cv_prog_compiler_c_o_CXX=no
15728
   $RM -r conftest 2>/dev/null
15729
   mkdir conftest
15730
   cd conftest
15731
   mkdir out
15732
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
 
15734
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15735
   # Insert the option either (1) after the last *FLAGS variable, or
15736
   # (2) before a word containing "conftest.", or (3) at the end.
15737
   # Note that $ac_compile itself does not contain backslashes and begins
15738
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15739
   lt_compile=`echo "$ac_compile" | $SED \
15740
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15741
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15742
   -e 's:$: $lt_compiler_flag:'`
15743
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15744
   (eval "$lt_compile" 2>out/conftest.err)
15745
   ac_status=$?
15746
   cat out/conftest.err >&5
15747
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15749
   then
15750
     # The compiler can only warn and ignore the option if not recognized
15751
     # So say no if there are warnings
15752
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15753
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15754
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15755
       lt_cv_prog_compiler_c_o_CXX=yes
15756
     fi
15757
   fi
15758
   chmod u+w . 2>&5
15759
   $RM conftest*
15760
   # SGI C++ compiler will create directory out/ii_files/ for
15761
   # template instantiation
15762
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15763
   $RM out/* && rmdir out
15764
   cd ..
15765
   $RM -r conftest
15766
   $RM conftest*
15767
 
15768
fi
15769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15770
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15771
 
15772
 
15773
 
15774
 
15775
hard_links=nottested
15776
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15777
  # do not overwrite the value of need_locks provided by the user
15778
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15779
$as_echo_n "checking if we can lock with hard links... " >&6; }
15780
  hard_links=yes
15781
  $RM conftest*
15782
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15783
  touch conftest.a
15784
  ln conftest.a conftest.b 2>&5 || hard_links=no
15785
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15787
$as_echo "$hard_links" >&6; }
15788
  if test no = "$hard_links"; then
15789
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15790
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15791
    need_locks=warn
15792
  fi
15793
else
15794
  need_locks=no
15795
fi
15796
 
15797
 
15798
 
15799
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15800
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15801
 
15802
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15803
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15804
  case $host_os in
15805
  aix[4-9]*)
15806
    # If we're using GNU nm, then we don't want the "-C" option.
15807
    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15808
    # Without the "-l" option, or with the "-B" option, AIX nm treats
15809
    # weak defined symbols like other global defined symbols, whereas
15810
    # GNU nm marks them as "W".
15811
    # While the 'weak' keyword is ignored in the Export File, we need
15812
    # it in the Import File for the 'aix-soname' feature, so we have
15813
    # to replace the "-B" option with "-P" for AIX nm.
15814
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15815
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15816
    else
15817
      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15818
    fi
15819
    ;;
15820
  pw32*)
15821
    export_symbols_cmds_CXX=$ltdll_cmds
15822
    ;;
7 mjames 15823
  cygwin* | mingw* | cegcc*)
2 mjames 15824
    case $cc_basename in
15825
    cl*)
15826
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15827
      ;;
15828
    *)
15829
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15830
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15831
      ;;
15832
    esac
15833
    ;;
7 mjames 15834
  linux* | k*bsd*-gnu | gnu*)
15835
    link_all_deplibs_CXX=no
15836
    ;;
2 mjames 15837
  *)
15838
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15839
    ;;
15840
  esac
15841
 
15842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15843
$as_echo "$ld_shlibs_CXX" >&6; }
15844
test no = "$ld_shlibs_CXX" && can_build_shared=no
15845
 
15846
with_gnu_ld_CXX=$with_gnu_ld
15847
 
15848
 
15849
 
15850
 
15851
 
15852
 
15853
#
15854
# Do we need to explicitly link libc?
15855
#
15856
case "x$archive_cmds_need_lc_CXX" in
15857
x|xyes)
15858
  # Assume -lc should be added
15859
  archive_cmds_need_lc_CXX=yes
15860
 
15861
  if test yes,yes = "$GCC,$enable_shared"; then
15862
    case $archive_cmds_CXX in
15863
    *'~'*)
15864
      # FIXME: we may have to deal with multi-command sequences.
15865
      ;;
15866
    '$CC '*)
15867
      # Test whether the compiler implicitly links with -lc since on some
15868
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15869
      # to ld, don't add -lc before -lgcc.
15870
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15871
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15872
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15873
  $as_echo_n "(cached) " >&6
15874
else
15875
  $RM conftest*
15876
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15877
 
15878
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15879
  (eval $ac_compile) 2>&5
15880
  ac_status=$?
15881
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882
  test $ac_status = 0; } 2>conftest.err; then
15883
	  soname=conftest
15884
	  lib=conftest
15885
	  libobjs=conftest.$ac_objext
15886
	  deplibs=
15887
	  wl=$lt_prog_compiler_wl_CXX
15888
	  pic_flag=$lt_prog_compiler_pic_CXX
15889
	  compiler_flags=-v
15890
	  linker_flags=-v
15891
	  verstring=
15892
	  output_objdir=.
15893
	  libname=conftest
15894
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15895
	  allow_undefined_flag_CXX=
15896
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15897
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15898
  ac_status=$?
15899
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15900
  test $ac_status = 0; }
15901
	  then
15902
	    lt_cv_archive_cmds_need_lc_CXX=no
15903
	  else
15904
	    lt_cv_archive_cmds_need_lc_CXX=yes
15905
	  fi
15906
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15907
	else
15908
	  cat conftest.err 1>&5
15909
	fi
15910
	$RM conftest*
15911
 
15912
fi
15913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15914
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15915
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15916
      ;;
15917
    esac
15918
  fi
15919
  ;;
15920
esac
15921
 
15922
 
15923
 
15924
 
15925
 
15926
 
15927
 
15928
 
15929
 
15930
 
15931
 
15932
 
15933
 
15934
 
15935
 
15936
 
15937
 
15938
 
15939
 
15940
 
15941
 
15942
 
15943
 
15944
 
15945
 
15946
 
15947
 
15948
 
15949
 
15950
 
15951
 
15952
 
15953
 
15954
 
15955
 
15956
 
15957
 
15958
 
15959
 
15960
 
15961
 
15962
 
15963
 
15964
 
15965
 
15966
 
15967
 
15968
 
15969
 
15970
 
15971
 
15972
 
15973
 
15974
 
15975
 
15976
 
15977
 
15978
 
15979
 
15980
 
15981
 
15982
 
15983
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15984
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15985
 
15986
library_names_spec=
15987
libname_spec='lib$name'
15988
soname_spec=
15989
shrext_cmds=.so
15990
postinstall_cmds=
15991
postuninstall_cmds=
15992
finish_cmds=
15993
finish_eval=
15994
shlibpath_var=
15995
shlibpath_overrides_runpath=unknown
15996
version_type=none
15997
dynamic_linker="$host_os ld.so"
15998
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15999
need_lib_prefix=unknown
16000
hardcode_into_libs=no
16001
 
16002
# when you set need_version to no, make sure it does not cause -set_version
16003
# flags to be left without arguments
16004
need_version=unknown
16005
 
16006
 
16007
 
16008
case $host_os in
16009
aix3*)
16010
  version_type=linux # correct to gnu/linux during the next big refactor
16011
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16012
  shlibpath_var=LIBPATH
16013
 
16014
  # AIX 3 has no versioning support, so we append a major version to the name.
16015
  soname_spec='$libname$release$shared_ext$major'
16016
  ;;
16017
 
16018
aix[4-9]*)
16019
  version_type=linux # correct to gnu/linux during the next big refactor
16020
  need_lib_prefix=no
16021
  need_version=no
16022
  hardcode_into_libs=yes
16023
  if test ia64 = "$host_cpu"; then
16024
    # AIX 5 supports IA64
16025
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16026
    shlibpath_var=LD_LIBRARY_PATH
16027
  else
16028
    # With GCC up to 2.95.x, collect2 would create an import file
16029
    # for dependence libraries.  The import file would start with
16030
    # the line '#! .'.  This would cause the generated library to
16031
    # depend on '.', always an invalid library.  This was fixed in
16032
    # development snapshots of GCC prior to 3.0.
16033
    case $host_os in
16034
      aix4 | aix4.[01] | aix4.[01].*)
16035
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16036
	   echo ' yes '
16037
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16038
	:
16039
      else
16040
	can_build_shared=no
16041
      fi
16042
      ;;
16043
    esac
16044
    # Using Import Files as archive members, it is possible to support
16045
    # filename-based versioning of shared library archives on AIX. While
16046
    # this would work for both with and without runtime linking, it will
16047
    # prevent static linking of such archives. So we do filename-based
16048
    # shared library versioning with .so extension only, which is used
16049
    # when both runtime linking and shared linking is enabled.
16050
    # Unfortunately, runtime linking may impact performance, so we do
16051
    # not want this to be the default eventually. Also, we use the
16052
    # versioned .so libs for executables only if there is the -brtl
16053
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16054
    # To allow for filename-based versioning support, we need to create
16055
    # libNAME.so.V as an archive file, containing:
16056
    # *) an Import File, referring to the versioned filename of the
16057
    #    archive as well as the shared archive member, telling the
16058
    #    bitwidth (32 or 64) of that shared object, and providing the
16059
    #    list of exported symbols of that shared object, eventually
16060
    #    decorated with the 'weak' keyword
16061
    # *) the shared object with the F_LOADONLY flag set, to really avoid
16062
    #    it being seen by the linker.
16063
    # At run time we better use the real file rather than another symlink,
16064
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16065
 
16066
    case $with_aix_soname,$aix_use_runtimelinking in
16067
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16068
    # soname into executable. Probably we can add versioning support to
16069
    # collect2, so additional links can be useful in future.
16070
    aix,yes) # traditional libtool
16071
      dynamic_linker='AIX unversionable lib.so'
16072
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16073
      # instead of lib<name>.a to let people know that these are not
16074
      # typical AIX shared libraries.
16075
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16076
      ;;
16077
    aix,no) # traditional AIX only
16078
      dynamic_linker='AIX lib.a(lib.so.V)'
16079
      # We preserve .a as extension for shared libraries through AIX4.2
16080
      # and later when we are not doing run time linking.
16081
      library_names_spec='$libname$release.a $libname.a'
16082
      soname_spec='$libname$release$shared_ext$major'
16083
      ;;
16084
    svr4,*) # full svr4 only
16085
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16086
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16087
      # We do not specify a path in Import Files, so LIBPATH fires.
16088
      shlibpath_overrides_runpath=yes
16089
      ;;
16090
    *,yes) # both, prefer svr4
16091
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16092
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16093
      # unpreferred sharedlib libNAME.a needs extra handling
16094
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16095
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16096
      # We do not specify a path in Import Files, so LIBPATH fires.
16097
      shlibpath_overrides_runpath=yes
16098
      ;;
16099
    *,no) # both, prefer aix
16100
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16101
      library_names_spec='$libname$release.a $libname.a'
16102
      soname_spec='$libname$release$shared_ext$major'
16103
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16104
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16105
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16106
      ;;
16107
    esac
16108
    shlibpath_var=LIBPATH
16109
  fi
16110
  ;;
16111
 
16112
amigaos*)
16113
  case $host_cpu in
16114
  powerpc)
16115
    # Since July 2007 AmigaOS4 officially supports .so libraries.
16116
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16117
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16118
    ;;
16119
  m68k)
16120
    library_names_spec='$libname.ixlibrary $libname.a'
16121
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16122
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16123
    ;;
16124
  esac
16125
  ;;
16126
 
16127
beos*)
16128
  library_names_spec='$libname$shared_ext'
16129
  dynamic_linker="$host_os ld.so"
16130
  shlibpath_var=LIBRARY_PATH
16131
  ;;
16132
 
16133
bsdi[45]*)
16134
  version_type=linux # correct to gnu/linux during the next big refactor
16135
  need_version=no
16136
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16137
  soname_spec='$libname$release$shared_ext$major'
16138
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16139
  shlibpath_var=LD_LIBRARY_PATH
16140
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16141
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16142
  # the default ld.so.conf also contains /usr/contrib/lib and
16143
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16144
  # libtool to hard-code these into programs
16145
  ;;
16146
 
7 mjames 16147
cygwin* | mingw* | pw32* | cegcc*)
2 mjames 16148
  version_type=windows
16149
  shrext_cmds=.dll
16150
  need_version=no
16151
  need_lib_prefix=no
16152
 
16153
  case $GCC,$cc_basename in
16154
  yes,*)
16155
    # gcc
16156
    library_names_spec='$libname.dll.a'
16157
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16158
    postinstall_cmds='base_file=`basename \$file`~
16159
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16160
      dldir=$destdir/`dirname \$dlpath`~
16161
      test -d \$dldir || mkdir -p \$dldir~
16162
      $install_prog $dir/$dlname \$dldir/$dlname~
16163
      chmod a+x \$dldir/$dlname~
16164
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16165
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16166
      fi'
16167
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16168
      dlpath=$dir/\$dldll~
16169
       $RM \$dlpath'
16170
    shlibpath_overrides_runpath=yes
16171
 
16172
    case $host_os in
16173
    cygwin*)
16174
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16175
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16176
 
16177
      ;;
16178
    mingw* | cegcc*)
16179
      # MinGW DLLs use traditional 'lib' prefix
16180
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16181
      ;;
16182
    pw32*)
16183
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16184
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16185
      ;;
16186
    esac
16187
    dynamic_linker='Win32 ld.exe'
16188
    ;;
16189
 
16190
  *,cl*)
16191
    # Native MSVC
16192
    libname_spec='$name'
16193
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16194
    library_names_spec='$libname.dll.lib'
16195
 
16196
    case $build_os in
16197
    mingw*)
16198
      sys_lib_search_path_spec=
16199
      lt_save_ifs=$IFS
16200
      IFS=';'
16201
      for lt_path in $LIB
16202
      do
16203
        IFS=$lt_save_ifs
16204
        # Let DOS variable expansion print the short 8.3 style file name.
16205
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16206
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16207
      done
16208
      IFS=$lt_save_ifs
16209
      # Convert to MSYS style.
16210
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16211
      ;;
7 mjames 16212
    cygwin*)
2 mjames 16213
      # Convert to unix form, then to dos form, then back to unix form
16214
      # but this time dos style (no spaces!) so that the unix form looks
16215
      # like /cygdrive/c/PROGRA~1:/cygdr...
16216
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16217
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16218
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16219
      ;;
16220
    *)
16221
      sys_lib_search_path_spec=$LIB
16222
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16223
        # It is most probably a Windows format PATH.
16224
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16225
      else
16226
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16227
      fi
16228
      # FIXME: find the short name or the path components, as spaces are
16229
      # common. (e.g. "Program Files" -> "PROGRA~1")
16230
      ;;
16231
    esac
16232
 
16233
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16234
    postinstall_cmds='base_file=`basename \$file`~
16235
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16236
      dldir=$destdir/`dirname \$dlpath`~
16237
      test -d \$dldir || mkdir -p \$dldir~
16238
      $install_prog $dir/$dlname \$dldir/$dlname'
16239
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16240
      dlpath=$dir/\$dldll~
16241
       $RM \$dlpath'
16242
    shlibpath_overrides_runpath=yes
16243
    dynamic_linker='Win32 link.exe'
16244
    ;;
16245
 
16246
  *)
16247
    # Assume MSVC wrapper
16248
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16249
    dynamic_linker='Win32 ld.exe'
16250
    ;;
16251
  esac
16252
  # FIXME: first we should search . and the directory the executable is in
16253
  shlibpath_var=PATH
16254
  ;;
16255
 
16256
darwin* | rhapsody*)
16257
  dynamic_linker="$host_os dyld"
16258
  version_type=darwin
16259
  need_lib_prefix=no
16260
  need_version=no
16261
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16262
  soname_spec='$libname$release$major$shared_ext'
16263
  shlibpath_overrides_runpath=yes
16264
  shlibpath_var=DYLD_LIBRARY_PATH
16265
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16266
 
16267
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16268
  ;;
16269
 
16270
dgux*)
16271
  version_type=linux # correct to gnu/linux during the next big refactor
16272
  need_lib_prefix=no
16273
  need_version=no
16274
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16275
  soname_spec='$libname$release$shared_ext$major'
16276
  shlibpath_var=LD_LIBRARY_PATH
16277
  ;;
16278
 
16279
freebsd* | dragonfly*)
16280
  # DragonFly does not have aout.  When/if they implement a new
16281
  # versioning mechanism, adjust this.
16282
  if test -x /usr/bin/objformat; then
16283
    objformat=`/usr/bin/objformat`
16284
  else
16285
    case $host_os in
16286
    freebsd[23].*) objformat=aout ;;
16287
    *) objformat=elf ;;
16288
    esac
16289
  fi
16290
  version_type=freebsd-$objformat
16291
  case $version_type in
16292
    freebsd-elf*)
16293
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16294
      soname_spec='$libname$release$shared_ext$major'
16295
      need_version=no
16296
      need_lib_prefix=no
16297
      ;;
16298
    freebsd-*)
16299
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16300
      need_version=yes
16301
      ;;
16302
  esac
16303
  shlibpath_var=LD_LIBRARY_PATH
16304
  case $host_os in
16305
  freebsd2.*)
16306
    shlibpath_overrides_runpath=yes
16307
    ;;
16308
  freebsd3.[01]* | freebsdelf3.[01]*)
16309
    shlibpath_overrides_runpath=yes
16310
    hardcode_into_libs=yes
16311
    ;;
16312
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16313
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16314
    shlibpath_overrides_runpath=no
16315
    hardcode_into_libs=yes
16316
    ;;
16317
  *) # from 4.6 on, and DragonFly
16318
    shlibpath_overrides_runpath=yes
16319
    hardcode_into_libs=yes
16320
    ;;
16321
  esac
16322
  ;;
16323
 
16324
haiku*)
16325
  version_type=linux # correct to gnu/linux during the next big refactor
16326
  need_lib_prefix=no
16327
  need_version=no
16328
  dynamic_linker="$host_os runtime_loader"
16329
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16330
  soname_spec='$libname$release$shared_ext$major'
16331
  shlibpath_var=LIBRARY_PATH
16332
  shlibpath_overrides_runpath=no
16333
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16334
  hardcode_into_libs=yes
16335
  ;;
16336
 
16337
hpux9* | hpux10* | hpux11*)
16338
  # Give a soname corresponding to the major version so that dld.sl refuses to
16339
  # link against other versions.
16340
  version_type=sunos
16341
  need_lib_prefix=no
16342
  need_version=no
16343
  case $host_cpu in
16344
  ia64*)
16345
    shrext_cmds='.so'
16346
    hardcode_into_libs=yes
16347
    dynamic_linker="$host_os dld.so"
16348
    shlibpath_var=LD_LIBRARY_PATH
16349
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16350
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16351
    soname_spec='$libname$release$shared_ext$major'
16352
    if test 32 = "$HPUX_IA64_MODE"; then
16353
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16354
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16355
    else
16356
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16357
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16358
    fi
16359
    ;;
16360
  hppa*64*)
16361
    shrext_cmds='.sl'
16362
    hardcode_into_libs=yes
16363
    dynamic_linker="$host_os dld.sl"
16364
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16365
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16366
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16367
    soname_spec='$libname$release$shared_ext$major'
16368
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16369
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16370
    ;;
16371
  *)
16372
    shrext_cmds='.sl'
16373
    dynamic_linker="$host_os dld.sl"
16374
    shlibpath_var=SHLIB_PATH
16375
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16376
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16377
    soname_spec='$libname$release$shared_ext$major'
16378
    ;;
16379
  esac
16380
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16381
  postinstall_cmds='chmod 555 $lib'
16382
  # or fails outright, so override atomically:
16383
  install_override_mode=555
16384
  ;;
16385
 
16386
interix[3-9]*)
16387
  version_type=linux # correct to gnu/linux during the next big refactor
16388
  need_lib_prefix=no
16389
  need_version=no
16390
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16391
  soname_spec='$libname$release$shared_ext$major'
16392
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16393
  shlibpath_var=LD_LIBRARY_PATH
16394
  shlibpath_overrides_runpath=no
16395
  hardcode_into_libs=yes
16396
  ;;
16397
 
16398
irix5* | irix6* | nonstopux*)
16399
  case $host_os in
16400
    nonstopux*) version_type=nonstopux ;;
16401
    *)
16402
	if test yes = "$lt_cv_prog_gnu_ld"; then
16403
		version_type=linux # correct to gnu/linux during the next big refactor
16404
	else
16405
		version_type=irix
16406
	fi ;;
16407
  esac
16408
  need_lib_prefix=no
16409
  need_version=no
16410
  soname_spec='$libname$release$shared_ext$major'
16411
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16412
  case $host_os in
16413
  irix5* | nonstopux*)
16414
    libsuff= shlibsuff=
16415
    ;;
16416
  *)
16417
    case $LD in # libtool.m4 will add one of these switches to LD
16418
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16419
      libsuff= shlibsuff= libmagic=32-bit;;
16420
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16421
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16422
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16423
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16424
    *) libsuff= shlibsuff= libmagic=never-match;;
16425
    esac
16426
    ;;
16427
  esac
16428
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16429
  shlibpath_overrides_runpath=no
16430
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16431
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16432
  hardcode_into_libs=yes
16433
  ;;
16434
 
16435
# No shared lib support for Linux oldld, aout, or coff.
16436
linux*oldld* | linux*aout* | linux*coff*)
16437
  dynamic_linker=no
16438
  ;;
16439
 
16440
linux*android*)
16441
  version_type=none # Android doesn't support versioned libraries.
16442
  need_lib_prefix=no
16443
  need_version=no
16444
  library_names_spec='$libname$release$shared_ext'
16445
  soname_spec='$libname$release$shared_ext'
16446
  finish_cmds=
16447
  shlibpath_var=LD_LIBRARY_PATH
16448
  shlibpath_overrides_runpath=yes
16449
 
16450
  # This implies no fast_install, which is unacceptable.
16451
  # Some rework will be needed to allow for fast_install
16452
  # before this can be enabled.
16453
  hardcode_into_libs=yes
16454
 
16455
  dynamic_linker='Android linker'
16456
  # Don't embed -rpath directories since the linker doesn't support them.
16457
  hardcode_libdir_flag_spec_CXX='-L$libdir'
16458
  ;;
16459
 
16460
# This must be glibc/ELF.
16461
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16462
  version_type=linux # correct to gnu/linux during the next big refactor
16463
  need_lib_prefix=no
16464
  need_version=no
16465
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16466
  soname_spec='$libname$release$shared_ext$major'
16467
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16468
  shlibpath_var=LD_LIBRARY_PATH
16469
  shlibpath_overrides_runpath=no
16470
 
16471
  # Some binutils ld are patched to set DT_RUNPATH
16472
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16473
  $as_echo_n "(cached) " >&6
16474
else
16475
  lt_cv_shlibpath_overrides_runpath=no
16476
    save_LDFLAGS=$LDFLAGS
16477
    save_libdir=$libdir
16478
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16479
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16480
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481
/* end confdefs.h.  */
16482
 
16483
int
16484
main ()
16485
{
16486
 
16487
  ;
16488
  return 0;
16489
}
16490
_ACEOF
16491
if ac_fn_cxx_try_link "$LINENO"; then :
16492
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16493
  lt_cv_shlibpath_overrides_runpath=yes
16494
fi
16495
fi
16496
rm -f core conftest.err conftest.$ac_objext \
16497
    conftest$ac_exeext conftest.$ac_ext
16498
    LDFLAGS=$save_LDFLAGS
16499
    libdir=$save_libdir
16500
 
16501
fi
16502
 
16503
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16504
 
16505
  # This implies no fast_install, which is unacceptable.
16506
  # Some rework will be needed to allow for fast_install
16507
  # before this can be enabled.
16508
  hardcode_into_libs=yes
16509
 
16510
  # Ideally, we could use ldconfig to report *all* directores which are
16511
  # searched for libraries, however this is still not possible.  Aside from not
16512
  # being certain /sbin/ldconfig is available, command
16513
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16514
  # even though it is searched at run-time.  Try to do the best guess by
16515
  # appending ld.so.conf contents (and includes) to the search path.
16516
  if test -f /etc/ld.so.conf; then
16517
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16518
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16519
  fi
16520
 
16521
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16522
  # powerpc, because MkLinux only supported shared libraries with the
16523
  # GNU dynamic linker.  Since this was broken with cross compilers,
16524
  # most powerpc-linux boxes support dynamic linking these days and
16525
  # people can always --disable-shared, the test was removed, and we
16526
  # assume the GNU/Linux dynamic linker is in use.
16527
  dynamic_linker='GNU/Linux ld.so'
16528
  ;;
16529
 
7 mjames 16530
netbsdelf*-gnu)
16531
  version_type=linux
16532
  need_lib_prefix=no
16533
  need_version=no
16534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16535
  soname_spec='${libname}${release}${shared_ext}$major'
16536
  shlibpath_var=LD_LIBRARY_PATH
16537
  shlibpath_overrides_runpath=no
16538
  hardcode_into_libs=yes
16539
  dynamic_linker='NetBSD ld.elf_so'
16540
  ;;
16541
 
2 mjames 16542
netbsd*)
16543
  version_type=sunos
16544
  need_lib_prefix=no
16545
  need_version=no
16546
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16547
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16548
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16549
    dynamic_linker='NetBSD (a.out) ld.so'
16550
  else
16551
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16552
    soname_spec='$libname$release$shared_ext$major'
16553
    dynamic_linker='NetBSD ld.elf_so'
16554
  fi
16555
  shlibpath_var=LD_LIBRARY_PATH
16556
  shlibpath_overrides_runpath=yes
16557
  hardcode_into_libs=yes
16558
  ;;
16559
 
16560
newsos6)
16561
  version_type=linux # correct to gnu/linux during the next big refactor
16562
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16563
  shlibpath_var=LD_LIBRARY_PATH
16564
  shlibpath_overrides_runpath=yes
16565
  ;;
16566
 
16567
*nto* | *qnx*)
16568
  version_type=qnx
16569
  need_lib_prefix=no
16570
  need_version=no
16571
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16572
  soname_spec='$libname$release$shared_ext$major'
16573
  shlibpath_var=LD_LIBRARY_PATH
16574
  shlibpath_overrides_runpath=no
16575
  hardcode_into_libs=yes
16576
  dynamic_linker='ldqnx.so'
16577
  ;;
16578
 
16579
openbsd* | bitrig*)
16580
  version_type=sunos
16581
  sys_lib_dlsearch_path_spec=/usr/lib
16582
  need_lib_prefix=no
16583
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16584
    need_version=no
16585
  else
16586
    need_version=yes
16587
  fi
16588
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16589
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16590
  shlibpath_var=LD_LIBRARY_PATH
16591
  shlibpath_overrides_runpath=yes
16592
  ;;
16593
 
16594
os2*)
16595
  libname_spec='$name'
16596
  version_type=windows
16597
  shrext_cmds=.dll
16598
  need_version=no
16599
  need_lib_prefix=no
16600
  # OS/2 can only load a DLL with a base name of 8 characters or less.
16601
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16602
    v=$($ECHO $release$versuffix | tr -d .-);
16603
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16604
    $ECHO $n$v`$shared_ext'
16605
  library_names_spec='${libname}_dll.$libext'
16606
  dynamic_linker='OS/2 ld.exe'
16607
  shlibpath_var=BEGINLIBPATH
16608
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16609
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16610
  postinstall_cmds='base_file=`basename \$file`~
16611
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16612
    dldir=$destdir/`dirname \$dlpath`~
16613
    test -d \$dldir || mkdir -p \$dldir~
16614
    $install_prog $dir/$dlname \$dldir/$dlname~
16615
    chmod a+x \$dldir/$dlname~
16616
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16617
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16618
    fi'
16619
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16620
    dlpath=$dir/\$dldll~
16621
    $RM \$dlpath'
16622
  ;;
16623
 
16624
osf3* | osf4* | osf5*)
16625
  version_type=osf
16626
  need_lib_prefix=no
16627
  need_version=no
16628
  soname_spec='$libname$release$shared_ext$major'
16629
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16630
  shlibpath_var=LD_LIBRARY_PATH
16631
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16632
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16633
  ;;
16634
 
16635
rdos*)
16636
  dynamic_linker=no
16637
  ;;
16638
 
16639
solaris*)
16640
  version_type=linux # correct to gnu/linux during the next big refactor
16641
  need_lib_prefix=no
16642
  need_version=no
16643
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16644
  soname_spec='$libname$release$shared_ext$major'
16645
  shlibpath_var=LD_LIBRARY_PATH
16646
  shlibpath_overrides_runpath=yes
16647
  hardcode_into_libs=yes
16648
  # ldd complains unless libraries are executable
16649
  postinstall_cmds='chmod +x $lib'
16650
  ;;
16651
 
16652
sunos4*)
16653
  version_type=sunos
16654
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16655
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16656
  shlibpath_var=LD_LIBRARY_PATH
16657
  shlibpath_overrides_runpath=yes
16658
  if test yes = "$with_gnu_ld"; then
16659
    need_lib_prefix=no
16660
  fi
16661
  need_version=yes
16662
  ;;
16663
 
16664
sysv4 | sysv4.3*)
16665
  version_type=linux # correct to gnu/linux during the next big refactor
16666
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16667
  soname_spec='$libname$release$shared_ext$major'
16668
  shlibpath_var=LD_LIBRARY_PATH
16669
  case $host_vendor in
16670
    sni)
16671
      shlibpath_overrides_runpath=no
16672
      need_lib_prefix=no
16673
      runpath_var=LD_RUN_PATH
16674
      ;;
16675
    siemens)
16676
      need_lib_prefix=no
16677
      ;;
16678
    motorola)
16679
      need_lib_prefix=no
16680
      need_version=no
16681
      shlibpath_overrides_runpath=no
16682
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16683
      ;;
16684
  esac
16685
  ;;
16686
 
16687
sysv4*MP*)
16688
  if test -d /usr/nec; then
16689
    version_type=linux # correct to gnu/linux during the next big refactor
16690
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16691
    soname_spec='$libname$shared_ext.$major'
16692
    shlibpath_var=LD_LIBRARY_PATH
16693
  fi
16694
  ;;
16695
 
16696
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16697
  version_type=sco
16698
  need_lib_prefix=no
16699
  need_version=no
16700
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16701
  soname_spec='$libname$release$shared_ext$major'
16702
  shlibpath_var=LD_LIBRARY_PATH
16703
  shlibpath_overrides_runpath=yes
16704
  hardcode_into_libs=yes
16705
  if test yes = "$with_gnu_ld"; then
16706
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16707
  else
16708
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16709
    case $host_os in
16710
      sco3.2v5*)
16711
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16712
	;;
16713
    esac
16714
  fi
16715
  sys_lib_dlsearch_path_spec='/usr/lib'
16716
  ;;
16717
 
16718
tpf*)
16719
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16720
  version_type=linux # correct to gnu/linux during the next big refactor
16721
  need_lib_prefix=no
16722
  need_version=no
16723
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16724
  shlibpath_var=LD_LIBRARY_PATH
16725
  shlibpath_overrides_runpath=no
16726
  hardcode_into_libs=yes
16727
  ;;
16728
 
16729
uts4*)
16730
  version_type=linux # correct to gnu/linux during the next big refactor
16731
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16732
  soname_spec='$libname$release$shared_ext$major'
16733
  shlibpath_var=LD_LIBRARY_PATH
16734
  ;;
16735
 
16736
*)
16737
  dynamic_linker=no
16738
  ;;
16739
esac
16740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16741
$as_echo "$dynamic_linker" >&6; }
16742
test no = "$dynamic_linker" && can_build_shared=no
16743
 
16744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16745
if test yes = "$GCC"; then
16746
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16747
fi
16748
 
16749
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16750
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16751
fi
16752
 
16753
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16754
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16755
fi
16756
 
16757
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16758
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16759
 
16760
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16761
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16762
 
16763
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16764
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16765
 
16766
 
16767
 
16768
 
16769
 
16770
 
16771
 
16772
 
16773
 
16774
 
16775
 
16776
 
16777
 
16778
 
16779
 
16780
 
16781
 
16782
 
16783
 
16784
 
16785
 
16786
 
16787
 
16788
 
16789
 
16790
 
16791
 
16792
 
16793
 
16794
 
16795
 
16796
 
16797
 
16798
 
16799
 
16800
 
16801
 
16802
 
16803
 
16804
 
16805
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16806
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16807
hardcode_action_CXX=
16808
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16809
   test -n "$runpath_var_CXX" ||
16810
   test yes = "$hardcode_automatic_CXX"; then
16811
 
16812
  # We can hardcode non-existent directories.
16813
  if test no != "$hardcode_direct_CXX" &&
16814
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16815
     # have to relink, otherwise we might link with an installed library
16816
     # when we should be linking with a yet-to-be-installed one
16817
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16818
     test no != "$hardcode_minus_L_CXX"; then
16819
    # Linking always hardcodes the temporary library directory.
16820
    hardcode_action_CXX=relink
16821
  else
16822
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16823
    hardcode_action_CXX=immediate
16824
  fi
16825
else
16826
  # We cannot hardcode anything, or else we can only hardcode existing
16827
  # directories.
16828
  hardcode_action_CXX=unsupported
16829
fi
16830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16831
$as_echo "$hardcode_action_CXX" >&6; }
16832
 
16833
if test relink = "$hardcode_action_CXX" ||
16834
   test yes = "$inherit_rpath_CXX"; then
16835
  # Fast installation is not supported
16836
  enable_fast_install=no
16837
elif test yes = "$shlibpath_overrides_runpath" ||
16838
     test no = "$enable_shared"; then
16839
  # Fast installation is not necessary
16840
  enable_fast_install=needless
16841
fi
16842
 
16843
 
16844
 
16845
 
16846
 
16847
 
16848
 
16849
  fi # test -n "$compiler"
16850
 
16851
  CC=$lt_save_CC
16852
  CFLAGS=$lt_save_CFLAGS
16853
  LDCXX=$LD
16854
  LD=$lt_save_LD
16855
  GCC=$lt_save_GCC
16856
  with_gnu_ld=$lt_save_with_gnu_ld
16857
  lt_cv_path_LDCXX=$lt_cv_path_LD
16858
  lt_cv_path_LD=$lt_save_path_LD
16859
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16860
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16861
fi # test yes != "$_lt_caught_CXX_error"
16862
 
16863
ac_ext=c
16864
ac_cpp='$CPP $CPPFLAGS'
16865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16868
 
16869
 
16870
 
16871
 
16872
 
16873
 
16874
ac_config_files="$ac_config_files Makefile vertlib/Makefile cmdlib/Makefile versionlib/Makefile acf_src/Makefile cdi_src/Makefile eagle_src/Makefile frb_src/Makefile gen_src/Makefile mentor_src/Makefile net_src/Makefile orcad_src/Makefile pads_src/Makefile protel_src/Makefile rep2_src/Makefile rep_src/Makefile"
16875
 
16876
cat >confcache <<\_ACEOF
16877
# This file is a shell script that caches the results of configure
16878
# tests run on this system so they can be shared between configure
16879
# scripts and configure runs, see configure's option --config-cache.
16880
# It is not useful on other systems.  If it contains results you don't
16881
# want to keep, you may remove or edit it.
16882
#
16883
# config.status only pays attention to the cache file if you give it
16884
# the --recheck option to rerun configure.
16885
#
16886
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16887
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16888
# following values.
16889
 
16890
_ACEOF
16891
 
16892
# The following way of writing the cache mishandles newlines in values,
16893
# but we know of no workaround that is simple, portable, and efficient.
16894
# So, we kill variables containing newlines.
16895
# Ultrix sh set writes to stderr and can't be redirected directly,
16896
# and sets the high bit in the cache file unless we assign to the vars.
16897
(
16898
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16899
    eval ac_val=\$$ac_var
16900
    case $ac_val in #(
16901
    *${as_nl}*)
16902
      case $ac_var in #(
16903
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16904
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16905
      esac
16906
      case $ac_var in #(
16907
      _ | IFS | as_nl) ;; #(
16908
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16909
      *) { eval $ac_var=; unset $ac_var;} ;;
16910
      esac ;;
16911
    esac
16912
  done
16913
 
16914
  (set) 2>&1 |
16915
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16916
    *${as_nl}ac_space=\ *)
16917
      # `set' does not quote correctly, so add quotes: double-quote
16918
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16919
      sed -n \
16920
	"s/'/'\\\\''/g;
16921
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16922
      ;; #(
16923
    *)
16924
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16925
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16926
      ;;
16927
    esac |
16928
    sort
16929
) |
16930
  sed '
16931
     /^ac_cv_env_/b end
16932
     t clear
16933
     :clear
16934
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16935
     t end
16936
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16937
     :end' >>confcache
16938
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16939
  if test -w "$cache_file"; then
16940
    if test "x$cache_file" != "x/dev/null"; then
16941
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16942
$as_echo "$as_me: updating cache $cache_file" >&6;}
16943
      if test ! -f "$cache_file" || test -h "$cache_file"; then
16944
	cat confcache >"$cache_file"
16945
      else
16946
        case $cache_file in #(
16947
        */* | ?:*)
16948
	  mv -f confcache "$cache_file"$$ &&
16949
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16950
        *)
16951
	  mv -f confcache "$cache_file" ;;
16952
	esac
16953
      fi
16954
    fi
16955
  else
16956
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16957
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16958
  fi
16959
fi
16960
rm -f confcache
16961
 
16962
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16963
# Let make expand exec_prefix.
16964
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16965
 
16966
DEFS=-DHAVE_CONFIG_H
16967
 
16968
ac_libobjs=
16969
ac_ltlibobjs=
16970
U=
16971
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16972
  # 1. Remove the extension, and $U if already installed.
16973
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16974
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16975
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16976
  #    will be set to the directory where LIBOBJS objects are built.
16977
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16978
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16979
done
16980
LIBOBJS=$ac_libobjs
16981
 
16982
LTLIBOBJS=$ac_ltlibobjs
16983
 
16984
 
16985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16986
$as_echo_n "checking that generated files are newer than configure... " >&6; }
16987
   if test -n "$am_sleep_pid"; then
16988
     # Hide warnings about reused PIDs.
16989
     wait $am_sleep_pid 2>/dev/null
16990
   fi
16991
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16992
$as_echo "done" >&6; }
16993
 if test -n "$EXEEXT"; then
16994
  am__EXEEXT_TRUE=
16995
  am__EXEEXT_FALSE='#'
16996
else
16997
  am__EXEEXT_TRUE='#'
16998
  am__EXEEXT_FALSE=
16999
fi
17000
 
17001
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17002
  as_fn_error $? "conditional \"AMDEP\" was never defined.
17003
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17004
fi
17005
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17006
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17007
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17008
fi
17009
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17010
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17011
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012
fi
17013
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17014
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17015
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17016
fi
17017
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17018
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17019
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020
fi
17021
 
17022
: "${CONFIG_STATUS=./config.status}"
17023
ac_write_fail=0
17024
ac_clean_files_save=$ac_clean_files
17025
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17026
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17027
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17028
as_write_fail=0
17029
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17030
#! $SHELL
17031
# Generated by $as_me.
17032
# Run this file to recreate the current configuration.
17033
# Compiler output produced by configure, useful for debugging
17034
# configure, is in config.log if it exists.
17035
 
17036
debug=false
17037
ac_cs_recheck=false
17038
ac_cs_silent=false
17039
 
17040
SHELL=\${CONFIG_SHELL-$SHELL}
17041
export SHELL
17042
_ASEOF
17043
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17044
## -------------------- ##
17045
## M4sh Initialization. ##
17046
## -------------------- ##
17047
 
17048
# Be more Bourne compatible
17049
DUALCASE=1; export DUALCASE # for MKS sh
17050
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17051
  emulate sh
17052
  NULLCMD=:
17053
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17054
  # is contrary to our usage.  Disable this feature.
17055
  alias -g '${1+"$@"}'='"$@"'
17056
  setopt NO_GLOB_SUBST
17057
else
17058
  case `(set -o) 2>/dev/null` in #(
17059
  *posix*) :
17060
    set -o posix ;; #(
17061
  *) :
17062
     ;;
17063
esac
17064
fi
17065
 
17066
 
17067
as_nl='
17068
'
17069
export as_nl
17070
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17071
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17072
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17073
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17074
# Prefer a ksh shell builtin over an external printf program on Solaris,
17075
# but without wasting forks for bash or zsh.
17076
if test -z "$BASH_VERSION$ZSH_VERSION" \
17077
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17078
  as_echo='print -r --'
17079
  as_echo_n='print -rn --'
17080
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17081
  as_echo='printf %s\n'
17082
  as_echo_n='printf %s'
17083
else
17084
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17085
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17086
    as_echo_n='/usr/ucb/echo -n'
17087
  else
17088
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17089
    as_echo_n_body='eval
17090
      arg=$1;
17091
      case $arg in #(
17092
      *"$as_nl"*)
17093
	expr "X$arg" : "X\\(.*\\)$as_nl";
17094
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17095
      esac;
17096
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17097
    '
17098
    export as_echo_n_body
17099
    as_echo_n='sh -c $as_echo_n_body as_echo'
17100
  fi
17101
  export as_echo_body
17102
  as_echo='sh -c $as_echo_body as_echo'
17103
fi
17104
 
17105
# The user is always right.
17106
if test "${PATH_SEPARATOR+set}" != set; then
17107
  PATH_SEPARATOR=:
17108
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17109
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17110
      PATH_SEPARATOR=';'
17111
  }
17112
fi
17113
 
17114
 
17115
# IFS
17116
# We need space, tab and new line, in precisely that order.  Quoting is
17117
# there to prevent editors from complaining about space-tab.
17118
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17119
# splitting by setting IFS to empty value.)
17120
IFS=" ""	$as_nl"
17121
 
17122
# Find who we are.  Look in the path if we contain no directory separator.
17123
as_myself=
17124
case $0 in #((
17125
  *[\\/]* ) as_myself=$0 ;;
17126
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17127
for as_dir in $PATH
17128
do
17129
  IFS=$as_save_IFS
17130
  test -z "$as_dir" && as_dir=.
17131
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17132
  done
17133
IFS=$as_save_IFS
17134
 
17135
     ;;
17136
esac
17137
# We did not find ourselves, most probably we were run as `sh COMMAND'
17138
# in which case we are not to be found in the path.
17139
if test "x$as_myself" = x; then
17140
  as_myself=$0
17141
fi
17142
if test ! -f "$as_myself"; then
17143
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17144
  exit 1
17145
fi
17146
 
17147
# Unset variables that we do not need and which cause bugs (e.g. in
17148
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17149
# suppresses any "Segmentation fault" message there.  '((' could
17150
# trigger a bug in pdksh 5.2.14.
17151
for as_var in BASH_ENV ENV MAIL MAILPATH
17152
do eval test x\${$as_var+set} = xset \
17153
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17154
done
17155
PS1='$ '
17156
PS2='> '
17157
PS4='+ '
17158
 
17159
# NLS nuisances.
17160
LC_ALL=C
17161
export LC_ALL
17162
LANGUAGE=C
17163
export LANGUAGE
17164
 
17165
# CDPATH.
17166
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17167
 
17168
 
17169
# as_fn_error STATUS ERROR [LINENO LOG_FD]
17170
# ----------------------------------------
17171
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17172
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17173
# script with STATUS, using 1 if that was 0.
17174
as_fn_error ()
17175
{
17176
  as_status=$1; test $as_status -eq 0 && as_status=1
17177
  if test "$4"; then
17178
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17179
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17180
  fi
17181
  $as_echo "$as_me: error: $2" >&2
17182
  as_fn_exit $as_status
17183
} # as_fn_error
17184
 
17185
 
17186
# as_fn_set_status STATUS
17187
# -----------------------
17188
# Set $? to STATUS, without forking.
17189
as_fn_set_status ()
17190
{
17191
  return $1
17192
} # as_fn_set_status
17193
 
17194
# as_fn_exit STATUS
17195
# -----------------
17196
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17197
as_fn_exit ()
17198
{
17199
  set +e
17200
  as_fn_set_status $1
17201
  exit $1
17202
} # as_fn_exit
17203
 
17204
# as_fn_unset VAR
17205
# ---------------
17206
# Portably unset VAR.
17207
as_fn_unset ()
17208
{
17209
  { eval $1=; unset $1;}
17210
}
17211
as_unset=as_fn_unset
17212
# as_fn_append VAR VALUE
17213
# ----------------------
17214
# Append the text in VALUE to the end of the definition contained in VAR. Take
17215
# advantage of any shell optimizations that allow amortized linear growth over
17216
# repeated appends, instead of the typical quadratic growth present in naive
17217
# implementations.
17218
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17219
  eval 'as_fn_append ()
17220
  {
17221
    eval $1+=\$2
17222
  }'
17223
else
17224
  as_fn_append ()
17225
  {
17226
    eval $1=\$$1\$2
17227
  }
17228
fi # as_fn_append
17229
 
17230
# as_fn_arith ARG...
17231
# ------------------
17232
# Perform arithmetic evaluation on the ARGs, and store the result in the
17233
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17234
# must be portable across $(()) and expr.
17235
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17236
  eval 'as_fn_arith ()
17237
  {
17238
    as_val=$(( $* ))
17239
  }'
17240
else
17241
  as_fn_arith ()
17242
  {
17243
    as_val=`expr "$@" || test $? -eq 1`
17244
  }
17245
fi # as_fn_arith
17246
 
17247
 
17248
if expr a : '\(a\)' >/dev/null 2>&1 &&
17249
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17250
  as_expr=expr
17251
else
17252
  as_expr=false
17253
fi
17254
 
17255
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17256
  as_basename=basename
17257
else
17258
  as_basename=false
17259
fi
17260
 
17261
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17262
  as_dirname=dirname
17263
else
17264
  as_dirname=false
17265
fi
17266
 
17267
as_me=`$as_basename -- "$0" ||
17268
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17269
	 X"$0" : 'X\(//\)$' \| \
17270
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17271
$as_echo X/"$0" |
17272
    sed '/^.*\/\([^/][^/]*\)\/*$/{
17273
	    s//\1/
17274
	    q
17275
	  }
17276
	  /^X\/\(\/\/\)$/{
17277
	    s//\1/
17278
	    q
17279
	  }
17280
	  /^X\/\(\/\).*/{
17281
	    s//\1/
17282
	    q
17283
	  }
17284
	  s/.*/./; q'`
17285
 
17286
# Avoid depending upon Character Ranges.
17287
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17288
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17289
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17290
as_cr_digits='0123456789'
17291
as_cr_alnum=$as_cr_Letters$as_cr_digits
17292
 
17293
ECHO_C= ECHO_N= ECHO_T=
17294
case `echo -n x` in #(((((
17295
-n*)
17296
  case `echo 'xy\c'` in
17297
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17298
  xy)  ECHO_C='\c';;
17299
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17300
       ECHO_T='	';;
17301
  esac;;
17302
*)
17303
  ECHO_N='-n';;
17304
esac
17305
 
17306
rm -f conf$$ conf$$.exe conf$$.file
17307
if test -d conf$$.dir; then
17308
  rm -f conf$$.dir/conf$$.file
17309
else
17310
  rm -f conf$$.dir
17311
  mkdir conf$$.dir 2>/dev/null
17312
fi
17313
if (echo >conf$$.file) 2>/dev/null; then
17314
  if ln -s conf$$.file conf$$ 2>/dev/null; then
17315
    as_ln_s='ln -s'
17316
    # ... but there are two gotchas:
17317
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17318
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17319
    # In both cases, we have to default to `cp -pR'.
17320
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17321
      as_ln_s='cp -pR'
17322
  elif ln conf$$.file conf$$ 2>/dev/null; then
17323
    as_ln_s=ln
17324
  else
17325
    as_ln_s='cp -pR'
17326
  fi
17327
else
17328
  as_ln_s='cp -pR'
17329
fi
17330
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17331
rmdir conf$$.dir 2>/dev/null
17332
 
17333
 
17334
# as_fn_mkdir_p
17335
# -------------
17336
# Create "$as_dir" as a directory, including parents if necessary.
17337
as_fn_mkdir_p ()
17338
{
17339
 
17340
  case $as_dir in #(
17341
  -*) as_dir=./$as_dir;;
17342
  esac
17343
  test -d "$as_dir" || eval $as_mkdir_p || {
17344
    as_dirs=
17345
    while :; do
17346
      case $as_dir in #(
17347
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17348
      *) as_qdir=$as_dir;;
17349
      esac
17350
      as_dirs="'$as_qdir' $as_dirs"
17351
      as_dir=`$as_dirname -- "$as_dir" ||
17352
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17353
	 X"$as_dir" : 'X\(//\)[^/]' \| \
17354
	 X"$as_dir" : 'X\(//\)$' \| \
17355
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17356
$as_echo X"$as_dir" |
17357
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17358
	    s//\1/
17359
	    q
17360
	  }
17361
	  /^X\(\/\/\)[^/].*/{
17362
	    s//\1/
17363
	    q
17364
	  }
17365
	  /^X\(\/\/\)$/{
17366
	    s//\1/
17367
	    q
17368
	  }
17369
	  /^X\(\/\).*/{
17370
	    s//\1/
17371
	    q
17372
	  }
17373
	  s/.*/./; q'`
17374
      test -d "$as_dir" && break
17375
    done
17376
    test -z "$as_dirs" || eval "mkdir $as_dirs"
17377
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17378
 
17379
 
17380
} # as_fn_mkdir_p
17381
if mkdir -p . 2>/dev/null; then
17382
  as_mkdir_p='mkdir -p "$as_dir"'
17383
else
17384
  test -d ./-p && rmdir ./-p
17385
  as_mkdir_p=false
17386
fi
17387
 
17388
 
17389
# as_fn_executable_p FILE
17390
# -----------------------
17391
# Test if FILE is an executable regular file.
17392
as_fn_executable_p ()
17393
{
17394
  test -f "$1" && test -x "$1"
17395
} # as_fn_executable_p
17396
as_test_x='test -x'
17397
as_executable_p=as_fn_executable_p
17398
 
17399
# Sed expression to map a string onto a valid CPP name.
17400
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17401
 
17402
# Sed expression to map a string onto a valid variable name.
17403
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17404
 
17405
 
17406
exec 6>&1
17407
## ----------------------------------- ##
17408
## Main body of $CONFIG_STATUS script. ##
17409
## ----------------------------------- ##
17410
_ASEOF
17411
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17412
 
17413
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17414
# Save the log message, to keep $0 and so on meaningful, and to
17415
# report actual input values of CONFIG_FILES etc. instead of their
17416
# values after options handling.
17417
ac_log="
17418
This file was extended by metal $as_me 1.2, which was
17419
generated by GNU Autoconf 2.69.  Invocation command line was
17420
 
17421
  CONFIG_FILES    = $CONFIG_FILES
17422
  CONFIG_HEADERS  = $CONFIG_HEADERS
17423
  CONFIG_LINKS    = $CONFIG_LINKS
17424
  CONFIG_COMMANDS = $CONFIG_COMMANDS
17425
  $ $0 $@
17426
 
17427
on `(hostname || uname -n) 2>/dev/null | sed 1q`
17428
"
17429
 
17430
_ACEOF
17431
 
17432
case $ac_config_files in *"
17433
"*) set x $ac_config_files; shift; ac_config_files=$*;;
17434
esac
17435
 
17436
case $ac_config_headers in *"
17437
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17438
esac
17439
 
17440
 
17441
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17442
# Files that config.status was made for.
17443
config_files="$ac_config_files"
17444
config_headers="$ac_config_headers"
17445
config_commands="$ac_config_commands"
17446
 
17447
_ACEOF
17448
 
17449
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17450
ac_cs_usage="\
17451
\`$as_me' instantiates files and other configuration actions
17452
from templates according to the current configuration.  Unless the files
17453
and actions are specified as TAGs, all are instantiated by default.
17454
 
17455
Usage: $0 [OPTION]... [TAG]...
17456
 
17457
  -h, --help       print this help, then exit
17458
  -V, --version    print version number and configuration settings, then exit
17459
      --config     print configuration, then exit
17460
  -q, --quiet, --silent
17461
                   do not print progress messages
17462
  -d, --debug      don't remove temporary files
17463
      --recheck    update $as_me by reconfiguring in the same conditions
17464
      --file=FILE[:TEMPLATE]
17465
                   instantiate the configuration file FILE
17466
      --header=FILE[:TEMPLATE]
17467
                   instantiate the configuration header FILE
17468
 
17469
Configuration files:
17470
$config_files
17471
 
17472
Configuration headers:
17473
$config_headers
17474
 
17475
Configuration commands:
17476
$config_commands
17477
 
17478
Report bugs to <mike@hamble.online>."
17479
 
17480
_ACEOF
17481
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17482
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17483
ac_cs_version="\\
17484
metal config.status 1.2
17485
configured by $0, generated by GNU Autoconf 2.69,
17486
  with options \\"\$ac_cs_config\\"
17487
 
17488
Copyright (C) 2012 Free Software Foundation, Inc.
17489
This config.status script is free software; the Free Software Foundation
17490
gives unlimited permission to copy, distribute and modify it."
17491
 
17492
ac_pwd='$ac_pwd'
17493
srcdir='$srcdir'
17494
INSTALL='$INSTALL'
17495
MKDIR_P='$MKDIR_P'
17496
AWK='$AWK'
17497
test -n "\$AWK" || AWK=awk
17498
_ACEOF
17499
 
17500
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17501
# The default lists apply if the user does not specify any file.
17502
ac_need_defaults=:
17503
while test $# != 0
17504
do
17505
  case $1 in
17506
  --*=?*)
17507
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17508
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17509
    ac_shift=:
17510
    ;;
17511
  --*=)
17512
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17513
    ac_optarg=
17514
    ac_shift=:
17515
    ;;
17516
  *)
17517
    ac_option=$1
17518
    ac_optarg=$2
17519
    ac_shift=shift
17520
    ;;
17521
  esac
17522
 
17523
  case $ac_option in
17524
  # Handling of the options.
17525
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17526
    ac_cs_recheck=: ;;
17527
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17528
    $as_echo "$ac_cs_version"; exit ;;
17529
  --config | --confi | --conf | --con | --co | --c )
17530
    $as_echo "$ac_cs_config"; exit ;;
17531
  --debug | --debu | --deb | --de | --d | -d )
17532
    debug=: ;;
17533
  --file | --fil | --fi | --f )
17534
    $ac_shift
17535
    case $ac_optarg in
17536
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17537
    '') as_fn_error $? "missing file argument" ;;
17538
    esac
17539
    as_fn_append CONFIG_FILES " '$ac_optarg'"
17540
    ac_need_defaults=false;;
17541
  --header | --heade | --head | --hea )
17542
    $ac_shift
17543
    case $ac_optarg in
17544
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17545
    esac
17546
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17547
    ac_need_defaults=false;;
17548
  --he | --h)
17549
    # Conflict between --help and --header
17550
    as_fn_error $? "ambiguous option: \`$1'
17551
Try \`$0 --help' for more information.";;
17552
  --help | --hel | -h )
17553
    $as_echo "$ac_cs_usage"; exit ;;
17554
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17555
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17556
    ac_cs_silent=: ;;
17557
 
17558
  # This is an error.
17559
  -*) as_fn_error $? "unrecognized option: \`$1'
17560
Try \`$0 --help' for more information." ;;
17561
 
17562
  *) as_fn_append ac_config_targets " $1"
17563
     ac_need_defaults=false ;;
17564
 
17565
  esac
17566
  shift
17567
done
17568
 
17569
ac_configure_extra_args=
17570
 
17571
if $ac_cs_silent; then
17572
  exec 6>/dev/null
17573
  ac_configure_extra_args="$ac_configure_extra_args --silent"
17574
fi
17575
 
17576
_ACEOF
17577
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17578
if \$ac_cs_recheck; then
17579
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17580
  shift
17581
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17582
  CONFIG_SHELL='$SHELL'
17583
  export CONFIG_SHELL
17584
  exec "\$@"
17585
fi
17586
 
17587
_ACEOF
17588
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17589
exec 5>>config.log
17590
{
17591
  echo
17592
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17593
## Running $as_me. ##
17594
_ASBOX
17595
  $as_echo "$ac_log"
17596
} >&5
17597
 
17598
_ACEOF
17599
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17600
#
17601
# INIT-COMMANDS
17602
#
17603
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17604
 
17605
 
17606
# The HP-UX ksh and POSIX shell print the target directory to stdout
17607
# if CDPATH is set.
17608
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17609
 
17610
sed_quote_subst='$sed_quote_subst'
17611
double_quote_subst='$double_quote_subst'
17612
delay_variable_subst='$delay_variable_subst'
17613
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17614
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17615
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17616
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17617
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17618
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17619
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17620
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17621
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17622
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17623
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17624
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17625
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17626
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17627
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17628
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17629
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17630
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17631
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17632
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17633
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17634
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17635
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17636
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17637
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17638
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17639
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17640
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17641
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17642
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17643
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17644
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17645
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17646
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17647
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17648
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17649
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17650
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17651
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17652
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17653
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17654
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17655
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17656
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17657
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17658
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17659
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17660
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17661
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17662
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17663
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17664
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17665
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17666
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17667
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17668
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17669
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17670
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17671
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17672
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17673
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17674
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17675
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17676
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17677
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17678
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17679
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17680
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17681
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17682
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17683
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17684
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17685
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17686
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17687
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17688
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17689
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17690
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17691
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17692
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17693
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17694
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17695
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17696
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17697
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17698
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17699
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17700
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17701
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17702
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17703
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17704
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17705
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17706
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17707
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17708
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17709
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17710
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17711
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17712
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17713
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17714
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17715
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17716
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17717
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17718
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17719
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17720
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17721
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17722
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17723
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17724
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17725
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17726
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17727
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17728
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17729
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17730
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17731
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17732
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17733
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17734
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17735
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17736
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17737
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17738
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17739
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17740
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17741
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17742
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17743
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17744
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17745
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17746
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17747
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17748
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17749
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17750
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17751
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17752
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17753
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17754
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17755
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17756
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17757
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17758
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17759
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17760
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17761
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17762
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17763
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17764
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17765
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17766
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17767
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17768
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17769
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17770
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17771
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17772
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17773
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17774
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17775
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17776
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17777
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17778
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17779
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17780
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17781
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17782
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17783
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17784
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17785
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17786
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17787
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17788
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17789
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17790
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17791
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17792
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17793
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17794
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17795
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17796
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17797
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17798
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17799
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17800
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17801
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17802
 
17803
LTCC='$LTCC'
17804
LTCFLAGS='$LTCFLAGS'
17805
compiler='$compiler_DEFAULT'
17806
 
17807
# A function that is used when there is no print builtin or printf.
17808
func_fallback_echo ()
17809
{
17810
  eval 'cat <<_LTECHO_EOF
17811
\$1
17812
_LTECHO_EOF'
17813
}
17814
 
17815
# Quote evaled strings.
17816
for var in SHELL \
17817
ECHO \
17818
PATH_SEPARATOR \
17819
SED \
17820
GREP \
17821
EGREP \
17822
FGREP \
17823
LD \
17824
NM \
17825
LN_S \
17826
lt_SP2NL \
17827
lt_NL2SP \
17828
reload_flag \
17829
OBJDUMP \
17830
deplibs_check_method \
17831
file_magic_cmd \
17832
file_magic_glob \
17833
want_nocaseglob \
17834
DLLTOOL \
17835
sharedlib_from_linklib_cmd \
17836
AR \
17837
AR_FLAGS \
17838
archiver_list_spec \
17839
STRIP \
17840
RANLIB \
17841
CC \
17842
CFLAGS \
17843
compiler \
17844
lt_cv_sys_global_symbol_pipe \
17845
lt_cv_sys_global_symbol_to_cdecl \
17846
lt_cv_sys_global_symbol_to_import \
17847
lt_cv_sys_global_symbol_to_c_name_address \
17848
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17849
lt_cv_nm_interface \
17850
nm_file_list_spec \
17851
lt_cv_truncate_bin \
17852
lt_prog_compiler_no_builtin_flag \
17853
lt_prog_compiler_pic \
17854
lt_prog_compiler_wl \
17855
lt_prog_compiler_static \
17856
lt_cv_prog_compiler_c_o \
17857
need_locks \
17858
MANIFEST_TOOL \
17859
DSYMUTIL \
17860
NMEDIT \
17861
LIPO \
17862
OTOOL \
17863
OTOOL64 \
17864
shrext_cmds \
17865
export_dynamic_flag_spec \
17866
whole_archive_flag_spec \
17867
compiler_needs_object \
17868
with_gnu_ld \
17869
allow_undefined_flag \
17870
no_undefined_flag \
17871
hardcode_libdir_flag_spec \
17872
hardcode_libdir_separator \
17873
exclude_expsyms \
17874
include_expsyms \
17875
file_list_spec \
17876
variables_saved_for_relink \
17877
libname_spec \
17878
library_names_spec \
17879
soname_spec \
17880
install_override_mode \
17881
finish_eval \
17882
old_striplib \
17883
striplib \
17884
compiler_lib_search_dirs \
17885
predep_objects \
17886
postdep_objects \
17887
predeps \
17888
postdeps \
17889
compiler_lib_search_path \
17890
LD_CXX \
17891
reload_flag_CXX \
17892
compiler_CXX \
17893
lt_prog_compiler_no_builtin_flag_CXX \
17894
lt_prog_compiler_pic_CXX \
17895
lt_prog_compiler_wl_CXX \
17896
lt_prog_compiler_static_CXX \
17897
lt_cv_prog_compiler_c_o_CXX \
17898
export_dynamic_flag_spec_CXX \
17899
whole_archive_flag_spec_CXX \
17900
compiler_needs_object_CXX \
17901
with_gnu_ld_CXX \
17902
allow_undefined_flag_CXX \
17903
no_undefined_flag_CXX \
17904
hardcode_libdir_flag_spec_CXX \
17905
hardcode_libdir_separator_CXX \
17906
exclude_expsyms_CXX \
17907
include_expsyms_CXX \
17908
file_list_spec_CXX \
17909
compiler_lib_search_dirs_CXX \
17910
predep_objects_CXX \
17911
postdep_objects_CXX \
17912
predeps_CXX \
17913
postdeps_CXX \
17914
compiler_lib_search_path_CXX; do
17915
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17916
    *[\\\\\\\`\\"\\\$]*)
17917
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17918
      ;;
17919
    *)
17920
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17921
      ;;
17922
    esac
17923
done
17924
 
17925
# Double-quote double-evaled strings.
17926
for var in reload_cmds \
17927
old_postinstall_cmds \
17928
old_postuninstall_cmds \
17929
old_archive_cmds \
17930
extract_expsyms_cmds \
17931
old_archive_from_new_cmds \
17932
old_archive_from_expsyms_cmds \
17933
archive_cmds \
17934
archive_expsym_cmds \
17935
module_cmds \
17936
module_expsym_cmds \
17937
export_symbols_cmds \
17938
prelink_cmds \
17939
postlink_cmds \
17940
postinstall_cmds \
17941
postuninstall_cmds \
17942
finish_cmds \
17943
sys_lib_search_path_spec \
17944
configure_time_dlsearch_path \
17945
configure_time_lt_sys_library_path \
17946
reload_cmds_CXX \
17947
old_archive_cmds_CXX \
17948
old_archive_from_new_cmds_CXX \
17949
old_archive_from_expsyms_cmds_CXX \
17950
archive_cmds_CXX \
17951
archive_expsym_cmds_CXX \
17952
module_cmds_CXX \
17953
module_expsym_cmds_CXX \
17954
export_symbols_cmds_CXX \
17955
prelink_cmds_CXX \
17956
postlink_cmds_CXX; do
17957
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17958
    *[\\\\\\\`\\"\\\$]*)
17959
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17960
      ;;
17961
    *)
17962
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17963
      ;;
17964
    esac
17965
done
17966
 
17967
ac_aux_dir='$ac_aux_dir'
17968
 
17969
# See if we are running on zsh, and set the options that allow our
17970
# commands through without removal of \ escapes INIT.
17971
if test -n "\${ZSH_VERSION+set}"; then
17972
   setopt NO_GLOB_SUBST
17973
fi
17974
 
17975
 
17976
    PACKAGE='$PACKAGE'
17977
    VERSION='$VERSION'
17978
    RM='$RM'
17979
    ofile='$ofile'
17980
 
17981
 
17982
 
17983
 
17984
 
17985
 
17986
_ACEOF
17987
 
17988
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17989
 
17990
# Handling of arguments.
17991
for ac_config_target in $ac_config_targets
17992
do
17993
  case $ac_config_target in
17994
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17995
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17996
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17997
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17998
    "vertlib/Makefile") CONFIG_FILES="$CONFIG_FILES vertlib/Makefile" ;;
17999
    "cmdlib/Makefile") CONFIG_FILES="$CONFIG_FILES cmdlib/Makefile" ;;
18000
    "versionlib/Makefile") CONFIG_FILES="$CONFIG_FILES versionlib/Makefile" ;;
18001
    "acf_src/Makefile") CONFIG_FILES="$CONFIG_FILES acf_src/Makefile" ;;
18002
    "cdi_src/Makefile") CONFIG_FILES="$CONFIG_FILES cdi_src/Makefile" ;;
18003
    "eagle_src/Makefile") CONFIG_FILES="$CONFIG_FILES eagle_src/Makefile" ;;
18004
    "frb_src/Makefile") CONFIG_FILES="$CONFIG_FILES frb_src/Makefile" ;;
18005
    "gen_src/Makefile") CONFIG_FILES="$CONFIG_FILES gen_src/Makefile" ;;
18006
    "mentor_src/Makefile") CONFIG_FILES="$CONFIG_FILES mentor_src/Makefile" ;;
18007
    "net_src/Makefile") CONFIG_FILES="$CONFIG_FILES net_src/Makefile" ;;
18008
    "orcad_src/Makefile") CONFIG_FILES="$CONFIG_FILES orcad_src/Makefile" ;;
18009
    "pads_src/Makefile") CONFIG_FILES="$CONFIG_FILES pads_src/Makefile" ;;
18010
    "protel_src/Makefile") CONFIG_FILES="$CONFIG_FILES protel_src/Makefile" ;;
18011
    "rep2_src/Makefile") CONFIG_FILES="$CONFIG_FILES rep2_src/Makefile" ;;
18012
    "rep_src/Makefile") CONFIG_FILES="$CONFIG_FILES rep_src/Makefile" ;;
18013
 
18014
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18015
  esac
18016
done
18017
 
18018
 
18019
# If the user did not use the arguments to specify the items to instantiate,
18020
# then the envvar interface is used.  Set only those that are not.
18021
# We use the long form for the default assignment because of an extremely
18022
# bizarre bug on SunOS 4.1.3.
18023
if $ac_need_defaults; then
18024
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18025
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18026
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18027
fi
18028
 
18029
# Have a temporary directory for convenience.  Make it in the build tree
18030
# simply because there is no reason against having it here, and in addition,
18031
# creating and moving files from /tmp can sometimes cause problems.
18032
# Hook for its removal unless debugging.
18033
# Note that there is a small window in which the directory will not be cleaned:
18034
# after its creation but before its name has been assigned to `$tmp'.
18035
$debug ||
18036
{
18037
  tmp= ac_tmp=
18038
  trap 'exit_status=$?
18039
  : "${ac_tmp:=$tmp}"
18040
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18041
' 0
18042
  trap 'as_fn_exit 1' 1 2 13 15
18043
}
18044
# Create a (secure) tmp directory for tmp files.
18045
 
18046
{
18047
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18048
  test -d "$tmp"
18049
}  ||
18050
{
18051
  tmp=./conf$$-$RANDOM
18052
  (umask 077 && mkdir "$tmp")
18053
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18054
ac_tmp=$tmp
18055
 
18056
# Set up the scripts for CONFIG_FILES section.
18057
# No need to generate them if there are no CONFIG_FILES.
18058
# This happens for instance with `./config.status config.h'.
18059
if test -n "$CONFIG_FILES"; then
18060
 
18061
 
18062
ac_cr=`echo X | tr X '\015'`
18063
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18064
# But we know of no other shell where ac_cr would be empty at this
18065
# point, so we can use a bashism as a fallback.
18066
if test "x$ac_cr" = x; then
18067
  eval ac_cr=\$\'\\r\'
18068
fi
18069
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18070
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18071
  ac_cs_awk_cr='\\r'
18072
else
18073
  ac_cs_awk_cr=$ac_cr
18074
fi
18075
 
18076
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18077
_ACEOF
18078
 
18079
 
18080
{
18081
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18082
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18083
  echo "_ACEOF"
18084
} >conf$$subs.sh ||
18085
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18086
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18087
ac_delim='%!_!# '
18088
for ac_last_try in false false false false false :; do
18089
  . ./conf$$subs.sh ||
18090
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18091
 
18092
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18093
  if test $ac_delim_n = $ac_delim_num; then
18094
    break
18095
  elif $ac_last_try; then
18096
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18097
  else
18098
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18099
  fi
18100
done
18101
rm -f conf$$subs.sh
18102
 
18103
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18105
_ACEOF
18106
sed -n '
18107
h
18108
s/^/S["/; s/!.*/"]=/
18109
p
18110
g
18111
s/^[^!]*!//
18112
:repl
18113
t repl
18114
s/'"$ac_delim"'$//
18115
t delim
18116
:nl
18117
h
18118
s/\(.\{148\}\)..*/\1/
18119
t more1
18120
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18121
p
18122
n
18123
b repl
18124
:more1
18125
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18126
p
18127
g
18128
s/.\{148\}//
18129
t nl
18130
:delim
18131
h
18132
s/\(.\{148\}\)..*/\1/
18133
t more2
18134
s/["\\]/\\&/g; s/^/"/; s/$/"/
18135
p
18136
b
18137
:more2
18138
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18139
p
18140
g
18141
s/.\{148\}//
18142
t delim
18143
' <conf$$subs.awk | sed '
18144
/^[^""]/{
18145
  N
18146
  s/\n//
18147
}
18148
' >>$CONFIG_STATUS || ac_write_fail=1
18149
rm -f conf$$subs.awk
18150
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151
_ACAWK
18152
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18153
  for (key in S) S_is_set[key] = 1
18154
  FS = ""
18155
 
18156
}
18157
{
18158
  line = $ 0
18159
  nfields = split(line, field, "@")
18160
  substed = 0
18161
  len = length(field[1])
18162
  for (i = 2; i < nfields; i++) {
18163
    key = field[i]
18164
    keylen = length(key)
18165
    if (S_is_set[key]) {
18166
      value = S[key]
18167
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18168
      len += length(value) + length(field[++i])
18169
      substed = 1
18170
    } else
18171
      len += 1 + keylen
18172
  }
18173
 
18174
  print line
18175
}
18176
 
18177
_ACAWK
18178
_ACEOF
18179
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18180
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18181
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18182
else
18183
  cat
18184
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18185
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18186
_ACEOF
18187
 
18188
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18189
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18190
# trailing colons and then remove the whole line if VPATH becomes empty
18191
# (actually we leave an empty line to preserve line numbers).
18192
if test "x$srcdir" = x.; then
18193
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18194
h
18195
s///
18196
s/^/:/
18197
s/[	 ]*$/:/
18198
s/:\$(srcdir):/:/g
18199
s/:\${srcdir}:/:/g
18200
s/:@srcdir@:/:/g
18201
s/^:*//
18202
s/:*$//
18203
x
18204
s/\(=[	 ]*\).*/\1/
18205
G
18206
s/\n//
18207
s/^[^=]*=[	 ]*$//
18208
}'
18209
fi
18210
 
18211
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18212
fi # test -n "$CONFIG_FILES"
18213
 
18214
# Set up the scripts for CONFIG_HEADERS section.
18215
# No need to generate them if there are no CONFIG_HEADERS.
18216
# This happens for instance with `./config.status Makefile'.
18217
if test -n "$CONFIG_HEADERS"; then
18218
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18219
BEGIN {
18220
_ACEOF
18221
 
18222
# Transform confdefs.h into an awk script `defines.awk', embedded as
18223
# here-document in config.status, that substitutes the proper values into
18224
# config.h.in to produce config.h.
18225
 
18226
# Create a delimiter string that does not exist in confdefs.h, to ease
18227
# handling of long lines.
18228
ac_delim='%!_!# '
18229
for ac_last_try in false false :; do
18230
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18231
  if test -z "$ac_tt"; then
18232
    break
18233
  elif $ac_last_try; then
18234
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18235
  else
18236
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18237
  fi
18238
done
18239
 
18240
# For the awk script, D is an array of macro values keyed by name,
18241
# likewise P contains macro parameters if any.  Preserve backslash
18242
# newline sequences.
18243
 
18244
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18245
sed -n '
18246
s/.\{148\}/&'"$ac_delim"'/g
18247
t rset
18248
:rset
18249
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18250
t def
18251
d
18252
:def
18253
s/\\$//
18254
t bsnl
18255
s/["\\]/\\&/g
18256
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18257
D["\1"]=" \3"/p
18258
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18259
d
18260
:bsnl
18261
s/["\\]/\\&/g
18262
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18263
D["\1"]=" \3\\\\\\n"\\/p
18264
t cont
18265
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18266
t cont
18267
d
18268
:cont
18269
n
18270
s/.\{148\}/&'"$ac_delim"'/g
18271
t clear
18272
:clear
18273
s/\\$//
18274
t bsnlc
18275
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18276
d
18277
:bsnlc
18278
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18279
b cont
18280
' <confdefs.h | sed '
18281
s/'"$ac_delim"'/"\\\
18282
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18283
 
18284
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18285
  for (key in D) D_is_set[key] = 1
18286
  FS = ""
18287
}
18288
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18289
  line = \$ 0
18290
  split(line, arg, " ")
18291
  if (arg[1] == "#") {
18292
    defundef = arg[2]
18293
    mac1 = arg[3]
18294
  } else {
18295
    defundef = substr(arg[1], 2)
18296
    mac1 = arg[2]
18297
  }
18298
  split(mac1, mac2, "(") #)
18299
  macro = mac2[1]
18300
  prefix = substr(line, 1, index(line, defundef) - 1)
18301
  if (D_is_set[macro]) {
18302
    # Preserve the white space surrounding the "#".
18303
    print prefix "define", macro P[macro] D[macro]
18304
    next
18305
  } else {
18306
    # Replace #undef with comments.  This is necessary, for example,
18307
    # in the case of _POSIX_SOURCE, which is predefined and required
18308
    # on some systems where configure will not decide to define it.
18309
    if (defundef == "undef") {
18310
      print "/*", prefix defundef, macro, "*/"
18311
      next
18312
    }
18313
  }
18314
}
18315
{ print }
18316
_ACAWK
18317
_ACEOF
18318
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18319
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18320
fi # test -n "$CONFIG_HEADERS"
18321
 
18322
 
18323
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18324
shift
18325
for ac_tag
18326
do
18327
  case $ac_tag in
18328
  :[FHLC]) ac_mode=$ac_tag; continue;;
18329
  esac
18330
  case $ac_mode$ac_tag in
18331
  :[FHL]*:*);;
18332
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18333
  :[FH]-) ac_tag=-:-;;
18334
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18335
  esac
18336
  ac_save_IFS=$IFS
18337
  IFS=:
18338
  set x $ac_tag
18339
  IFS=$ac_save_IFS
18340
  shift
18341
  ac_file=$1
18342
  shift
18343
 
18344
  case $ac_mode in
18345
  :L) ac_source=$1;;
18346
  :[FH])
18347
    ac_file_inputs=
18348
    for ac_f
18349
    do
18350
      case $ac_f in
18351
      -) ac_f="$ac_tmp/stdin";;
18352
      *) # Look for the file first in the build tree, then in the source tree
18353
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18354
	 # because $ac_f cannot contain `:'.
18355
	 test -f "$ac_f" ||
18356
	   case $ac_f in
18357
	   [\\/$]*) false;;
18358
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18359
	   esac ||
18360
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18361
      esac
18362
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18363
      as_fn_append ac_file_inputs " '$ac_f'"
18364
    done
18365
 
18366
    # Let's still pretend it is `configure' which instantiates (i.e., don't
18367
    # use $as_me), people would be surprised to read:
18368
    #    /* config.h.  Generated by config.status.  */
18369
    configure_input='Generated from '`
18370
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18371
	`' by configure.'
18372
    if test x"$ac_file" != x-; then
18373
      configure_input="$ac_file.  $configure_input"
18374
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18375
$as_echo "$as_me: creating $ac_file" >&6;}
18376
    fi
18377
    # Neutralize special characters interpreted by sed in replacement strings.
18378
    case $configure_input in #(
18379
    *\&* | *\|* | *\\* )
18380
       ac_sed_conf_input=`$as_echo "$configure_input" |
18381
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18382
    *) ac_sed_conf_input=$configure_input;;
18383
    esac
18384
 
18385
    case $ac_tag in
18386
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18387
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18388
    esac
18389
    ;;
18390
  esac
18391
 
18392
  ac_dir=`$as_dirname -- "$ac_file" ||
18393
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18394
	 X"$ac_file" : 'X\(//\)[^/]' \| \
18395
	 X"$ac_file" : 'X\(//\)$' \| \
18396
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18397
$as_echo X"$ac_file" |
18398
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18399
	    s//\1/
18400
	    q
18401
	  }
18402
	  /^X\(\/\/\)[^/].*/{
18403
	    s//\1/
18404
	    q
18405
	  }
18406
	  /^X\(\/\/\)$/{
18407
	    s//\1/
18408
	    q
18409
	  }
18410
	  /^X\(\/\).*/{
18411
	    s//\1/
18412
	    q
18413
	  }
18414
	  s/.*/./; q'`
18415
  as_dir="$ac_dir"; as_fn_mkdir_p
18416
  ac_builddir=.
18417
 
18418
case "$ac_dir" in
18419
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18420
*)
18421
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18422
  # A ".." for each directory in $ac_dir_suffix.
18423
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18424
  case $ac_top_builddir_sub in
18425
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18426
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18427
  esac ;;
18428
esac
18429
ac_abs_top_builddir=$ac_pwd
18430
ac_abs_builddir=$ac_pwd$ac_dir_suffix
18431
# for backward compatibility:
18432
ac_top_builddir=$ac_top_build_prefix
18433
 
18434
case $srcdir in
18435
  .)  # We are building in place.
18436
    ac_srcdir=.
18437
    ac_top_srcdir=$ac_top_builddir_sub
18438
    ac_abs_top_srcdir=$ac_pwd ;;
18439
  [\\/]* | ?:[\\/]* )  # Absolute name.
18440
    ac_srcdir=$srcdir$ac_dir_suffix;
18441
    ac_top_srcdir=$srcdir
18442
    ac_abs_top_srcdir=$srcdir ;;
18443
  *) # Relative name.
18444
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18445
    ac_top_srcdir=$ac_top_build_prefix$srcdir
18446
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18447
esac
18448
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18449
 
18450
 
18451
  case $ac_mode in
18452
  :F)
18453
  #
18454
  # CONFIG_FILE
18455
  #
18456
 
18457
  case $INSTALL in
18458
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18459
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18460
  esac
18461
  ac_MKDIR_P=$MKDIR_P
18462
  case $MKDIR_P in
18463
  [\\/$]* | ?:[\\/]* ) ;;
18464
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18465
  esac
18466
_ACEOF
18467
 
18468
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18469
# If the template does not know about datarootdir, expand it.
18470
# FIXME: This hack should be removed a few years after 2.60.
18471
ac_datarootdir_hack=; ac_datarootdir_seen=
18472
ac_sed_dataroot='
18473
/datarootdir/ {
18474
  p
18475
  q
18476
}
18477
/@datadir@/p
18478
/@docdir@/p
18479
/@infodir@/p
18480
/@localedir@/p
18481
/@mandir@/p'
18482
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18483
*datarootdir*) ac_datarootdir_seen=yes;;
18484
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18485
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18486
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18487
_ACEOF
18488
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18489
  ac_datarootdir_hack='
18490
  s&@datadir@&$datadir&g
18491
  s&@docdir@&$docdir&g
18492
  s&@infodir@&$infodir&g
18493
  s&@localedir@&$localedir&g
18494
  s&@mandir@&$mandir&g
18495
  s&\\\${datarootdir}&$datarootdir&g' ;;
18496
esac
18497
_ACEOF
18498
 
18499
# Neutralize VPATH when `$srcdir' = `.'.
18500
# Shell code in configure.ac might set extrasub.
18501
# FIXME: do we really want to maintain this feature?
18502
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18503
ac_sed_extra="$ac_vpsub
18504
$extrasub
18505
_ACEOF
18506
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18507
:t
18508
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18509
s|@configure_input@|$ac_sed_conf_input|;t t
18510
s&@top_builddir@&$ac_top_builddir_sub&;t t
18511
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18512
s&@srcdir@&$ac_srcdir&;t t
18513
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18514
s&@top_srcdir@&$ac_top_srcdir&;t t
18515
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18516
s&@builddir@&$ac_builddir&;t t
18517
s&@abs_builddir@&$ac_abs_builddir&;t t
18518
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18519
s&@INSTALL@&$ac_INSTALL&;t t
18520
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18521
$ac_datarootdir_hack
18522
"
18523
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18524
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18525
 
18526
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18527
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18528
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18529
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18530
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18531
which seems to be undefined.  Please make sure it is defined" >&5
18532
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18533
which seems to be undefined.  Please make sure it is defined" >&2;}
18534
 
18535
  rm -f "$ac_tmp/stdin"
18536
  case $ac_file in
18537
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18538
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18539
  esac \
18540
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18541
 ;;
18542
  :H)
18543
  #
18544
  # CONFIG_HEADER
18545
  #
18546
  if test x"$ac_file" != x-; then
18547
    {
18548
      $as_echo "/* $configure_input  */" \
18549
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18550
    } >"$ac_tmp/config.h" \
18551
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18552
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18553
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18554
$as_echo "$as_me: $ac_file is unchanged" >&6;}
18555
    else
18556
      rm -f "$ac_file"
18557
      mv "$ac_tmp/config.h" "$ac_file" \
18558
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18559
    fi
18560
  else
18561
    $as_echo "/* $configure_input  */" \
18562
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18563
      || as_fn_error $? "could not create -" "$LINENO" 5
18564
  fi
18565
# Compute "$ac_file"'s index in $config_headers.
18566
_am_arg="$ac_file"
18567
_am_stamp_count=1
18568
for _am_header in $config_headers :; do
18569
  case $_am_header in
18570
    $_am_arg | $_am_arg:* )
18571
      break ;;
18572
    * )
18573
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18574
  esac
18575
done
18576
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18577
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18578
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18579
	 X"$_am_arg" : 'X\(//\)$' \| \
18580
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18581
$as_echo X"$_am_arg" |
18582
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18583
	    s//\1/
18584
	    q
18585
	  }
18586
	  /^X\(\/\/\)[^/].*/{
18587
	    s//\1/
18588
	    q
18589
	  }
18590
	  /^X\(\/\/\)$/{
18591
	    s//\1/
18592
	    q
18593
	  }
18594
	  /^X\(\/\).*/{
18595
	    s//\1/
18596
	    q
18597
	  }
18598
	  s/.*/./; q'`/stamp-h$_am_stamp_count
18599
 ;;
18600
 
18601
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18602
$as_echo "$as_me: executing $ac_file commands" >&6;}
18603
 ;;
18604
  esac
18605
 
18606
 
18607
  case $ac_file$ac_mode in
18608
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18609
  # Older Autoconf quotes --file arguments for eval, but not when files
18610
  # are listed without --file.  Let's play safe and only enable the eval
18611
  # if we detect the quoting.
18612
  case $CONFIG_FILES in
18613
  *\'*) eval set x "$CONFIG_FILES" ;;
18614
  *)   set x $CONFIG_FILES ;;
18615
  esac
18616
  shift
18617
  for mf
18618
  do
18619
    # Strip MF so we end up with the name of the file.
18620
    mf=`echo "$mf" | sed -e 's/:.*$//'`
18621
    # Check whether this is an Automake generated Makefile or not.
18622
    # We used to match only the files named 'Makefile.in', but
18623
    # some people rename them; so instead we look at the file content.
18624
    # Grep'ing the first line is not enough: some people post-process
18625
    # each Makefile.in and add a new line on top of each file to say so.
18626
    # Grep'ing the whole file is not good either: AIX grep has a line
18627
    # limit of 2048, but all sed's we know have understand at least 4000.
18628
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18629
      dirpart=`$as_dirname -- "$mf" ||
18630
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18631
	 X"$mf" : 'X\(//\)[^/]' \| \
18632
	 X"$mf" : 'X\(//\)$' \| \
18633
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18634
$as_echo X"$mf" |
18635
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18636
	    s//\1/
18637
	    q
18638
	  }
18639
	  /^X\(\/\/\)[^/].*/{
18640
	    s//\1/
18641
	    q
18642
	  }
18643
	  /^X\(\/\/\)$/{
18644
	    s//\1/
18645
	    q
18646
	  }
18647
	  /^X\(\/\).*/{
18648
	    s//\1/
18649
	    q
18650
	  }
18651
	  s/.*/./; q'`
18652
    else
18653
      continue
18654
    fi
18655
    # Extract the definition of DEPDIR, am__include, and am__quote
18656
    # from the Makefile without running 'make'.
18657
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18658
    test -z "$DEPDIR" && continue
18659
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18660
    test -z "$am__include" && continue
18661
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18662
    # Find all dependency output files, they are included files with
18663
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18664
    # simplest approach to changing $(DEPDIR) to its actual value in the
18665
    # expansion.
18666
    for file in `sed -n "
18667
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18668
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18669
      # Make sure the directory exists.
18670
      test -f "$dirpart/$file" && continue
18671
      fdir=`$as_dirname -- "$file" ||
18672
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18673
	 X"$file" : 'X\(//\)[^/]' \| \
18674
	 X"$file" : 'X\(//\)$' \| \
18675
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18676
$as_echo X"$file" |
18677
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18678
	    s//\1/
18679
	    q
18680
	  }
18681
	  /^X\(\/\/\)[^/].*/{
18682
	    s//\1/
18683
	    q
18684
	  }
18685
	  /^X\(\/\/\)$/{
18686
	    s//\1/
18687
	    q
18688
	  }
18689
	  /^X\(\/\).*/{
18690
	    s//\1/
18691
	    q
18692
	  }
18693
	  s/.*/./; q'`
18694
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18695
      # echo "creating $dirpart/$file"
18696
      echo '# dummy' > "$dirpart/$file"
18697
    done
18698
  done
18699
}
18700
 ;;
18701
    "libtool":C)
18702
 
18703
    # See if we are running on zsh, and set the options that allow our
18704
    # commands through without removal of \ escapes.
18705
    if test -n "${ZSH_VERSION+set}"; then
18706
      setopt NO_GLOB_SUBST
18707
    fi
18708
 
18709
    cfgfile=${ofile}T
18710
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18711
    $RM "$cfgfile"
18712
 
18713
    cat <<_LT_EOF >> "$cfgfile"
18714
#! $SHELL
18715
# Generated automatically by $as_me ($PACKAGE) $VERSION
18716
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18717
 
18718
# Provide generalized library-building support services.
18719
# Written by Gordon Matzigkeit, 1996
18720
 
18721
# Copyright (C) 2014 Free Software Foundation, Inc.
18722
# This is free software; see the source for copying conditions.  There is NO
18723
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18724
 
18725
# GNU Libtool is free software; you can redistribute it and/or modify
18726
# it under the terms of the GNU General Public License as published by
18727
# the Free Software Foundation; either version 2 of of the License, or
18728
# (at your option) any later version.
18729
#
18730
# As a special exception to the GNU General Public License, if you
18731
# distribute this file as part of a program or library that is built
18732
# using GNU Libtool, you may include this file under the  same
18733
# distribution terms that you use for the rest of that program.
18734
#
18735
# GNU Libtool is distributed in the hope that it will be useful, but
18736
# WITHOUT ANY WARRANTY; without even the implied warranty of
18737
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18738
# GNU General Public License for more details.
18739
#
18740
# You should have received a copy of the GNU General Public License
18741
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18742
 
18743
 
18744
# The names of the tagged configurations supported by this script.
18745
available_tags='CXX '
18746
 
18747
# Configured defaults for sys_lib_dlsearch_path munging.
18748
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18749
 
18750
# ### BEGIN LIBTOOL CONFIG
18751
 
18752
# Which release of libtool.m4 was used?
18753
macro_version=$macro_version
18754
macro_revision=$macro_revision
18755
 
18756
# Whether or not to build shared libraries.
18757
build_libtool_libs=$enable_shared
18758
 
18759
# Whether or not to build static libraries.
18760
build_old_libs=$enable_static
18761
 
18762
# What type of objects to build.
18763
pic_mode=$pic_mode
18764
 
18765
# Whether or not to optimize for fast installation.
18766
fast_install=$enable_fast_install
18767
 
18768
# Shared archive member basename,for filename based shared library versioning on AIX.
18769
shared_archive_member_spec=$shared_archive_member_spec
18770
 
18771
# Shell to use when invoking shell scripts.
18772
SHELL=$lt_SHELL
18773
 
18774
# An echo program that protects backslashes.
18775
ECHO=$lt_ECHO
18776
 
18777
# The PATH separator for the build system.
18778
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18779
 
18780
# The host system.
18781
host_alias=$host_alias
18782
host=$host
18783
host_os=$host_os
18784
 
18785
# The build system.
18786
build_alias=$build_alias
18787
build=$build
18788
build_os=$build_os
18789
 
18790
# A sed program that does not truncate output.
18791
SED=$lt_SED
18792
 
18793
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18794
Xsed="\$SED -e 1s/^X//"
18795
 
18796
# A grep program that handles long lines.
18797
GREP=$lt_GREP
18798
 
18799
# An ERE matcher.
18800
EGREP=$lt_EGREP
18801
 
18802
# A literal string matcher.
18803
FGREP=$lt_FGREP
18804
 
18805
# A BSD- or MS-compatible name lister.
18806
NM=$lt_NM
18807
 
18808
# Whether we need soft or hard links.
18809
LN_S=$lt_LN_S
18810
 
18811
# What is the maximum length of a command?
18812
max_cmd_len=$max_cmd_len
18813
 
18814
# Object file suffix (normally "o").
18815
objext=$ac_objext
18816
 
18817
# Executable file suffix (normally "").
18818
exeext=$exeext
18819
 
18820
# whether the shell understands "unset".
18821
lt_unset=$lt_unset
18822
 
18823
# turn spaces into newlines.
18824
SP2NL=$lt_lt_SP2NL
18825
 
18826
# turn newlines into spaces.
18827
NL2SP=$lt_lt_NL2SP
18828
 
18829
# convert \$build file names to \$host format.
18830
to_host_file_cmd=$lt_cv_to_host_file_cmd
18831
 
18832
# convert \$build files to toolchain format.
18833
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18834
 
18835
# An object symbol dumper.
18836
OBJDUMP=$lt_OBJDUMP
18837
 
18838
# Method to check whether dependent libraries are shared objects.
18839
deplibs_check_method=$lt_deplibs_check_method
18840
 
18841
# Command to use when deplibs_check_method = "file_magic".
18842
file_magic_cmd=$lt_file_magic_cmd
18843
 
18844
# How to find potential files when deplibs_check_method = "file_magic".
18845
file_magic_glob=$lt_file_magic_glob
18846
 
18847
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18848
want_nocaseglob=$lt_want_nocaseglob
18849
 
18850
# DLL creation program.
18851
DLLTOOL=$lt_DLLTOOL
18852
 
18853
# Command to associate shared and link libraries.
18854
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18855
 
18856
# The archiver.
18857
AR=$lt_AR
18858
 
18859
# Flags to create an archive.
18860
AR_FLAGS=$lt_AR_FLAGS
18861
 
18862
# How to feed a file listing to the archiver.
18863
archiver_list_spec=$lt_archiver_list_spec
18864
 
18865
# A symbol stripping program.
18866
STRIP=$lt_STRIP
18867
 
18868
# Commands used to install an old-style archive.
18869
RANLIB=$lt_RANLIB
18870
old_postinstall_cmds=$lt_old_postinstall_cmds
18871
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18872
 
18873
# Whether to use a lock for old archive extraction.
18874
lock_old_archive_extraction=$lock_old_archive_extraction
18875
 
18876
# A C compiler.
18877
LTCC=$lt_CC
18878
 
18879
# LTCC compiler flags.
18880
LTCFLAGS=$lt_CFLAGS
18881
 
18882
# Take the output of nm and produce a listing of raw symbols and C names.
18883
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18884
 
18885
# Transform the output of nm in a proper C declaration.
18886
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18887
 
18888
# Transform the output of nm into a list of symbols to manually relocate.
18889
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18890
 
18891
# Transform the output of nm in a C name address pair.
18892
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18893
 
18894
# Transform the output of nm in a C name address pair when lib prefix is needed.
18895
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18896
 
18897
# The name lister interface.
18898
nm_interface=$lt_lt_cv_nm_interface
18899
 
18900
# Specify filename containing input files for \$NM.
18901
nm_file_list_spec=$lt_nm_file_list_spec
18902
 
18903
# The root where to search for dependent libraries,and where our libraries should be installed.
18904
lt_sysroot=$lt_sysroot
18905
 
18906
# Command to truncate a binary pipe.
18907
lt_truncate_bin=$lt_lt_cv_truncate_bin
18908
 
18909
# The name of the directory that contains temporary libtool files.
18910
objdir=$objdir
18911
 
18912
# Used to examine libraries when file_magic_cmd begins with "file".
18913
MAGIC_CMD=$MAGIC_CMD
18914
 
18915
# Must we lock files when doing compilation?
18916
need_locks=$lt_need_locks
18917
 
18918
# Manifest tool.
18919
MANIFEST_TOOL=$lt_MANIFEST_TOOL
18920
 
18921
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18922
DSYMUTIL=$lt_DSYMUTIL
18923
 
18924
# Tool to change global to local symbols on Mac OS X.
18925
NMEDIT=$lt_NMEDIT
18926
 
18927
# Tool to manipulate fat objects and archives on Mac OS X.
18928
LIPO=$lt_LIPO
18929
 
18930
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18931
OTOOL=$lt_OTOOL
18932
 
18933
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18934
OTOOL64=$lt_OTOOL64
18935
 
18936
# Old archive suffix (normally "a").
18937
libext=$libext
18938
 
18939
# Shared library suffix (normally ".so").
18940
shrext_cmds=$lt_shrext_cmds
18941
 
18942
# The commands to extract the exported symbol list from a shared archive.
18943
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18944
 
18945
# Variables whose values should be saved in libtool wrapper scripts and
18946
# restored at link time.
18947
variables_saved_for_relink=$lt_variables_saved_for_relink
18948
 
18949
# Do we need the "lib" prefix for modules?
18950
need_lib_prefix=$need_lib_prefix
18951
 
18952
# Do we need a version for libraries?
18953
need_version=$need_version
18954
 
18955
# Library versioning type.
18956
version_type=$version_type
18957
 
18958
# Shared library runtime path variable.
18959
runpath_var=$runpath_var
18960
 
18961
# Shared library path variable.
18962
shlibpath_var=$shlibpath_var
18963
 
18964
# Is shlibpath searched before the hard-coded library search path?
18965
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18966
 
18967
# Format of library name prefix.
18968
libname_spec=$lt_libname_spec
18969
 
18970
# List of archive names.  First name is the real one, the rest are links.
18971
# The last name is the one that the linker finds with -lNAME
18972
library_names_spec=$lt_library_names_spec
18973
 
18974
# The coded name of the library, if different from the real name.
18975
soname_spec=$lt_soname_spec
18976
 
18977
# Permission mode override for installation of shared libraries.
18978
install_override_mode=$lt_install_override_mode
18979
 
18980
# Command to use after installation of a shared archive.
18981
postinstall_cmds=$lt_postinstall_cmds
18982
 
18983
# Command to use after uninstallation of a shared archive.
18984
postuninstall_cmds=$lt_postuninstall_cmds
18985
 
18986
# Commands used to finish a libtool library installation in a directory.
18987
finish_cmds=$lt_finish_cmds
18988
 
18989
# As "finish_cmds", except a single script fragment to be evaled but
18990
# not shown.
18991
finish_eval=$lt_finish_eval
18992
 
18993
# Whether we should hardcode library paths into libraries.
18994
hardcode_into_libs=$hardcode_into_libs
18995
 
18996
# Compile-time system search path for libraries.
18997
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18998
 
18999
# Detected run-time system search path for libraries.
19000
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19001
 
19002
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19003
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19004
 
19005
# Whether dlopen is supported.
19006
dlopen_support=$enable_dlopen
19007
 
19008
# Whether dlopen of programs is supported.
19009
dlopen_self=$enable_dlopen_self
19010
 
19011
# Whether dlopen of statically linked programs is supported.
19012
dlopen_self_static=$enable_dlopen_self_static
19013
 
19014
# Commands to strip libraries.
19015
old_striplib=$lt_old_striplib
19016
striplib=$lt_striplib
19017
 
19018
 
19019
# The linker used to build libraries.
19020
LD=$lt_LD
19021
 
19022
# How to create reloadable object files.
19023
reload_flag=$lt_reload_flag
19024
reload_cmds=$lt_reload_cmds
19025
 
19026
# Commands used to build an old-style archive.
19027
old_archive_cmds=$lt_old_archive_cmds
19028
 
19029
# A language specific compiler.
19030
CC=$lt_compiler
19031
 
19032
# Is the compiler the GNU compiler?
19033
with_gcc=$GCC
19034
 
19035
# Compiler flag to turn off builtin functions.
19036
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19037
 
19038
# Additional compiler flags for building library objects.
19039
pic_flag=$lt_lt_prog_compiler_pic
19040
 
19041
# How to pass a linker flag through the compiler.
19042
wl=$lt_lt_prog_compiler_wl
19043
 
19044
# Compiler flag to prevent dynamic linking.
19045
link_static_flag=$lt_lt_prog_compiler_static
19046
 
19047
# Does compiler simultaneously support -c and -o options?
19048
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19049
 
19050
# Whether or not to add -lc for building shared libraries.
19051
build_libtool_need_lc=$archive_cmds_need_lc
19052
 
19053
# Whether or not to disallow shared libs when runtime libs are static.
19054
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19055
 
19056
# Compiler flag to allow reflexive dlopens.
19057
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19058
 
19059
# Compiler flag to generate shared objects directly from archives.
19060
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19061
 
19062
# Whether the compiler copes with passing no objects directly.
19063
compiler_needs_object=$lt_compiler_needs_object
19064
 
19065
# Create an old-style archive from a shared archive.
19066
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19067
 
19068
# Create a temporary old-style archive to link instead of a shared archive.
19069
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19070
 
19071
# Commands used to build a shared archive.
19072
archive_cmds=$lt_archive_cmds
19073
archive_expsym_cmds=$lt_archive_expsym_cmds
19074
 
19075
# Commands used to build a loadable module if different from building
19076
# a shared archive.
19077
module_cmds=$lt_module_cmds
19078
module_expsym_cmds=$lt_module_expsym_cmds
19079
 
19080
# Whether we are building with GNU ld or not.
19081
with_gnu_ld=$lt_with_gnu_ld
19082
 
19083
# Flag that allows shared libraries with undefined symbols to be built.
19084
allow_undefined_flag=$lt_allow_undefined_flag
19085
 
19086
# Flag that enforces no undefined symbols.
19087
no_undefined_flag=$lt_no_undefined_flag
19088
 
19089
# Flag to hardcode \$libdir into a binary during linking.
19090
# This must work even if \$libdir does not exist
19091
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19092
 
19093
# Whether we need a single "-rpath" flag with a separated argument.
19094
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19095
 
19096
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19097
# DIR into the resulting binary.
19098
hardcode_direct=$hardcode_direct
19099
 
19100
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19101
# DIR into the resulting binary and the resulting library dependency is
19102
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19103
# library is relocated.
19104
hardcode_direct_absolute=$hardcode_direct_absolute
19105
 
19106
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19107
# into the resulting binary.
19108
hardcode_minus_L=$hardcode_minus_L
19109
 
19110
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19111
# into the resulting binary.
19112
hardcode_shlibpath_var=$hardcode_shlibpath_var
19113
 
19114
# Set to "yes" if building a shared library automatically hardcodes DIR
19115
# into the library and all subsequent libraries and executables linked
19116
# against it.
19117
hardcode_automatic=$hardcode_automatic
19118
 
19119
# Set to yes if linker adds runtime paths of dependent libraries
19120
# to runtime path list.
19121
inherit_rpath=$inherit_rpath
19122
 
19123
# Whether libtool must link a program against all its dependency libraries.
19124
link_all_deplibs=$link_all_deplibs
19125
 
19126
# Set to "yes" if exported symbols are required.
19127
always_export_symbols=$always_export_symbols
19128
 
19129
# The commands to list exported symbols.
19130
export_symbols_cmds=$lt_export_symbols_cmds
19131
 
19132
# Symbols that should not be listed in the preloaded symbols.
19133
exclude_expsyms=$lt_exclude_expsyms
19134
 
19135
# Symbols that must always be exported.
19136
include_expsyms=$lt_include_expsyms
19137
 
19138
# Commands necessary for linking programs (against libraries) with templates.
19139
prelink_cmds=$lt_prelink_cmds
19140
 
19141
# Commands necessary for finishing linking programs.
19142
postlink_cmds=$lt_postlink_cmds
19143
 
19144
# Specify filename containing input files.
19145
file_list_spec=$lt_file_list_spec
19146
 
19147
# How to hardcode a shared library path into an executable.
19148
hardcode_action=$hardcode_action
19149
 
19150
# The directories searched by this compiler when creating a shared library.
19151
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19152
 
19153
# Dependencies to place before and after the objects being linked to
19154
# create a shared library.
19155
predep_objects=$lt_predep_objects
19156
postdep_objects=$lt_postdep_objects
19157
predeps=$lt_predeps
19158
postdeps=$lt_postdeps
19159
 
19160
# The library search path used internally by the compiler when linking
19161
# a shared library.
19162
compiler_lib_search_path=$lt_compiler_lib_search_path
19163
 
19164
# ### END LIBTOOL CONFIG
19165
 
19166
_LT_EOF
19167
 
19168
    cat <<'_LT_EOF' >> "$cfgfile"
19169
 
19170
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19171
 
19172
# func_munge_path_list VARIABLE PATH
19173
# -----------------------------------
19174
# VARIABLE is name of variable containing _space_ separated list of
19175
# directories to be munged by the contents of PATH, which is string
19176
# having a format:
19177
# "DIR[:DIR]:"
19178
#       string "DIR[ DIR]" will be prepended to VARIABLE
19179
# ":DIR[:DIR]"
19180
#       string "DIR[ DIR]" will be appended to VARIABLE
19181
# "DIRP[:DIRP]::[DIRA:]DIRA"
19182
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19183
#       "DIRA[ DIRA]" will be appended to VARIABLE
19184
# "DIR[:DIR]"
19185
#       VARIABLE will be replaced by "DIR[ DIR]"
19186
func_munge_path_list ()
19187
{
19188
    case x$2 in
19189
    x)
19190
        ;;
19191
    *:)
19192
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19193
        ;;
19194
    x:*)
19195
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19196
        ;;
19197
    *::*)
19198
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19199
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19200
        ;;
19201
    *)
19202
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19203
        ;;
19204
    esac
19205
}
19206
 
19207
 
19208
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19209
func_cc_basename ()
19210
{
19211
    for cc_temp in $*""; do
19212
      case $cc_temp in
19213
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19214
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19215
        \-*) ;;
19216
        *) break;;
19217
      esac
19218
    done
19219
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19220
}
19221
 
19222
 
19223
# ### END FUNCTIONS SHARED WITH CONFIGURE
19224
 
19225
_LT_EOF
19226
 
19227
  case $host_os in
19228
  aix3*)
19229
    cat <<\_LT_EOF >> "$cfgfile"
19230
# AIX sometimes has problems with the GCC collect2 program.  For some
19231
# reason, if we set the COLLECT_NAMES environment variable, the problems
19232
# vanish in a puff of smoke.
19233
if test set != "${COLLECT_NAMES+set}"; then
19234
  COLLECT_NAMES=
19235
  export COLLECT_NAMES
19236
fi
19237
_LT_EOF
19238
    ;;
19239
  esac
19240
 
19241
 
19242
ltmain=$ac_aux_dir/ltmain.sh
19243
 
19244
 
19245
  # We use sed instead of cat because bash on DJGPP gets confused if
19246
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19247
  # text mode, it properly converts lines to CR/LF.  This bash problem
19248
  # is reportedly fixed, but why not run on old versions too?
19249
  sed '$q' "$ltmain" >> "$cfgfile" \
19250
     || (rm -f "$cfgfile"; exit 1)
19251
 
19252
   mv -f "$cfgfile" "$ofile" ||
19253
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19254
  chmod +x "$ofile"
19255
 
19256
 
19257
    cat <<_LT_EOF >> "$ofile"
19258
 
19259
# ### BEGIN LIBTOOL TAG CONFIG: CXX
19260
 
19261
# The linker used to build libraries.
19262
LD=$lt_LD_CXX
19263
 
19264
# How to create reloadable object files.
19265
reload_flag=$lt_reload_flag_CXX
19266
reload_cmds=$lt_reload_cmds_CXX
19267
 
19268
# Commands used to build an old-style archive.
19269
old_archive_cmds=$lt_old_archive_cmds_CXX
19270
 
19271
# A language specific compiler.
19272
CC=$lt_compiler_CXX
19273
 
19274
# Is the compiler the GNU compiler?
19275
with_gcc=$GCC_CXX
19276
 
19277
# Compiler flag to turn off builtin functions.
19278
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19279
 
19280
# Additional compiler flags for building library objects.
19281
pic_flag=$lt_lt_prog_compiler_pic_CXX
19282
 
19283
# How to pass a linker flag through the compiler.
19284
wl=$lt_lt_prog_compiler_wl_CXX
19285
 
19286
# Compiler flag to prevent dynamic linking.
19287
link_static_flag=$lt_lt_prog_compiler_static_CXX
19288
 
19289
# Does compiler simultaneously support -c and -o options?
19290
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19291
 
19292
# Whether or not to add -lc for building shared libraries.
19293
build_libtool_need_lc=$archive_cmds_need_lc_CXX
19294
 
19295
# Whether or not to disallow shared libs when runtime libs are static.
19296
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19297
 
19298
# Compiler flag to allow reflexive dlopens.
19299
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19300
 
19301
# Compiler flag to generate shared objects directly from archives.
19302
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19303
 
19304
# Whether the compiler copes with passing no objects directly.
19305
compiler_needs_object=$lt_compiler_needs_object_CXX
19306
 
19307
# Create an old-style archive from a shared archive.
19308
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19309
 
19310
# Create a temporary old-style archive to link instead of a shared archive.
19311
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19312
 
19313
# Commands used to build a shared archive.
19314
archive_cmds=$lt_archive_cmds_CXX
19315
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19316
 
19317
# Commands used to build a loadable module if different from building
19318
# a shared archive.
19319
module_cmds=$lt_module_cmds_CXX
19320
module_expsym_cmds=$lt_module_expsym_cmds_CXX
19321
 
19322
# Whether we are building with GNU ld or not.
19323
with_gnu_ld=$lt_with_gnu_ld_CXX
19324
 
19325
# Flag that allows shared libraries with undefined symbols to be built.
19326
allow_undefined_flag=$lt_allow_undefined_flag_CXX
19327
 
19328
# Flag that enforces no undefined symbols.
19329
no_undefined_flag=$lt_no_undefined_flag_CXX
19330
 
19331
# Flag to hardcode \$libdir into a binary during linking.
19332
# This must work even if \$libdir does not exist
19333
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19334
 
19335
# Whether we need a single "-rpath" flag with a separated argument.
19336
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19337
 
19338
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19339
# DIR into the resulting binary.
19340
hardcode_direct=$hardcode_direct_CXX
19341
 
19342
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19343
# DIR into the resulting binary and the resulting library dependency is
19344
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19345
# library is relocated.
19346
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19347
 
19348
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19349
# into the resulting binary.
19350
hardcode_minus_L=$hardcode_minus_L_CXX
19351
 
19352
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19353
# into the resulting binary.
19354
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19355
 
19356
# Set to "yes" if building a shared library automatically hardcodes DIR
19357
# into the library and all subsequent libraries and executables linked
19358
# against it.
19359
hardcode_automatic=$hardcode_automatic_CXX
19360
 
19361
# Set to yes if linker adds runtime paths of dependent libraries
19362
# to runtime path list.
19363
inherit_rpath=$inherit_rpath_CXX
19364
 
19365
# Whether libtool must link a program against all its dependency libraries.
19366
link_all_deplibs=$link_all_deplibs_CXX
19367
 
19368
# Set to "yes" if exported symbols are required.
19369
always_export_symbols=$always_export_symbols_CXX
19370
 
19371
# The commands to list exported symbols.
19372
export_symbols_cmds=$lt_export_symbols_cmds_CXX
19373
 
19374
# Symbols that should not be listed in the preloaded symbols.
19375
exclude_expsyms=$lt_exclude_expsyms_CXX
19376
 
19377
# Symbols that must always be exported.
19378
include_expsyms=$lt_include_expsyms_CXX
19379
 
19380
# Commands necessary for linking programs (against libraries) with templates.
19381
prelink_cmds=$lt_prelink_cmds_CXX
19382
 
19383
# Commands necessary for finishing linking programs.
19384
postlink_cmds=$lt_postlink_cmds_CXX
19385
 
19386
# Specify filename containing input files.
19387
file_list_spec=$lt_file_list_spec_CXX
19388
 
19389
# How to hardcode a shared library path into an executable.
19390
hardcode_action=$hardcode_action_CXX
19391
 
19392
# The directories searched by this compiler when creating a shared library.
19393
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19394
 
19395
# Dependencies to place before and after the objects being linked to
19396
# create a shared library.
19397
predep_objects=$lt_predep_objects_CXX
19398
postdep_objects=$lt_postdep_objects_CXX
19399
predeps=$lt_predeps_CXX
19400
postdeps=$lt_postdeps_CXX
19401
 
19402
# The library search path used internally by the compiler when linking
19403
# a shared library.
19404
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19405
 
19406
# ### END LIBTOOL TAG CONFIG: CXX
19407
_LT_EOF
19408
 
19409
 ;;
19410
 
19411
  esac
19412
done # for ac_tag
19413
 
19414
 
19415
as_fn_exit 0
19416
_ACEOF
19417
ac_clean_files=$ac_clean_files_save
19418
 
19419
test $ac_write_fail = 0 ||
19420
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19421
 
19422
 
19423
# configure is writing to config.log, and then calls config.status.
19424
# config.status does its own redirection, appending to config.log.
19425
# Unfortunately, on DOS this fails, as config.log is still kept open
19426
# by configure, so config.status won't be able to write to it; its
19427
# output is simply discarded.  So we exec the FD to /dev/null,
19428
# effectively closing config.log, so it can be properly (re)opened and
19429
# appended to by config.status.  When coming back to configure, we
19430
# need to make the FD available again.
19431
if test "$no_create" != yes; then
19432
  ac_cs_success=:
19433
  ac_config_status_args=
19434
  test "$silent" = yes &&
19435
    ac_config_status_args="$ac_config_status_args --quiet"
19436
  exec 5>/dev/null
19437
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19438
  exec 5>>config.log
19439
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19440
  # would make configure fail if this is the last instruction.
19441
  $ac_cs_success || as_fn_exit 1
19442
fi
19443
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19444
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19445
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19446
fi
19447
 
19448