Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
411 kaklik 1
@%:@! /bin/sh
2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.61.
4
@%:@ 
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
@%:@ This configure script is free software; the Free Software Foundation
8
@%:@ gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
  echo "#! /bin/sh" >conf$$.sh
43
  echo  "exit 0"   >>conf$$.sh
44
  chmod +x conf$$.sh
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46
    PATH_SEPARATOR=';'
47
  else
48
    PATH_SEPARATOR=:
49
  fi
50
  rm -f conf$$.sh
51
fi
52
 
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55
  as_unset=unset
56
else
57
  as_unset=false
58
fi
59
 
60
 
61
# IFS
62
# We need space, tab and new line, in precisely that order.  Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
66
as_nl='
67
'
68
IFS=" ""	$as_nl"
69
 
70
# Find who we are.  Look in the path if we contain no directory separator.
71
case $0 in
72
  *[\\/]* ) as_myself=$0 ;;
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74
for as_dir in $PATH
75
do
76
  IFS=$as_save_IFS
77
  test -z "$as_dir" && as_dir=.
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79
done
80
IFS=$as_save_IFS
81
 
82
     ;;
83
esac
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
87
  as_myself=$0
88
fi
89
if test ! -f "$as_myself"; then
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91
  { (exit 1); exit 1; }
92
fi
93
 
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97
done
98
PS1='$ '
99
PS2='> '
100
PS4='+ '
101
 
102
# NLS nuisances.
103
for as_var in \
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106
  LC_TELEPHONE LC_TIME
107
do
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
    eval $as_var=C; export $as_var
110
  else
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112
  fi
113
done
114
 
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118
  as_expr=expr
119
else
120
  as_expr=false
121
fi
122
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124
  as_basename=basename
125
else
126
  as_basename=false
127
fi
128
 
129
 
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
	 X"$0" : 'X\(//\)$' \| \
134
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135
echo X/"$0" |
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
137
	    s//\1/
138
	    q
139
	  }
140
	  /^X\/\(\/\/\)$/{
141
	    s//\1/
142
	    q
143
	  }
144
	  /^X\/\(\/\).*/{
145
	    s//\1/
146
	    q
147
	  }
148
	  s/.*/./; q'`
149
 
150
# CDPATH.
151
$as_unset CDPATH
152
 
153
 
154
if test "x$CONFIG_SHELL" = x; then
155
  if (eval ":") 2>/dev/null; then
156
  as_have_required=yes
157
else
158
  as_have_required=no
159
fi
160
 
161
  if test $as_have_required = yes && 	 (eval ":
162
(as_func_return () {
163
  (exit \$1)
164
}
165
as_func_success () {
166
  as_func_return 0
167
}
168
as_func_failure () {
169
  as_func_return 1
170
}
171
as_func_ret_success () {
172
  return 0
173
}
174
as_func_ret_failure () {
175
  return 1
176
}
177
 
178
exitcode=0
179
if as_func_success; then
180
  :
181
else
182
  exitcode=1
183
  echo as_func_success failed.
184
fi
185
 
186
if as_func_failure; then
187
  exitcode=1
188
  echo as_func_failure succeeded.
189
fi
190
 
191
if as_func_ret_success; then
192
  :
193
else
194
  exitcode=1
195
  echo as_func_ret_success failed.
196
fi
197
 
198
if as_func_ret_failure; then
199
  exitcode=1
200
  echo as_func_ret_failure succeeded.
201
fi
202
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204
  :
205
else
206
  exitcode=1
207
  echo positional parameters were not saved.
208
fi
209
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
211
 
212
(
213
  as_lineno_1=\$LINENO
214
  as_lineno_2=\$LINENO
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
218
  :
219
else
220
  as_candidate_shells=
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
do
224
  IFS=$as_save_IFS
225
  test -z "$as_dir" && as_dir=.
226
  case $as_dir in
227
	 /*)
228
	   for as_base in sh bash ksh sh5; do
229
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230
	   done;;
231
       esac
232
done
233
IFS=$as_save_IFS
234
 
235
 
236
      for as_shell in $as_candidate_shells $SHELL; do
237
	 # Try only shells that exist, to save several forks.
238
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
  emulate sh
242
  NULLCMD=:
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
  # is contrary to our usage.  Disable this feature.
245
  alias -g '${1+"$@"}'='"$@"'
246
  setopt NO_GLOB_SUBST
247
else
248
  case `(set -o) 2>/dev/null` in
249
  *posix*) set -o posix ;;
250
esac
251
 
252
fi
253
 
254
 
255
:
256
_ASEOF
257
}; then
258
  CONFIG_SHELL=$as_shell
259
	       as_have_required=yes
260
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
  emulate sh
263
  NULLCMD=:
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
  # is contrary to our usage.  Disable this feature.
266
  alias -g '${1+"$@"}'='"$@"'
267
  setopt NO_GLOB_SUBST
268
else
269
  case `(set -o) 2>/dev/null` in
270
  *posix*) set -o posix ;;
271
esac
272
 
273
fi
274
 
275
 
276
:
277
(as_func_return () {
278
  (exit $1)
279
}
280
as_func_success () {
281
  as_func_return 0
282
}
283
as_func_failure () {
284
  as_func_return 1
285
}
286
as_func_ret_success () {
287
  return 0
288
}
289
as_func_ret_failure () {
290
  return 1
291
}
292
 
293
exitcode=0
294
if as_func_success; then
295
  :
296
else
297
  exitcode=1
298
  echo as_func_success failed.
299
fi
300
 
301
if as_func_failure; then
302
  exitcode=1
303
  echo as_func_failure succeeded.
304
fi
305
 
306
if as_func_ret_success; then
307
  :
308
else
309
  exitcode=1
310
  echo as_func_ret_success failed.
311
fi
312
 
313
if as_func_ret_failure; then
314
  exitcode=1
315
  echo as_func_ret_failure succeeded.
316
fi
317
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
319
  :
320
else
321
  exitcode=1
322
  echo positional parameters were not saved.
323
fi
324
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
326
 
327
(
328
  as_lineno_1=$LINENO
329
  as_lineno_2=$LINENO
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
 
333
_ASEOF
334
}; then
335
  break
336
fi
337
 
338
fi
339
 
340
      done
341
 
342
      if test "x$CONFIG_SHELL" != x; then
343
  for as_var in BASH_ENV ENV
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345
        done
346
        export CONFIG_SHELL
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348
fi
349
 
350
 
351
    if test $as_have_required = no; then
352
  echo This script requires a shell more modern than all the
353
      echo shells that I found on your system.  Please install a
354
      echo modern shell, or manually run the script under such a
355
      echo shell if you do have one.
356
      { (exit 1); exit 1; }
357
fi
358
 
359
 
360
fi
361
 
362
fi
363
 
364
 
365
 
366
(eval "as_func_return () {
367
  (exit \$1)
368
}
369
as_func_success () {
370
  as_func_return 0
371
}
372
as_func_failure () {
373
  as_func_return 1
374
}
375
as_func_ret_success () {
376
  return 0
377
}
378
as_func_ret_failure () {
379
  return 1
380
}
381
 
382
exitcode=0
383
if as_func_success; then
384
  :
385
else
386
  exitcode=1
387
  echo as_func_success failed.
388
fi
389
 
390
if as_func_failure; then
391
  exitcode=1
392
  echo as_func_failure succeeded.
393
fi
394
 
395
if as_func_ret_success; then
396
  :
397
else
398
  exitcode=1
399
  echo as_func_ret_success failed.
400
fi
401
 
402
if as_func_ret_failure; then
403
  exitcode=1
404
  echo as_func_ret_failure succeeded.
405
fi
406
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408
  :
409
else
410
  exitcode=1
411
  echo positional parameters were not saved.
412
fi
413
 
414
test \$exitcode = 0") || {
415
  echo No shell found that supports shell functions.
416
  echo Please tell autoconf@gnu.org about your system,
417
  echo including any error possibly output before this
418
  echo message
419
}
420
 
421
 
422
 
423
  as_lineno_1=$LINENO
424
  as_lineno_2=$LINENO
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
430
  # line-number line after each line using $LINENO; the second 'sed'
431
  # does the real work.  The second script uses 'N' to pair each
432
  # line-number line with the line containing $LINENO, and appends
433
  # trailing '-' during substitution so that $LINENO is not a special
434
  # case at line end.
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
438
  sed -n '
439
    p
440
    /[$]LINENO/=
441
  ' <$as_myself |
442
    sed '
443
      s/[$]LINENO.*/&-/
444
      t lineno
445
      b
446
      :lineno
447
      N
448
      :loop
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450
      t loop
451
      s/-\n.*//
452
    ' >$as_me.lineno &&
453
  chmod +x "$as_me.lineno" ||
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
   { (exit 1); exit 1; }; }
456
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
458
  # (the dirname of $[0] is not the place where we might find the
459
  # original and so on.  Autoconf is especially sensitive to this).
460
  . "./$as_me.lineno"
461
  # Exit status is that of the last command.
462
  exit
463
}
464
 
465
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467
  as_dirname=dirname
468
else
469
  as_dirname=false
470
fi
471
 
472
ECHO_C= ECHO_N= ECHO_T=
473
case `echo -n x` in
474
-n*)
475
  case `echo 'x\c'` in
476
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477
  *)   ECHO_C='\c';;
478
  esac;;
479
*)
480
  ECHO_N='-n';;
481
esac
482
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485
  as_expr=expr
486
else
487
  as_expr=false
488
fi
489
 
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
  rm -f conf$$.dir/conf$$.file
493
else
494
  rm -f conf$$.dir
495
  mkdir conf$$.dir
496
fi
497
echo >conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
499
  as_ln_s='ln -s'
500
  # ... but there are two gotchas:
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
  # In both cases, we have to default to `cp -p'.
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505
    as_ln_s='cp -p'
506
elif ln conf$$.file conf$$ 2>/dev/null; then
507
  as_ln_s=ln
508
else
509
  as_ln_s='cp -p'
510
fi
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
513
 
514
if mkdir -p . 2>/dev/null; then
515
  as_mkdir_p=:
516
else
517
  test -d ./-p && rmdir ./-p
518
  as_mkdir_p=false
519
fi
520
 
521
if test -x / >/dev/null 2>&1; then
522
  as_test_x='test -x'
523
else
524
  if ls -dL / >/dev/null 2>&1; then
525
    as_ls_L_option=L
526
  else
527
    as_ls_L_option=
528
  fi
529
  as_test_x='
530
    eval sh -c '\''
531
      if test -d "$1"; then
532
        test -d "$1/.";
533
      else
534
	case $1 in
535
        -*)set "./$1";;
536
	esac;
537
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
	???[sx]*):;;*)false;;esac;fi
539
    '\'' sh
540
  '
541
fi
542
as_executable_p=$as_test_x
543
 
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
 
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
 
550
 
551
 
552
 
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
555
 
556
case X$ECHO in
557
X*--fallback-echo)
558
  # Remove one level of quotation (which was required for Make).
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560
  ;;
561
esac
562
 
563
echo=${ECHO-echo}
564
if test "X$1" = X--no-reexec; then
565
  # Discard the --no-reexec flag, and continue.
566
  shift
567
elif test "X$1" = X--fallback-echo; then
568
  # Avoid inline document here, it may be left over
569
  :
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
  # Yippee, $echo works!
572
  :
573
else
574
  # Restart under the correct shell.
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
576
fi
577
 
578
if test "X$1" = X--fallback-echo; then
579
  # used as fallback echo
580
  shift
581
  cat <<EOF
582
$*
583
EOF
584
  exit 0
585
fi
586
 
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
588
# if CDPATH is set.
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
 
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
       echo_test_string=`eval $cmd` &&
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599
    then
600
      break
601
    fi
602
  done
603
fi
604
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
608
  :
609
else
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
611
  # backslashes.  This makes it impossible to quote backslashes using
612
  #   echo "$something" | sed 's/\\/\\\\/g'
613
  #
614
  # So, first we look for a working echo in the user's PATH.
615
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
  for dir in $PATH /usr/ucb; do
618
    IFS="$lt_save_ifs"
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
623
      echo="$dir/echo"
624
      break
625
    fi
626
  done
627
  IFS="$lt_save_ifs"
628
 
629
  if test "X$echo" = Xecho; then
630
    # We didn't find a better echo, so look for alternatives.
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
634
      # This shell has a builtin print -r that does the trick.
635
      echo='print -r'
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638
      # If we have ksh, try running configure again with it.
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
      export ORIGINAL_CONFIG_SHELL
641
      CONFIG_SHELL=/bin/ksh
642
      export CONFIG_SHELL
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
    else
645
      # Try using printf.
646
      echo='printf %s\n'
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
	 test "X$echo_testing_string" = "X$echo_test_string"; then
650
	# Cool, printf works
651
	:
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
	   test "X$echo_testing_string" = 'X\t' &&
654
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
	   test "X$echo_testing_string" = "X$echo_test_string"; then
656
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
	export CONFIG_SHELL
658
	SHELL="$CONFIG_SHELL"
659
	export SHELL
660
	echo="$CONFIG_SHELL $0 --fallback-echo"
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
	   test "X$echo_testing_string" = 'X\t' &&
663
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
	   test "X$echo_testing_string" = "X$echo_test_string"; then
665
	echo="$CONFIG_SHELL $0 --fallback-echo"
666
      else
667
	# maybe with a smaller string...
668
	prev=:
669
 
670
	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672
	  then
673
	    break
674
	  fi
675
	  prev="$cmd"
676
	done
677
 
678
	if test "$prev" != 'sed 50q "$0"'; then
679
	  echo_test_string=`eval $prev`
680
	  export echo_test_string
681
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
	else
683
	  # Oops.  We lost completely, so just stick with echo.
684
	  echo=echo
685
	fi
686
      fi
687
    fi
688
  fi
689
fi
690
fi
691
 
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
694
ECHO=$echo
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697
fi
698
 
699
 
700
 
701
 
702
tagnames=${tagnames+${tagnames},}CXX
703
 
704
tagnames=${tagnames+${tagnames},}F77
705
 
706
exec 7<&0 </dev/null 6>&1
707
 
708
# Name of the host.
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
 
713
#
714
# Initializations.
715
#
716
ac_default_prefix=/usr/local
717
ac_clean_files=
718
ac_config_libobj_dir=.
719
LIB@&t@OBJS=
720
cross_compiling=no
721
subdirs=
722
MFLAGS=
723
MAKEFLAGS=
724
SHELL=${CONFIG_SHELL-/bin/sh}
725
 
726
# Identity of this package.
727
PACKAGE_NAME=
728
PACKAGE_TARNAME=
729
PACKAGE_VERSION=
730
PACKAGE_STRING=
731
PACKAGE_BUGREPORT=
732
 
733
ac_unique_file="configure.in"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
736
#include <stdio.h>
737
#ifdef HAVE_SYS_TYPES_H
738
# include <sys/types.h>
739
#endif
740
#ifdef HAVE_SYS_STAT_H
741
# include <sys/stat.h>
742
#endif
743
#ifdef STDC_HEADERS
744
# include <stdlib.h>
745
# include <stddef.h>
746
#else
747
# ifdef HAVE_STDLIB_H
748
#  include <stdlib.h>
749
# endif
750
#endif
751
#ifdef HAVE_STRING_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753
#  include <memory.h>
754
# endif
755
# include <string.h>
756
#endif
757
#ifdef HAVE_STRINGS_H
758
# include <strings.h>
759
#endif
760
#ifdef HAVE_INTTYPES_H
761
# include <inttypes.h>
762
#endif
763
#ifdef HAVE_STDINT_H
764
# include <stdint.h>
765
#endif
766
#ifdef HAVE_UNISTD_H
767
# include <unistd.h>
768
#endif"
769
 
770
ac_subst_vars='SHELL
771
PATH_SEPARATOR
772
PACKAGE_NAME
773
PACKAGE_TARNAME
774
PACKAGE_VERSION
775
PACKAGE_STRING
776
PACKAGE_BUGREPORT
777
exec_prefix
778
prefix
779
program_transform_name
780
bindir
781
sbindir
782
libexecdir
783
datarootdir
784
datadir
785
sysconfdir
786
sharedstatedir
787
localstatedir
788
includedir
789
oldincludedir
790
docdir
791
infodir
792
htmldir
793
dvidir
794
pdfdir
795
psdir
796
libdir
797
localedir
798
mandir
799
DEFS
800
ECHO_C
801
ECHO_N
802
ECHO_T
803
LIBS
804
build_alias
805
host_alias
806
target_alias
807
INSTALL_PROGRAM
808
INSTALL_SCRIPT
809
INSTALL_DATA
810
am__isrc
811
CYGPATH_W
812
PACKAGE
813
VERSION
814
ACLOCAL
815
AUTOCONF
816
AUTOMAKE
817
AUTOHEADER
818
MAKEINFO
819
install_sh
820
STRIP
821
INSTALL_STRIP_PROGRAM
822
mkdir_p
823
AWK
824
SET_MAKE
825
am__leading_dot
826
AMTAR
827
am__tar
828
am__untar
829
CC
830
CFLAGS
831
LDFLAGS
832
CPPFLAGS
833
ac_ct_CC
834
EXEEXT
835
OBJEXT
836
DEPDIR
837
am__include
838
am__quote
839
AMDEP_TRUE
840
AMDEP_FALSE
841
AMDEPBACKSLASH
842
CCDEPMODE
843
am__fastdepCC_TRUE
844
am__fastdepCC_FALSE
845
build
846
build_cpu
847
build_vendor
848
build_os
849
host
850
host_cpu
851
host_vendor
852
host_os
853
SED
854
GREP
855
EGREP
856
LN_S
857
ECHO
858
AR
859
RANLIB
860
CPP
861
CXX
862
CXXFLAGS
863
ac_ct_CXX
864
CXXDEPMODE
865
am__fastdepCXX_TRUE
866
am__fastdepCXX_FALSE
867
CXXCPP
868
F77
869
FFLAGS
870
ac_ct_F77
871
LIBTOOL
872
LIB@&t@OBJS
873
LTLIBOBJS'
874
ac_subst_files=''
875
      ac_precious_vars='build_alias
876
host_alias
877
target_alias
878
CC
879
CFLAGS
880
LDFLAGS
881
LIBS
882
CPPFLAGS
883
CPP
884
CXX
885
CXXFLAGS
886
CCC
887
CXXCPP
888
F77
889
FFLAGS'
890
 
891
 
892
# Initialize some variables set by options.
893
ac_init_help=
894
ac_init_version=false
895
# The variables have the same names as the options, with
896
# dashes changed to underlines.
897
cache_file=/dev/null
898
exec_prefix=NONE
899
no_create=
900
no_recursion=
901
prefix=NONE
902
program_prefix=NONE
903
program_suffix=NONE
904
program_transform_name=s,x,x,
905
silent=
906
site=
907
srcdir=
908
verbose=
909
x_includes=NONE
910
x_libraries=NONE
911
 
912
# Installation directory options.
913
# These are left unexpanded so users can "make install exec_prefix=/foo"
914
# and all the variables that are supposed to be based on exec_prefix
915
# by default will actually change.
916
# Use braces instead of parens because sh, perl, etc. also accept them.
917
# (The list follows the same order as the GNU Coding Standards.)
918
bindir='${exec_prefix}/bin'
919
sbindir='${exec_prefix}/sbin'
920
libexecdir='${exec_prefix}/libexec'
921
datarootdir='${prefix}/share'
922
datadir='${datarootdir}'
923
sysconfdir='${prefix}/etc'
924
sharedstatedir='${prefix}/com'
925
localstatedir='${prefix}/var'
926
includedir='${prefix}/include'
927
oldincludedir='/usr/include'
928
docdir='${datarootdir}/doc/${PACKAGE}'
929
infodir='${datarootdir}/info'
930
htmldir='${docdir}'
931
dvidir='${docdir}'
932
pdfdir='${docdir}'
933
psdir='${docdir}'
934
libdir='${exec_prefix}/lib'
935
localedir='${datarootdir}/locale'
936
mandir='${datarootdir}/man'
937
 
938
ac_prev=
939
ac_dashdash=
940
for ac_option
941
do
942
  # If the previous option needs an argument, assign it.
943
  if test -n "$ac_prev"; then
944
    eval $ac_prev=\$ac_option
945
    ac_prev=
946
    continue
947
  fi
948
 
949
  case $ac_option in
950
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951
  *)	ac_optarg=yes ;;
952
  esac
953
 
954
  # Accept the important Cygnus configure options, so we can diagnose typos.
955
 
956
  case $ac_dashdash$ac_option in
957
  --)
958
    ac_dashdash=yes ;;
959
 
960
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
961
    ac_prev=bindir ;;
962
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963
    bindir=$ac_optarg ;;
964
 
965
  -build | --build | --buil | --bui | --bu)
966
    ac_prev=build_alias ;;
967
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968
    build_alias=$ac_optarg ;;
969
 
970
  -cache-file | --cache-file | --cache-fil | --cache-fi \
971
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972
    ac_prev=cache_file ;;
973
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975
    cache_file=$ac_optarg ;;
976
 
977
  --config-cache | -C)
978
    cache_file=config.cache ;;
979
 
980
  -datadir | --datadir | --datadi | --datad)
981
    ac_prev=datadir ;;
982
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
983
    datadir=$ac_optarg ;;
984
 
985
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986
  | --dataroo | --dataro | --datar)
987
    ac_prev=datarootdir ;;
988
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990
    datarootdir=$ac_optarg ;;
991
 
992
  -disable-* | --disable-*)
993
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994
    # Reject names that are not valid shell variable names.
995
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997
   { (exit 1); exit 1; }; }
998
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999
    eval enable_$ac_feature=no ;;
1000
 
1001
  -docdir | --docdir | --docdi | --doc | --do)
1002
    ac_prev=docdir ;;
1003
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004
    docdir=$ac_optarg ;;
1005
 
1006
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007
    ac_prev=dvidir ;;
1008
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009
    dvidir=$ac_optarg ;;
1010
 
1011
  -enable-* | --enable-*)
1012
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013
    # Reject names that are not valid shell variable names.
1014
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016
   { (exit 1); exit 1; }; }
1017
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018
    eval enable_$ac_feature=\$ac_optarg ;;
1019
 
1020
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022
  | --exec | --exe | --ex)
1023
    ac_prev=exec_prefix ;;
1024
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026
  | --exec=* | --exe=* | --ex=*)
1027
    exec_prefix=$ac_optarg ;;
1028
 
1029
  -gas | --gas | --ga | --g)
1030
    # Obsolete; use --with-gas.
1031
    with_gas=yes ;;
1032
 
1033
  -help | --help | --hel | --he | -h)
1034
    ac_init_help=long ;;
1035
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036
    ac_init_help=recursive ;;
1037
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038
    ac_init_help=short ;;
1039
 
1040
  -host | --host | --hos | --ho)
1041
    ac_prev=host_alias ;;
1042
  -host=* | --host=* | --hos=* | --ho=*)
1043
    host_alias=$ac_optarg ;;
1044
 
1045
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046
    ac_prev=htmldir ;;
1047
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048
  | --ht=*)
1049
    htmldir=$ac_optarg ;;
1050
 
1051
  -includedir | --includedir | --includedi | --included | --include \
1052
  | --includ | --inclu | --incl | --inc)
1053
    ac_prev=includedir ;;
1054
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1056
    includedir=$ac_optarg ;;
1057
 
1058
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1059
    ac_prev=infodir ;;
1060
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061
    infodir=$ac_optarg ;;
1062
 
1063
  -libdir | --libdir | --libdi | --libd)
1064
    ac_prev=libdir ;;
1065
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066
    libdir=$ac_optarg ;;
1067
 
1068
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069
  | --libexe | --libex | --libe)
1070
    ac_prev=libexecdir ;;
1071
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072
  | --libexe=* | --libex=* | --libe=*)
1073
    libexecdir=$ac_optarg ;;
1074
 
1075
  -localedir | --localedir | --localedi | --localed | --locale)
1076
    ac_prev=localedir ;;
1077
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078
    localedir=$ac_optarg ;;
1079
 
1080
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1081
  | --localstate | --localstat | --localsta | --localst | --locals)
1082
    ac_prev=localstatedir ;;
1083
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085
    localstatedir=$ac_optarg ;;
1086
 
1087
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088
    ac_prev=mandir ;;
1089
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090
    mandir=$ac_optarg ;;
1091
 
1092
  -nfp | --nfp | --nf)
1093
    # Obsolete; use --without-fp.
1094
    with_fp=no ;;
1095
 
1096
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097
  | --no-cr | --no-c | -n)
1098
    no_create=yes ;;
1099
 
1100
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102
    no_recursion=yes ;;
1103
 
1104
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106
  | --oldin | --oldi | --old | --ol | --o)
1107
    ac_prev=oldincludedir ;;
1108
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111
    oldincludedir=$ac_optarg ;;
1112
 
1113
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114
    ac_prev=prefix ;;
1115
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116
    prefix=$ac_optarg ;;
1117
 
1118
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119
  | --program-pre | --program-pr | --program-p)
1120
    ac_prev=program_prefix ;;
1121
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123
    program_prefix=$ac_optarg ;;
1124
 
1125
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126
  | --program-suf | --program-su | --program-s)
1127
    ac_prev=program_suffix ;;
1128
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130
    program_suffix=$ac_optarg ;;
1131
 
1132
  -program-transform-name | --program-transform-name \
1133
  | --program-transform-nam | --program-transform-na \
1134
  | --program-transform-n | --program-transform- \
1135
  | --program-transform | --program-transfor \
1136
  | --program-transfo | --program-transf \
1137
  | --program-trans | --program-tran \
1138
  | --progr-tra | --program-tr | --program-t)
1139
    ac_prev=program_transform_name ;;
1140
  -program-transform-name=* | --program-transform-name=* \
1141
  | --program-transform-nam=* | --program-transform-na=* \
1142
  | --program-transform-n=* | --program-transform-=* \
1143
  | --program-transform=* | --program-transfor=* \
1144
  | --program-transfo=* | --program-transf=* \
1145
  | --program-trans=* | --program-tran=* \
1146
  | --progr-tra=* | --program-tr=* | --program-t=*)
1147
    program_transform_name=$ac_optarg ;;
1148
 
1149
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150
    ac_prev=pdfdir ;;
1151
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152
    pdfdir=$ac_optarg ;;
1153
 
1154
  -psdir | --psdir | --psdi | --psd | --ps)
1155
    ac_prev=psdir ;;
1156
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157
    psdir=$ac_optarg ;;
1158
 
1159
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160
  | -silent | --silent | --silen | --sile | --sil)
1161
    silent=yes ;;
1162
 
1163
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164
    ac_prev=sbindir ;;
1165
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166
  | --sbi=* | --sb=*)
1167
    sbindir=$ac_optarg ;;
1168
 
1169
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171
  | --sharedst | --shareds | --shared | --share | --shar \
1172
  | --sha | --sh)
1173
    ac_prev=sharedstatedir ;;
1174
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177
  | --sha=* | --sh=*)
1178
    sharedstatedir=$ac_optarg ;;
1179
 
1180
  -site | --site | --sit)
1181
    ac_prev=site ;;
1182
  -site=* | --site=* | --sit=*)
1183
    site=$ac_optarg ;;
1184
 
1185
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186
    ac_prev=srcdir ;;
1187
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188
    srcdir=$ac_optarg ;;
1189
 
1190
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191
  | --syscon | --sysco | --sysc | --sys | --sy)
1192
    ac_prev=sysconfdir ;;
1193
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195
    sysconfdir=$ac_optarg ;;
1196
 
1197
  -target | --target | --targe | --targ | --tar | --ta | --t)
1198
    ac_prev=target_alias ;;
1199
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200
    target_alias=$ac_optarg ;;
1201
 
1202
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203
    verbose=yes ;;
1204
 
1205
  -version | --version | --versio | --versi | --vers | -V)
1206
    ac_init_version=: ;;
1207
 
1208
  -with-* | --with-*)
1209
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210
    # Reject names that are not valid shell variable names.
1211
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1213
   { (exit 1); exit 1; }; }
1214
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215
    eval with_$ac_package=\$ac_optarg ;;
1216
 
1217
  -without-* | --without-*)
1218
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219
    # Reject names that are not valid shell variable names.
1220
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1222
   { (exit 1); exit 1; }; }
1223
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224
    eval with_$ac_package=no ;;
1225
 
1226
  --x)
1227
    # Obsolete; use --with-x.
1228
    with_x=yes ;;
1229
 
1230
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231
  | --x-incl | --x-inc | --x-in | --x-i)
1232
    ac_prev=x_includes ;;
1233
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235
    x_includes=$ac_optarg ;;
1236
 
1237
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239
    ac_prev=x_libraries ;;
1240
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242
    x_libraries=$ac_optarg ;;
1243
 
1244
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1245
Try \`$0 --help' for more information." >&2
1246
   { (exit 1); exit 1; }; }
1247
    ;;
1248
 
1249
  *=*)
1250
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251
    # Reject names that are not valid shell variable names.
1252
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254
   { (exit 1); exit 1; }; }
1255
    eval $ac_envvar=\$ac_optarg
1256
    export $ac_envvar ;;
1257
 
1258
  *)
1259
    # FIXME: should be removed in autoconf 3.0.
1260
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264
    ;;
1265
 
1266
  esac
1267
done
1268
 
1269
if test -n "$ac_prev"; then
1270
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271
  { echo "$as_me: error: missing argument to $ac_option" >&2
1272
   { (exit 1); exit 1; }; }
1273
fi
1274
 
1275
# Be sure to have absolute directory names.
1276
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277
		datadir sysconfdir sharedstatedir localstatedir includedir \
1278
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279
		libdir localedir mandir
1280
do
1281
  eval ac_val=\$$ac_var
1282
  case $ac_val in
1283
    [\\/$]* | ?:[\\/]* )  continue;;
1284
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285
  esac
1286
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287
   { (exit 1); exit 1; }; }
1288
done
1289
 
1290
# There might be people who depend on the old broken behavior: `$host'
1291
# used to hold the argument of --host etc.
1292
# FIXME: To remove some day.
1293
build=$build_alias
1294
host=$host_alias
1295
target=$target_alias
1296
 
1297
# FIXME: To remove some day.
1298
if test "x$host_alias" != x; then
1299
  if test "x$build_alias" = x; then
1300
    cross_compiling=maybe
1301
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302
    If a cross compiler is detected then cross compile mode will be used." >&2
1303
  elif test "x$build_alias" != "x$host_alias"; then
1304
    cross_compiling=yes
1305
  fi
1306
fi
1307
 
1308
ac_tool_prefix=
1309
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
 
1311
test "$silent" = yes && exec 6>/dev/null
1312
 
1313
 
1314
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315
ac_ls_di=`ls -di .` &&
1316
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317
  { echo "$as_me: error: Working directory cannot be determined" >&2
1318
   { (exit 1); exit 1; }; }
1319
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1321
   { (exit 1); exit 1; }; }
1322
 
1323
 
1324
# Find the source files, if location was not specified.
1325
if test -z "$srcdir"; then
1326
  ac_srcdir_defaulted=yes
1327
  # Try the directory containing this script, then the parent directory.
1328
  ac_confdir=`$as_dirname -- "$0" ||
1329
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330
	 X"$0" : 'X\(//\)[^/]' \| \
1331
	 X"$0" : 'X\(//\)$' \| \
1332
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333
echo X"$0" |
1334
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335
	    s//\1/
1336
	    q
1337
	  }
1338
	  /^X\(\/\/\)[^/].*/{
1339
	    s//\1/
1340
	    q
1341
	  }
1342
	  /^X\(\/\/\)$/{
1343
	    s//\1/
1344
	    q
1345
	  }
1346
	  /^X\(\/\).*/{
1347
	    s//\1/
1348
	    q
1349
	  }
1350
	  s/.*/./; q'`
1351
  srcdir=$ac_confdir
1352
  if test ! -r "$srcdir/$ac_unique_file"; then
1353
    srcdir=..
1354
  fi
1355
else
1356
  ac_srcdir_defaulted=no
1357
fi
1358
if test ! -r "$srcdir/$ac_unique_file"; then
1359
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361
   { (exit 1); exit 1; }; }
1362
fi
1363
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364
ac_abs_confdir=`(
1365
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366
   { (exit 1); exit 1; }; }
1367
	pwd)`
1368
# When building in place, set srcdir=.
1369
if test "$ac_abs_confdir" = "$ac_pwd"; then
1370
  srcdir=.
1371
fi
1372
# Remove unnecessary trailing slashes from srcdir.
1373
# Double slashes in file names in object file debugging info
1374
# mess up M-x gdb in Emacs.
1375
case $srcdir in
1376
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377
esac
1378
for ac_var in $ac_precious_vars; do
1379
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380
  eval ac_env_${ac_var}_value=\$${ac_var}
1381
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383
done
1384
 
1385
#
1386
# Report the --help message.
1387
#
1388
if test "$ac_init_help" = "long"; then
1389
  # Omit some internal or obsolete options to make the list less imposing.
1390
  # This message is too long to be a string in the A/UX 3.1 sh.
1391
  cat <<_ACEOF
1392
\`configure' configures this package to adapt to many kinds of systems.
1393
 
1394
Usage: $0 [OPTION]... [VAR=VALUE]...
1395
 
1396
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397
VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
 
1399
Defaults for the options are specified in brackets.
1400
 
1401
Configuration:
1402
  -h, --help              display this help and exit
1403
      --help=short        display options specific to this package
1404
      --help=recursive    display the short help of all the included packages
1405
  -V, --version           display version information and exit
1406
  -q, --quiet, --silent   do not print \`checking...' messages
1407
      --cache-file=FILE   cache test results in FILE [disabled]
1408
  -C, --config-cache      alias for \`--cache-file=config.cache'
1409
  -n, --no-create         do not create output files
1410
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
 
1412
Installation directories:
1413
  --prefix=PREFIX         install architecture-independent files in PREFIX
1414
			  [$ac_default_prefix]
1415
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416
			  [PREFIX]
1417
 
1418
By default, \`make install' will install all the files in
1419
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421
for instance \`--prefix=\$HOME'.
1422
 
1423
For better control, use the options below.
1424
 
1425
Fine tuning of the installation directories:
1426
  --bindir=DIR           user executables [EPREFIX/bin]
1427
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1428
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1429
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1430
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1431
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1432
  --libdir=DIR           object code libraries [EPREFIX/lib]
1433
  --includedir=DIR       C header files [PREFIX/include]
1434
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1435
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1436
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1437
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1438
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1439
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1440
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1441
  --htmldir=DIR          html documentation [DOCDIR]
1442
  --dvidir=DIR           dvi documentation [DOCDIR]
1443
  --pdfdir=DIR           pdf documentation [DOCDIR]
1444
  --psdir=DIR            ps documentation [DOCDIR]
1445
_ACEOF
1446
 
1447
  cat <<\_ACEOF
1448
 
1449
Program names:
1450
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
 
1454
System types:
1455
  --build=BUILD     configure for building on BUILD [guessed]
1456
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457
_ACEOF
1458
fi
1459
 
1460
if test -n "$ac_init_help"; then
1461
 
1462
  cat <<\_ACEOF
1463
 
1464
Optional Features:
1465
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467
  --disable-dependency-tracking  speeds up one-time build
1468
  --enable-dependency-tracking   do not reject slow dependency extractors
1469
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1470
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1471
  --enable-fast-install@<:@=PKGS@:>@ 
1472
                          optimize for fast installation @<:@default=yes@:>@
1473
  --disable-libtool-lock  avoid locking (might break parallel builds)
1474
 
1475
Optional Packages:
1476
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1477
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1478
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1479
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1480
                          both@:>@
1481
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1482
 
1483
Some influential environment variables:
1484
  CC          C compiler command
1485
  CFLAGS      C compiler flags
1486
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487
              nonstandard directory <lib dir>
1488
  LIBS        libraries to pass to the linker, e.g. -l<library>
1489
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490
              you have headers in a nonstandard directory <include dir>
1491
  CPP         C preprocessor
1492
  CXX         C++ compiler command
1493
  CXXFLAGS    C++ compiler flags
1494
  CXXCPP      C++ preprocessor
1495
  F77         Fortran 77 compiler command
1496
  FFLAGS      Fortran 77 compiler flags
1497
 
1498
Use these variables to override the choices made by `configure' or to help
1499
it to find libraries and programs with nonstandard names/locations.
1500
 
1501
_ACEOF
1502
ac_status=$?
1503
fi
1504
 
1505
if test "$ac_init_help" = "recursive"; then
1506
  # If there are subdirs, report their specific --help.
1507
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508
    test -d "$ac_dir" || continue
1509
    ac_builddir=.
1510
 
1511
case "$ac_dir" in
1512
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513
*)
1514
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1515
  # A ".." for each directory in $ac_dir_suffix.
1516
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1517
  case $ac_top_builddir_sub in
1518
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520
  esac ;;
1521
esac
1522
ac_abs_top_builddir=$ac_pwd
1523
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524
# for backward compatibility:
1525
ac_top_builddir=$ac_top_build_prefix
1526
 
1527
case $srcdir in
1528
  .)  # We are building in place.
1529
    ac_srcdir=.
1530
    ac_top_srcdir=$ac_top_builddir_sub
1531
    ac_abs_top_srcdir=$ac_pwd ;;
1532
  [\\/]* | ?:[\\/]* )  # Absolute name.
1533
    ac_srcdir=$srcdir$ac_dir_suffix;
1534
    ac_top_srcdir=$srcdir
1535
    ac_abs_top_srcdir=$srcdir ;;
1536
  *) # Relative name.
1537
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1539
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540
esac
1541
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
 
1543
    cd "$ac_dir" || { ac_status=$?; continue; }
1544
    # Check for guested configure.
1545
    if test -f "$ac_srcdir/configure.gnu"; then
1546
      echo &&
1547
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548
    elif test -f "$ac_srcdir/configure"; then
1549
      echo &&
1550
      $SHELL "$ac_srcdir/configure" --help=recursive
1551
    else
1552
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553
    fi || ac_status=$?
1554
    cd "$ac_pwd" || { ac_status=$?; break; }
1555
  done
1556
fi
1557
 
1558
test -n "$ac_init_help" && exit $ac_status
1559
if $ac_init_version; then
1560
  cat <<\_ACEOF
1561
configure
1562
generated by GNU Autoconf 2.61
1563
 
1564
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1565
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1566
This configure script is free software; the Free Software Foundation
1567
gives unlimited permission to copy, distribute and modify it.
1568
_ACEOF
1569
  exit
1570
fi
1571
cat >config.log <<_ACEOF
1572
This file contains any messages produced by compilers while
1573
running configure, to aid debugging if configure makes a mistake.
1574
 
1575
It was created by $as_me, which was
1576
generated by GNU Autoconf 2.61.  Invocation command line was
1577
 
1578
  $ $0 $@
1579
 
1580
_ACEOF
1581
exec 5>>config.log
1582
{
1583
cat <<_ASUNAME
1584
@%:@@%:@ --------- @%:@@%:@
1585
@%:@@%:@ Platform. @%:@@%:@
1586
@%:@@%:@ --------- @%:@@%:@
1587
 
1588
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593
 
1594
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1596
 
1597
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1598
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1599
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1601
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1602
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1603
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1604
 
1605
_ASUNAME
1606
 
1607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608
for as_dir in $PATH
1609
do
1610
  IFS=$as_save_IFS
1611
  test -z "$as_dir" && as_dir=.
1612
  echo "PATH: $as_dir"
1613
done
1614
IFS=$as_save_IFS
1615
 
1616
} >&5
1617
 
1618
cat >&5 <<_ACEOF
1619
 
1620
 
1621
@%:@@%:@ ----------- @%:@@%:@
1622
@%:@@%:@ Core tests. @%:@@%:@
1623
@%:@@%:@ ----------- @%:@@%:@
1624
 
1625
_ACEOF
1626
 
1627
 
1628
# Keep a trace of the command line.
1629
# Strip out --no-create and --no-recursion so they do not pile up.
1630
# Strip out --silent because we don't want to record it for future runs.
1631
# Also quote any args containing shell meta-characters.
1632
# Make two passes to allow for proper duplicate-argument suppression.
1633
ac_configure_args=
1634
ac_configure_args0=
1635
ac_configure_args1=
1636
ac_must_keep_next=false
1637
for ac_pass in 1 2
1638
do
1639
  for ac_arg
1640
  do
1641
    case $ac_arg in
1642
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644
    | -silent | --silent | --silen | --sile | --sil)
1645
      continue ;;
1646
    *\'*)
1647
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648
    esac
1649
    case $ac_pass in
1650
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651
    2)
1652
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653
      if test $ac_must_keep_next = true; then
1654
	ac_must_keep_next=false # Got value, back to normal.
1655
      else
1656
	case $ac_arg in
1657
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1658
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660
	  | -with-* | --with-* | -without-* | --without-* | --x)
1661
	    case "$ac_configure_args0 " in
1662
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663
	    esac
1664
	    ;;
1665
	  -* ) ac_must_keep_next=true ;;
1666
	esac
1667
      fi
1668
      ac_configure_args="$ac_configure_args '$ac_arg'"
1669
      ;;
1670
    esac
1671
  done
1672
done
1673
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675
 
1676
# When interrupted or exit'd, cleanup temporary files, and complete
1677
# config.log.  We remove comments because anyway the quotes in there
1678
# would cause problems or look ugly.
1679
# WARNING: Use '\'' to represent an apostrophe within the trap.
1680
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681
trap 'exit_status=$?
1682
  # Save into config.log some information that might help in debugging.
1683
  {
1684
    echo
1685
 
1686
    cat <<\_ASBOX
1687
@%:@@%:@ ---------------- @%:@@%:@
1688
@%:@@%:@ Cache variables. @%:@@%:@
1689
@%:@@%:@ ---------------- @%:@@%:@
1690
_ASBOX
1691
    echo
1692
    # The following way of writing the cache mishandles newlines in values,
1693
(
1694
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695
    eval ac_val=\$$ac_var
1696
    case $ac_val in #(
1697
    *${as_nl}*)
1698
      case $ac_var in #(
1699
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701
      esac
1702
      case $ac_var in #(
1703
      _ | IFS | as_nl) ;; #(
1704
      *) $as_unset $ac_var ;;
1705
      esac ;;
1706
    esac
1707
  done
1708
  (set) 2>&1 |
1709
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710
    *${as_nl}ac_space=\ *)
1711
      sed -n \
1712
	"s/'\''/'\''\\\\'\'''\''/g;
1713
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714
      ;; #(
1715
    *)
1716
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717
      ;;
1718
    esac |
1719
    sort
1720
)
1721
    echo
1722
 
1723
    cat <<\_ASBOX
1724
@%:@@%:@ ----------------- @%:@@%:@
1725
@%:@@%:@ Output variables. @%:@@%:@
1726
@%:@@%:@ ----------------- @%:@@%:@
1727
_ASBOX
1728
    echo
1729
    for ac_var in $ac_subst_vars
1730
    do
1731
      eval ac_val=\$$ac_var
1732
      case $ac_val in
1733
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734
      esac
1735
      echo "$ac_var='\''$ac_val'\''"
1736
    done | sort
1737
    echo
1738
 
1739
    if test -n "$ac_subst_files"; then
1740
      cat <<\_ASBOX
1741
@%:@@%:@ ------------------- @%:@@%:@
1742
@%:@@%:@ File substitutions. @%:@@%:@
1743
@%:@@%:@ ------------------- @%:@@%:@
1744
_ASBOX
1745
      echo
1746
      for ac_var in $ac_subst_files
1747
      do
1748
	eval ac_val=\$$ac_var
1749
	case $ac_val in
1750
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751
	esac
1752
	echo "$ac_var='\''$ac_val'\''"
1753
      done | sort
1754
      echo
1755
    fi
1756
 
1757
    if test -s confdefs.h; then
1758
      cat <<\_ASBOX
1759
@%:@@%:@ ----------- @%:@@%:@
1760
@%:@@%:@ confdefs.h. @%:@@%:@
1761
@%:@@%:@ ----------- @%:@@%:@
1762
_ASBOX
1763
      echo
1764
      cat confdefs.h
1765
      echo
1766
    fi
1767
    test "$ac_signal" != 0 &&
1768
      echo "$as_me: caught signal $ac_signal"
1769
    echo "$as_me: exit $exit_status"
1770
  } >&5
1771
  rm -f core *.core core.conftest.* &&
1772
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773
    exit $exit_status
1774
' 0
1775
for ac_signal in 1 2 13 15; do
1776
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777
done
1778
ac_signal=0
1779
 
1780
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1781
rm -f -r conftest* confdefs.h
1782
 
1783
# Predefined preprocessor variables.
1784
 
1785
cat >>confdefs.h <<_ACEOF
1786
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1787
_ACEOF
1788
 
1789
 
1790
cat >>confdefs.h <<_ACEOF
1791
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792
_ACEOF
1793
 
1794
 
1795
cat >>confdefs.h <<_ACEOF
1796
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1797
_ACEOF
1798
 
1799
 
1800
cat >>confdefs.h <<_ACEOF
1801
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1802
_ACEOF
1803
 
1804
 
1805
cat >>confdefs.h <<_ACEOF
1806
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807
_ACEOF
1808
 
1809
 
1810
# Let the site file select an alternate cache file if it wants to.
1811
# Prefer explicitly selected file to automatically selected ones.
1812
if test -n "$CONFIG_SITE"; then
1813
  set x "$CONFIG_SITE"
1814
elif test "x$prefix" != xNONE; then
1815
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816
else
1817
  set x "$ac_default_prefix/share/config.site" \
1818
	"$ac_default_prefix/etc/config.site"
1819
fi
1820
shift
1821
for ac_site_file
1822
do
1823
  if test -r "$ac_site_file"; then
1824
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825
echo "$as_me: loading site script $ac_site_file" >&6;}
1826
    sed 's/^/| /' "$ac_site_file" >&5
1827
    . "$ac_site_file"
1828
  fi
1829
done
1830
 
1831
if test -r "$cache_file"; then
1832
  # Some versions of bash will fail to source /dev/null (special
1833
  # files actually), so we avoid doing that.
1834
  if test -f "$cache_file"; then
1835
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836
echo "$as_me: loading cache $cache_file" >&6;}
1837
    case $cache_file in
1838
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839
      *)                      . "./$cache_file";;
1840
    esac
1841
  fi
1842
else
1843
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844
echo "$as_me: creating cache $cache_file" >&6;}
1845
  >$cache_file
1846
fi
1847
 
1848
# Check that the precious variables saved in the cache have kept the same
1849
# value.
1850
ac_cache_corrupted=false
1851
for ac_var in $ac_precious_vars; do
1852
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853
  eval ac_new_set=\$ac_env_${ac_var}_set
1854
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855
  eval ac_new_val=\$ac_env_${ac_var}_value
1856
  case $ac_old_set,$ac_new_set in
1857
    set,)
1858
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860
      ac_cache_corrupted=: ;;
1861
    ,set)
1862
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864
      ac_cache_corrupted=: ;;
1865
    ,);;
1866
    *)
1867
      if test "x$ac_old_val" != "x$ac_new_val"; then
1868
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1871
echo "$as_me:   former value:  $ac_old_val" >&2;}
1872
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1873
echo "$as_me:   current value: $ac_new_val" >&2;}
1874
	ac_cache_corrupted=:
1875
      fi;;
1876
  esac
1877
  # Pass precious variables to config.status.
1878
  if test "$ac_new_set" = set; then
1879
    case $ac_new_val in
1880
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881
    *) ac_arg=$ac_var=$ac_new_val ;;
1882
    esac
1883
    case " $ac_configure_args " in
1884
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1885
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886
    esac
1887
  fi
1888
done
1889
if $ac_cache_corrupted; then
1890
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894
   { (exit 1); exit 1; }; }
1895
fi
1896
 
1897
 
1898
 
1899
 
1900
 
1901
 
1902
 
1903
 
1904
 
1905
 
1906
 
1907
 
1908
 
1909
 
1910
 
1911
 
1912
 
1913
ac_ext=c
1914
ac_cpp='$CPP $CPPFLAGS'
1915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
 
1919
 
1920
 
1921
ac_config_headers="$ac_config_headers config.h"
1922
 
1923
am__api_version='1.10'
1924
 
1925
ac_aux_dir=
1926
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1927
  if test -f "$ac_dir/install-sh"; then
1928
    ac_aux_dir=$ac_dir
1929
    ac_install_sh="$ac_aux_dir/install-sh -c"
1930
    break
1931
  elif test -f "$ac_dir/install.sh"; then
1932
    ac_aux_dir=$ac_dir
1933
    ac_install_sh="$ac_aux_dir/install.sh -c"
1934
    break
1935
  elif test -f "$ac_dir/shtool"; then
1936
    ac_aux_dir=$ac_dir
1937
    ac_install_sh="$ac_aux_dir/shtool install -c"
1938
    break
1939
  fi
1940
done
1941
if test -z "$ac_aux_dir"; then
1942
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1943
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1944
   { (exit 1); exit 1; }; }
1945
fi
1946
 
1947
# These three variables are undocumented and unsupported,
1948
# and are intended to be withdrawn in a future Autoconf release.
1949
# They can cause serious problems if a builder's source tree is in a directory
1950
# whose full name contains unusual characters.
1951
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
 
1955
 
1956
# Find a good install program.  We prefer a C program (faster),
1957
# so one script is as good as another.  But avoid the broken or
1958
# incompatible versions:
1959
# SysV /etc/install, /usr/sbin/install
1960
# SunOS /usr/etc/install
1961
# IRIX /sbin/install
1962
# AIX /bin/install
1963
# AmigaOS /C/install, which installs bootblocks on floppy discs
1964
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967
# OS/2's system install, which has a completely different semantic
1968
# ./install, which can be erroneously created by make from ./install.sh.
1969
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971
if test -z "$INSTALL"; then
1972
if test "${ac_cv_path_install+set}" = set; then
1973
  echo $ECHO_N "(cached) $ECHO_C" >&6
1974
else
1975
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976
for as_dir in $PATH
1977
do
1978
  IFS=$as_save_IFS
1979
  test -z "$as_dir" && as_dir=.
1980
  # Account for people who put trailing slashes in PATH elements.
1981
case $as_dir/ in
1982
  ./ | .// | /cC/* | \
1983
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985
  /usr/ucb/* ) ;;
1986
  *)
1987
    # OSF1 and SCO ODT 3.0 have their own names for install.
1988
    # Don't use installbsd from OSF since it installs stuff as root
1989
    # by default.
1990
    for ac_prog in ginstall scoinst install; do
1991
      for ac_exec_ext in '' $ac_executable_extensions; do
1992
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993
	  if test $ac_prog = install &&
1994
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995
	    # AIX install.  It has an incompatible calling convention.
1996
	    :
1997
	  elif test $ac_prog = install &&
1998
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999
	    # program-specific install script used by HP pwplus--don't use.
2000
	    :
2001
	  else
2002
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003
	    break 3
2004
	  fi
2005
	fi
2006
      done
2007
    done
2008
    ;;
2009
esac
2010
done
2011
IFS=$as_save_IFS
2012
 
2013
 
2014
fi
2015
  if test "${ac_cv_path_install+set}" = set; then
2016
    INSTALL=$ac_cv_path_install
2017
  else
2018
    # As a last resort, use the slow shell script.  Don't cache a
2019
    # value for INSTALL within a source directory, because that will
2020
    # break other packages using the cache if that directory is
2021
    # removed, or if the value is a relative name.
2022
    INSTALL=$ac_install_sh
2023
  fi
2024
fi
2025
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2026
echo "${ECHO_T}$INSTALL" >&6; }
2027
 
2028
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029
# It thinks the first close brace ends the variable substitution.
2030
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031
 
2032
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033
 
2034
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2035
 
2036
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2038
# Just in case
2039
sleep 1
2040
echo timestamp > conftest.file
2041
# Do `set' in a subshell so we don't clobber the current shell's
2042
# arguments.  Must try -L first in case configure is actually a
2043
# symlink; some systems play weird games with the mod time of symlinks
2044
# (eg FreeBSD returns the mod time of the symlink's containing
2045
# directory).
2046
if (
2047
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048
   if test "$*" = "X"; then
2049
      # -L didn't work.
2050
      set X `ls -t $srcdir/configure conftest.file`
2051
   fi
2052
   rm -f conftest.file
2053
   if test "$*" != "X $srcdir/configure conftest.file" \
2054
      && test "$*" != "X conftest.file $srcdir/configure"; then
2055
 
2056
      # If neither matched, then we have a broken ls.  This can happen
2057
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2058
      # broken ls alias from the environment.  This has actually
2059
      # happened.  Such a system could not be considered "sane".
2060
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2061
alias in your environment" >&5
2062
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2063
alias in your environment" >&2;}
2064
   { (exit 1); exit 1; }; }
2065
   fi
2066
 
2067
   test "$2" = conftest.file
2068
   )
2069
then
2070
   # Ok.
2071
   :
2072
else
2073
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074
Check your system clock" >&5
2075
echo "$as_me: error: newly created file is older than distributed files!
2076
Check your system clock" >&2;}
2077
   { (exit 1); exit 1; }; }
2078
fi
2079
{ echo "$as_me:$LINENO: result: yes" >&5
2080
echo "${ECHO_T}yes" >&6; }
2081
test "$program_prefix" != NONE &&
2082
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083
# Use a double $ so make ignores it.
2084
test "$program_suffix" != NONE &&
2085
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086
# Double any \ or $.  echo might interpret backslashes.
2087
# By default was `s,x,x', remove it if useless.
2088
cat <<\_ACEOF >conftest.sed
2089
s/[\\$]/&&/g;s/;s,x,x,$//
2090
_ACEOF
2091
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2092
rm -f conftest.sed
2093
 
2094
# expand $ac_aux_dir to an absolute path
2095
am_aux_dir=`cd $ac_aux_dir && pwd`
2096
 
2097
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098
# Use eval to expand $SHELL
2099
if eval "$MISSING --run true"; then
2100
  am_missing_run="$MISSING --run "
2101
else
2102
  am_missing_run=
2103
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105
fi
2106
 
2107
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2108
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2109
if test -z "$MKDIR_P"; then
2110
  if test "${ac_cv_path_mkdir+set}" = set; then
2111
  echo $ECHO_N "(cached) $ECHO_C" >&6
2112
else
2113
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2115
do
2116
  IFS=$as_save_IFS
2117
  test -z "$as_dir" && as_dir=.
2118
  for ac_prog in mkdir gmkdir; do
2119
	 for ac_exec_ext in '' $ac_executable_extensions; do
2120
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2121
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2122
	     'mkdir (GNU coreutils) '* | \
2123
	     'mkdir (coreutils) '* | \
2124
	     'mkdir (fileutils) '4.1*)
2125
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2126
	       break 3;;
2127
	   esac
2128
	 done
2129
       done
2130
done
2131
IFS=$as_save_IFS
2132
 
2133
fi
2134
 
2135
  if test "${ac_cv_path_mkdir+set}" = set; then
2136
    MKDIR_P="$ac_cv_path_mkdir -p"
2137
  else
2138
    # As a last resort, use the slow shell script.  Don't cache a
2139
    # value for MKDIR_P within a source directory, because that will
2140
    # break other packages using the cache if that directory is
2141
    # removed, or if the value is a relative name.
2142
    test -d ./--version && rmdir ./--version
2143
    MKDIR_P="$ac_install_sh -d"
2144
  fi
2145
fi
2146
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2147
echo "${ECHO_T}$MKDIR_P" >&6; }
2148
 
2149
mkdir_p="$MKDIR_P"
2150
case $mkdir_p in
2151
  [\\/$]* | ?:[\\/]*) ;;
2152
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2153
esac
2154
 
2155
for ac_prog in gawk mawk nawk awk
2156
do
2157
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2158
set dummy $ac_prog; ac_word=$2
2159
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161
if test "${ac_cv_prog_AWK+set}" = set; then
2162
  echo $ECHO_N "(cached) $ECHO_C" >&6
2163
else
2164
  if test -n "$AWK"; then
2165
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2166
else
2167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168
for as_dir in $PATH
2169
do
2170
  IFS=$as_save_IFS
2171
  test -z "$as_dir" && as_dir=.
2172
  for ac_exec_ext in '' $ac_executable_extensions; do
2173
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174
    ac_cv_prog_AWK="$ac_prog"
2175
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176
    break 2
2177
  fi
2178
done
2179
done
2180
IFS=$as_save_IFS
2181
 
2182
fi
2183
fi
2184
AWK=$ac_cv_prog_AWK
2185
if test -n "$AWK"; then
2186
  { echo "$as_me:$LINENO: result: $AWK" >&5
2187
echo "${ECHO_T}$AWK" >&6; }
2188
else
2189
  { echo "$as_me:$LINENO: result: no" >&5
2190
echo "${ECHO_T}no" >&6; }
2191
fi
2192
 
2193
 
2194
  test -n "$AWK" && break
2195
done
2196
 
2197
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201
  echo $ECHO_N "(cached) $ECHO_C" >&6
2202
else
2203
  cat >conftest.make <<\_ACEOF
2204
SHELL = /bin/sh
2205
all:
2206
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2207
_ACEOF
2208
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2210
  *@@@%%%=?*=@@@%%%*)
2211
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2212
  *)
2213
    eval ac_cv_prog_make_${ac_make}_set=no;;
2214
esac
2215
rm -f conftest.make
2216
fi
2217
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218
  { echo "$as_me:$LINENO: result: yes" >&5
2219
echo "${ECHO_T}yes" >&6; }
2220
  SET_MAKE=
2221
else
2222
  { echo "$as_me:$LINENO: result: no" >&5
2223
echo "${ECHO_T}no" >&6; }
2224
  SET_MAKE="MAKE=${MAKE-make}"
2225
fi
2226
 
2227
rm -rf .tst 2>/dev/null
2228
mkdir .tst 2>/dev/null
2229
if test -d .tst; then
2230
  am__leading_dot=.
2231
else
2232
  am__leading_dot=_
2233
fi
2234
rmdir .tst 2>/dev/null
2235
 
2236
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2237
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2238
  # is not polluted with repeated "-I."
2239
  am__isrc=' -I$(srcdir)'
2240
  # test to see if srcdir already configured
2241
  if test -f $srcdir/config.status; then
2242
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244
   { (exit 1); exit 1; }; }
2245
  fi
2246
fi
2247
 
2248
# test whether we have cygpath
2249
if test -z "$CYGPATH_W"; then
2250
  if (cygpath --version) >/dev/null 2>/dev/null; then
2251
    CYGPATH_W='cygpath -w'
2252
  else
2253
    CYGPATH_W=echo
2254
  fi
2255
fi
2256
 
2257
 
2258
# Define the identity of the package.
2259
 PACKAGE=sidd
2260
 VERSION=0.94
2261
 
2262
 
2263
cat >>confdefs.h <<_ACEOF
2264
@%:@define PACKAGE "$PACKAGE"
2265
_ACEOF
2266
 
2267
 
2268
cat >>confdefs.h <<_ACEOF
2269
@%:@define VERSION "$VERSION"
2270
_ACEOF
2271
 
2272
# Some tools Automake needs.
2273
 
2274
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2275
 
2276
 
2277
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2278
 
2279
 
2280
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2281
 
2282
 
2283
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2284
 
2285
 
2286
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287
 
2288
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2289
 
2290
# Installed binaries are usually stripped using `strip' when the user
2291
# run `make install-strip'.  However `strip' might not be the right
2292
# tool to use in cross-compilation environments, therefore Automake
2293
# will honor the `STRIP' environment variable to overrule this program.
2294
if test "$cross_compiling" != no; then
2295
  if test -n "$ac_tool_prefix"; then
2296
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297
set dummy ${ac_tool_prefix}strip; ac_word=$2
2298
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300
if test "${ac_cv_prog_STRIP+set}" = set; then
2301
  echo $ECHO_N "(cached) $ECHO_C" >&6
2302
else
2303
  if test -n "$STRIP"; then
2304
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305
else
2306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307
for as_dir in $PATH
2308
do
2309
  IFS=$as_save_IFS
2310
  test -z "$as_dir" && as_dir=.
2311
  for ac_exec_ext in '' $ac_executable_extensions; do
2312
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2314
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315
    break 2
2316
  fi
2317
done
2318
done
2319
IFS=$as_save_IFS
2320
 
2321
fi
2322
fi
2323
STRIP=$ac_cv_prog_STRIP
2324
if test -n "$STRIP"; then
2325
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2326
echo "${ECHO_T}$STRIP" >&6; }
2327
else
2328
  { echo "$as_me:$LINENO: result: no" >&5
2329
echo "${ECHO_T}no" >&6; }
2330
fi
2331
 
2332
 
2333
fi
2334
if test -z "$ac_cv_prog_STRIP"; then
2335
  ac_ct_STRIP=$STRIP
2336
  # Extract the first word of "strip", so it can be a program name with args.
2337
set dummy strip; ac_word=$2
2338
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2339
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2341
  echo $ECHO_N "(cached) $ECHO_C" >&6
2342
else
2343
  if test -n "$ac_ct_STRIP"; then
2344
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345
else
2346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347
for as_dir in $PATH
2348
do
2349
  IFS=$as_save_IFS
2350
  test -z "$as_dir" && as_dir=.
2351
  for ac_exec_ext in '' $ac_executable_extensions; do
2352
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353
    ac_cv_prog_ac_ct_STRIP="strip"
2354
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355
    break 2
2356
  fi
2357
done
2358
done
2359
IFS=$as_save_IFS
2360
 
2361
fi
2362
fi
2363
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2364
if test -n "$ac_ct_STRIP"; then
2365
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2366
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2367
else
2368
  { echo "$as_me:$LINENO: result: no" >&5
2369
echo "${ECHO_T}no" >&6; }
2370
fi
2371
 
2372
  if test "x$ac_ct_STRIP" = x; then
2373
    STRIP=":"
2374
  else
2375
    case $cross_compiling:$ac_tool_warned in
2376
yes:)
2377
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2378
whose name does not start with the host triplet.  If you think this
2379
configuration is useful to you, please write to autoconf@gnu.org." >&5
2380
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381
whose name does not start with the host triplet.  If you think this
2382
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2383
ac_tool_warned=yes ;;
2384
esac
2385
    STRIP=$ac_ct_STRIP
2386
  fi
2387
else
2388
  STRIP="$ac_cv_prog_STRIP"
2389
fi
2390
 
2391
fi
2392
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2393
 
2394
# We need awk for the "check" target.  The system "awk" is bad on
2395
# some platforms.
2396
# Always define AMTAR for backward compatibility.
2397
 
2398
AMTAR=${AMTAR-"${am_missing_run}tar"}
2399
 
2400
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2401
 
2402
 
2403
 
2404
 
2405
 
2406
 
2407
ac_ext=c
2408
ac_cpp='$CPP $CPPFLAGS'
2409
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
 
2413
ac_ext=c
2414
ac_cpp='$CPP $CPPFLAGS'
2415
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
if test -n "$ac_tool_prefix"; then
2419
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2420
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2421
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423
if test "${ac_cv_prog_CC+set}" = set; then
2424
  echo $ECHO_N "(cached) $ECHO_C" >&6
2425
else
2426
  if test -n "$CC"; then
2427
  ac_cv_prog_CC="$CC" # Let the user override the test.
2428
else
2429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430
for as_dir in $PATH
2431
do
2432
  IFS=$as_save_IFS
2433
  test -z "$as_dir" && as_dir=.
2434
  for ac_exec_ext in '' $ac_executable_extensions; do
2435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2437
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438
    break 2
2439
  fi
2440
done
2441
done
2442
IFS=$as_save_IFS
2443
 
2444
fi
2445
fi
2446
CC=$ac_cv_prog_CC
2447
if test -n "$CC"; then
2448
  { echo "$as_me:$LINENO: result: $CC" >&5
2449
echo "${ECHO_T}$CC" >&6; }
2450
else
2451
  { echo "$as_me:$LINENO: result: no" >&5
2452
echo "${ECHO_T}no" >&6; }
2453
fi
2454
 
2455
 
2456
fi
2457
if test -z "$ac_cv_prog_CC"; then
2458
  ac_ct_CC=$CC
2459
  # Extract the first word of "gcc", so it can be a program name with args.
2460
set dummy gcc; ac_word=$2
2461
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2464
  echo $ECHO_N "(cached) $ECHO_C" >&6
2465
else
2466
  if test -n "$ac_ct_CC"; then
2467
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2468
else
2469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470
for as_dir in $PATH
2471
do
2472
  IFS=$as_save_IFS
2473
  test -z "$as_dir" && as_dir=.
2474
  for ac_exec_ext in '' $ac_executable_extensions; do
2475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476
    ac_cv_prog_ac_ct_CC="gcc"
2477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478
    break 2
2479
  fi
2480
done
2481
done
2482
IFS=$as_save_IFS
2483
 
2484
fi
2485
fi
2486
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487
if test -n "$ac_ct_CC"; then
2488
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489
echo "${ECHO_T}$ac_ct_CC" >&6; }
2490
else
2491
  { echo "$as_me:$LINENO: result: no" >&5
2492
echo "${ECHO_T}no" >&6; }
2493
fi
2494
 
2495
  if test "x$ac_ct_CC" = x; then
2496
    CC=""
2497
  else
2498
    case $cross_compiling:$ac_tool_warned in
2499
yes:)
2500
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2501
whose name does not start with the host triplet.  If you think this
2502
configuration is useful to you, please write to autoconf@gnu.org." >&5
2503
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2504
whose name does not start with the host triplet.  If you think this
2505
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2506
ac_tool_warned=yes ;;
2507
esac
2508
    CC=$ac_ct_CC
2509
  fi
2510
else
2511
  CC="$ac_cv_prog_CC"
2512
fi
2513
 
2514
if test -z "$CC"; then
2515
          if test -n "$ac_tool_prefix"; then
2516
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2517
set dummy ${ac_tool_prefix}cc; ac_word=$2
2518
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520
if test "${ac_cv_prog_CC+set}" = set; then
2521
  echo $ECHO_N "(cached) $ECHO_C" >&6
2522
else
2523
  if test -n "$CC"; then
2524
  ac_cv_prog_CC="$CC" # Let the user override the test.
2525
else
2526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527
for as_dir in $PATH
2528
do
2529
  IFS=$as_save_IFS
2530
  test -z "$as_dir" && as_dir=.
2531
  for ac_exec_ext in '' $ac_executable_extensions; do
2532
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535
    break 2
2536
  fi
2537
done
2538
done
2539
IFS=$as_save_IFS
2540
 
2541
fi
2542
fi
2543
CC=$ac_cv_prog_CC
2544
if test -n "$CC"; then
2545
  { echo "$as_me:$LINENO: result: $CC" >&5
2546
echo "${ECHO_T}$CC" >&6; }
2547
else
2548
  { echo "$as_me:$LINENO: result: no" >&5
2549
echo "${ECHO_T}no" >&6; }
2550
fi
2551
 
2552
 
2553
  fi
2554
fi
2555
if test -z "$CC"; then
2556
  # Extract the first word of "cc", so it can be a program name with args.
2557
set dummy cc; ac_word=$2
2558
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560
if test "${ac_cv_prog_CC+set}" = set; then
2561
  echo $ECHO_N "(cached) $ECHO_C" >&6
2562
else
2563
  if test -n "$CC"; then
2564
  ac_cv_prog_CC="$CC" # Let the user override the test.
2565
else
2566
  ac_prog_rejected=no
2567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568
for as_dir in $PATH
2569
do
2570
  IFS=$as_save_IFS
2571
  test -z "$as_dir" && as_dir=.
2572
  for ac_exec_ext in '' $ac_executable_extensions; do
2573
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2575
       ac_prog_rejected=yes
2576
       continue
2577
     fi
2578
    ac_cv_prog_CC="cc"
2579
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580
    break 2
2581
  fi
2582
done
2583
done
2584
IFS=$as_save_IFS
2585
 
2586
if test $ac_prog_rejected = yes; then
2587
  # We found a bogon in the path, so make sure we never use it.
2588
  set dummy $ac_cv_prog_CC
2589
  shift
2590
  if test $@%:@ != 0; then
2591
    # We chose a different compiler from the bogus one.
2592
    # However, it has the same basename, so the bogon will be chosen
2593
    # first if we set CC to just the basename; use the full file name.
2594
    shift
2595
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2596
  fi
2597
fi
2598
fi
2599
fi
2600
CC=$ac_cv_prog_CC
2601
if test -n "$CC"; then
2602
  { echo "$as_me:$LINENO: result: $CC" >&5
2603
echo "${ECHO_T}$CC" >&6; }
2604
else
2605
  { echo "$as_me:$LINENO: result: no" >&5
2606
echo "${ECHO_T}no" >&6; }
2607
fi
2608
 
2609
 
2610
fi
2611
if test -z "$CC"; then
2612
  if test -n "$ac_tool_prefix"; then
2613
  for ac_prog in cl.exe
2614
  do
2615
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2617
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619
if test "${ac_cv_prog_CC+set}" = set; then
2620
  echo $ECHO_N "(cached) $ECHO_C" >&6
2621
else
2622
  if test -n "$CC"; then
2623
  ac_cv_prog_CC="$CC" # Let the user override the test.
2624
else
2625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626
for as_dir in $PATH
2627
do
2628
  IFS=$as_save_IFS
2629
  test -z "$as_dir" && as_dir=.
2630
  for ac_exec_ext in '' $ac_executable_extensions; do
2631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2633
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634
    break 2
2635
  fi
2636
done
2637
done
2638
IFS=$as_save_IFS
2639
 
2640
fi
2641
fi
2642
CC=$ac_cv_prog_CC
2643
if test -n "$CC"; then
2644
  { echo "$as_me:$LINENO: result: $CC" >&5
2645
echo "${ECHO_T}$CC" >&6; }
2646
else
2647
  { echo "$as_me:$LINENO: result: no" >&5
2648
echo "${ECHO_T}no" >&6; }
2649
fi
2650
 
2651
 
2652
    test -n "$CC" && break
2653
  done
2654
fi
2655
if test -z "$CC"; then
2656
  ac_ct_CC=$CC
2657
  for ac_prog in cl.exe
2658
do
2659
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2660
set dummy $ac_prog; ac_word=$2
2661
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2664
  echo $ECHO_N "(cached) $ECHO_C" >&6
2665
else
2666
  if test -n "$ac_ct_CC"; then
2667
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668
else
2669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670
for as_dir in $PATH
2671
do
2672
  IFS=$as_save_IFS
2673
  test -z "$as_dir" && as_dir=.
2674
  for ac_exec_ext in '' $ac_executable_extensions; do
2675
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676
    ac_cv_prog_ac_ct_CC="$ac_prog"
2677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678
    break 2
2679
  fi
2680
done
2681
done
2682
IFS=$as_save_IFS
2683
 
2684
fi
2685
fi
2686
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687
if test -n "$ac_ct_CC"; then
2688
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689
echo "${ECHO_T}$ac_ct_CC" >&6; }
2690
else
2691
  { echo "$as_me:$LINENO: result: no" >&5
2692
echo "${ECHO_T}no" >&6; }
2693
fi
2694
 
2695
 
2696
  test -n "$ac_ct_CC" && break
2697
done
2698
 
2699
  if test "x$ac_ct_CC" = x; then
2700
    CC=""
2701
  else
2702
    case $cross_compiling:$ac_tool_warned in
2703
yes:)
2704
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2705
whose name does not start with the host triplet.  If you think this
2706
configuration is useful to you, please write to autoconf@gnu.org." >&5
2707
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2708
whose name does not start with the host triplet.  If you think this
2709
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2710
ac_tool_warned=yes ;;
2711
esac
2712
    CC=$ac_ct_CC
2713
  fi
2714
fi
2715
 
2716
fi
2717
 
2718
 
2719
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2720
See \`config.log' for more details." >&5
2721
echo "$as_me: error: no acceptable C compiler found in \$PATH
2722
See \`config.log' for more details." >&2;}
2723
   { (exit 1); exit 1; }; }
2724
 
2725
# Provide some information about the compiler.
2726
echo "$as_me:$LINENO: checking for C compiler version" >&5
2727
ac_compiler=`set X $ac_compile; echo $2`
2728
{ (ac_try="$ac_compiler --version >&5"
2729
case "(($ac_try" in
2730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731
  *) ac_try_echo=$ac_try;;
2732
esac
2733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734
  (eval "$ac_compiler --version >&5") 2>&5
2735
  ac_status=$?
2736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
  (exit $ac_status); }
2738
{ (ac_try="$ac_compiler -v >&5"
2739
case "(($ac_try" in
2740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741
  *) ac_try_echo=$ac_try;;
2742
esac
2743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744
  (eval "$ac_compiler -v >&5") 2>&5
2745
  ac_status=$?
2746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747
  (exit $ac_status); }
2748
{ (ac_try="$ac_compiler -V >&5"
2749
case "(($ac_try" in
2750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751
  *) ac_try_echo=$ac_try;;
2752
esac
2753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754
  (eval "$ac_compiler -V >&5") 2>&5
2755
  ac_status=$?
2756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
  (exit $ac_status); }
2758
 
2759
cat >conftest.$ac_ext <<_ACEOF
2760
/* confdefs.h.  */
2761
_ACEOF
2762
cat confdefs.h >>conftest.$ac_ext
2763
cat >>conftest.$ac_ext <<_ACEOF
2764
/* end confdefs.h.  */
2765
 
2766
int
2767
main ()
2768
{
2769
 
2770
  ;
2771
  return 0;
2772
}
2773
_ACEOF
2774
ac_clean_files_save=$ac_clean_files
2775
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2776
# Try to create an executable without -o first, disregard a.out.
2777
# It will help us diagnose broken compilers, and finding out an intuition
2778
# of exeext.
2779
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2780
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2781
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2782
#
2783
# List of possible output files, starting from the most likely.
2784
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2785
# only as a last resort.  b.out is created by i960 compilers.
2786
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2787
#
2788
# The IRIX 6 linker writes into existing files which may not be
2789
# executable, retaining their permissions.  Remove them first so a
2790
# subsequent execution test works.
2791
ac_rmfiles=
2792
for ac_file in $ac_files
2793
do
2794
  case $ac_file in
2795
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2796
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2797
  esac
2798
done
2799
rm -f $ac_rmfiles
2800
 
2801
if { (ac_try="$ac_link_default"
2802
case "(($ac_try" in
2803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804
  *) ac_try_echo=$ac_try;;
2805
esac
2806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807
  (eval "$ac_link_default") 2>&5
2808
  ac_status=$?
2809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810
  (exit $ac_status); }; then
2811
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2812
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2813
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2814
# so that the user can short-circuit this test for compilers unknown to
2815
# Autoconf.
2816
for ac_file in $ac_files ''
2817
do
2818
  test -f "$ac_file" || continue
2819
  case $ac_file in
2820
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2821
	;;
2822
    [ab].out )
2823
	# We found the default executable, but exeext='' is most
2824
	# certainly right.
2825
	break;;
2826
    *.* )
2827
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2828
	then :; else
2829
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830
	fi
2831
	# We set ac_cv_exeext here because the later test for it is not
2832
	# safe: cross compilers may not add the suffix if given an `-o'
2833
	# argument, so we may need to know it at that point already.
2834
	# Even if this section looks crufty: it has the advantage of
2835
	# actually working.
2836
	break;;
2837
    * )
2838
	break;;
2839
  esac
2840
done
2841
test "$ac_cv_exeext" = no && ac_cv_exeext=
2842
 
2843
else
2844
  ac_file=''
2845
fi
2846
 
2847
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2848
echo "${ECHO_T}$ac_file" >&6; }
2849
if test -z "$ac_file"; then
2850
  echo "$as_me: failed program was:" >&5
2851
sed 's/^/| /' conftest.$ac_ext >&5
2852
 
2853
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2854
See \`config.log' for more details." >&5
2855
echo "$as_me: error: C compiler cannot create executables
2856
See \`config.log' for more details." >&2;}
2857
   { (exit 77); exit 77; }; }
2858
fi
2859
 
2860
ac_exeext=$ac_cv_exeext
2861
 
2862
# Check that the compiler produces executables we can run.  If not, either
2863
# the compiler is broken, or we cross compile.
2864
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2865
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2866
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2867
# If not cross compiling, check that we can run a simple program.
2868
if test "$cross_compiling" != yes; then
2869
  if { ac_try='./$ac_file'
2870
  { (case "(($ac_try" in
2871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872
  *) ac_try_echo=$ac_try;;
2873
esac
2874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875
  (eval "$ac_try") 2>&5
2876
  ac_status=$?
2877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
  (exit $ac_status); }; }; then
2879
    cross_compiling=no
2880
  else
2881
    if test "$cross_compiling" = maybe; then
2882
	cross_compiling=yes
2883
    else
2884
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2885
If you meant to cross compile, use \`--host'.
2886
See \`config.log' for more details." >&5
2887
echo "$as_me: error: cannot run C compiled programs.
2888
If you meant to cross compile, use \`--host'.
2889
See \`config.log' for more details." >&2;}
2890
   { (exit 1); exit 1; }; }
2891
    fi
2892
  fi
2893
fi
2894
{ echo "$as_me:$LINENO: result: yes" >&5
2895
echo "${ECHO_T}yes" >&6; }
2896
 
2897
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2898
ac_clean_files=$ac_clean_files_save
2899
# Check that the compiler produces executables we can run.  If not, either
2900
# the compiler is broken, or we cross compile.
2901
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2902
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2903
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2904
echo "${ECHO_T}$cross_compiling" >&6; }
2905
 
2906
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2907
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2908
if { (ac_try="$ac_link"
2909
case "(($ac_try" in
2910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911
  *) ac_try_echo=$ac_try;;
2912
esac
2913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914
  (eval "$ac_link") 2>&5
2915
  ac_status=$?
2916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917
  (exit $ac_status); }; then
2918
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2919
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2920
# work properly (i.e., refer to `conftest.exe'), while it won't with
2921
# `rm'.
2922
for ac_file in conftest.exe conftest conftest.*; do
2923
  test -f "$ac_file" || continue
2924
  case $ac_file in
2925
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2926
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927
	  break;;
2928
    * ) break;;
2929
  esac
2930
done
2931
else
2932
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2933
See \`config.log' for more details." >&5
2934
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2935
See \`config.log' for more details." >&2;}
2936
   { (exit 1); exit 1; }; }
2937
fi
2938
 
2939
rm -f conftest$ac_cv_exeext
2940
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2941
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2942
 
2943
rm -f conftest.$ac_ext
2944
EXEEXT=$ac_cv_exeext
2945
ac_exeext=$EXEEXT
2946
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2947
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2948
if test "${ac_cv_objext+set}" = set; then
2949
  echo $ECHO_N "(cached) $ECHO_C" >&6
2950
else
2951
  cat >conftest.$ac_ext <<_ACEOF
2952
/* confdefs.h.  */
2953
_ACEOF
2954
cat confdefs.h >>conftest.$ac_ext
2955
cat >>conftest.$ac_ext <<_ACEOF
2956
/* end confdefs.h.  */
2957
 
2958
int
2959
main ()
2960
{
2961
 
2962
  ;
2963
  return 0;
2964
}
2965
_ACEOF
2966
rm -f conftest.o conftest.obj
2967
if { (ac_try="$ac_compile"
2968
case "(($ac_try" in
2969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970
  *) ac_try_echo=$ac_try;;
2971
esac
2972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973
  (eval "$ac_compile") 2>&5
2974
  ac_status=$?
2975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976
  (exit $ac_status); }; then
2977
  for ac_file in conftest.o conftest.obj conftest.*; do
2978
  test -f "$ac_file" || continue;
2979
  case $ac_file in
2980
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2981
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2982
       break;;
2983
  esac
2984
done
2985
else
2986
  echo "$as_me: failed program was:" >&5
2987
sed 's/^/| /' conftest.$ac_ext >&5
2988
 
2989
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2990
See \`config.log' for more details." >&5
2991
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2992
See \`config.log' for more details." >&2;}
2993
   { (exit 1); exit 1; }; }
2994
fi
2995
 
2996
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2997
fi
2998
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2999
echo "${ECHO_T}$ac_cv_objext" >&6; }
3000
OBJEXT=$ac_cv_objext
3001
ac_objext=$OBJEXT
3002
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3003
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3004
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3005
  echo $ECHO_N "(cached) $ECHO_C" >&6
3006
else
3007
  cat >conftest.$ac_ext <<_ACEOF
3008
/* confdefs.h.  */
3009
_ACEOF
3010
cat confdefs.h >>conftest.$ac_ext
3011
cat >>conftest.$ac_ext <<_ACEOF
3012
/* end confdefs.h.  */
3013
 
3014
int
3015
main ()
3016
{
3017
#ifndef __GNUC__
3018
       choke me
3019
#endif
3020
 
3021
  ;
3022
  return 0;
3023
}
3024
_ACEOF
3025
rm -f conftest.$ac_objext
3026
if { (ac_try="$ac_compile"
3027
case "(($ac_try" in
3028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029
  *) ac_try_echo=$ac_try;;
3030
esac
3031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032
  (eval "$ac_compile") 2>conftest.er1
3033
  ac_status=$?
3034
  grep -v '^ *+' conftest.er1 >conftest.err
3035
  rm -f conftest.er1
3036
  cat conftest.err >&5
3037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038
  (exit $ac_status); } && {
3039
	 test -z "$ac_c_werror_flag" ||
3040
	 test ! -s conftest.err
3041
       } && test -s conftest.$ac_objext; then
3042
  ac_compiler_gnu=yes
3043
else
3044
  echo "$as_me: failed program was:" >&5
3045
sed 's/^/| /' conftest.$ac_ext >&5
3046
 
3047
	ac_compiler_gnu=no
3048
fi
3049
 
3050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052
 
3053
fi
3054
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3056
GCC=`test $ac_compiler_gnu = yes && echo yes`
3057
ac_test_CFLAGS=${CFLAGS+set}
3058
ac_save_CFLAGS=$CFLAGS
3059
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3060
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3061
if test "${ac_cv_prog_cc_g+set}" = set; then
3062
  echo $ECHO_N "(cached) $ECHO_C" >&6
3063
else
3064
  ac_save_c_werror_flag=$ac_c_werror_flag
3065
   ac_c_werror_flag=yes
3066
   ac_cv_prog_cc_g=no
3067
   CFLAGS="-g"
3068
   cat >conftest.$ac_ext <<_ACEOF
3069
/* confdefs.h.  */
3070
_ACEOF
3071
cat confdefs.h >>conftest.$ac_ext
3072
cat >>conftest.$ac_ext <<_ACEOF
3073
/* end confdefs.h.  */
3074
 
3075
int
3076
main ()
3077
{
3078
 
3079
  ;
3080
  return 0;
3081
}
3082
_ACEOF
3083
rm -f conftest.$ac_objext
3084
if { (ac_try="$ac_compile"
3085
case "(($ac_try" in
3086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087
  *) ac_try_echo=$ac_try;;
3088
esac
3089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090
  (eval "$ac_compile") 2>conftest.er1
3091
  ac_status=$?
3092
  grep -v '^ *+' conftest.er1 >conftest.err
3093
  rm -f conftest.er1
3094
  cat conftest.err >&5
3095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096
  (exit $ac_status); } && {
3097
	 test -z "$ac_c_werror_flag" ||
3098
	 test ! -s conftest.err
3099
       } && test -s conftest.$ac_objext; then
3100
  ac_cv_prog_cc_g=yes
3101
else
3102
  echo "$as_me: failed program was:" >&5
3103
sed 's/^/| /' conftest.$ac_ext >&5
3104
 
3105
	CFLAGS=""
3106
      cat >conftest.$ac_ext <<_ACEOF
3107
/* confdefs.h.  */
3108
_ACEOF
3109
cat confdefs.h >>conftest.$ac_ext
3110
cat >>conftest.$ac_ext <<_ACEOF
3111
/* end confdefs.h.  */
3112
 
3113
int
3114
main ()
3115
{
3116
 
3117
  ;
3118
  return 0;
3119
}
3120
_ACEOF
3121
rm -f conftest.$ac_objext
3122
if { (ac_try="$ac_compile"
3123
case "(($ac_try" in
3124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125
  *) ac_try_echo=$ac_try;;
3126
esac
3127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128
  (eval "$ac_compile") 2>conftest.er1
3129
  ac_status=$?
3130
  grep -v '^ *+' conftest.er1 >conftest.err
3131
  rm -f conftest.er1
3132
  cat conftest.err >&5
3133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
  (exit $ac_status); } && {
3135
	 test -z "$ac_c_werror_flag" ||
3136
	 test ! -s conftest.err
3137
       } && test -s conftest.$ac_objext; then
3138
  :
3139
else
3140
  echo "$as_me: failed program was:" >&5
3141
sed 's/^/| /' conftest.$ac_ext >&5
3142
 
3143
	ac_c_werror_flag=$ac_save_c_werror_flag
3144
	 CFLAGS="-g"
3145
	 cat >conftest.$ac_ext <<_ACEOF
3146
/* confdefs.h.  */
3147
_ACEOF
3148
cat confdefs.h >>conftest.$ac_ext
3149
cat >>conftest.$ac_ext <<_ACEOF
3150
/* end confdefs.h.  */
3151
 
3152
int
3153
main ()
3154
{
3155
 
3156
  ;
3157
  return 0;
3158
}
3159
_ACEOF
3160
rm -f conftest.$ac_objext
3161
if { (ac_try="$ac_compile"
3162
case "(($ac_try" in
3163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164
  *) ac_try_echo=$ac_try;;
3165
esac
3166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167
  (eval "$ac_compile") 2>conftest.er1
3168
  ac_status=$?
3169
  grep -v '^ *+' conftest.er1 >conftest.err
3170
  rm -f conftest.er1
3171
  cat conftest.err >&5
3172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173
  (exit $ac_status); } && {
3174
	 test -z "$ac_c_werror_flag" ||
3175
	 test ! -s conftest.err
3176
       } && test -s conftest.$ac_objext; then
3177
  ac_cv_prog_cc_g=yes
3178
else
3179
  echo "$as_me: failed program was:" >&5
3180
sed 's/^/| /' conftest.$ac_ext >&5
3181
 
3182
 
3183
fi
3184
 
3185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186
fi
3187
 
3188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189
fi
3190
 
3191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192
   ac_c_werror_flag=$ac_save_c_werror_flag
3193
fi
3194
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3195
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3196
if test "$ac_test_CFLAGS" = set; then
3197
  CFLAGS=$ac_save_CFLAGS
3198
elif test $ac_cv_prog_cc_g = yes; then
3199
  if test "$GCC" = yes; then
3200
    CFLAGS="-g -O2"
3201
  else
3202
    CFLAGS="-g"
3203
  fi
3204
else
3205
  if test "$GCC" = yes; then
3206
    CFLAGS="-O2"
3207
  else
3208
    CFLAGS=
3209
  fi
3210
fi
3211
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3212
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3213
if test "${ac_cv_prog_cc_c89+set}" = set; then
3214
  echo $ECHO_N "(cached) $ECHO_C" >&6
3215
else
3216
  ac_cv_prog_cc_c89=no
3217
ac_save_CC=$CC
3218
cat >conftest.$ac_ext <<_ACEOF
3219
/* confdefs.h.  */
3220
_ACEOF
3221
cat confdefs.h >>conftest.$ac_ext
3222
cat >>conftest.$ac_ext <<_ACEOF
3223
/* end confdefs.h.  */
3224
#include <stdarg.h>
3225
#include <stdio.h>
3226
#include <sys/types.h>
3227
#include <sys/stat.h>
3228
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3229
struct buf { int x; };
3230
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231
static char *e (p, i)
3232
     char **p;
3233
     int i;
3234
{
3235
  return p[i];
3236
}
3237
static char *f (char * (*g) (char **, int), char **p, ...)
3238
{
3239
  char *s;
3240
  va_list v;
3241
  va_start (v,p);
3242
  s = g (p, va_arg (v,int));
3243
  va_end (v);
3244
  return s;
3245
}
3246
 
3247
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3248
   function prototypes and stuff, but not '\xHH' hex character constants.
3249
   These don't provoke an error unfortunately, instead are silently treated
3250
   as 'x'.  The following induces an error, until -std is added to get
3251
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3252
   array size at least.  It's necessary to write '\x00'==0 to get something
3253
   that's true only with -std.  */
3254
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255
 
3256
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257
   inside strings and character constants.  */
3258
#define FOO(x) 'x'
3259
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260
 
3261
int test (int i, double x);
3262
struct s1 {int (*f) (int a);};
3263
struct s2 {int (*f) (double a);};
3264
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265
int argc;
3266
char **argv;
3267
int
3268
main ()
3269
{
3270
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3271
  ;
3272
  return 0;
3273
}
3274
_ACEOF
3275
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277
do
3278
  CC="$ac_save_CC $ac_arg"
3279
  rm -f conftest.$ac_objext
3280
if { (ac_try="$ac_compile"
3281
case "(($ac_try" in
3282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283
  *) ac_try_echo=$ac_try;;
3284
esac
3285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286
  (eval "$ac_compile") 2>conftest.er1
3287
  ac_status=$?
3288
  grep -v '^ *+' conftest.er1 >conftest.err
3289
  rm -f conftest.er1
3290
  cat conftest.err >&5
3291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
  (exit $ac_status); } && {
3293
	 test -z "$ac_c_werror_flag" ||
3294
	 test ! -s conftest.err
3295
       } && test -s conftest.$ac_objext; then
3296
  ac_cv_prog_cc_c89=$ac_arg
3297
else
3298
  echo "$as_me: failed program was:" >&5
3299
sed 's/^/| /' conftest.$ac_ext >&5
3300
 
3301
 
3302
fi
3303
 
3304
rm -f core conftest.err conftest.$ac_objext 
3305
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3306
done
3307
rm -f conftest.$ac_ext
3308
CC=$ac_save_CC
3309
 
3310
fi
3311
# AC_CACHE_VAL
3312
case "x$ac_cv_prog_cc_c89" in
3313
  x)
3314
    { echo "$as_me:$LINENO: result: none needed" >&5
3315
echo "${ECHO_T}none needed" >&6; } ;;
3316
  xno)
3317
    { echo "$as_me:$LINENO: result: unsupported" >&5
3318
echo "${ECHO_T}unsupported" >&6; } ;;
3319
  *)
3320
    CC="$CC $ac_cv_prog_cc_c89"
3321
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3322
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3323
esac
3324
 
3325
 
3326
ac_ext=c
3327
ac_cpp='$CPP $CPPFLAGS'
3328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331
DEPDIR="${am__leading_dot}deps"
3332
 
3333
ac_config_commands="$ac_config_commands depfiles"
3334
 
3335
 
3336
am_make=${MAKE-make}
3337
cat > confinc << 'END'
3338
am__doit:
3339
	@echo done
3340
.PHONY: am__doit
3341
END
3342
# If we don't find an include directive, just comment out the code.
3343
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3344
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3345
am__include="#"
3346
am__quote=
3347
_am_result=none
3348
# First try GNU make style include.
3349
echo "include confinc" > confmf
3350
# We grep out `Entering directory' and `Leaving directory'
3351
# messages which can occur if `w' ends up in MAKEFLAGS.
3352
# In particular we don't look at `^make:' because GNU make might
3353
# be invoked under some other name (usually "gmake"), in which
3354
# case it prints its new name instead of `make'.
3355
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3356
   am__include=include
3357
   am__quote=
3358
   _am_result=GNU
3359
fi
3360
# Now try BSD make style include.
3361
if test "$am__include" = "#"; then
3362
   echo '.include "confinc"' > confmf
3363
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3364
      am__include=.include
3365
      am__quote="\""
3366
      _am_result=BSD
3367
   fi
3368
fi
3369
 
3370
 
3371
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3372
echo "${ECHO_T}$_am_result" >&6; }
3373
rm -f confinc confmf
3374
 
3375
# Check whether --enable-dependency-tracking was given.
3376
if test "${enable_dependency_tracking+set}" = set; then
3377
  enableval=$enable_dependency_tracking; 
3378
fi
3379
 
3380
if test "x$enable_dependency_tracking" != xno; then
3381
  am_depcomp="$ac_aux_dir/depcomp"
3382
  AMDEPBACKSLASH='\'
3383
fi
3384
 if test "x$enable_dependency_tracking" != xno; then
3385
  AMDEP_TRUE=
3386
  AMDEP_FALSE='#'
3387
else
3388
  AMDEP_TRUE='#'
3389
  AMDEP_FALSE=
3390
fi
3391
 
3392
 
3393
 
3394
depcc="$CC"   am_compiler_list=
3395
 
3396
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3397
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3398
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3399
  echo $ECHO_N "(cached) $ECHO_C" >&6
3400
else
3401
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3402
  # We make a subdir and do the tests there.  Otherwise we can end up
3403
  # making bogus files that we don't know about and never remove.  For
3404
  # instance it was reported that on HP-UX the gcc test will end up
3405
  # making a dummy file named `D' -- because `-MD' means `put the output
3406
  # in D'.
3407
  mkdir conftest.dir
3408
  # Copy depcomp to subdir because otherwise we won't find it if we're
3409
  # using a relative directory.
3410
  cp "$am_depcomp" conftest.dir
3411
  cd conftest.dir
3412
  # We will build objects and dependencies in a subdirectory because
3413
  # it helps to detect inapplicable dependency modes.  For instance
3414
  # both Tru64's cc and ICC support -MD to output dependencies as a
3415
  # side effect of compilation, but ICC will put the dependencies in
3416
  # the current directory while Tru64 will put them in the object
3417
  # directory.
3418
  mkdir sub
3419
 
3420
  am_cv_CC_dependencies_compiler_type=none
3421
  if test "$am_compiler_list" = ""; then
3422
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3423
  fi
3424
  for depmode in $am_compiler_list; do
3425
    # Setup a source with many dependencies, because some compilers
3426
    # like to wrap large dependency lists on column 80 (with \), and
3427
    # we should not choose a depcomp mode which is confused by this.
3428
    #
3429
    # We need to recreate these files for each test, as the compiler may
3430
    # overwrite some of them when testing with obscure command lines.
3431
    # This happens at least with the AIX C compiler.
3432
    : > sub/conftest.c
3433
    for i in 1 2 3 4 5 6; do
3434
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3435
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3436
      # Solaris 8's {/usr,}/bin/sh.
3437
      touch sub/conftst$i.h
3438
    done
3439
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3440
 
3441
    case $depmode in
3442
    nosideeffect)
3443
      # after this tag, mechanisms are not by side-effect, so they'll
3444
      # only be used when explicitly requested
3445
      if test "x$enable_dependency_tracking" = xyes; then
3446
	continue
3447
      else
3448
	break
3449
      fi
3450
      ;;
3451
    none) break ;;
3452
    esac
3453
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3454
    # mode.  It turns out that the SunPro C++ compiler does not properly
3455
    # handle `-M -o', and we need to detect this.
3456
    if depmode=$depmode \
3457
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3458
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3459
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3460
         >/dev/null 2>conftest.err &&
3461
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3462
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3463
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3464
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3465
      # icc doesn't choke on unknown options, it will just issue warnings
3466
      # or remarks (even with -Werror).  So we grep stderr for any message
3467
      # that says an option was ignored or not supported.
3468
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3469
      #   icc: Command line warning: ignoring option '-M'; no argument required
3470
      # The diagnosis changed in icc 8.0:
3471
      #   icc: Command line remark: option '-MP' not supported
3472
      if (grep 'ignoring option' conftest.err ||
3473
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3474
        am_cv_CC_dependencies_compiler_type=$depmode
3475
        break
3476
      fi
3477
    fi
3478
  done
3479
 
3480
  cd ..
3481
  rm -rf conftest.dir
3482
else
3483
  am_cv_CC_dependencies_compiler_type=none
3484
fi
3485
 
3486
fi
3487
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3488
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3489
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3490
 
3491
 if 
3492
  test "x$enable_dependency_tracking" != xno \
3493
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3494
  am__fastdepCC_TRUE=
3495
  am__fastdepCC_FALSE='#'
3496
else
3497
  am__fastdepCC_TRUE='#'
3498
  am__fastdepCC_FALSE=
3499
fi
3500
 
3501
 
3502
# Check whether --enable-shared was given.
3503
if test "${enable_shared+set}" = set; then
3504
  enableval=$enable_shared; p=${PACKAGE-default}
3505
    case $enableval in
3506
    yes) enable_shared=yes ;;
3507
    no) enable_shared=no ;;
3508
    *)
3509
      enable_shared=no
3510
      # Look at the argument we got.  We use all the common list separators.
3511
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512
      for pkg in $enableval; do
3513
	IFS="$lt_save_ifs"
3514
	if test "X$pkg" = "X$p"; then
3515
	  enable_shared=yes
3516
	fi
3517
      done
3518
      IFS="$lt_save_ifs"
3519
      ;;
3520
    esac
3521
else
3522
  enable_shared=yes
3523
fi
3524
 
3525
 
3526
# Check whether --enable-static was given.
3527
if test "${enable_static+set}" = set; then
3528
  enableval=$enable_static; p=${PACKAGE-default}
3529
    case $enableval in
3530
    yes) enable_static=yes ;;
3531
    no) enable_static=no ;;
3532
    *)
3533
     enable_static=no
3534
      # Look at the argument we got.  We use all the common list separators.
3535
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536
      for pkg in $enableval; do
3537
	IFS="$lt_save_ifs"
3538
	if test "X$pkg" = "X$p"; then
3539
	  enable_static=yes
3540
	fi
3541
      done
3542
      IFS="$lt_save_ifs"
3543
      ;;
3544
    esac
3545
else
3546
  enable_static=yes
3547
fi
3548
 
3549
 
3550
# Check whether --enable-fast-install was given.
3551
if test "${enable_fast_install+set}" = set; then
3552
  enableval=$enable_fast_install; p=${PACKAGE-default}
3553
    case $enableval in
3554
    yes) enable_fast_install=yes ;;
3555
    no) enable_fast_install=no ;;
3556
    *)
3557
      enable_fast_install=no
3558
      # Look at the argument we got.  We use all the common list separators.
3559
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3560
      for pkg in $enableval; do
3561
	IFS="$lt_save_ifs"
3562
	if test "X$pkg" = "X$p"; then
3563
	  enable_fast_install=yes
3564
	fi
3565
      done
3566
      IFS="$lt_save_ifs"
3567
      ;;
3568
    esac
3569
else
3570
  enable_fast_install=yes
3571
fi
3572
 
3573
 
3574
# Make sure we can run config.sub.
3575
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3576
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3577
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3578
   { (exit 1); exit 1; }; }
3579
 
3580
{ echo "$as_me:$LINENO: checking build system type" >&5
3581
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3582
if test "${ac_cv_build+set}" = set; then
3583
  echo $ECHO_N "(cached) $ECHO_C" >&6
3584
else
3585
  ac_build_alias=$build_alias
3586
test "x$ac_build_alias" = x &&
3587
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3588
test "x$ac_build_alias" = x &&
3589
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3590
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3591
   { (exit 1); exit 1; }; }
3592
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3593
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3594
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3595
   { (exit 1); exit 1; }; }
3596
 
3597
fi
3598
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3599
echo "${ECHO_T}$ac_cv_build" >&6; }
3600
case $ac_cv_build in
3601
*-*-*) ;;
3602
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3603
echo "$as_me: error: invalid value of canonical build" >&2;}
3604
   { (exit 1); exit 1; }; };;
3605
esac
3606
build=$ac_cv_build
3607
ac_save_IFS=$IFS; IFS='-'
3608
set x $ac_cv_build
3609
shift
3610
build_cpu=$1
3611
build_vendor=$2
3612
shift; shift
3613
# Remember, the first character of IFS is used to create $*,
3614
# except with old shells:
3615
build_os=$*
3616
IFS=$ac_save_IFS
3617
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3618
 
3619
 
3620
{ echo "$as_me:$LINENO: checking host system type" >&5
3621
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3622
if test "${ac_cv_host+set}" = set; then
3623
  echo $ECHO_N "(cached) $ECHO_C" >&6
3624
else
3625
  if test "x$host_alias" = x; then
3626
  ac_cv_host=$ac_cv_build
3627
else
3628
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3629
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3630
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3631
   { (exit 1); exit 1; }; }
3632
fi
3633
 
3634
fi
3635
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3636
echo "${ECHO_T}$ac_cv_host" >&6; }
3637
case $ac_cv_host in
3638
*-*-*) ;;
3639
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3640
echo "$as_me: error: invalid value of canonical host" >&2;}
3641
   { (exit 1); exit 1; }; };;
3642
esac
3643
host=$ac_cv_host
3644
ac_save_IFS=$IFS; IFS='-'
3645
set x $ac_cv_host
3646
shift
3647
host_cpu=$1
3648
host_vendor=$2
3649
shift; shift
3650
# Remember, the first character of IFS is used to create $*,
3651
# except with old shells:
3652
host_os=$*
3653
IFS=$ac_save_IFS
3654
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3655
 
3656
 
3657
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3658
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3659
if test "${lt_cv_path_SED+set}" = set; then
3660
  echo $ECHO_N "(cached) $ECHO_C" >&6
3661
else
3662
  # Loop through the user's path and test for sed and gsed.
3663
# Then use that list of sed's as ones to test for truncation.
3664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665
for as_dir in $PATH
3666
do
3667
  IFS=$as_save_IFS
3668
  test -z "$as_dir" && as_dir=.
3669
  for lt_ac_prog in sed gsed; do
3670
    for ac_exec_ext in '' $ac_executable_extensions; do
3671
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3672
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3673
      fi
3674
    done
3675
  done
3676
done
3677
IFS=$as_save_IFS
3678
lt_ac_max=0
3679
lt_ac_count=0
3680
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3681
# along with /bin/sed that truncates output.
3682
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3683
  test ! -f $lt_ac_sed && continue
3684
  cat /dev/null > conftest.in
3685
  lt_ac_count=0
3686
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3687
  # Check for GNU sed and select it if it is found.
3688
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3689
    lt_cv_path_SED=$lt_ac_sed
3690
    break
3691
  fi
3692
  while true; do
3693
    cat conftest.in conftest.in >conftest.tmp
3694
    mv conftest.tmp conftest.in
3695
    cp conftest.in conftest.nl
3696
    echo >>conftest.nl
3697
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3698
    cmp -s conftest.out conftest.nl || break
3699
    # 10000 chars as input seems more than enough
3700
    test $lt_ac_count -gt 10 && break
3701
    lt_ac_count=`expr $lt_ac_count + 1`
3702
    if test $lt_ac_count -gt $lt_ac_max; then
3703
      lt_ac_max=$lt_ac_count
3704
      lt_cv_path_SED=$lt_ac_sed
3705
    fi
3706
  done
3707
done
3708
 
3709
fi
3710
 
3711
SED=$lt_cv_path_SED
3712
 
3713
{ echo "$as_me:$LINENO: result: $SED" >&5
3714
echo "${ECHO_T}$SED" >&6; }
3715
 
3716
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3717
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3718
if test "${ac_cv_path_GREP+set}" = set; then
3719
  echo $ECHO_N "(cached) $ECHO_C" >&6
3720
else
3721
  # Extract the first word of "grep ggrep" to use in msg output
3722
if test -z "$GREP"; then
3723
set dummy grep ggrep; ac_prog_name=$2
3724
if test "${ac_cv_path_GREP+set}" = set; then
3725
  echo $ECHO_N "(cached) $ECHO_C" >&6
3726
else
3727
  ac_path_GREP_found=false
3728
# Loop through the user's path and test for each of PROGNAME-LIST
3729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731
do
3732
  IFS=$as_save_IFS
3733
  test -z "$as_dir" && as_dir=.
3734
  for ac_prog in grep ggrep; do
3735
  for ac_exec_ext in '' $ac_executable_extensions; do
3736
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3737
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3738
    # Check for GNU ac_path_GREP and select it if it is found.
3739
  # Check for GNU $ac_path_GREP
3740
case `"$ac_path_GREP" --version 2>&1` in
3741
*GNU*)
3742
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3743
*)
3744
  ac_count=0
3745
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3746
  while :
3747
  do
3748
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3749
    mv "conftest.tmp" "conftest.in"
3750
    cp "conftest.in" "conftest.nl"
3751
    echo 'GREP' >> "conftest.nl"
3752
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754
    ac_count=`expr $ac_count + 1`
3755
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3756
      # Best one so far, save it but keep looking for a better one
3757
      ac_cv_path_GREP="$ac_path_GREP"
3758
      ac_path_GREP_max=$ac_count
3759
    fi
3760
    # 10*(2^10) chars as input seems more than enough
3761
    test $ac_count -gt 10 && break
3762
  done
3763
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764
esac
3765
 
3766
 
3767
    $ac_path_GREP_found && break 3
3768
  done
3769
done
3770
 
3771
done
3772
IFS=$as_save_IFS
3773
 
3774
 
3775
fi
3776
 
3777
GREP="$ac_cv_path_GREP"
3778
if test -z "$GREP"; then
3779
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781
   { (exit 1); exit 1; }; }
3782
fi
3783
 
3784
else
3785
  ac_cv_path_GREP=$GREP
3786
fi
3787
 
3788
 
3789
fi
3790
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3791
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3792
 GREP="$ac_cv_path_GREP"
3793
 
3794
 
3795
{ echo "$as_me:$LINENO: checking for egrep" >&5
3796
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3797
if test "${ac_cv_path_EGREP+set}" = set; then
3798
  echo $ECHO_N "(cached) $ECHO_C" >&6
3799
else
3800
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3801
   then ac_cv_path_EGREP="$GREP -E"
3802
   else
3803
     # Extract the first word of "egrep" to use in msg output
3804
if test -z "$EGREP"; then
3805
set dummy egrep; ac_prog_name=$2
3806
if test "${ac_cv_path_EGREP+set}" = set; then
3807
  echo $ECHO_N "(cached) $ECHO_C" >&6
3808
else
3809
  ac_path_EGREP_found=false
3810
# Loop through the user's path and test for each of PROGNAME-LIST
3811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813
do
3814
  IFS=$as_save_IFS
3815
  test -z "$as_dir" && as_dir=.
3816
  for ac_prog in egrep; do
3817
  for ac_exec_ext in '' $ac_executable_extensions; do
3818
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3819
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3820
    # Check for GNU ac_path_EGREP and select it if it is found.
3821
  # Check for GNU $ac_path_EGREP
3822
case `"$ac_path_EGREP" --version 2>&1` in
3823
*GNU*)
3824
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3825
*)
3826
  ac_count=0
3827
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3828
  while :
3829
  do
3830
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3831
    mv "conftest.tmp" "conftest.in"
3832
    cp "conftest.in" "conftest.nl"
3833
    echo 'EGREP' >> "conftest.nl"
3834
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3835
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3836
    ac_count=`expr $ac_count + 1`
3837
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3838
      # Best one so far, save it but keep looking for a better one
3839
      ac_cv_path_EGREP="$ac_path_EGREP"
3840
      ac_path_EGREP_max=$ac_count
3841
    fi
3842
    # 10*(2^10) chars as input seems more than enough
3843
    test $ac_count -gt 10 && break
3844
  done
3845
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3846
esac
3847
 
3848
 
3849
    $ac_path_EGREP_found && break 3
3850
  done
3851
done
3852
 
3853
done
3854
IFS=$as_save_IFS
3855
 
3856
 
3857
fi
3858
 
3859
EGREP="$ac_cv_path_EGREP"
3860
if test -z "$EGREP"; then
3861
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3862
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3863
   { (exit 1); exit 1; }; }
3864
fi
3865
 
3866
else
3867
  ac_cv_path_EGREP=$EGREP
3868
fi
3869
 
3870
 
3871
   fi
3872
fi
3873
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3874
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3875
 EGREP="$ac_cv_path_EGREP"
3876
 
3877
 
3878
 
3879
# Check whether --with-gnu-ld was given.
3880
if test "${with_gnu_ld+set}" = set; then
3881
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3882
else
3883
  with_gnu_ld=no
3884
fi
3885
 
3886
ac_prog=ld
3887
if test "$GCC" = yes; then
3888
  # Check if gcc -print-prog-name=ld gives a path.
3889
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3890
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3891
  case $host in
3892
  *-*-mingw*)
3893
    # gcc leaves a trailing carriage return which upsets mingw
3894
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3895
  *)
3896
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3897
  esac
3898
  case $ac_prog in
3899
    # Accept absolute paths.
3900
    [\\/]* | ?:[\\/]*)
3901
      re_direlt='/[^/][^/]*/\.\./'
3902
      # Canonicalize the pathname of ld
3903
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3904
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3905
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3906
      done
3907
      test -z "$LD" && LD="$ac_prog"
3908
      ;;
3909
  "")
3910
    # If it fails, then pretend we aren't using GCC.
3911
    ac_prog=ld
3912
    ;;
3913
  *)
3914
    # If it is relative, then search for the first ld in PATH.
3915
    with_gnu_ld=unknown
3916
    ;;
3917
  esac
3918
elif test "$with_gnu_ld" = yes; then
3919
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3920
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3921
else
3922
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3923
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3924
fi
3925
if test "${lt_cv_path_LD+set}" = set; then
3926
  echo $ECHO_N "(cached) $ECHO_C" >&6
3927
else
3928
  if test -z "$LD"; then
3929
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3930
  for ac_dir in $PATH; do
3931
    IFS="$lt_save_ifs"
3932
    test -z "$ac_dir" && ac_dir=.
3933
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3934
      lt_cv_path_LD="$ac_dir/$ac_prog"
3935
      # Check to see if the program is GNU ld.  I'd rather use --version,
3936
      # but apparently some variants of GNU ld only accept -v.
3937
      # Break only if it was the GNU/non-GNU ld that we prefer.
3938
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3939
      *GNU* | *'with BFD'*)
3940
	test "$with_gnu_ld" != no && break
3941
	;;
3942
      *)
3943
	test "$with_gnu_ld" != yes && break
3944
	;;
3945
      esac
3946
    fi
3947
  done
3948
  IFS="$lt_save_ifs"
3949
else
3950
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3951
fi
3952
fi
3953
 
3954
LD="$lt_cv_path_LD"
3955
if test -n "$LD"; then
3956
  { echo "$as_me:$LINENO: result: $LD" >&5
3957
echo "${ECHO_T}$LD" >&6; }
3958
else
3959
  { echo "$as_me:$LINENO: result: no" >&5
3960
echo "${ECHO_T}no" >&6; }
3961
fi
3962
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3963
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3964
   { (exit 1); exit 1; }; }
3965
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3966
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3967
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3968
  echo $ECHO_N "(cached) $ECHO_C" >&6
3969
else
3970
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3971
case `$LD -v 2>&1 </dev/null` in
3972
*GNU* | *'with BFD'*)
3973
  lt_cv_prog_gnu_ld=yes
3974
  ;;
3975
*)
3976
  lt_cv_prog_gnu_ld=no
3977
  ;;
3978
esac
3979
fi
3980
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3981
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3982
with_gnu_ld=$lt_cv_prog_gnu_ld
3983
 
3984
 
3985
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3986
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3987
if test "${lt_cv_ld_reload_flag+set}" = set; then
3988
  echo $ECHO_N "(cached) $ECHO_C" >&6
3989
else
3990
  lt_cv_ld_reload_flag='-r'
3991
fi
3992
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3993
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3994
reload_flag=$lt_cv_ld_reload_flag
3995
case $reload_flag in
3996
"" | " "*) ;;
3997
*) reload_flag=" $reload_flag" ;;
3998
esac
3999
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4000
case $host_os in
4001
  darwin*)
4002
    if test "$GCC" = yes; then
4003
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4004
    else
4005
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4006
    fi
4007
    ;;
4008
esac
4009
 
4010
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4011
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4012
if test "${lt_cv_path_NM+set}" = set; then
4013
  echo $ECHO_N "(cached) $ECHO_C" >&6
4014
else
4015
  if test -n "$NM"; then
4016
  # Let the user override the test.
4017
  lt_cv_path_NM="$NM"
4018
else
4019
  lt_nm_to_check="${ac_tool_prefix}nm"
4020
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4021
    lt_nm_to_check="$lt_nm_to_check nm"
4022
  fi
4023
  for lt_tmp_nm in $lt_nm_to_check; do
4024
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4025
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4026
      IFS="$lt_save_ifs"
4027
      test -z "$ac_dir" && ac_dir=.
4028
      tmp_nm="$ac_dir/$lt_tmp_nm"
4029
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4030
	# Check to see if the nm accepts a BSD-compat flag.
4031
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4032
	#   nm: unknown option "B" ignored
4033
	# Tru64's nm complains that /dev/null is an invalid object file
4034
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4035
	*/dev/null* | *'Invalid file or object type'*)
4036
	  lt_cv_path_NM="$tmp_nm -B"
4037
	  break
4038
	  ;;
4039
	*)
4040
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4041
	  */dev/null*)
4042
	    lt_cv_path_NM="$tmp_nm -p"
4043
	    break
4044
	    ;;
4045
	  *)
4046
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4047
	    continue # so that we can try to find one that supports BSD flags
4048
	    ;;
4049
	  esac
4050
	  ;;
4051
	esac
4052
      fi
4053
    done
4054
    IFS="$lt_save_ifs"
4055
  done
4056
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4057
fi
4058
fi
4059
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4060
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4061
NM="$lt_cv_path_NM"
4062
 
4063
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4064
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4065
LN_S=$as_ln_s
4066
if test "$LN_S" = "ln -s"; then
4067
  { echo "$as_me:$LINENO: result: yes" >&5
4068
echo "${ECHO_T}yes" >&6; }
4069
else
4070
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4071
echo "${ECHO_T}no, using $LN_S" >&6; }
4072
fi
4073
 
4074
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4075
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4076
if test "${lt_cv_deplibs_check_method+set}" = set; then
4077
  echo $ECHO_N "(cached) $ECHO_C" >&6
4078
else
4079
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4080
lt_cv_file_magic_test_file=
4081
lt_cv_deplibs_check_method='unknown'
4082
# Need to set the preceding variable on all platforms that support
4083
# interlibrary dependencies.
4084
# 'none' -- dependencies not supported.
4085
# `unknown' -- same as none, but documents that we really don't know.
4086
# 'pass_all' -- all dependencies passed with no checks.
4087
# 'test_compile' -- check by making test program.
4088
# 'file_magic [[regex]]' -- check by looking for files in library path
4089
# which responds to the $file_magic_cmd with a given extended regex.
4090
# If you have `file' or equivalent on your system and you're not sure
4091
# whether `pass_all' will *always* work, you probably want this one.
4092
 
4093
case $host_os in
4094
aix4* | aix5*)
4095
  lt_cv_deplibs_check_method=pass_all
4096
  ;;
4097
 
4098
beos*)
4099
  lt_cv_deplibs_check_method=pass_all
4100
  ;;
4101
 
4102
bsdi[45]*)
4103
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4104
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4105
  lt_cv_file_magic_test_file=/shlib/libc.so
4106
  ;;
4107
 
4108
cygwin*)
4109
  # func_win32_libid is a shell function defined in ltmain.sh
4110
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4111
  lt_cv_file_magic_cmd='func_win32_libid'
4112
  ;;
4113
 
4114
mingw* | pw32*)
4115
  # Base MSYS/MinGW do not provide the 'file' command needed by
4116
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4117
  # unless we find 'file', for example because we are cross-compiling.
4118
  if ( file / ) >/dev/null 2>&1; then
4119
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4120
    lt_cv_file_magic_cmd='func_win32_libid'
4121
  else
4122
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4123
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4124
  fi
4125
  ;;
4126
 
4127
darwin* | rhapsody*)
4128
  lt_cv_deplibs_check_method=pass_all
4129
  ;;
4130
 
4131
freebsd* | dragonfly*)
4132
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4133
    case $host_cpu in
4134
    i*86 )
4135
      # Not sure whether the presence of OpenBSD here was a mistake.
4136
      # Let's accept both of them until this is cleared up.
4137
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4138
      lt_cv_file_magic_cmd=/usr/bin/file
4139
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4140
      ;;
4141
    esac
4142
  else
4143
    lt_cv_deplibs_check_method=pass_all
4144
  fi
4145
  ;;
4146
 
4147
gnu*)
4148
  lt_cv_deplibs_check_method=pass_all
4149
  ;;
4150
 
4151
hpux10.20* | hpux11*)
4152
  lt_cv_file_magic_cmd=/usr/bin/file
4153
  case $host_cpu in
4154
  ia64*)
4155
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4156
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4157
    ;;
4158
  hppa*64*)
4159
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4160
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4161
    ;;
4162
  *)
4163
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4164
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4165
    ;;
4166
  esac
4167
  ;;
4168
 
4169
interix[3-9]*)
4170
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4171
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4172
  ;;
4173
 
4174
irix5* | irix6* | nonstopux*)
4175
  case $LD in
4176
  *-32|*"-32 ") libmagic=32-bit;;
4177
  *-n32|*"-n32 ") libmagic=N32;;
4178
  *-64|*"-64 ") libmagic=64-bit;;
4179
  *) libmagic=never-match;;
4180
  esac
4181
  lt_cv_deplibs_check_method=pass_all
4182
  ;;
4183
 
4184
# This must be Linux ELF.
4185
linux* | k*bsd*-gnu)
4186
  lt_cv_deplibs_check_method=pass_all
4187
  ;;
4188
 
4189
netbsd* | netbsdelf*-gnu)
4190
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4191
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4192
  else
4193
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4194
  fi
4195
  ;;
4196
 
4197
newos6*)
4198
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4199
  lt_cv_file_magic_cmd=/usr/bin/file
4200
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4201
  ;;
4202
 
4203
nto-qnx*)
4204
  lt_cv_deplibs_check_method=unknown
4205
  ;;
4206
 
4207
openbsd*)
4208
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4209
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4210
  else
4211
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4212
  fi
4213
  ;;
4214
 
4215
osf3* | osf4* | osf5*)
4216
  lt_cv_deplibs_check_method=pass_all
4217
  ;;
4218
 
4219
rdos*)
4220
  lt_cv_deplibs_check_method=pass_all
4221
  ;;
4222
 
4223
solaris*)
4224
  lt_cv_deplibs_check_method=pass_all
4225
  ;;
4226
 
4227
sysv4 | sysv4.3*)
4228
  case $host_vendor in
4229
  motorola)
4230
    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]'
4231
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4232
    ;;
4233
  ncr)
4234
    lt_cv_deplibs_check_method=pass_all
4235
    ;;
4236
  sequent)
4237
    lt_cv_file_magic_cmd='/bin/file'
4238
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4239
    ;;
4240
  sni)
4241
    lt_cv_file_magic_cmd='/bin/file'
4242
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4243
    lt_cv_file_magic_test_file=/lib/libc.so
4244
    ;;
4245
  siemens)
4246
    lt_cv_deplibs_check_method=pass_all
4247
    ;;
4248
  pc)
4249
    lt_cv_deplibs_check_method=pass_all
4250
    ;;
4251
  esac
4252
  ;;
4253
 
4254
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4255
  lt_cv_deplibs_check_method=pass_all
4256
  ;;
4257
esac
4258
 
4259
fi
4260
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4261
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4262
file_magic_cmd=$lt_cv_file_magic_cmd
4263
deplibs_check_method=$lt_cv_deplibs_check_method
4264
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4265
 
4266
 
4267
 
4268
 
4269
# If no C compiler was specified, use CC.
4270
LTCC=${LTCC-"$CC"}
4271
 
4272
# If no C compiler flags were specified, use CFLAGS.
4273
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4274
 
4275
# Allow CC to be a program name with arguments.
4276
compiler=$CC
4277
 
4278
 
4279
# Check whether --enable-libtool-lock was given.
4280
if test "${enable_libtool_lock+set}" = set; then
4281
  enableval=$enable_libtool_lock; 
4282
fi
4283
 
4284
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4285
 
4286
# Some flags need to be propagated to the compiler or linker for good
4287
# libtool support.
4288
case $host in
4289
ia64-*-hpux*)
4290
  # Find out which ABI we are using.
4291
  echo 'int i;' > conftest.$ac_ext
4292
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293
  (eval $ac_compile) 2>&5
4294
  ac_status=$?
4295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296
  (exit $ac_status); }; then
4297
    case `/usr/bin/file conftest.$ac_objext` in
4298
    *ELF-32*)
4299
      HPUX_IA64_MODE="32"
4300
      ;;
4301
    *ELF-64*)
4302
      HPUX_IA64_MODE="64"
4303
      ;;
4304
    esac
4305
  fi
4306
  rm -rf conftest*
4307
  ;;
4308
*-*-irix6*)
4309
  # Find out which ABI we are using.
4310
  echo '#line __oline__ "configure"' > conftest.$ac_ext
4311
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312
  (eval $ac_compile) 2>&5
4313
  ac_status=$?
4314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315
  (exit $ac_status); }; then
4316
   if test "$lt_cv_prog_gnu_ld" = yes; then
4317
    case `/usr/bin/file conftest.$ac_objext` in
4318
    *32-bit*)
4319
      LD="${LD-ld} -melf32bsmip"
4320
      ;;
4321
    *N32*)
4322
      LD="${LD-ld} -melf32bmipn32"
4323
      ;;
4324
    *64-bit*)
4325
      LD="${LD-ld} -melf64bmip"
4326
      ;;
4327
    esac
4328
   else
4329
    case `/usr/bin/file conftest.$ac_objext` in
4330
    *32-bit*)
4331
      LD="${LD-ld} -32"
4332
      ;;
4333
    *N32*)
4334
      LD="${LD-ld} -n32"
4335
      ;;
4336
    *64-bit*)
4337
      LD="${LD-ld} -64"
4338
      ;;
4339
    esac
4340
   fi
4341
  fi
4342
  rm -rf conftest*
4343
  ;;
4344
 
4345
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4346
s390*-*linux*|sparc*-*linux*)
4347
  # Find out which ABI we are using.
4348
  echo 'int i;' > conftest.$ac_ext
4349
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350
  (eval $ac_compile) 2>&5
4351
  ac_status=$?
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
  (exit $ac_status); }; then
4354
    case `/usr/bin/file conftest.o` in
4355
    *32-bit*)
4356
      case $host in
4357
        x86_64-*kfreebsd*-gnu)
4358
          LD="${LD-ld} -m elf_i386_fbsd"
4359
          ;;
4360
        x86_64-*linux*)
4361
          LD="${LD-ld} -m elf_i386"
4362
          ;;
4363
        ppc64-*linux*|powerpc64-*linux*)
4364
          LD="${LD-ld} -m elf32ppclinux"
4365
          ;;
4366
        s390x-*linux*)
4367
          LD="${LD-ld} -m elf_s390"
4368
          ;;
4369
        sparc64-*linux*)
4370
          LD="${LD-ld} -m elf32_sparc"
4371
          ;;
4372
      esac
4373
      ;;
4374
    *64-bit*)
4375
      case $host in
4376
        x86_64-*kfreebsd*-gnu)
4377
          LD="${LD-ld} -m elf_x86_64_fbsd"
4378
          ;;
4379
        x86_64-*linux*)
4380
          LD="${LD-ld} -m elf_x86_64"
4381
          ;;
4382
        ppc*-*linux*|powerpc*-*linux*)
4383
          LD="${LD-ld} -m elf64ppc"
4384
          ;;
4385
        s390*-*linux*)
4386
          LD="${LD-ld} -m elf64_s390"
4387
          ;;
4388
        sparc*-*linux*)
4389
          LD="${LD-ld} -m elf64_sparc"
4390
          ;;
4391
      esac
4392
      ;;
4393
    esac
4394
  fi
4395
  rm -rf conftest*
4396
  ;;
4397
 
4398
*-*-sco3.2v5*)
4399
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4400
  SAVE_CFLAGS="$CFLAGS"
4401
  CFLAGS="$CFLAGS -belf"
4402
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4403
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4404
if test "${lt_cv_cc_needs_belf+set}" = set; then
4405
  echo $ECHO_N "(cached) $ECHO_C" >&6
4406
else
4407
  ac_ext=c
4408
ac_cpp='$CPP $CPPFLAGS'
4409
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
 
4413
     cat >conftest.$ac_ext <<_ACEOF
4414
/* confdefs.h.  */
4415
_ACEOF
4416
cat confdefs.h >>conftest.$ac_ext
4417
cat >>conftest.$ac_ext <<_ACEOF
4418
/* end confdefs.h.  */
4419
 
4420
int
4421
main ()
4422
{
4423
 
4424
  ;
4425
  return 0;
4426
}
4427
_ACEOF
4428
rm -f conftest.$ac_objext conftest$ac_exeext
4429
if { (ac_try="$ac_link"
4430
case "(($ac_try" in
4431
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432
  *) ac_try_echo=$ac_try;;
4433
esac
4434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435
  (eval "$ac_link") 2>conftest.er1
4436
  ac_status=$?
4437
  grep -v '^ *+' conftest.er1 >conftest.err
4438
  rm -f conftest.er1
4439
  cat conftest.err >&5
4440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441
  (exit $ac_status); } && {
4442
	 test -z "$ac_c_werror_flag" ||
4443
	 test ! -s conftest.err
4444
       } && test -s conftest$ac_exeext &&
4445
       $as_test_x conftest$ac_exeext; then
4446
  lt_cv_cc_needs_belf=yes
4447
else
4448
  echo "$as_me: failed program was:" >&5
4449
sed 's/^/| /' conftest.$ac_ext >&5
4450
 
4451
	lt_cv_cc_needs_belf=no
4452
fi
4453
 
4454
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4455
      conftest$ac_exeext conftest.$ac_ext
4456
     ac_ext=c
4457
ac_cpp='$CPP $CPPFLAGS'
4458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
 
4462
fi
4463
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4464
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4465
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4466
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4467
    CFLAGS="$SAVE_CFLAGS"
4468
  fi
4469
  ;;
4470
sparc*-*solaris*)
4471
  # Find out which ABI we are using.
4472
  echo 'int i;' > conftest.$ac_ext
4473
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474
  (eval $ac_compile) 2>&5
4475
  ac_status=$?
4476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
  (exit $ac_status); }; then
4478
    case `/usr/bin/file conftest.o` in
4479
    *64-bit*)
4480
      case $lt_cv_prog_gnu_ld in
4481
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4482
      *)    LD="${LD-ld} -64" ;;
4483
      esac
4484
      ;;
4485
    esac
4486
  fi
4487
  rm -rf conftest*
4488
  ;;
4489
 
4490
 
4491
esac
4492
 
4493
need_locks="$enable_libtool_lock"
4494
 
4495
 
4496
ac_ext=c
4497
ac_cpp='$CPP $CPPFLAGS'
4498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4502
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4503
# On Suns, sometimes $CPP names a directory.
4504
if test -n "$CPP" && test -d "$CPP"; then
4505
  CPP=
4506
fi
4507
if test -z "$CPP"; then
4508
  if test "${ac_cv_prog_CPP+set}" = set; then
4509
  echo $ECHO_N "(cached) $ECHO_C" >&6
4510
else
4511
      # Double quotes because CPP needs to be expanded
4512
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4513
    do
4514
      ac_preproc_ok=false
4515
for ac_c_preproc_warn_flag in '' yes
4516
do
4517
  # Use a header file that comes with gcc, so configuring glibc
4518
  # with a fresh cross-compiler works.
4519
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520
  # <limits.h> exists even on freestanding compilers.
4521
  # On the NeXT, cc -E runs the code through the compiler's parser,
4522
  # not just through cpp. "Syntax error" is here to catch this case.
4523
  cat >conftest.$ac_ext <<_ACEOF
4524
/* confdefs.h.  */
4525
_ACEOF
4526
cat confdefs.h >>conftest.$ac_ext
4527
cat >>conftest.$ac_ext <<_ACEOF
4528
/* end confdefs.h.  */
4529
@%:@ifdef __STDC__
4530
@%:@ include <limits.h>
4531
@%:@else
4532
@%:@ include <assert.h>
4533
@%:@endif
4534
		     Syntax error
4535
_ACEOF
4536
if { (ac_try="$ac_cpp conftest.$ac_ext"
4537
case "(($ac_try" in
4538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539
  *) ac_try_echo=$ac_try;;
4540
esac
4541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4543
  ac_status=$?
4544
  grep -v '^ *+' conftest.er1 >conftest.err
4545
  rm -f conftest.er1
4546
  cat conftest.err >&5
4547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548
  (exit $ac_status); } >/dev/null && {
4549
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4550
	 test ! -s conftest.err
4551
       }; then
4552
  :
4553
else
4554
  echo "$as_me: failed program was:" >&5
4555
sed 's/^/| /' conftest.$ac_ext >&5
4556
 
4557
  # Broken: fails on valid input.
4558
continue
4559
fi
4560
 
4561
rm -f conftest.err conftest.$ac_ext
4562
 
4563
  # OK, works on sane cases.  Now check whether nonexistent headers
4564
  # can be detected and how.
4565
  cat >conftest.$ac_ext <<_ACEOF
4566
/* confdefs.h.  */
4567
_ACEOF
4568
cat confdefs.h >>conftest.$ac_ext
4569
cat >>conftest.$ac_ext <<_ACEOF
4570
/* end confdefs.h.  */
4571
@%:@include <ac_nonexistent.h>
4572
_ACEOF
4573
if { (ac_try="$ac_cpp conftest.$ac_ext"
4574
case "(($ac_try" in
4575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576
  *) ac_try_echo=$ac_try;;
4577
esac
4578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580
  ac_status=$?
4581
  grep -v '^ *+' conftest.er1 >conftest.err
4582
  rm -f conftest.er1
4583
  cat conftest.err >&5
4584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
  (exit $ac_status); } >/dev/null && {
4586
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587
	 test ! -s conftest.err
4588
       }; then
4589
  # Broken: success on invalid input.
4590
continue
4591
else
4592
  echo "$as_me: failed program was:" >&5
4593
sed 's/^/| /' conftest.$ac_ext >&5
4594
 
4595
  # Passes both tests.
4596
ac_preproc_ok=:
4597
break
4598
fi
4599
 
4600
rm -f conftest.err conftest.$ac_ext
4601
 
4602
done
4603
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4604
rm -f conftest.err conftest.$ac_ext
4605
if $ac_preproc_ok; then
4606
  break
4607
fi
4608
 
4609
    done
4610
    ac_cv_prog_CPP=$CPP
4611
 
4612
fi
4613
  CPP=$ac_cv_prog_CPP
4614
else
4615
  ac_cv_prog_CPP=$CPP
4616
fi
4617
{ echo "$as_me:$LINENO: result: $CPP" >&5
4618
echo "${ECHO_T}$CPP" >&6; }
4619
ac_preproc_ok=false
4620
for ac_c_preproc_warn_flag in '' yes
4621
do
4622
  # Use a header file that comes with gcc, so configuring glibc
4623
  # with a fresh cross-compiler works.
4624
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4625
  # <limits.h> exists even on freestanding compilers.
4626
  # On the NeXT, cc -E runs the code through the compiler's parser,
4627
  # not just through cpp. "Syntax error" is here to catch this case.
4628
  cat >conftest.$ac_ext <<_ACEOF
4629
/* confdefs.h.  */
4630
_ACEOF
4631
cat confdefs.h >>conftest.$ac_ext
4632
cat >>conftest.$ac_ext <<_ACEOF
4633
/* end confdefs.h.  */
4634
@%:@ifdef __STDC__
4635
@%:@ include <limits.h>
4636
@%:@else
4637
@%:@ include <assert.h>
4638
@%:@endif
4639
		     Syntax error
4640
_ACEOF
4641
if { (ac_try="$ac_cpp conftest.$ac_ext"
4642
case "(($ac_try" in
4643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644
  *) ac_try_echo=$ac_try;;
4645
esac
4646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4648
  ac_status=$?
4649
  grep -v '^ *+' conftest.er1 >conftest.err
4650
  rm -f conftest.er1
4651
  cat conftest.err >&5
4652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653
  (exit $ac_status); } >/dev/null && {
4654
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4655
	 test ! -s conftest.err
4656
       }; then
4657
  :
4658
else
4659
  echo "$as_me: failed program was:" >&5
4660
sed 's/^/| /' conftest.$ac_ext >&5
4661
 
4662
  # Broken: fails on valid input.
4663
continue
4664
fi
4665
 
4666
rm -f conftest.err conftest.$ac_ext
4667
 
4668
  # OK, works on sane cases.  Now check whether nonexistent headers
4669
  # can be detected and how.
4670
  cat >conftest.$ac_ext <<_ACEOF
4671
/* confdefs.h.  */
4672
_ACEOF
4673
cat confdefs.h >>conftest.$ac_ext
4674
cat >>conftest.$ac_ext <<_ACEOF
4675
/* end confdefs.h.  */
4676
@%:@include <ac_nonexistent.h>
4677
_ACEOF
4678
if { (ac_try="$ac_cpp conftest.$ac_ext"
4679
case "(($ac_try" in
4680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681
  *) ac_try_echo=$ac_try;;
4682
esac
4683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685
  ac_status=$?
4686
  grep -v '^ *+' conftest.er1 >conftest.err
4687
  rm -f conftest.er1
4688
  cat conftest.err >&5
4689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690
  (exit $ac_status); } >/dev/null && {
4691
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4692
	 test ! -s conftest.err
4693
       }; then
4694
  # Broken: success on invalid input.
4695
continue
4696
else
4697
  echo "$as_me: failed program was:" >&5
4698
sed 's/^/| /' conftest.$ac_ext >&5
4699
 
4700
  # Passes both tests.
4701
ac_preproc_ok=:
4702
break
4703
fi
4704
 
4705
rm -f conftest.err conftest.$ac_ext
4706
 
4707
done
4708
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4709
rm -f conftest.err conftest.$ac_ext
4710
if $ac_preproc_ok; then
4711
  :
4712
else
4713
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4714
See \`config.log' for more details." >&5
4715
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4716
See \`config.log' for more details." >&2;}
4717
   { (exit 1); exit 1; }; }
4718
fi
4719
 
4720
ac_ext=c
4721
ac_cpp='$CPP $CPPFLAGS'
4722
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725
 
4726
 
4727
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4728
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4729
if test "${ac_cv_header_stdc+set}" = set; then
4730
  echo $ECHO_N "(cached) $ECHO_C" >&6
4731
else
4732
  cat >conftest.$ac_ext <<_ACEOF
4733
/* confdefs.h.  */
4734
_ACEOF
4735
cat confdefs.h >>conftest.$ac_ext
4736
cat >>conftest.$ac_ext <<_ACEOF
4737
/* end confdefs.h.  */
4738
#include <stdlib.h>
4739
#include <stdarg.h>
4740
#include <string.h>
4741
#include <float.h>
4742
 
4743
int
4744
main ()
4745
{
4746
 
4747
  ;
4748
  return 0;
4749
}
4750
_ACEOF
4751
rm -f conftest.$ac_objext
4752
if { (ac_try="$ac_compile"
4753
case "(($ac_try" in
4754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755
  *) ac_try_echo=$ac_try;;
4756
esac
4757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758
  (eval "$ac_compile") 2>conftest.er1
4759
  ac_status=$?
4760
  grep -v '^ *+' conftest.er1 >conftest.err
4761
  rm -f conftest.er1
4762
  cat conftest.err >&5
4763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764
  (exit $ac_status); } && {
4765
	 test -z "$ac_c_werror_flag" ||
4766
	 test ! -s conftest.err
4767
       } && test -s conftest.$ac_objext; then
4768
  ac_cv_header_stdc=yes
4769
else
4770
  echo "$as_me: failed program was:" >&5
4771
sed 's/^/| /' conftest.$ac_ext >&5
4772
 
4773
	ac_cv_header_stdc=no
4774
fi
4775
 
4776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777
 
4778
if test $ac_cv_header_stdc = yes; then
4779
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4780
  cat >conftest.$ac_ext <<_ACEOF
4781
/* confdefs.h.  */
4782
_ACEOF
4783
cat confdefs.h >>conftest.$ac_ext
4784
cat >>conftest.$ac_ext <<_ACEOF
4785
/* end confdefs.h.  */
4786
#include <string.h>
4787
 
4788
_ACEOF
4789
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790
  $EGREP "memchr" >/dev/null 2>&1; then
4791
  :
4792
else
4793
  ac_cv_header_stdc=no
4794
fi
4795
rm -f conftest*
4796
 
4797
fi
4798
 
4799
if test $ac_cv_header_stdc = yes; then
4800
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4801
  cat >conftest.$ac_ext <<_ACEOF
4802
/* confdefs.h.  */
4803
_ACEOF
4804
cat confdefs.h >>conftest.$ac_ext
4805
cat >>conftest.$ac_ext <<_ACEOF
4806
/* end confdefs.h.  */
4807
#include <stdlib.h>
4808
 
4809
_ACEOF
4810
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811
  $EGREP "free" >/dev/null 2>&1; then
4812
  :
4813
else
4814
  ac_cv_header_stdc=no
4815
fi
4816
rm -f conftest*
4817
 
4818
fi
4819
 
4820
if test $ac_cv_header_stdc = yes; then
4821
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822
  if test "$cross_compiling" = yes; then
4823
  :
4824
else
4825
  cat >conftest.$ac_ext <<_ACEOF
4826
/* confdefs.h.  */
4827
_ACEOF
4828
cat confdefs.h >>conftest.$ac_ext
4829
cat >>conftest.$ac_ext <<_ACEOF
4830
/* end confdefs.h.  */
4831
#include <ctype.h>
4832
#include <stdlib.h>
4833
#if ((' ' & 0x0FF) == 0x020)
4834
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4835
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4836
#else
4837
# define ISLOWER(c) \
4838
		   (('a' <= (c) && (c) <= 'i') \
4839
		     || ('j' <= (c) && (c) <= 'r') \
4840
		     || ('s' <= (c) && (c) <= 'z'))
4841
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4842
#endif
4843
 
4844
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4845
int
4846
main ()
4847
{
4848
  int i;
4849
  for (i = 0; i < 256; i++)
4850
    if (XOR (islower (i), ISLOWER (i))
4851
	|| toupper (i) != TOUPPER (i))
4852
      return 2;
4853
  return 0;
4854
}
4855
_ACEOF
4856
rm -f conftest$ac_exeext
4857
if { (ac_try="$ac_link"
4858
case "(($ac_try" in
4859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860
  *) ac_try_echo=$ac_try;;
4861
esac
4862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863
  (eval "$ac_link") 2>&5
4864
  ac_status=$?
4865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4867
  { (case "(($ac_try" in
4868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869
  *) ac_try_echo=$ac_try;;
4870
esac
4871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872
  (eval "$ac_try") 2>&5
4873
  ac_status=$?
4874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875
  (exit $ac_status); }; }; then
4876
  :
4877
else
4878
  echo "$as_me: program exited with status $ac_status" >&5
4879
echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4881
 
4882
( exit $ac_status )
4883
ac_cv_header_stdc=no
4884
fi
4885
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4886
fi
4887
 
4888
 
4889
fi
4890
fi
4891
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4892
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4893
if test $ac_cv_header_stdc = yes; then
4894
 
4895
cat >>confdefs.h <<\_ACEOF
4896
@%:@define STDC_HEADERS 1
4897
_ACEOF
4898
 
4899
fi
4900
 
4901
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4902
 
4903
 
4904
 
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4912
		  inttypes.h stdint.h unistd.h
4913
do
4914
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4915
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4916
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4917
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4918
  echo $ECHO_N "(cached) $ECHO_C" >&6
4919
else
4920
  cat >conftest.$ac_ext <<_ACEOF
4921
/* confdefs.h.  */
4922
_ACEOF
4923
cat confdefs.h >>conftest.$ac_ext
4924
cat >>conftest.$ac_ext <<_ACEOF
4925
/* end confdefs.h.  */
4926
$ac_includes_default
4927
 
4928
@%:@include <$ac_header>
4929
_ACEOF
4930
rm -f conftest.$ac_objext
4931
if { (ac_try="$ac_compile"
4932
case "(($ac_try" in
4933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934
  *) ac_try_echo=$ac_try;;
4935
esac
4936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937
  (eval "$ac_compile") 2>conftest.er1
4938
  ac_status=$?
4939
  grep -v '^ *+' conftest.er1 >conftest.err
4940
  rm -f conftest.er1
4941
  cat conftest.err >&5
4942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
  (exit $ac_status); } && {
4944
	 test -z "$ac_c_werror_flag" ||
4945
	 test ! -s conftest.err
4946
       } && test -s conftest.$ac_objext; then
4947
  eval "$as_ac_Header=yes"
4948
else
4949
  echo "$as_me: failed program was:" >&5
4950
sed 's/^/| /' conftest.$ac_ext >&5
4951
 
4952
	eval "$as_ac_Header=no"
4953
fi
4954
 
4955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956
fi
4957
ac_res=`eval echo '${'$as_ac_Header'}'`
4958
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4959
echo "${ECHO_T}$ac_res" >&6; }
4960
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4961
  cat >>confdefs.h <<_ACEOF
4962
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963
_ACEOF
4964
 
4965
fi
4966
 
4967
done
4968
 
4969
 
4970
 
4971
for ac_header in dlfcn.h
4972
do
4973
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4975
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4976
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4977
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4978
  echo $ECHO_N "(cached) $ECHO_C" >&6
4979
fi
4980
ac_res=`eval echo '${'$as_ac_Header'}'`
4981
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4982
echo "${ECHO_T}$ac_res" >&6; }
4983
else
4984
  # Is the header compilable?
4985
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4986
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4987
cat >conftest.$ac_ext <<_ACEOF
4988
/* confdefs.h.  */
4989
_ACEOF
4990
cat confdefs.h >>conftest.$ac_ext
4991
cat >>conftest.$ac_ext <<_ACEOF
4992
/* end confdefs.h.  */
4993
$ac_includes_default
4994
@%:@include <$ac_header>
4995
_ACEOF
4996
rm -f conftest.$ac_objext
4997
if { (ac_try="$ac_compile"
4998
case "(($ac_try" in
4999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000
  *) ac_try_echo=$ac_try;;
5001
esac
5002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003
  (eval "$ac_compile") 2>conftest.er1
5004
  ac_status=$?
5005
  grep -v '^ *+' conftest.er1 >conftest.err
5006
  rm -f conftest.er1
5007
  cat conftest.err >&5
5008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009
  (exit $ac_status); } && {
5010
	 test -z "$ac_c_werror_flag" ||
5011
	 test ! -s conftest.err
5012
       } && test -s conftest.$ac_objext; then
5013
  ac_header_compiler=yes
5014
else
5015
  echo "$as_me: failed program was:" >&5
5016
sed 's/^/| /' conftest.$ac_ext >&5
5017
 
5018
	ac_header_compiler=no
5019
fi
5020
 
5021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5023
echo "${ECHO_T}$ac_header_compiler" >&6; }
5024
 
5025
# Is the header present?
5026
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5027
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5028
cat >conftest.$ac_ext <<_ACEOF
5029
/* confdefs.h.  */
5030
_ACEOF
5031
cat confdefs.h >>conftest.$ac_ext
5032
cat >>conftest.$ac_ext <<_ACEOF
5033
/* end confdefs.h.  */
5034
@%:@include <$ac_header>
5035
_ACEOF
5036
if { (ac_try="$ac_cpp conftest.$ac_ext"
5037
case "(($ac_try" in
5038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039
  *) ac_try_echo=$ac_try;;
5040
esac
5041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5043
  ac_status=$?
5044
  grep -v '^ *+' conftest.er1 >conftest.err
5045
  rm -f conftest.er1
5046
  cat conftest.err >&5
5047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048
  (exit $ac_status); } >/dev/null && {
5049
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5050
	 test ! -s conftest.err
5051
       }; then
5052
  ac_header_preproc=yes
5053
else
5054
  echo "$as_me: failed program was:" >&5
5055
sed 's/^/| /' conftest.$ac_ext >&5
5056
 
5057
  ac_header_preproc=no
5058
fi
5059
 
5060
rm -f conftest.err conftest.$ac_ext
5061
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5062
echo "${ECHO_T}$ac_header_preproc" >&6; }
5063
 
5064
# So?  What about this header?
5065
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5066
  yes:no: )
5067
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5068
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5069
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5070
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5071
    ac_header_preproc=yes
5072
    ;;
5073
  no:yes:* )
5074
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5075
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5076
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5077
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5078
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5079
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5080
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5081
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5082
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5083
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5084
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5085
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5086
 
5087
    ;;
5088
esac
5089
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5090
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5091
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5092
  echo $ECHO_N "(cached) $ECHO_C" >&6
5093
else
5094
  eval "$as_ac_Header=\$ac_header_preproc"
5095
fi
5096
ac_res=`eval echo '${'$as_ac_Header'}'`
5097
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5098
echo "${ECHO_T}$ac_res" >&6; }
5099
 
5100
fi
5101
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5102
  cat >>confdefs.h <<_ACEOF
5103
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104
_ACEOF
5105
 
5106
fi
5107
 
5108
done
5109
 
5110
ac_ext=cpp
5111
ac_cpp='$CXXCPP $CPPFLAGS'
5112
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5115
if test -z "$CXX"; then
5116
  if test -n "$CCC"; then
5117
    CXX=$CCC
5118
  else
5119
    if test -n "$ac_tool_prefix"; then
5120
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5121
  do
5122
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5123
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5124
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126
if test "${ac_cv_prog_CXX+set}" = set; then
5127
  echo $ECHO_N "(cached) $ECHO_C" >&6
5128
else
5129
  if test -n "$CXX"; then
5130
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5131
else
5132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133
for as_dir in $PATH
5134
do
5135
  IFS=$as_save_IFS
5136
  test -z "$as_dir" && as_dir=.
5137
  for ac_exec_ext in '' $ac_executable_extensions; do
5138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5140
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141
    break 2
5142
  fi
5143
done
5144
done
5145
IFS=$as_save_IFS
5146
 
5147
fi
5148
fi
5149
CXX=$ac_cv_prog_CXX
5150
if test -n "$CXX"; then
5151
  { echo "$as_me:$LINENO: result: $CXX" >&5
5152
echo "${ECHO_T}$CXX" >&6; }
5153
else
5154
  { echo "$as_me:$LINENO: result: no" >&5
5155
echo "${ECHO_T}no" >&6; }
5156
fi
5157
 
5158
 
5159
    test -n "$CXX" && break
5160
  done
5161
fi
5162
if test -z "$CXX"; then
5163
  ac_ct_CXX=$CXX
5164
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5165
do
5166
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5167
set dummy $ac_prog; ac_word=$2
5168
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5170
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5171
  echo $ECHO_N "(cached) $ECHO_C" >&6
5172
else
5173
  if test -n "$ac_ct_CXX"; then
5174
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5175
else
5176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177
for as_dir in $PATH
5178
do
5179
  IFS=$as_save_IFS
5180
  test -z "$as_dir" && as_dir=.
5181
  for ac_exec_ext in '' $ac_executable_extensions; do
5182
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185
    break 2
5186
  fi
5187
done
5188
done
5189
IFS=$as_save_IFS
5190
 
5191
fi
5192
fi
5193
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5194
if test -n "$ac_ct_CXX"; then
5195
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5196
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5197
else
5198
  { echo "$as_me:$LINENO: result: no" >&5
5199
echo "${ECHO_T}no" >&6; }
5200
fi
5201
 
5202
 
5203
  test -n "$ac_ct_CXX" && break
5204
done
5205
 
5206
  if test "x$ac_ct_CXX" = x; then
5207
    CXX="g++"
5208
  else
5209
    case $cross_compiling:$ac_tool_warned in
5210
yes:)
5211
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5212
whose name does not start with the host triplet.  If you think this
5213
configuration is useful to you, please write to autoconf@gnu.org." >&5
5214
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5215
whose name does not start with the host triplet.  If you think this
5216
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5217
ac_tool_warned=yes ;;
5218
esac
5219
    CXX=$ac_ct_CXX
5220
  fi
5221
fi
5222
 
5223
  fi
5224
fi
5225
# Provide some information about the compiler.
5226
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5227
ac_compiler=`set X $ac_compile; echo $2`
5228
{ (ac_try="$ac_compiler --version >&5"
5229
case "(($ac_try" in
5230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231
  *) ac_try_echo=$ac_try;;
5232
esac
5233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234
  (eval "$ac_compiler --version >&5") 2>&5
5235
  ac_status=$?
5236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
  (exit $ac_status); }
5238
{ (ac_try="$ac_compiler -v >&5"
5239
case "(($ac_try" in
5240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241
  *) ac_try_echo=$ac_try;;
5242
esac
5243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244
  (eval "$ac_compiler -v >&5") 2>&5
5245
  ac_status=$?
5246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
  (exit $ac_status); }
5248
{ (ac_try="$ac_compiler -V >&5"
5249
case "(($ac_try" in
5250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251
  *) ac_try_echo=$ac_try;;
5252
esac
5253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254
  (eval "$ac_compiler -V >&5") 2>&5
5255
  ac_status=$?
5256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
  (exit $ac_status); }
5258
 
5259
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5260
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5261
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5262
  echo $ECHO_N "(cached) $ECHO_C" >&6
5263
else
5264
  cat >conftest.$ac_ext <<_ACEOF
5265
/* confdefs.h.  */
5266
_ACEOF
5267
cat confdefs.h >>conftest.$ac_ext
5268
cat >>conftest.$ac_ext <<_ACEOF
5269
/* end confdefs.h.  */
5270
 
5271
int
5272
main ()
5273
{
5274
#ifndef __GNUC__
5275
       choke me
5276
#endif
5277
 
5278
  ;
5279
  return 0;
5280
}
5281
_ACEOF
5282
rm -f conftest.$ac_objext
5283
if { (ac_try="$ac_compile"
5284
case "(($ac_try" in
5285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286
  *) ac_try_echo=$ac_try;;
5287
esac
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289
  (eval "$ac_compile") 2>conftest.er1
5290
  ac_status=$?
5291
  grep -v '^ *+' conftest.er1 >conftest.err
5292
  rm -f conftest.er1
5293
  cat conftest.err >&5
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
  (exit $ac_status); } && {
5296
	 test -z "$ac_cxx_werror_flag" ||
5297
	 test ! -s conftest.err
5298
       } && test -s conftest.$ac_objext; then
5299
  ac_compiler_gnu=yes
5300
else
5301
  echo "$as_me: failed program was:" >&5
5302
sed 's/^/| /' conftest.$ac_ext >&5
5303
 
5304
	ac_compiler_gnu=no
5305
fi
5306
 
5307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5309
 
5310
fi
5311
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5312
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5313
GXX=`test $ac_compiler_gnu = yes && echo yes`
5314
ac_test_CXXFLAGS=${CXXFLAGS+set}
5315
ac_save_CXXFLAGS=$CXXFLAGS
5316
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5317
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5318
if test "${ac_cv_prog_cxx_g+set}" = set; then
5319
  echo $ECHO_N "(cached) $ECHO_C" >&6
5320
else
5321
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5322
   ac_cxx_werror_flag=yes
5323
   ac_cv_prog_cxx_g=no
5324
   CXXFLAGS="-g"
5325
   cat >conftest.$ac_ext <<_ACEOF
5326
/* confdefs.h.  */
5327
_ACEOF
5328
cat confdefs.h >>conftest.$ac_ext
5329
cat >>conftest.$ac_ext <<_ACEOF
5330
/* end confdefs.h.  */
5331
 
5332
int
5333
main ()
5334
{
5335
 
5336
  ;
5337
  return 0;
5338
}
5339
_ACEOF
5340
rm -f conftest.$ac_objext
5341
if { (ac_try="$ac_compile"
5342
case "(($ac_try" in
5343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344
  *) ac_try_echo=$ac_try;;
5345
esac
5346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347
  (eval "$ac_compile") 2>conftest.er1
5348
  ac_status=$?
5349
  grep -v '^ *+' conftest.er1 >conftest.err
5350
  rm -f conftest.er1
5351
  cat conftest.err >&5
5352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353
  (exit $ac_status); } && {
5354
	 test -z "$ac_cxx_werror_flag" ||
5355
	 test ! -s conftest.err
5356
       } && test -s conftest.$ac_objext; then
5357
  ac_cv_prog_cxx_g=yes
5358
else
5359
  echo "$as_me: failed program was:" >&5
5360
sed 's/^/| /' conftest.$ac_ext >&5
5361
 
5362
	CXXFLAGS=""
5363
      cat >conftest.$ac_ext <<_ACEOF
5364
/* confdefs.h.  */
5365
_ACEOF
5366
cat confdefs.h >>conftest.$ac_ext
5367
cat >>conftest.$ac_ext <<_ACEOF
5368
/* end confdefs.h.  */
5369
 
5370
int
5371
main ()
5372
{
5373
 
5374
  ;
5375
  return 0;
5376
}
5377
_ACEOF
5378
rm -f conftest.$ac_objext
5379
if { (ac_try="$ac_compile"
5380
case "(($ac_try" in
5381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382
  *) ac_try_echo=$ac_try;;
5383
esac
5384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385
  (eval "$ac_compile") 2>conftest.er1
5386
  ac_status=$?
5387
  grep -v '^ *+' conftest.er1 >conftest.err
5388
  rm -f conftest.er1
5389
  cat conftest.err >&5
5390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391
  (exit $ac_status); } && {
5392
	 test -z "$ac_cxx_werror_flag" ||
5393
	 test ! -s conftest.err
5394
       } && test -s conftest.$ac_objext; then
5395
  :
5396
else
5397
  echo "$as_me: failed program was:" >&5
5398
sed 's/^/| /' conftest.$ac_ext >&5
5399
 
5400
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5401
	 CXXFLAGS="-g"
5402
	 cat >conftest.$ac_ext <<_ACEOF
5403
/* confdefs.h.  */
5404
_ACEOF
5405
cat confdefs.h >>conftest.$ac_ext
5406
cat >>conftest.$ac_ext <<_ACEOF
5407
/* end confdefs.h.  */
5408
 
5409
int
5410
main ()
5411
{
5412
 
5413
  ;
5414
  return 0;
5415
}
5416
_ACEOF
5417
rm -f conftest.$ac_objext
5418
if { (ac_try="$ac_compile"
5419
case "(($ac_try" in
5420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421
  *) ac_try_echo=$ac_try;;
5422
esac
5423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424
  (eval "$ac_compile") 2>conftest.er1
5425
  ac_status=$?
5426
  grep -v '^ *+' conftest.er1 >conftest.err
5427
  rm -f conftest.er1
5428
  cat conftest.err >&5
5429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
  (exit $ac_status); } && {
5431
	 test -z "$ac_cxx_werror_flag" ||
5432
	 test ! -s conftest.err
5433
       } && test -s conftest.$ac_objext; then
5434
  ac_cv_prog_cxx_g=yes
5435
else
5436
  echo "$as_me: failed program was:" >&5
5437
sed 's/^/| /' conftest.$ac_ext >&5
5438
 
5439
 
5440
fi
5441
 
5442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443
fi
5444
 
5445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446
fi
5447
 
5448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5450
fi
5451
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5452
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5453
if test "$ac_test_CXXFLAGS" = set; then
5454
  CXXFLAGS=$ac_save_CXXFLAGS
5455
elif test $ac_cv_prog_cxx_g = yes; then
5456
  if test "$GXX" = yes; then
5457
    CXXFLAGS="-g -O2"
5458
  else
5459
    CXXFLAGS="-g"
5460
  fi
5461
else
5462
  if test "$GXX" = yes; then
5463
    CXXFLAGS="-O2"
5464
  else
5465
    CXXFLAGS=
5466
  fi
5467
fi
5468
ac_ext=cpp
5469
ac_cpp='$CXXCPP $CPPFLAGS'
5470
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5473
 
5474
depcc="$CXX"  am_compiler_list=
5475
 
5476
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5477
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5478
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5479
  echo $ECHO_N "(cached) $ECHO_C" >&6
5480
else
5481
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5482
  # We make a subdir and do the tests there.  Otherwise we can end up
5483
  # making bogus files that we don't know about and never remove.  For
5484
  # instance it was reported that on HP-UX the gcc test will end up
5485
  # making a dummy file named `D' -- because `-MD' means `put the output
5486
  # in D'.
5487
  mkdir conftest.dir
5488
  # Copy depcomp to subdir because otherwise we won't find it if we're
5489
  # using a relative directory.
5490
  cp "$am_depcomp" conftest.dir
5491
  cd conftest.dir
5492
  # We will build objects and dependencies in a subdirectory because
5493
  # it helps to detect inapplicable dependency modes.  For instance
5494
  # both Tru64's cc and ICC support -MD to output dependencies as a
5495
  # side effect of compilation, but ICC will put the dependencies in
5496
  # the current directory while Tru64 will put them in the object
5497
  # directory.
5498
  mkdir sub
5499
 
5500
  am_cv_CXX_dependencies_compiler_type=none
5501
  if test "$am_compiler_list" = ""; then
5502
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5503
  fi
5504
  for depmode in $am_compiler_list; do
5505
    # Setup a source with many dependencies, because some compilers
5506
    # like to wrap large dependency lists on column 80 (with \), and
5507
    # we should not choose a depcomp mode which is confused by this.
5508
    #
5509
    # We need to recreate these files for each test, as the compiler may
5510
    # overwrite some of them when testing with obscure command lines.
5511
    # This happens at least with the AIX C compiler.
5512
    : > sub/conftest.c
5513
    for i in 1 2 3 4 5 6; do
5514
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5515
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5516
      # Solaris 8's {/usr,}/bin/sh.
5517
      touch sub/conftst$i.h
5518
    done
5519
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5520
 
5521
    case $depmode in
5522
    nosideeffect)
5523
      # after this tag, mechanisms are not by side-effect, so they'll
5524
      # only be used when explicitly requested
5525
      if test "x$enable_dependency_tracking" = xyes; then
5526
	continue
5527
      else
5528
	break
5529
      fi
5530
      ;;
5531
    none) break ;;
5532
    esac
5533
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5534
    # mode.  It turns out that the SunPro C++ compiler does not properly
5535
    # handle `-M -o', and we need to detect this.
5536
    if depmode=$depmode \
5537
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5538
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5539
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5540
         >/dev/null 2>conftest.err &&
5541
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5542
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5543
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5544
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5545
      # icc doesn't choke on unknown options, it will just issue warnings
5546
      # or remarks (even with -Werror).  So we grep stderr for any message
5547
      # that says an option was ignored or not supported.
5548
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5549
      #   icc: Command line warning: ignoring option '-M'; no argument required
5550
      # The diagnosis changed in icc 8.0:
5551
      #   icc: Command line remark: option '-MP' not supported
5552
      if (grep 'ignoring option' conftest.err ||
5553
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5554
        am_cv_CXX_dependencies_compiler_type=$depmode
5555
        break
5556
      fi
5557
    fi
5558
  done
5559
 
5560
  cd ..
5561
  rm -rf conftest.dir
5562
else
5563
  am_cv_CXX_dependencies_compiler_type=none
5564
fi
5565
 
5566
fi
5567
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5568
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5569
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5570
 
5571
 if 
5572
  test "x$enable_dependency_tracking" != xno \
5573
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5574
  am__fastdepCXX_TRUE=
5575
  am__fastdepCXX_FALSE='#'
5576
else
5577
  am__fastdepCXX_TRUE='#'
5578
  am__fastdepCXX_FALSE=
5579
fi
5580
 
5581
 
5582
 
5583
 
5584
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5585
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5586
    (test "X$CXX" != "Xg++"))) ; then
5587
  ac_ext=cpp
5588
ac_cpp='$CXXCPP $CPPFLAGS'
5589
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5592
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5593
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5594
if test -z "$CXXCPP"; then
5595
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5596
  echo $ECHO_N "(cached) $ECHO_C" >&6
5597
else
5598
      # Double quotes because CXXCPP needs to be expanded
5599
    for CXXCPP in "$CXX -E" "/lib/cpp"
5600
    do
5601
      ac_preproc_ok=false
5602
for ac_cxx_preproc_warn_flag in '' yes
5603
do
5604
  # Use a header file that comes with gcc, so configuring glibc
5605
  # with a fresh cross-compiler works.
5606
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607
  # <limits.h> exists even on freestanding compilers.
5608
  # On the NeXT, cc -E runs the code through the compiler's parser,
5609
  # not just through cpp. "Syntax error" is here to catch this case.
5610
  cat >conftest.$ac_ext <<_ACEOF
5611
/* confdefs.h.  */
5612
_ACEOF
5613
cat confdefs.h >>conftest.$ac_ext
5614
cat >>conftest.$ac_ext <<_ACEOF
5615
/* end confdefs.h.  */
5616
@%:@ifdef __STDC__
5617
@%:@ include <limits.h>
5618
@%:@else
5619
@%:@ include <assert.h>
5620
@%:@endif
5621
		     Syntax error
5622
_ACEOF
5623
if { (ac_try="$ac_cpp conftest.$ac_ext"
5624
case "(($ac_try" in
5625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626
  *) ac_try_echo=$ac_try;;
5627
esac
5628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630
  ac_status=$?
5631
  grep -v '^ *+' conftest.er1 >conftest.err
5632
  rm -f conftest.er1
5633
  cat conftest.err >&5
5634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635
  (exit $ac_status); } >/dev/null && {
5636
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5637
	 test ! -s conftest.err
5638
       }; then
5639
  :
5640
else
5641
  echo "$as_me: failed program was:" >&5
5642
sed 's/^/| /' conftest.$ac_ext >&5
5643
 
5644
  # Broken: fails on valid input.
5645
continue
5646
fi
5647
 
5648
rm -f conftest.err conftest.$ac_ext
5649
 
5650
  # OK, works on sane cases.  Now check whether nonexistent headers
5651
  # can be detected and how.
5652
  cat >conftest.$ac_ext <<_ACEOF
5653
/* confdefs.h.  */
5654
_ACEOF
5655
cat confdefs.h >>conftest.$ac_ext
5656
cat >>conftest.$ac_ext <<_ACEOF
5657
/* end confdefs.h.  */
5658
@%:@include <ac_nonexistent.h>
5659
_ACEOF
5660
if { (ac_try="$ac_cpp conftest.$ac_ext"
5661
case "(($ac_try" in
5662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663
  *) ac_try_echo=$ac_try;;
5664
esac
5665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5667
  ac_status=$?
5668
  grep -v '^ *+' conftest.er1 >conftest.err
5669
  rm -f conftest.er1
5670
  cat conftest.err >&5
5671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672
  (exit $ac_status); } >/dev/null && {
5673
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5674
	 test ! -s conftest.err
5675
       }; then
5676
  # Broken: success on invalid input.
5677
continue
5678
else
5679
  echo "$as_me: failed program was:" >&5
5680
sed 's/^/| /' conftest.$ac_ext >&5
5681
 
5682
  # Passes both tests.
5683
ac_preproc_ok=:
5684
break
5685
fi
5686
 
5687
rm -f conftest.err conftest.$ac_ext
5688
 
5689
done
5690
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5691
rm -f conftest.err conftest.$ac_ext
5692
if $ac_preproc_ok; then
5693
  break
5694
fi
5695
 
5696
    done
5697
    ac_cv_prog_CXXCPP=$CXXCPP
5698
 
5699
fi
5700
  CXXCPP=$ac_cv_prog_CXXCPP
5701
else
5702
  ac_cv_prog_CXXCPP=$CXXCPP
5703
fi
5704
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5705
echo "${ECHO_T}$CXXCPP" >&6; }
5706
ac_preproc_ok=false
5707
for ac_cxx_preproc_warn_flag in '' yes
5708
do
5709
  # Use a header file that comes with gcc, so configuring glibc
5710
  # with a fresh cross-compiler works.
5711
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5712
  # <limits.h> exists even on freestanding compilers.
5713
  # On the NeXT, cc -E runs the code through the compiler's parser,
5714
  # not just through cpp. "Syntax error" is here to catch this case.
5715
  cat >conftest.$ac_ext <<_ACEOF
5716
/* confdefs.h.  */
5717
_ACEOF
5718
cat confdefs.h >>conftest.$ac_ext
5719
cat >>conftest.$ac_ext <<_ACEOF
5720
/* end confdefs.h.  */
5721
@%:@ifdef __STDC__
5722
@%:@ include <limits.h>
5723
@%:@else
5724
@%:@ include <assert.h>
5725
@%:@endif
5726
		     Syntax error
5727
_ACEOF
5728
if { (ac_try="$ac_cpp conftest.$ac_ext"
5729
case "(($ac_try" in
5730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731
  *) ac_try_echo=$ac_try;;
5732
esac
5733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5735
  ac_status=$?
5736
  grep -v '^ *+' conftest.er1 >conftest.err
5737
  rm -f conftest.er1
5738
  cat conftest.err >&5
5739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740
  (exit $ac_status); } >/dev/null && {
5741
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5742
	 test ! -s conftest.err
5743
       }; then
5744
  :
5745
else
5746
  echo "$as_me: failed program was:" >&5
5747
sed 's/^/| /' conftest.$ac_ext >&5
5748
 
5749
  # Broken: fails on valid input.
5750
continue
5751
fi
5752
 
5753
rm -f conftest.err conftest.$ac_ext
5754
 
5755
  # OK, works on sane cases.  Now check whether nonexistent headers
5756
  # can be detected and how.
5757
  cat >conftest.$ac_ext <<_ACEOF
5758
/* confdefs.h.  */
5759
_ACEOF
5760
cat confdefs.h >>conftest.$ac_ext
5761
cat >>conftest.$ac_ext <<_ACEOF
5762
/* end confdefs.h.  */
5763
@%:@include <ac_nonexistent.h>
5764
_ACEOF
5765
if { (ac_try="$ac_cpp conftest.$ac_ext"
5766
case "(($ac_try" in
5767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768
  *) ac_try_echo=$ac_try;;
5769
esac
5770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5772
  ac_status=$?
5773
  grep -v '^ *+' conftest.er1 >conftest.err
5774
  rm -f conftest.er1
5775
  cat conftest.err >&5
5776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777
  (exit $ac_status); } >/dev/null && {
5778
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5779
	 test ! -s conftest.err
5780
       }; then
5781
  # Broken: success on invalid input.
5782
continue
5783
else
5784
  echo "$as_me: failed program was:" >&5
5785
sed 's/^/| /' conftest.$ac_ext >&5
5786
 
5787
  # Passes both tests.
5788
ac_preproc_ok=:
5789
break
5790
fi
5791
 
5792
rm -f conftest.err conftest.$ac_ext
5793
 
5794
done
5795
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796
rm -f conftest.err conftest.$ac_ext
5797
if $ac_preproc_ok; then
5798
  :
5799
else
5800
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5801
See \`config.log' for more details." >&5
5802
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5803
See \`config.log' for more details." >&2;}
5804
   { (exit 1); exit 1; }; }
5805
fi
5806
 
5807
ac_ext=cpp
5808
ac_cpp='$CXXCPP $CPPFLAGS'
5809
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812
 
5813
fi
5814
 
5815
 
5816
ac_ext=f
5817
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5818
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5820
if test -n "$ac_tool_prefix"; then
5821
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5822
  do
5823
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5824
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5825
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5826
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827
if test "${ac_cv_prog_F77+set}" = set; then
5828
  echo $ECHO_N "(cached) $ECHO_C" >&6
5829
else
5830
  if test -n "$F77"; then
5831
  ac_cv_prog_F77="$F77" # Let the user override the test.
5832
else
5833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834
for as_dir in $PATH
5835
do
5836
  IFS=$as_save_IFS
5837
  test -z "$as_dir" && as_dir=.
5838
  for ac_exec_ext in '' $ac_executable_extensions; do
5839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5841
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842
    break 2
5843
  fi
5844
done
5845
done
5846
IFS=$as_save_IFS
5847
 
5848
fi
5849
fi
5850
F77=$ac_cv_prog_F77
5851
if test -n "$F77"; then
5852
  { echo "$as_me:$LINENO: result: $F77" >&5
5853
echo "${ECHO_T}$F77" >&6; }
5854
else
5855
  { echo "$as_me:$LINENO: result: no" >&5
5856
echo "${ECHO_T}no" >&6; }
5857
fi
5858
 
5859
 
5860
    test -n "$F77" && break
5861
  done
5862
fi
5863
if test -z "$F77"; then
5864
  ac_ct_F77=$F77
5865
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5866
do
5867
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5868
set dummy $ac_prog; ac_word=$2
5869
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5870
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5872
  echo $ECHO_N "(cached) $ECHO_C" >&6
5873
else
5874
  if test -n "$ac_ct_F77"; then
5875
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5876
else
5877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878
for as_dir in $PATH
5879
do
5880
  IFS=$as_save_IFS
5881
  test -z "$as_dir" && as_dir=.
5882
  for ac_exec_ext in '' $ac_executable_extensions; do
5883
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884
    ac_cv_prog_ac_ct_F77="$ac_prog"
5885
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886
    break 2
5887
  fi
5888
done
5889
done
5890
IFS=$as_save_IFS
5891
 
5892
fi
5893
fi
5894
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5895
if test -n "$ac_ct_F77"; then
5896
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5897
echo "${ECHO_T}$ac_ct_F77" >&6; }
5898
else
5899
  { echo "$as_me:$LINENO: result: no" >&5
5900
echo "${ECHO_T}no" >&6; }
5901
fi
5902
 
5903
 
5904
  test -n "$ac_ct_F77" && break
5905
done
5906
 
5907
  if test "x$ac_ct_F77" = x; then
5908
    F77=""
5909
  else
5910
    case $cross_compiling:$ac_tool_warned in
5911
yes:)
5912
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5913
whose name does not start with the host triplet.  If you think this
5914
configuration is useful to you, please write to autoconf@gnu.org." >&5
5915
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5916
whose name does not start with the host triplet.  If you think this
5917
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5918
ac_tool_warned=yes ;;
5919
esac
5920
    F77=$ac_ct_F77
5921
  fi
5922
fi
5923
 
5924
 
5925
# Provide some information about the compiler.
5926
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5927
ac_compiler=`set X $ac_compile; echo $2`
5928
{ (ac_try="$ac_compiler --version >&5"
5929
case "(($ac_try" in
5930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931
  *) ac_try_echo=$ac_try;;
5932
esac
5933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934
  (eval "$ac_compiler --version >&5") 2>&5
5935
  ac_status=$?
5936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
  (exit $ac_status); }
5938
{ (ac_try="$ac_compiler -v >&5"
5939
case "(($ac_try" in
5940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941
  *) ac_try_echo=$ac_try;;
5942
esac
5943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944
  (eval "$ac_compiler -v >&5") 2>&5
5945
  ac_status=$?
5946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947
  (exit $ac_status); }
5948
{ (ac_try="$ac_compiler -V >&5"
5949
case "(($ac_try" in
5950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951
  *) ac_try_echo=$ac_try;;
5952
esac
5953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954
  (eval "$ac_compiler -V >&5") 2>&5
5955
  ac_status=$?
5956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957
  (exit $ac_status); }
5958
rm -f a.out
5959
 
5960
# If we don't use `.F' as extension, the preprocessor is not run on the
5961
# input file.  (Note that this only needs to work for GNU compilers.)
5962
ac_save_ext=$ac_ext
5963
ac_ext=F
5964
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5965
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5966
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5967
  echo $ECHO_N "(cached) $ECHO_C" >&6
5968
else
5969
  cat >conftest.$ac_ext <<_ACEOF
5970
      program main
5971
#ifndef __GNUC__
5972
       choke me
5973
#endif
5974
 
5975
      end
5976
_ACEOF
5977
rm -f conftest.$ac_objext
5978
if { (ac_try="$ac_compile"
5979
case "(($ac_try" in
5980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981
  *) ac_try_echo=$ac_try;;
5982
esac
5983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984
  (eval "$ac_compile") 2>conftest.er1
5985
  ac_status=$?
5986
  grep -v '^ *+' conftest.er1 >conftest.err
5987
  rm -f conftest.er1
5988
  cat conftest.err >&5
5989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990
  (exit $ac_status); } && {
5991
	 test -z "$ac_f77_werror_flag" ||
5992
	 test ! -s conftest.err
5993
       } && test -s conftest.$ac_objext; then
5994
  ac_compiler_gnu=yes
5995
else
5996
  echo "$as_me: failed program was:" >&5
5997
sed 's/^/| /' conftest.$ac_ext >&5
5998
 
5999
	ac_compiler_gnu=no
6000
fi
6001
 
6002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6004
 
6005
fi
6006
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6007
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6008
ac_ext=$ac_save_ext
6009
ac_test_FFLAGS=${FFLAGS+set}
6010
ac_save_FFLAGS=$FFLAGS
6011
FFLAGS=
6012
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6013
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6014
if test "${ac_cv_prog_f77_g+set}" = set; then
6015
  echo $ECHO_N "(cached) $ECHO_C" >&6
6016
else
6017
  FFLAGS=-g
6018
cat >conftest.$ac_ext <<_ACEOF
6019
      program main
6020
 
6021
      end
6022
_ACEOF
6023
rm -f conftest.$ac_objext
6024
if { (ac_try="$ac_compile"
6025
case "(($ac_try" in
6026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027
  *) ac_try_echo=$ac_try;;
6028
esac
6029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030
  (eval "$ac_compile") 2>conftest.er1
6031
  ac_status=$?
6032
  grep -v '^ *+' conftest.er1 >conftest.err
6033
  rm -f conftest.er1
6034
  cat conftest.err >&5
6035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036
  (exit $ac_status); } && {
6037
	 test -z "$ac_f77_werror_flag" ||
6038
	 test ! -s conftest.err
6039
       } && test -s conftest.$ac_objext; then
6040
  ac_cv_prog_f77_g=yes
6041
else
6042
  echo "$as_me: failed program was:" >&5
6043
sed 's/^/| /' conftest.$ac_ext >&5
6044
 
6045
	ac_cv_prog_f77_g=no
6046
fi
6047
 
6048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049
 
6050
fi
6051
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6052
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6053
if test "$ac_test_FFLAGS" = set; then
6054
  FFLAGS=$ac_save_FFLAGS
6055
elif test $ac_cv_prog_f77_g = yes; then
6056
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6057
    FFLAGS="-g -O2"
6058
  else
6059
    FFLAGS="-g"
6060
  fi
6061
else
6062
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6063
    FFLAGS="-O2"
6064
  else
6065
    FFLAGS=
6066
  fi
6067
fi
6068
 
6069
G77=`test $ac_compiler_gnu = yes && echo yes`
6070
ac_ext=c
6071
ac_cpp='$CPP $CPPFLAGS'
6072
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
 
6076
 
6077
 
6078
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6079
 
6080
# find the maximum length of command line arguments
6081
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6082
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6083
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6084
  echo $ECHO_N "(cached) $ECHO_C" >&6
6085
else
6086
    i=0
6087
  teststring="ABCD"
6088
 
6089
  case $build_os in
6090
  msdosdjgpp*)
6091
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6092
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6093
    # during glob expansion).  Even if it were fixed, the result of this
6094
    # check would be larger than it should be.
6095
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6096
    ;;
6097
 
6098
  gnu*)
6099
    # Under GNU Hurd, this test is not required because there is
6100
    # no limit to the length of command line arguments.
6101
    # Libtool will interpret -1 as no limit whatsoever
6102
    lt_cv_sys_max_cmd_len=-1;
6103
    ;;
6104
 
6105
  cygwin* | mingw*)
6106
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6107
    # about 5 minutes as the teststring grows exponentially.
6108
    # Worse, since 9x/ME are not pre-emptively multitasking,
6109
    # you end up with a "frozen" computer, even though with patience
6110
    # the test eventually succeeds (with a max line length of 256k).
6111
    # Instead, let's just punt: use the minimum linelength reported by
6112
    # all of the supported platforms: 8192 (on NT/2K/XP).
6113
    lt_cv_sys_max_cmd_len=8192;
6114
    ;;
6115
 
6116
  amigaos*)
6117
    # On AmigaOS with pdksh, this test takes hours, literally.
6118
    # So we just punt and use a minimum line length of 8192.
6119
    lt_cv_sys_max_cmd_len=8192;
6120
    ;;
6121
 
6122
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6123
    # This has been around since 386BSD, at least.  Likely further.
6124
    if test -x /sbin/sysctl; then
6125
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6126
    elif test -x /usr/sbin/sysctl; then
6127
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6128
    else
6129
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6130
    fi
6131
    # And add a safety zone
6132
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6133
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6134
    ;;
6135
 
6136
  interix*)
6137
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6138
    lt_cv_sys_max_cmd_len=196608
6139
    ;;
6140
 
6141
  osf*)
6142
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6143
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6144
    # nice to cause kernel panics so lets avoid the loop below.
6145
    # First set a reasonable default.
6146
    lt_cv_sys_max_cmd_len=16384
6147
    #
6148
    if test -x /sbin/sysconfig; then
6149
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6150
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6151
      esac
6152
    fi
6153
    ;;
6154
  sco3.2v5*)
6155
    lt_cv_sys_max_cmd_len=102400
6156
    ;;
6157
  sysv5* | sco5v6* | sysv4.2uw2*)
6158
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6159
    if test -n "$kargmax"; then
6160
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6161
    else
6162
      lt_cv_sys_max_cmd_len=32768
6163
    fi
6164
    ;;
6165
  *)
6166
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6167
    if test -n "$lt_cv_sys_max_cmd_len"; then
6168
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6169
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6170
    else
6171
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6172
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6173
	       = "XX$teststring") >/dev/null 2>&1 &&
6174
	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6175
	      lt_cv_sys_max_cmd_len=$new_result &&
6176
	      test $i != 17 # 1/2 MB should be enough
6177
      do
6178
        i=`expr $i + 1`
6179
        teststring=$teststring$teststring
6180
      done
6181
      teststring=
6182
      # Add a significant safety factor because C++ compilers can tack on massive
6183
      # amounts of additional arguments before passing them to the linker.
6184
      # It appears as though 1/2 is a usable value.
6185
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6186
    fi
6187
    ;;
6188
  esac
6189
 
6190
fi
6191
 
6192
if test -n $lt_cv_sys_max_cmd_len ; then
6193
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6194
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6195
else
6196
  { echo "$as_me:$LINENO: result: none" >&5
6197
echo "${ECHO_T}none" >&6; }
6198
fi
6199
 
6200
 
6201
 
6202
 
6203
 
6204
# Check for command to grab the raw symbol name followed by C symbol from nm.
6205
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6206
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6207
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6208
  echo $ECHO_N "(cached) $ECHO_C" >&6
6209
else
6210
 
6211
# These are sane defaults that work on at least a few old systems.
6212
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6213
 
6214
# Character class describing NM global symbol codes.
6215
symcode='[BCDEGRST]'
6216
 
6217
# Regexp to match symbols that can be accessed directly from C.
6218
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6219
 
6220
# Transform an extracted symbol line into a proper C declaration
6221
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6222
 
6223
# Transform an extracted symbol line into symbol name and symbol address
6224
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6225
 
6226
# Define system-specific variables.
6227
case $host_os in
6228
aix*)
6229
  symcode='[BCDT]'
6230
  ;;
6231
cygwin* | mingw* | pw32*)
6232
  symcode='[ABCDGISTW]'
6233
  ;;
6234
hpux*) # Its linker distinguishes data from code symbols
6235
  if test "$host_cpu" = ia64; then
6236
    symcode='[ABCDEGRST]'
6237
  fi
6238
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6239
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6240
  ;;
6241
linux* | k*bsd*-gnu)
6242
  if test "$host_cpu" = ia64; then
6243
    symcode='[ABCDGIRSTW]'
6244
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6246
  fi
6247
  ;;
6248
irix* | nonstopux*)
6249
  symcode='[BCDEGRST]'
6250
  ;;
6251
osf*)
6252
  symcode='[BCDEGQRST]'
6253
  ;;
6254
solaris*)
6255
  symcode='[BDRT]'
6256
  ;;
6257
sco3.2v5*)
6258
  symcode='[DT]'
6259
  ;;
6260
sysv4.2uw2*)
6261
  symcode='[DT]'
6262
  ;;
6263
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6264
  symcode='[ABDT]'
6265
  ;;
6266
sysv4)
6267
  symcode='[DFNSTU]'
6268
  ;;
6269
esac
6270
 
6271
# Handle CRLF in mingw tool chain
6272
opt_cr=
6273
case $build_os in
6274
mingw*)
6275
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6276
  ;;
6277
esac
6278
 
6279
# If we're using GNU nm, then use its standard symbol codes.
6280
case `$NM -V 2>&1` in
6281
*GNU* | *'with BFD'*)
6282
  symcode='[ABCDGIRSTW]' ;;
6283
esac
6284
 
6285
# Try without a prefix undercore, then with it.
6286
for ac_symprfx in "" "_"; do
6287
 
6288
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6289
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6290
 
6291
  # Write the raw and C identifiers.
6292
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6293
 
6294
  # Check to see that the pipe works correctly.
6295
  pipe_works=no
6296
 
6297
  rm -f conftest*
6298
  cat > conftest.$ac_ext <<EOF
6299
#ifdef __cplusplus
6300
extern "C" {
6301
#endif
6302
char nm_test_var;
6303
void nm_test_func(){}
6304
#ifdef __cplusplus
6305
}
6306
#endif
6307
int main(){nm_test_var='a';nm_test_func();return(0);}
6308
EOF
6309
 
6310
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311
  (eval $ac_compile) 2>&5
6312
  ac_status=$?
6313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314
  (exit $ac_status); }; then
6315
    # Now try to grab the symbols.
6316
    nlist=conftest.nm
6317
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6318
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6319
  ac_status=$?
6320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321
  (exit $ac_status); } && test -s "$nlist"; then
6322
      # Try sorting and uniquifying the output.
6323
      if sort "$nlist" | uniq > "$nlist"T; then
6324
	mv -f "$nlist"T "$nlist"
6325
      else
6326
	rm -f "$nlist"T
6327
      fi
6328
 
6329
      # Make sure that we snagged all the symbols we need.
6330
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6331
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6332
	  cat <<EOF > conftest.$ac_ext
6333
#ifdef __cplusplus
6334
extern "C" {
6335
#endif
6336
 
6337
EOF
6338
	  # Now generate the symbol file.
6339
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6340
 
6341
	  cat <<EOF >> conftest.$ac_ext
6342
#if defined (__STDC__) && __STDC__
6343
# define lt_ptr_t void *
6344
#else
6345
# define lt_ptr_t char *
6346
# define const
6347
#endif
6348
 
6349
/* The mapping between symbol names and symbols. */
6350
const struct {
6351
  const char *name;
6352
  lt_ptr_t address;
6353
}
6354
lt_preloaded_symbols[] =
6355
{
6356
EOF
6357
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6358
	  cat <<\EOF >> conftest.$ac_ext
6359
  {0, (lt_ptr_t) 0}
6360
};
6361
 
6362
#ifdef __cplusplus
6363
}
6364
#endif
6365
EOF
6366
	  # Now try linking the two files.
6367
	  mv conftest.$ac_objext conftstm.$ac_objext
6368
	  lt_save_LIBS="$LIBS"
6369
	  lt_save_CFLAGS="$CFLAGS"
6370
	  LIBS="conftstm.$ac_objext"
6371
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6372
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373
  (eval $ac_link) 2>&5
6374
  ac_status=$?
6375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6377
	    pipe_works=yes
6378
	  fi
6379
	  LIBS="$lt_save_LIBS"
6380
	  CFLAGS="$lt_save_CFLAGS"
6381
	else
6382
	  echo "cannot find nm_test_func in $nlist" >&5
6383
	fi
6384
      else
6385
	echo "cannot find nm_test_var in $nlist" >&5
6386
      fi
6387
    else
6388
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6389
    fi
6390
  else
6391
    echo "$progname: failed program was:" >&5
6392
    cat conftest.$ac_ext >&5
6393
  fi
6394
  rm -f conftest* conftst*
6395
 
6396
  # Do not use the global_symbol_pipe unless it works.
6397
  if test "$pipe_works" = yes; then
6398
    break
6399
  else
6400
    lt_cv_sys_global_symbol_pipe=
6401
  fi
6402
done
6403
 
6404
fi
6405
 
6406
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6407
  lt_cv_sys_global_symbol_to_cdecl=
6408
fi
6409
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6410
  { echo "$as_me:$LINENO: result: failed" >&5
6411
echo "${ECHO_T}failed" >&6; }
6412
else
6413
  { echo "$as_me:$LINENO: result: ok" >&5
6414
echo "${ECHO_T}ok" >&6; }
6415
fi
6416
 
6417
{ echo "$as_me:$LINENO: checking for objdir" >&5
6418
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6419
if test "${lt_cv_objdir+set}" = set; then
6420
  echo $ECHO_N "(cached) $ECHO_C" >&6
6421
else
6422
  rm -f .libs 2>/dev/null
6423
mkdir .libs 2>/dev/null
6424
if test -d .libs; then
6425
  lt_cv_objdir=.libs
6426
else
6427
  # MS-DOS does not allow filenames that begin with a dot.
6428
  lt_cv_objdir=_libs
6429
fi
6430
rmdir .libs 2>/dev/null
6431
fi
6432
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6433
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6434
objdir=$lt_cv_objdir
6435
 
6436
 
6437
 
6438
 
6439
 
6440
case $host_os in
6441
aix3*)
6442
  # AIX sometimes has problems with the GCC collect2 program.  For some
6443
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6444
  # vanish in a puff of smoke.
6445
  if test "X${COLLECT_NAMES+set}" != Xset; then
6446
    COLLECT_NAMES=
6447
    export COLLECT_NAMES
6448
  fi
6449
  ;;
6450
esac
6451
 
6452
# Sed substitution that helps us do robust quoting.  It backslashifies
6453
# metacharacters that are still active within double-quoted strings.
6454
Xsed='sed -e 1s/^X//'
6455
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6456
 
6457
# Same as above, but do not quote variable references.
6458
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6459
 
6460
# Sed substitution to delay expansion of an escaped shell variable in a
6461
# double_quote_subst'ed string.
6462
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6463
 
6464
# Sed substitution to avoid accidental globbing in evaled expressions
6465
no_glob_subst='s/\*/\\\*/g'
6466
 
6467
# Constants:
6468
rm="rm -f"
6469
 
6470
# Global variables:
6471
default_ofile=libtool
6472
can_build_shared=yes
6473
 
6474
# All known linkers require a `.a' archive for static linking (except MSVC,
6475
# which needs '.lib').
6476
libext=a
6477
ltmain="$ac_aux_dir/ltmain.sh"
6478
ofile="$default_ofile"
6479
with_gnu_ld="$lt_cv_prog_gnu_ld"
6480
 
6481
if test -n "$ac_tool_prefix"; then
6482
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6483
set dummy ${ac_tool_prefix}ar; ac_word=$2
6484
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6485
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486
if test "${ac_cv_prog_AR+set}" = set; then
6487
  echo $ECHO_N "(cached) $ECHO_C" >&6
6488
else
6489
  if test -n "$AR"; then
6490
  ac_cv_prog_AR="$AR" # Let the user override the test.
6491
else
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493
for as_dir in $PATH
6494
do
6495
  IFS=$as_save_IFS
6496
  test -z "$as_dir" && as_dir=.
6497
  for ac_exec_ext in '' $ac_executable_extensions; do
6498
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6500
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501
    break 2
6502
  fi
6503
done
6504
done
6505
IFS=$as_save_IFS
6506
 
6507
fi
6508
fi
6509
AR=$ac_cv_prog_AR
6510
if test -n "$AR"; then
6511
  { echo "$as_me:$LINENO: result: $AR" >&5
6512
echo "${ECHO_T}$AR" >&6; }
6513
else
6514
  { echo "$as_me:$LINENO: result: no" >&5
6515
echo "${ECHO_T}no" >&6; }
6516
fi
6517
 
6518
 
6519
fi
6520
if test -z "$ac_cv_prog_AR"; then
6521
  ac_ct_AR=$AR
6522
  # Extract the first word of "ar", so it can be a program name with args.
6523
set dummy ar; ac_word=$2
6524
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6527
  echo $ECHO_N "(cached) $ECHO_C" >&6
6528
else
6529
  if test -n "$ac_ct_AR"; then
6530
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6531
else
6532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533
for as_dir in $PATH
6534
do
6535
  IFS=$as_save_IFS
6536
  test -z "$as_dir" && as_dir=.
6537
  for ac_exec_ext in '' $ac_executable_extensions; do
6538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539
    ac_cv_prog_ac_ct_AR="ar"
6540
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541
    break 2
6542
  fi
6543
done
6544
done
6545
IFS=$as_save_IFS
6546
 
6547
fi
6548
fi
6549
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6550
if test -n "$ac_ct_AR"; then
6551
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6552
echo "${ECHO_T}$ac_ct_AR" >&6; }
6553
else
6554
  { echo "$as_me:$LINENO: result: no" >&5
6555
echo "${ECHO_T}no" >&6; }
6556
fi
6557
 
6558
  if test "x$ac_ct_AR" = x; then
6559
    AR="false"
6560
  else
6561
    case $cross_compiling:$ac_tool_warned in
6562
yes:)
6563
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6564
whose name does not start with the host triplet.  If you think this
6565
configuration is useful to you, please write to autoconf@gnu.org." >&5
6566
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6567
whose name does not start with the host triplet.  If you think this
6568
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6569
ac_tool_warned=yes ;;
6570
esac
6571
    AR=$ac_ct_AR
6572
  fi
6573
else
6574
  AR="$ac_cv_prog_AR"
6575
fi
6576
 
6577
if test -n "$ac_tool_prefix"; then
6578
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6579
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6580
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6581
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582
if test "${ac_cv_prog_RANLIB+set}" = set; then
6583
  echo $ECHO_N "(cached) $ECHO_C" >&6
6584
else
6585
  if test -n "$RANLIB"; then
6586
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6587
else
6588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589
for as_dir in $PATH
6590
do
6591
  IFS=$as_save_IFS
6592
  test -z "$as_dir" && as_dir=.
6593
  for ac_exec_ext in '' $ac_executable_extensions; do
6594
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6596
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597
    break 2
6598
  fi
6599
done
6600
done
6601
IFS=$as_save_IFS
6602
 
6603
fi
6604
fi
6605
RANLIB=$ac_cv_prog_RANLIB
6606
if test -n "$RANLIB"; then
6607
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6608
echo "${ECHO_T}$RANLIB" >&6; }
6609
else
6610
  { echo "$as_me:$LINENO: result: no" >&5
6611
echo "${ECHO_T}no" >&6; }
6612
fi
6613
 
6614
 
6615
fi
6616
if test -z "$ac_cv_prog_RANLIB"; then
6617
  ac_ct_RANLIB=$RANLIB
6618
  # Extract the first word of "ranlib", so it can be a program name with args.
6619
set dummy ranlib; ac_word=$2
6620
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6623
  echo $ECHO_N "(cached) $ECHO_C" >&6
6624
else
6625
  if test -n "$ac_ct_RANLIB"; then
6626
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6627
else
6628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629
for as_dir in $PATH
6630
do
6631
  IFS=$as_save_IFS
6632
  test -z "$as_dir" && as_dir=.
6633
  for ac_exec_ext in '' $ac_executable_extensions; do
6634
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6636
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637
    break 2
6638
  fi
6639
done
6640
done
6641
IFS=$as_save_IFS
6642
 
6643
fi
6644
fi
6645
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6646
if test -n "$ac_ct_RANLIB"; then
6647
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6648
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6649
else
6650
  { echo "$as_me:$LINENO: result: no" >&5
6651
echo "${ECHO_T}no" >&6; }
6652
fi
6653
 
6654
  if test "x$ac_ct_RANLIB" = x; then
6655
    RANLIB=":"
6656
  else
6657
    case $cross_compiling:$ac_tool_warned in
6658
yes:)
6659
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6660
whose name does not start with the host triplet.  If you think this
6661
configuration is useful to you, please write to autoconf@gnu.org." >&5
6662
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6663
whose name does not start with the host triplet.  If you think this
6664
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6665
ac_tool_warned=yes ;;
6666
esac
6667
    RANLIB=$ac_ct_RANLIB
6668
  fi
6669
else
6670
  RANLIB="$ac_cv_prog_RANLIB"
6671
fi
6672
 
6673
if test -n "$ac_tool_prefix"; then
6674
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6675
set dummy ${ac_tool_prefix}strip; ac_word=$2
6676
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678
if test "${ac_cv_prog_STRIP+set}" = set; then
6679
  echo $ECHO_N "(cached) $ECHO_C" >&6
6680
else
6681
  if test -n "$STRIP"; then
6682
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6683
else
6684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685
for as_dir in $PATH
6686
do
6687
  IFS=$as_save_IFS
6688
  test -z "$as_dir" && as_dir=.
6689
  for ac_exec_ext in '' $ac_executable_extensions; do
6690
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6692
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693
    break 2
6694
  fi
6695
done
6696
done
6697
IFS=$as_save_IFS
6698
 
6699
fi
6700
fi
6701
STRIP=$ac_cv_prog_STRIP
6702
if test -n "$STRIP"; then
6703
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6704
echo "${ECHO_T}$STRIP" >&6; }
6705
else
6706
  { echo "$as_me:$LINENO: result: no" >&5
6707
echo "${ECHO_T}no" >&6; }
6708
fi
6709
 
6710
 
6711
fi
6712
if test -z "$ac_cv_prog_STRIP"; then
6713
  ac_ct_STRIP=$STRIP
6714
  # Extract the first word of "strip", so it can be a program name with args.
6715
set dummy strip; ac_word=$2
6716
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6719
  echo $ECHO_N "(cached) $ECHO_C" >&6
6720
else
6721
  if test -n "$ac_ct_STRIP"; then
6722
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6723
else
6724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725
for as_dir in $PATH
6726
do
6727
  IFS=$as_save_IFS
6728
  test -z "$as_dir" && as_dir=.
6729
  for ac_exec_ext in '' $ac_executable_extensions; do
6730
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731
    ac_cv_prog_ac_ct_STRIP="strip"
6732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733
    break 2
6734
  fi
6735
done
6736
done
6737
IFS=$as_save_IFS
6738
 
6739
fi
6740
fi
6741
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6742
if test -n "$ac_ct_STRIP"; then
6743
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6744
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6745
else
6746
  { echo "$as_me:$LINENO: result: no" >&5
6747
echo "${ECHO_T}no" >&6; }
6748
fi
6749
 
6750
  if test "x$ac_ct_STRIP" = x; then
6751
    STRIP=":"
6752
  else
6753
    case $cross_compiling:$ac_tool_warned in
6754
yes:)
6755
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6756
whose name does not start with the host triplet.  If you think this
6757
configuration is useful to you, please write to autoconf@gnu.org." >&5
6758
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6759
whose name does not start with the host triplet.  If you think this
6760
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6761
ac_tool_warned=yes ;;
6762
esac
6763
    STRIP=$ac_ct_STRIP
6764
  fi
6765
else
6766
  STRIP="$ac_cv_prog_STRIP"
6767
fi
6768
 
6769
 
6770
old_CC="$CC"
6771
old_CFLAGS="$CFLAGS"
6772
 
6773
# Set sane defaults for various variables
6774
test -z "$AR" && AR=ar
6775
test -z "$AR_FLAGS" && AR_FLAGS=cru
6776
test -z "$AS" && AS=as
6777
test -z "$CC" && CC=cc
6778
test -z "$LTCC" && LTCC=$CC
6779
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6780
test -z "$DLLTOOL" && DLLTOOL=dlltool
6781
test -z "$LD" && LD=ld
6782
test -z "$LN_S" && LN_S="ln -s"
6783
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6784
test -z "$NM" && NM=nm
6785
test -z "$SED" && SED=sed
6786
test -z "$OBJDUMP" && OBJDUMP=objdump
6787
test -z "$RANLIB" && RANLIB=:
6788
test -z "$STRIP" && STRIP=:
6789
test -z "$ac_objext" && ac_objext=o
6790
 
6791
# Determine commands to create old-style static archives.
6792
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6793
old_postinstall_cmds='chmod 644 $oldlib'
6794
old_postuninstall_cmds=
6795
 
6796
if test -n "$RANLIB"; then
6797
  case $host_os in
6798
  openbsd*)
6799
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6800
    ;;
6801
  *)
6802
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6803
    ;;
6804
  esac
6805
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6806
fi
6807
 
6808
for cc_temp in $compiler""; do
6809
  case $cc_temp in
6810
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6811
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6812
    \-*) ;;
6813
    *) break;;
6814
  esac
6815
done
6816
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6817
 
6818
 
6819
# Only perform the check for file, if the check method requires it
6820
case $deplibs_check_method in
6821
file_magic*)
6822
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6823
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6824
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6825
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6826
  echo $ECHO_N "(cached) $ECHO_C" >&6
6827
else
6828
  case $MAGIC_CMD in
6829
[\\/*] |  ?:[\\/]*)
6830
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6831
  ;;
6832
*)
6833
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6834
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6835
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6836
  for ac_dir in $ac_dummy; do
6837
    IFS="$lt_save_ifs"
6838
    test -z "$ac_dir" && ac_dir=.
6839
    if test -f $ac_dir/${ac_tool_prefix}file; then
6840
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6841
      if test -n "$file_magic_test_file"; then
6842
	case $deplibs_check_method in
6843
	"file_magic "*)
6844
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6845
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6846
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6847
	    $EGREP "$file_magic_regex" > /dev/null; then
6848
	    :
6849
	  else
6850
	    cat <<EOF 1>&2
6851
 
6852
*** Warning: the command libtool uses to detect shared libraries,
6853
*** $file_magic_cmd, produces output that libtool cannot recognize.
6854
*** The result is that libtool may fail to recognize shared libraries
6855
*** as such.  This will affect the creation of libtool libraries that
6856
*** depend on shared libraries, but programs linked with such libtool
6857
*** libraries will work regardless of this problem.  Nevertheless, you
6858
*** may want to report the problem to your system manager and/or to
6859
*** bug-libtool@gnu.org
6860
 
6861
EOF
6862
	  fi ;;
6863
	esac
6864
      fi
6865
      break
6866
    fi
6867
  done
6868
  IFS="$lt_save_ifs"
6869
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6870
  ;;
6871
esac
6872
fi
6873
 
6874
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6875
if test -n "$MAGIC_CMD"; then
6876
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6877
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6878
else
6879
  { echo "$as_me:$LINENO: result: no" >&5
6880
echo "${ECHO_T}no" >&6; }
6881
fi
6882
 
6883
if test -z "$lt_cv_path_MAGIC_CMD"; then
6884
  if test -n "$ac_tool_prefix"; then
6885
    { echo "$as_me:$LINENO: checking for file" >&5
6886
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6887
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6888
  echo $ECHO_N "(cached) $ECHO_C" >&6
6889
else
6890
  case $MAGIC_CMD in
6891
[\\/*] |  ?:[\\/]*)
6892
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6893
  ;;
6894
*)
6895
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6896
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6897
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6898
  for ac_dir in $ac_dummy; do
6899
    IFS="$lt_save_ifs"
6900
    test -z "$ac_dir" && ac_dir=.
6901
    if test -f $ac_dir/file; then
6902
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6903
      if test -n "$file_magic_test_file"; then
6904
	case $deplibs_check_method in
6905
	"file_magic "*)
6906
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6907
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6908
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6909
	    $EGREP "$file_magic_regex" > /dev/null; then
6910
	    :
6911
	  else
6912
	    cat <<EOF 1>&2
6913
 
6914
*** Warning: the command libtool uses to detect shared libraries,
6915
*** $file_magic_cmd, produces output that libtool cannot recognize.
6916
*** The result is that libtool may fail to recognize shared libraries
6917
*** as such.  This will affect the creation of libtool libraries that
6918
*** depend on shared libraries, but programs linked with such libtool
6919
*** libraries will work regardless of this problem.  Nevertheless, you
6920
*** may want to report the problem to your system manager and/or to
6921
*** bug-libtool@gnu.org
6922
 
6923
EOF
6924
	  fi ;;
6925
	esac
6926
      fi
6927
      break
6928
    fi
6929
  done
6930
  IFS="$lt_save_ifs"
6931
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6932
  ;;
6933
esac
6934
fi
6935
 
6936
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6937
if test -n "$MAGIC_CMD"; then
6938
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6939
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6940
else
6941
  { echo "$as_me:$LINENO: result: no" >&5
6942
echo "${ECHO_T}no" >&6; }
6943
fi
6944
 
6945
  else
6946
    MAGIC_CMD=:
6947
  fi
6948
fi
6949
 
6950
  fi
6951
  ;;
6952
esac
6953
 
6954
enable_dlopen=no
6955
enable_win32_dll=no
6956
 
6957
# Check whether --enable-libtool-lock was given.
6958
if test "${enable_libtool_lock+set}" = set; then
6959
  enableval=$enable_libtool_lock; 
6960
fi
6961
 
6962
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6963
 
6964
 
6965
# Check whether --with-pic was given.
6966
if test "${with_pic+set}" = set; then
6967
  withval=$with_pic; pic_mode="$withval"
6968
else
6969
  pic_mode=default
6970
fi
6971
 
6972
test -z "$pic_mode" && pic_mode=default
6973
 
6974
# Use C for the default configuration in the libtool script
6975
tagname=
6976
lt_save_CC="$CC"
6977
ac_ext=c
6978
ac_cpp='$CPP $CPPFLAGS'
6979
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982
 
6983
 
6984
# Source file extension for C test sources.
6985
ac_ext=c
6986
 
6987
# Object file extension for compiled C test sources.
6988
objext=o
6989
objext=$objext
6990
 
6991
# Code to be used in simple compile tests
6992
lt_simple_compile_test_code="int some_variable = 0;"
6993
 
6994
# Code to be used in simple link tests
6995
lt_simple_link_test_code='int main(){return(0);}'
6996
 
6997
 
6998
# If no C compiler was specified, use CC.
6999
LTCC=${LTCC-"$CC"}
7000
 
7001
# If no C compiler flags were specified, use CFLAGS.
7002
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7003
 
7004
# Allow CC to be a program name with arguments.
7005
compiler=$CC
7006
 
7007
 
7008
# save warnings/boilerplate of simple test code
7009
ac_outfile=conftest.$ac_objext
7010
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7011
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7012
_lt_compiler_boilerplate=`cat conftest.err`
7013
$rm conftest*
7014
 
7015
ac_outfile=conftest.$ac_objext
7016
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7017
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7018
_lt_linker_boilerplate=`cat conftest.err`
7019
$rm conftest*
7020
 
7021
 
7022
## CAVEAT EMPTOR:
7023
## There is no encapsulation within the following macros, do not change
7024
## the running order or otherwise move them around unless you know exactly
7025
## what you are doing...
7026
 
7027
lt_prog_compiler_no_builtin_flag=
7028
 
7029
if test "$GCC" = yes; then
7030
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7031
 
7032
 
7033
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7034
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7035
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7036
  echo $ECHO_N "(cached) $ECHO_C" >&6
7037
else
7038
  lt_cv_prog_compiler_rtti_exceptions=no
7039
  ac_outfile=conftest.$ac_objext
7040
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7041
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7042
   # Insert the option either (1) after the last *FLAGS variable, or
7043
   # (2) before a word containing "conftest.", or (3) at the end.
7044
   # Note that $ac_compile itself does not contain backslashes and begins
7045
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7046
   # The option is referenced via a variable to avoid confusing sed.
7047
   lt_compile=`echo "$ac_compile" | $SED \
7048
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7049
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050
   -e 's:$: $lt_compiler_flag:'`
7051
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7052
   (eval "$lt_compile" 2>conftest.err)
7053
   ac_status=$?
7054
   cat conftest.err >&5
7055
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7056
   if (exit $ac_status) && test -s "$ac_outfile"; then
7057
     # The compiler can only warn and ignore the option if not recognized
7058
     # So say no if there are warnings other than the usual output.
7059
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7060
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7061
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7062
       lt_cv_prog_compiler_rtti_exceptions=yes
7063
     fi
7064
   fi
7065
   $rm conftest*
7066
 
7067
fi
7068
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7069
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7070
 
7071
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7072
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7073
else
7074
    :
7075
fi
7076
 
7077
fi
7078
 
7079
lt_prog_compiler_wl=
7080
lt_prog_compiler_pic=
7081
lt_prog_compiler_static=
7082
 
7083
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7084
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7085
 
7086
  if test "$GCC" = yes; then
7087
    lt_prog_compiler_wl='-Wl,'
7088
    lt_prog_compiler_static='-static'
7089
 
7090
    case $host_os in
7091
      aix*)
7092
      # All AIX code is PIC.
7093
      if test "$host_cpu" = ia64; then
7094
	# AIX 5 now supports IA64 processor
7095
	lt_prog_compiler_static='-Bstatic'
7096
      fi
7097
      ;;
7098
 
7099
    amigaos*)
7100
      # FIXME: we need at least 68020 code to build shared libraries, but
7101
      # adding the `-m68020' flag to GCC prevents building anything better,
7102
      # like `-m68040'.
7103
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7104
      ;;
7105
 
7106
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7107
      # PIC is the default for these OSes.
7108
      ;;
7109
 
7110
    mingw* | cygwin* | pw32* | os2*)
7111
      # This hack is so that the source file can tell whether it is being
7112
      # built for inclusion in a dll (and should export symbols for example).
7113
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7114
      # (--disable-auto-import) libraries
7115
      lt_prog_compiler_pic='-DDLL_EXPORT'
7116
      ;;
7117
 
7118
    darwin* | rhapsody*)
7119
      # PIC is the default on this platform
7120
      # Common symbols not allowed in MH_DYLIB files
7121
      lt_prog_compiler_pic='-fno-common'
7122
      ;;
7123
 
7124
    interix[3-9]*)
7125
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7126
      # Instead, we relocate shared libraries at runtime.
7127
      ;;
7128
 
7129
    msdosdjgpp*)
7130
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7131
      # on systems that don't support them.
7132
      lt_prog_compiler_can_build_shared=no
7133
      enable_shared=no
7134
      ;;
7135
 
7136
    sysv4*MP*)
7137
      if test -d /usr/nec; then
7138
	lt_prog_compiler_pic=-Kconform_pic
7139
      fi
7140
      ;;
7141
 
7142
    hpux*)
7143
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7144
      # not for PA HP-UX.
7145
      case $host_cpu in
7146
      hppa*64*|ia64*)
7147
	# +Z the default
7148
	;;
7149
      *)
7150
	lt_prog_compiler_pic='-fPIC'
7151
	;;
7152
      esac
7153
      ;;
7154
 
7155
    *)
7156
      lt_prog_compiler_pic='-fPIC'
7157
      ;;
7158
    esac
7159
  else
7160
    # PORTME Check for flag to pass linker flags through the system compiler.
7161
    case $host_os in
7162
    aix*)
7163
      lt_prog_compiler_wl='-Wl,'
7164
      if test "$host_cpu" = ia64; then
7165
	# AIX 5 now supports IA64 processor
7166
	lt_prog_compiler_static='-Bstatic'
7167
      else
7168
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7169
      fi
7170
      ;;
7171
      darwin*)
7172
        # PIC is the default on this platform
7173
        # Common symbols not allowed in MH_DYLIB files
7174
       case $cc_basename in
7175
         xlc*)
7176
         lt_prog_compiler_pic='-qnocommon'
7177
         lt_prog_compiler_wl='-Wl,'
7178
         ;;
7179
       esac
7180
       ;;
7181
 
7182
    mingw* | cygwin* | pw32* | os2*)
7183
      # This hack is so that the source file can tell whether it is being
7184
      # built for inclusion in a dll (and should export symbols for example).
7185
      lt_prog_compiler_pic='-DDLL_EXPORT'
7186
      ;;
7187
 
7188
    hpux9* | hpux10* | hpux11*)
7189
      lt_prog_compiler_wl='-Wl,'
7190
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7191
      # not for PA HP-UX.
7192
      case $host_cpu in
7193
      hppa*64*|ia64*)
7194
	# +Z the default
7195
	;;
7196
      *)
7197
	lt_prog_compiler_pic='+Z'
7198
	;;
7199
      esac
7200
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7201
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7202
      ;;
7203
 
7204
    irix5* | irix6* | nonstopux*)
7205
      lt_prog_compiler_wl='-Wl,'
7206
      # PIC (with -KPIC) is the default.
7207
      lt_prog_compiler_static='-non_shared'
7208
      ;;
7209
 
7210
    newsos6)
7211
      lt_prog_compiler_pic='-KPIC'
7212
      lt_prog_compiler_static='-Bstatic'
7213
      ;;
7214
 
7215
    linux* | k*bsd*-gnu)
7216
      case $cc_basename in
7217
      icc* | ecc*)
7218
	lt_prog_compiler_wl='-Wl,'
7219
	lt_prog_compiler_pic='-KPIC'
7220
	lt_prog_compiler_static='-static'
7221
        ;;
7222
      pgcc* | pgf77* | pgf90* | pgf95*)
7223
        # Portland Group compilers (*not* the Pentium gcc compiler,
7224
	# which looks to be a dead project)
7225
	lt_prog_compiler_wl='-Wl,'
7226
	lt_prog_compiler_pic='-fpic'
7227
	lt_prog_compiler_static='-Bstatic'
7228
        ;;
7229
      ccc*)
7230
        lt_prog_compiler_wl='-Wl,'
7231
        # All Alpha code is PIC.
7232
        lt_prog_compiler_static='-non_shared'
7233
        ;;
7234
      *)
7235
        case `$CC -V 2>&1 | sed 5q` in
7236
	*Sun\ C*)
7237
	  # Sun C 5.9
7238
	  lt_prog_compiler_pic='-KPIC'
7239
	  lt_prog_compiler_static='-Bstatic'
7240
	  lt_prog_compiler_wl='-Wl,'
7241
	  ;;
7242
	*Sun\ F*)
7243
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7244
	  lt_prog_compiler_pic='-KPIC'
7245
	  lt_prog_compiler_static='-Bstatic'
7246
	  lt_prog_compiler_wl=''
7247
	  ;;
7248
	esac
7249
	;;
7250
      esac
7251
      ;;
7252
 
7253
    osf3* | osf4* | osf5*)
7254
      lt_prog_compiler_wl='-Wl,'
7255
      # All OSF/1 code is PIC.
7256
      lt_prog_compiler_static='-non_shared'
7257
      ;;
7258
 
7259
    rdos*)
7260
      lt_prog_compiler_static='-non_shared'
7261
      ;;
7262
 
7263
    solaris*)
7264
      lt_prog_compiler_pic='-KPIC'
7265
      lt_prog_compiler_static='-Bstatic'
7266
      case $cc_basename in
7267
      f77* | f90* | f95*)
7268
	lt_prog_compiler_wl='-Qoption ld ';;
7269
      *)
7270
	lt_prog_compiler_wl='-Wl,';;
7271
      esac
7272
      ;;
7273
 
7274
    sunos4*)
7275
      lt_prog_compiler_wl='-Qoption ld '
7276
      lt_prog_compiler_pic='-PIC'
7277
      lt_prog_compiler_static='-Bstatic'
7278
      ;;
7279
 
7280
    sysv4 | sysv4.2uw2* | sysv4.3*)
7281
      lt_prog_compiler_wl='-Wl,'
7282
      lt_prog_compiler_pic='-KPIC'
7283
      lt_prog_compiler_static='-Bstatic'
7284
      ;;
7285
 
7286
    sysv4*MP*)
7287
      if test -d /usr/nec ;then
7288
	lt_prog_compiler_pic='-Kconform_pic'
7289
	lt_prog_compiler_static='-Bstatic'
7290
      fi
7291
      ;;
7292
 
7293
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7294
      lt_prog_compiler_wl='-Wl,'
7295
      lt_prog_compiler_pic='-KPIC'
7296
      lt_prog_compiler_static='-Bstatic'
7297
      ;;
7298
 
7299
    unicos*)
7300
      lt_prog_compiler_wl='-Wl,'
7301
      lt_prog_compiler_can_build_shared=no
7302
      ;;
7303
 
7304
    uts4*)
7305
      lt_prog_compiler_pic='-pic'
7306
      lt_prog_compiler_static='-Bstatic'
7307
      ;;
7308
 
7309
    *)
7310
      lt_prog_compiler_can_build_shared=no
7311
      ;;
7312
    esac
7313
  fi
7314
 
7315
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7316
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7317
 
7318
#
7319
# Check to make sure the PIC flag actually works.
7320
#
7321
if test -n "$lt_prog_compiler_pic"; then
7322
 
7323
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7324
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7325
if test "${lt_prog_compiler_pic_works+set}" = set; then
7326
  echo $ECHO_N "(cached) $ECHO_C" >&6
7327
else
7328
  lt_prog_compiler_pic_works=no
7329
  ac_outfile=conftest.$ac_objext
7330
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7331
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7332
   # Insert the option either (1) after the last *FLAGS variable, or
7333
   # (2) before a word containing "conftest.", or (3) at the end.
7334
   # Note that $ac_compile itself does not contain backslashes and begins
7335
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7336
   # The option is referenced via a variable to avoid confusing sed.
7337
   lt_compile=`echo "$ac_compile" | $SED \
7338
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7339
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7340
   -e 's:$: $lt_compiler_flag:'`
7341
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7342
   (eval "$lt_compile" 2>conftest.err)
7343
   ac_status=$?
7344
   cat conftest.err >&5
7345
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7346
   if (exit $ac_status) && test -s "$ac_outfile"; then
7347
     # The compiler can only warn and ignore the option if not recognized
7348
     # So say no if there are warnings other than the usual output.
7349
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7350
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7351
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7352
       lt_prog_compiler_pic_works=yes
7353
     fi
7354
   fi
7355
   $rm conftest*
7356
 
7357
fi
7358
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7359
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7360
 
7361
if test x"$lt_prog_compiler_pic_works" = xyes; then
7362
    case $lt_prog_compiler_pic in
7363
     "" | " "*) ;;
7364
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7365
     esac
7366
else
7367
    lt_prog_compiler_pic=
7368
     lt_prog_compiler_can_build_shared=no
7369
fi
7370
 
7371
fi
7372
case $host_os in
7373
  # For platforms which do not support PIC, -DPIC is meaningless:
7374
  *djgpp*)
7375
    lt_prog_compiler_pic=
7376
    ;;
7377
  *)
7378
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7379
    ;;
7380
esac
7381
 
7382
#
7383
# Check to make sure the static flag actually works.
7384
#
7385
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7386
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7387
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7388
if test "${lt_prog_compiler_static_works+set}" = set; then
7389
  echo $ECHO_N "(cached) $ECHO_C" >&6
7390
else
7391
  lt_prog_compiler_static_works=no
7392
   save_LDFLAGS="$LDFLAGS"
7393
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7394
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7395
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7396
     # The linker can only warn and ignore the option if not recognized
7397
     # So say no if there are warnings
7398
     if test -s conftest.err; then
7399
       # Append any errors to the config.log.
7400
       cat conftest.err 1>&5
7401
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7402
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7403
       if diff conftest.exp conftest.er2 >/dev/null; then
7404
         lt_prog_compiler_static_works=yes
7405
       fi
7406
     else
7407
       lt_prog_compiler_static_works=yes
7408
     fi
7409
   fi
7410
   $rm conftest*
7411
   LDFLAGS="$save_LDFLAGS"
7412
 
7413
fi
7414
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7415
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7416
 
7417
if test x"$lt_prog_compiler_static_works" = xyes; then
7418
    :
7419
else
7420
    lt_prog_compiler_static=
7421
fi
7422
 
7423
 
7424
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7425
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7426
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7427
  echo $ECHO_N "(cached) $ECHO_C" >&6
7428
else
7429
  lt_cv_prog_compiler_c_o=no
7430
   $rm -r conftest 2>/dev/null
7431
   mkdir conftest
7432
   cd conftest
7433
   mkdir out
7434
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7435
 
7436
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7437
   # Insert the option either (1) after the last *FLAGS variable, or
7438
   # (2) before a word containing "conftest.", or (3) at the end.
7439
   # Note that $ac_compile itself does not contain backslashes and begins
7440
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7441
   lt_compile=`echo "$ac_compile" | $SED \
7442
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7443
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7444
   -e 's:$: $lt_compiler_flag:'`
7445
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7446
   (eval "$lt_compile" 2>out/conftest.err)
7447
   ac_status=$?
7448
   cat out/conftest.err >&5
7449
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7450
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7451
   then
7452
     # The compiler can only warn and ignore the option if not recognized
7453
     # So say no if there are warnings
7454
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7455
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7456
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7457
       lt_cv_prog_compiler_c_o=yes
7458
     fi
7459
   fi
7460
   chmod u+w . 2>&5
7461
   $rm conftest*
7462
   # SGI C++ compiler will create directory out/ii_files/ for
7463
   # template instantiation
7464
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7465
   $rm out/* && rmdir out
7466
   cd ..
7467
   rmdir conftest
7468
   $rm conftest*
7469
 
7470
fi
7471
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7472
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7473
 
7474
 
7475
hard_links="nottested"
7476
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7477
  # do not overwrite the value of need_locks provided by the user
7478
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7479
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7480
  hard_links=yes
7481
  $rm conftest*
7482
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7483
  touch conftest.a
7484
  ln conftest.a conftest.b 2>&5 || hard_links=no
7485
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7486
  { echo "$as_me:$LINENO: result: $hard_links" >&5
7487
echo "${ECHO_T}$hard_links" >&6; }
7488
  if test "$hard_links" = no; then
7489
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7490
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7491
    need_locks=warn
7492
  fi
7493
else
7494
  need_locks=no
7495
fi
7496
 
7497
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7498
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7499
 
7500
  runpath_var=
7501
  allow_undefined_flag=
7502
  enable_shared_with_static_runtimes=no
7503
  archive_cmds=
7504
  archive_expsym_cmds=
7505
  old_archive_From_new_cmds=
7506
  old_archive_from_expsyms_cmds=
7507
  export_dynamic_flag_spec=
7508
  whole_archive_flag_spec=
7509
  thread_safe_flag_spec=
7510
  hardcode_libdir_flag_spec=
7511
  hardcode_libdir_flag_spec_ld=
7512
  hardcode_libdir_separator=
7513
  hardcode_direct=no
7514
  hardcode_minus_L=no
7515
  hardcode_shlibpath_var=unsupported
7516
  link_all_deplibs=unknown
7517
  hardcode_automatic=no
7518
  module_cmds=
7519
  module_expsym_cmds=
7520
  always_export_symbols=no
7521
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7522
  # include_expsyms should be a list of space-separated symbols to be *always*
7523
  # included in the symbol list
7524
  include_expsyms=
7525
  # exclude_expsyms can be an extended regexp of symbols to exclude
7526
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7527
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7528
  # as well as any symbol that contains `d'.
7529
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7530
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7531
  # platforms (ab)use it in PIC code, but their linkers get confused if
7532
  # the symbol is explicitly referenced.  Since portable code cannot
7533
  # rely on this symbol name, it's probably fine to never include it in
7534
  # preloaded symbol tables.
7535
  extract_expsyms_cmds=
7536
  # Just being paranoid about ensuring that cc_basename is set.
7537
  for cc_temp in $compiler""; do
7538
  case $cc_temp in
7539
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7540
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7541
    \-*) ;;
7542
    *) break;;
7543
  esac
7544
done
7545
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7546
 
7547
  case $host_os in
7548
  cygwin* | mingw* | pw32*)
7549
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7550
    # When not using gcc, we currently assume that we are using
7551
    # Microsoft Visual C++.
7552
    if test "$GCC" != yes; then
7553
      with_gnu_ld=no
7554
    fi
7555
    ;;
7556
  interix*)
7557
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7558
    with_gnu_ld=yes
7559
    ;;
7560
  openbsd*)
7561
    with_gnu_ld=no
7562
    ;;
7563
  esac
7564
 
7565
  ld_shlibs=yes
7566
  if test "$with_gnu_ld" = yes; then
7567
    # If archive_cmds runs LD, not CC, wlarc should be empty
7568
    wlarc='${wl}'
7569
 
7570
    # Set some defaults for GNU ld with shared library support. These
7571
    # are reset later if shared libraries are not supported. Putting them
7572
    # here allows them to be overridden if necessary.
7573
    runpath_var=LD_RUN_PATH
7574
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7575
    export_dynamic_flag_spec='${wl}--export-dynamic'
7576
    # ancient GNU ld didn't support --whole-archive et. al.
7577
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7578
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7579
      else
7580
  	whole_archive_flag_spec=
7581
    fi
7582
    supports_anon_versioning=no
7583
    case `$LD -v 2>/dev/null` in
7584
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7585
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7586
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7587
      *\ 2.11.*) ;; # other 2.11 versions
7588
      *) supports_anon_versioning=yes ;;
7589
    esac
7590
 
7591
    # See if GNU ld supports shared libraries.
7592
    case $host_os in
7593
    aix3* | aix4* | aix5*)
7594
      # On AIX/PPC, the GNU linker is very broken
7595
      if test "$host_cpu" != ia64; then
7596
	ld_shlibs=no
7597
	cat <<EOF 1>&2
7598
 
7599
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7600
*** to be unable to reliably create shared libraries on AIX.
7601
*** Therefore, libtool is disabling shared libraries support.  If you
7602
*** really care for shared libraries, you may want to modify your PATH
7603
*** so that a non-GNU linker is found, and then restart.
7604
 
7605
EOF
7606
      fi
7607
      ;;
7608
 
7609
    amigaos*)
7610
      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)'
7611
      hardcode_libdir_flag_spec='-L$libdir'
7612
      hardcode_minus_L=yes
7613
 
7614
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7615
      # that the semantics of dynamic libraries on AmigaOS, at least up
7616
      # to version 4, is to share data among multiple programs linked
7617
      # with the same dynamic library.  Since this doesn't match the
7618
      # behavior of shared libraries on other platforms, we can't use
7619
      # them.
7620
      ld_shlibs=no
7621
      ;;
7622
 
7623
    beos*)
7624
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7625
	allow_undefined_flag=unsupported
7626
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7627
	# support --undefined.  This deserves some investigation.  FIXME
7628
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629
      else
7630
	ld_shlibs=no
7631
      fi
7632
      ;;
7633
 
7634
    cygwin* | mingw* | pw32*)
7635
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7636
      # as there is no search path for DLLs.
7637
      hardcode_libdir_flag_spec='-L$libdir'
7638
      allow_undefined_flag=unsupported
7639
      always_export_symbols=no
7640
      enable_shared_with_static_runtimes=yes
7641
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7642
 
7643
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7644
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7645
	# If the export-symbols file already is a .def file (1st line
7646
	# is EXPORTS), use it as is; otherwise, prepend...
7647
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7648
	  cp $export_symbols $output_objdir/$soname.def;
7649
	else
7650
	  echo EXPORTS > $output_objdir/$soname.def;
7651
	  cat $export_symbols >> $output_objdir/$soname.def;
7652
	fi~
7653
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7654
      else
7655
	ld_shlibs=no
7656
      fi
7657
      ;;
7658
 
7659
    interix[3-9]*)
7660
      hardcode_direct=no
7661
      hardcode_shlibpath_var=no
7662
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7663
      export_dynamic_flag_spec='${wl}-E'
7664
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7665
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7666
      # default) and relocated if they conflict, which is a slow very memory
7667
      # consuming and fragmenting process.  To avoid this, we pick a random,
7668
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7669
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7670
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7671
      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'
7672
      ;;
7673
 
7674
    gnu* | linux* | k*bsd*-gnu)
7675
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7676
	tmp_addflag=
7677
	case $cc_basename,$host_cpu in
7678
	pgcc*)				# Portland Group C compiler
7679
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7680
	  tmp_addflag=' $pic_flag'
7681
	  ;;
7682
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7683
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7684
	  tmp_addflag=' $pic_flag -Mnomain' ;;
7685
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7686
	  tmp_addflag=' -i_dynamic' ;;
7687
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7688
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7689
	ifc* | ifort*)			# Intel Fortran compiler
7690
	  tmp_addflag=' -nofor_main' ;;
7691
	esac
7692
	case `$CC -V 2>&1 | sed 5q` in
7693
	*Sun\ C*)			# Sun C 5.9
7694
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7695
	  tmp_sharedflag='-G' ;;
7696
	*Sun\ F*)			# Sun Fortran 8.3
7697
	  tmp_sharedflag='-G' ;;
7698
	*)
7699
	  tmp_sharedflag='-shared' ;;
7700
	esac
7701
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7702
 
7703
	if test $supports_anon_versioning = yes; then
7704
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7705
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7706
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7707
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7708
	fi
7709
	link_all_deplibs=no
7710
      else
7711
	ld_shlibs=no
7712
      fi
7713
      ;;
7714
 
7715
    netbsd* | netbsdelf*-gnu)
7716
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7717
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7718
	wlarc=
7719
      else
7720
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7722
      fi
7723
      ;;
7724
 
7725
    solaris*)
7726
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7727
	ld_shlibs=no
7728
	cat <<EOF 1>&2
7729
 
7730
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7731
*** create shared libraries on Solaris systems.  Therefore, libtool
7732
*** is disabling shared libraries support.  We urge you to upgrade GNU
7733
*** binutils to release 2.9.1 or newer.  Another option is to modify
7734
*** your PATH or compiler configuration so that the native linker is
7735
*** used, and then restart.
7736
 
7737
EOF
7738
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7739
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741
      else
7742
	ld_shlibs=no
7743
      fi
7744
      ;;
7745
 
7746
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7747
      case `$LD -v 2>&1` in
7748
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7749
	ld_shlibs=no
7750
	cat <<_LT_EOF 1>&2
7751
 
7752
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7753
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7754
*** is disabling shared libraries support.  We urge you to upgrade GNU
7755
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7756
*** your PATH or compiler configuration so that the native linker is
7757
*** used, and then restart.
7758
 
7759
_LT_EOF
7760
	;;
7761
	*)
7762
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7763
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7764
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7765
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7766
	  else
7767
	    ld_shlibs=no
7768
	  fi
7769
	;;
7770
      esac
7771
      ;;
7772
 
7773
    sunos4*)
7774
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7775
      wlarc=
7776
      hardcode_direct=yes
7777
      hardcode_shlibpath_var=no
7778
      ;;
7779
 
7780
    *)
7781
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7782
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7783
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7784
      else
7785
	ld_shlibs=no
7786
      fi
7787
      ;;
7788
    esac
7789
 
7790
    if test "$ld_shlibs" = no; then
7791
      runpath_var=
7792
      hardcode_libdir_flag_spec=
7793
      export_dynamic_flag_spec=
7794
      whole_archive_flag_spec=
7795
    fi
7796
  else
7797
    # PORTME fill in a description of your system's linker (not GNU ld)
7798
    case $host_os in
7799
    aix3*)
7800
      allow_undefined_flag=unsupported
7801
      always_export_symbols=yes
7802
      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'
7803
      # Note: this linker hardcodes the directories in LIBPATH if there
7804
      # are no directories specified by -L.
7805
      hardcode_minus_L=yes
7806
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7807
	# Neither direct hardcoding nor static linking is supported with a
7808
	# broken collect2.
7809
	hardcode_direct=unsupported
7810
      fi
7811
      ;;
7812
 
7813
    aix4* | aix5*)
7814
      if test "$host_cpu" = ia64; then
7815
	# On IA64, the linker does run time linking by default, so we don't
7816
	# have to do anything special.
7817
	aix_use_runtimelinking=no
7818
	exp_sym_flag='-Bexport'
7819
	no_entry_flag=""
7820
      else
7821
	# If we're using GNU nm, then we don't want the "-C" option.
7822
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7823
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7824
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7825
	else
7826
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7827
	fi
7828
	aix_use_runtimelinking=no
7829
 
7830
	# Test if we are trying to use run time linking or normal
7831
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7832
	# need to do runtime linking.
7833
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7834
	  for ld_flag in $LDFLAGS; do
7835
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7836
  	    aix_use_runtimelinking=yes
7837
  	    break
7838
  	  fi
7839
	  done
7840
	  ;;
7841
	esac
7842
 
7843
	exp_sym_flag='-bexport'
7844
	no_entry_flag='-bnoentry'
7845
      fi
7846
 
7847
      # When large executables or shared objects are built, AIX ld can
7848
      # have problems creating the table of contents.  If linking a library
7849
      # or program results in "error TOC overflow" add -mminimal-toc to
7850
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7851
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7852
 
7853
      archive_cmds=''
7854
      hardcode_direct=yes
7855
      hardcode_libdir_separator=':'
7856
      link_all_deplibs=yes
7857
 
7858
      if test "$GCC" = yes; then
7859
	case $host_os in aix4.[012]|aix4.[012].*)
7860
	# We only want to do this on AIX 4.2 and lower, the check
7861
	# below for broken collect2 doesn't work under 4.3+
7862
	  collect2name=`${CC} -print-prog-name=collect2`
7863
	  if test -f "$collect2name" && \
7864
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7865
	  then
7866
  	  # We have reworked collect2
7867
  	  :
7868
	  else
7869
  	  # We have old collect2
7870
  	  hardcode_direct=unsupported
7871
  	  # It fails to find uninstalled libraries when the uninstalled
7872
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7873
  	  # to unsupported forces relinking
7874
  	  hardcode_minus_L=yes
7875
  	  hardcode_libdir_flag_spec='-L$libdir'
7876
  	  hardcode_libdir_separator=
7877
	  fi
7878
	  ;;
7879
	esac
7880
	shared_flag='-shared'
7881
	if test "$aix_use_runtimelinking" = yes; then
7882
	  shared_flag="$shared_flag "'${wl}-G'
7883
	fi
7884
      else
7885
	# not using gcc
7886
	if test "$host_cpu" = ia64; then
7887
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7888
  	# chokes on -Wl,-G. The following line is correct:
7889
	  shared_flag='-G'
7890
	else
7891
	  if test "$aix_use_runtimelinking" = yes; then
7892
	    shared_flag='${wl}-G'
7893
	  else
7894
	    shared_flag='${wl}-bM:SRE'
7895
	  fi
7896
	fi
7897
      fi
7898
 
7899
      # It seems that -bexpall does not export symbols beginning with
7900
      # underscore (_), so it is better to generate a list of symbols to export.
7901
      always_export_symbols=yes
7902
      if test "$aix_use_runtimelinking" = yes; then
7903
	# Warning - without using the other runtime loading flags (-brtl),
7904
	# -berok will link without error, but may produce a broken library.
7905
	allow_undefined_flag='-berok'
7906
       # Determine the default libpath from the value encoded in an empty executable.
7907
       cat >conftest.$ac_ext <<_ACEOF
7908
/* confdefs.h.  */
7909
_ACEOF
7910
cat confdefs.h >>conftest.$ac_ext
7911
cat >>conftest.$ac_ext <<_ACEOF
7912
/* end confdefs.h.  */
7913
 
7914
int
7915
main ()
7916
{
7917
 
7918
  ;
7919
  return 0;
7920
}
7921
_ACEOF
7922
rm -f conftest.$ac_objext conftest$ac_exeext
7923
if { (ac_try="$ac_link"
7924
case "(($ac_try" in
7925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926
  *) ac_try_echo=$ac_try;;
7927
esac
7928
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929
  (eval "$ac_link") 2>conftest.er1
7930
  ac_status=$?
7931
  grep -v '^ *+' conftest.er1 >conftest.err
7932
  rm -f conftest.er1
7933
  cat conftest.err >&5
7934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935
  (exit $ac_status); } && {
7936
	 test -z "$ac_c_werror_flag" ||
7937
	 test ! -s conftest.err
7938
       } && test -s conftest$ac_exeext &&
7939
       $as_test_x conftest$ac_exeext; then
7940
 
7941
lt_aix_libpath_sed='
7942
    /Import File Strings/,/^$/ {
7943
	/^0/ {
7944
	    s/^0  *\(.*\)$/\1/
7945
	    p
7946
	}
7947
    }'
7948
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949
# Check for a 64-bit object if we didn't find anything.
7950
if test -z "$aix_libpath"; then
7951
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952
fi
7953
else
7954
  echo "$as_me: failed program was:" >&5
7955
sed 's/^/| /' conftest.$ac_ext >&5
7956
 
7957
 
7958
fi
7959
 
7960
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961
      conftest$ac_exeext conftest.$ac_ext
7962
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7963
 
7964
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7966
       else
7967
	if test "$host_cpu" = ia64; then
7968
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7969
	  allow_undefined_flag="-z nodefs"
7970
	  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"
7971
	else
7972
	 # Determine the default libpath from the value encoded in an empty executable.
7973
	 cat >conftest.$ac_ext <<_ACEOF
7974
/* confdefs.h.  */
7975
_ACEOF
7976
cat confdefs.h >>conftest.$ac_ext
7977
cat >>conftest.$ac_ext <<_ACEOF
7978
/* end confdefs.h.  */
7979
 
7980
int
7981
main ()
7982
{
7983
 
7984
  ;
7985
  return 0;
7986
}
7987
_ACEOF
7988
rm -f conftest.$ac_objext conftest$ac_exeext
7989
if { (ac_try="$ac_link"
7990
case "(($ac_try" in
7991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992
  *) ac_try_echo=$ac_try;;
7993
esac
7994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995
  (eval "$ac_link") 2>conftest.er1
7996
  ac_status=$?
7997
  grep -v '^ *+' conftest.er1 >conftest.err
7998
  rm -f conftest.er1
7999
  cat conftest.err >&5
8000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001
  (exit $ac_status); } && {
8002
	 test -z "$ac_c_werror_flag" ||
8003
	 test ! -s conftest.err
8004
       } && test -s conftest$ac_exeext &&
8005
       $as_test_x conftest$ac_exeext; then
8006
 
8007
lt_aix_libpath_sed='
8008
    /Import File Strings/,/^$/ {
8009
	/^0/ {
8010
	    s/^0  *\(.*\)$/\1/
8011
	    p
8012
	}
8013
    }'
8014
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8015
# Check for a 64-bit object if we didn't find anything.
8016
if test -z "$aix_libpath"; then
8017
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8018
fi
8019
else
8020
  echo "$as_me: failed program was:" >&5
8021
sed 's/^/| /' conftest.$ac_ext >&5
8022
 
8023
 
8024
fi
8025
 
8026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027
      conftest$ac_exeext conftest.$ac_ext
8028
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8029
 
8030
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8031
	  # Warning - without using the other run time loading flags,
8032
	  # -berok will link without error, but may produce a broken library.
8033
	  no_undefined_flag=' ${wl}-bernotok'
8034
	  allow_undefined_flag=' ${wl}-berok'
8035
	  # Exported symbols can be pulled into shared objects from archives
8036
	  whole_archive_flag_spec='$convenience'
8037
	  archive_cmds_need_lc=yes
8038
	  # This is similar to how AIX traditionally builds its shared libraries.
8039
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8040
	fi
8041
      fi
8042
      ;;
8043
 
8044
    amigaos*)
8045
      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)'
8046
      hardcode_libdir_flag_spec='-L$libdir'
8047
      hardcode_minus_L=yes
8048
      # see comment about different semantics on the GNU ld section
8049
      ld_shlibs=no
8050
      ;;
8051
 
8052
    bsdi[45]*)
8053
      export_dynamic_flag_spec=-rdynamic
8054
      ;;
8055
 
8056
    cygwin* | mingw* | pw32*)
8057
      # When not using gcc, we currently assume that we are using
8058
      # Microsoft Visual C++.
8059
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8060
      # no search path for DLLs.
8061
      hardcode_libdir_flag_spec=' '
8062
      allow_undefined_flag=unsupported
8063
      # Tell ltmain to make .lib files, not .a files.
8064
      libext=lib
8065
      # Tell ltmain to make .dll files, not .so files.
8066
      shrext_cmds=".dll"
8067
      # FIXME: Setting linknames here is a bad hack.
8068
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8069
      # The linker will automatically build a .lib file if we build a DLL.
8070
      old_archive_From_new_cmds='true'
8071
      # FIXME: Should let the user specify the lib program.
8072
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8073
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8074
      enable_shared_with_static_runtimes=yes
8075
      ;;
8076
 
8077
    darwin* | rhapsody*)
8078
      case $host_os in
8079
        rhapsody* | darwin1.[012])
8080
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8081
         ;;
8082
       *) # Darwin 1.3 on
8083
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8084
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8085
         else
8086
           case ${MACOSX_DEPLOYMENT_TARGET} in
8087
             10.[012])
8088
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8089
               ;;
8090
             10.*)
8091
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8092
               ;;
8093
           esac
8094
         fi
8095
         ;;
8096
      esac
8097
      archive_cmds_need_lc=no
8098
      hardcode_direct=no
8099
      hardcode_automatic=yes
8100
      hardcode_shlibpath_var=unsupported
8101
      whole_archive_flag_spec=''
8102
      link_all_deplibs=yes
8103
    if test "$GCC" = yes ; then
8104
    	output_verbose_link_cmd='echo'
8105
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8106
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8107
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8108
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8109
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8110
    else
8111
      case $cc_basename in
8112
        xlc*)
8113
         output_verbose_link_cmd='echo'
8114
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8115
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8116
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8117
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8118
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8119
          ;;
8120
       *)
8121
         ld_shlibs=no
8122
          ;;
8123
      esac
8124
    fi
8125
      ;;
8126
 
8127
    dgux*)
8128
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129
      hardcode_libdir_flag_spec='-L$libdir'
8130
      hardcode_shlibpath_var=no
8131
      ;;
8132
 
8133
    freebsd1*)
8134
      ld_shlibs=no
8135
      ;;
8136
 
8137
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8138
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8139
    # does not break anything, and helps significantly (at the cost of a little
8140
    # extra space).
8141
    freebsd2.2*)
8142
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8143
      hardcode_libdir_flag_spec='-R$libdir'
8144
      hardcode_direct=yes
8145
      hardcode_shlibpath_var=no
8146
      ;;
8147
 
8148
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8149
    freebsd2*)
8150
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8151
      hardcode_direct=yes
8152
      hardcode_minus_L=yes
8153
      hardcode_shlibpath_var=no
8154
      ;;
8155
 
8156
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8157
    freebsd* | dragonfly*)
8158
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8159
      hardcode_libdir_flag_spec='-R$libdir'
8160
      hardcode_direct=yes
8161
      hardcode_shlibpath_var=no
8162
      ;;
8163
 
8164
    hpux9*)
8165
      if test "$GCC" = yes; then
8166
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8167
      else
8168
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8169
      fi
8170
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8171
      hardcode_libdir_separator=:
8172
      hardcode_direct=yes
8173
 
8174
      # hardcode_minus_L: Not really in the search PATH,
8175
      # but as the default location of the library.
8176
      hardcode_minus_L=yes
8177
      export_dynamic_flag_spec='${wl}-E'
8178
      ;;
8179
 
8180
    hpux10*)
8181
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8182
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8183
      else
8184
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8185
      fi
8186
      if test "$with_gnu_ld" = no; then
8187
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8188
	hardcode_libdir_separator=:
8189
 
8190
	hardcode_direct=yes
8191
	export_dynamic_flag_spec='${wl}-E'
8192
 
8193
	# hardcode_minus_L: Not really in the search PATH,
8194
	# but as the default location of the library.
8195
	hardcode_minus_L=yes
8196
      fi
8197
      ;;
8198
 
8199
    hpux11*)
8200
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8201
	case $host_cpu in
8202
	hppa*64*)
8203
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8204
	  ;;
8205
	ia64*)
8206
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8207
	  ;;
8208
	*)
8209
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8210
	  ;;
8211
	esac
8212
      else
8213
	case $host_cpu in
8214
	hppa*64*)
8215
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8216
	  ;;
8217
	ia64*)
8218
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8219
	  ;;
8220
	*)
8221
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8222
	  ;;
8223
	esac
8224
      fi
8225
      if test "$with_gnu_ld" = no; then
8226
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8227
	hardcode_libdir_separator=:
8228
 
8229
	case $host_cpu in
8230
	hppa*64*|ia64*)
8231
	  hardcode_libdir_flag_spec_ld='+b $libdir'
8232
	  hardcode_direct=no
8233
	  hardcode_shlibpath_var=no
8234
	  ;;
8235
	*)
8236
	  hardcode_direct=yes
8237
	  export_dynamic_flag_spec='${wl}-E'
8238
 
8239
	  # hardcode_minus_L: Not really in the search PATH,
8240
	  # but as the default location of the library.
8241
	  hardcode_minus_L=yes
8242
	  ;;
8243
	esac
8244
      fi
8245
      ;;
8246
 
8247
    irix5* | irix6* | nonstopux*)
8248
      if test "$GCC" = yes; then
8249
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8250
      else
8251
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8252
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8253
      fi
8254
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8255
      hardcode_libdir_separator=:
8256
      link_all_deplibs=yes
8257
      ;;
8258
 
8259
    netbsd* | netbsdelf*-gnu)
8260
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8261
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8262
      else
8263
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8264
      fi
8265
      hardcode_libdir_flag_spec='-R$libdir'
8266
      hardcode_direct=yes
8267
      hardcode_shlibpath_var=no
8268
      ;;
8269
 
8270
    newsos6)
8271
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8272
      hardcode_direct=yes
8273
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274
      hardcode_libdir_separator=:
8275
      hardcode_shlibpath_var=no
8276
      ;;
8277
 
8278
    openbsd*)
8279
      if test -f /usr/libexec/ld.so; then
8280
	hardcode_direct=yes
8281
	hardcode_shlibpath_var=no
8282
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8283
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8284
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8285
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286
	  export_dynamic_flag_spec='${wl}-E'
8287
	else
8288
	  case $host_os in
8289
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8290
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291
	     hardcode_libdir_flag_spec='-R$libdir'
8292
	     ;;
8293
	   *)
8294
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8296
	     ;;
8297
	  esac
8298
        fi
8299
      else
8300
	ld_shlibs=no
8301
      fi
8302
      ;;
8303
 
8304
    os2*)
8305
      hardcode_libdir_flag_spec='-L$libdir'
8306
      hardcode_minus_L=yes
8307
      allow_undefined_flag=unsupported
8308
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8309
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8310
      ;;
8311
 
8312
    osf3*)
8313
      if test "$GCC" = yes; then
8314
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8315
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8316
      else
8317
	allow_undefined_flag=' -expect_unresolved \*'
8318
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8319
      fi
8320
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321
      hardcode_libdir_separator=:
8322
      ;;
8323
 
8324
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8325
      if test "$GCC" = yes; then
8326
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8327
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8328
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8329
      else
8330
	allow_undefined_flag=' -expect_unresolved \*'
8331
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8332
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8333
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8334
 
8335
	# Both c and cxx compiler support -rpath directly
8336
	hardcode_libdir_flag_spec='-rpath $libdir'
8337
      fi
8338
      hardcode_libdir_separator=:
8339
      ;;
8340
 
8341
    solaris*)
8342
      no_undefined_flag=' -z text'
8343
      if test "$GCC" = yes; then
8344
	wlarc='${wl}'
8345
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8347
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8348
      else
8349
	wlarc=''
8350
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8352
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8353
      fi
8354
      hardcode_libdir_flag_spec='-R$libdir'
8355
      hardcode_shlibpath_var=no
8356
      case $host_os in
8357
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8358
      *)
8359
	# The compiler driver will combine and reorder linker options,
8360
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8361
	# but is careful enough not to reorder.
8362
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8363
	if test "$GCC" = yes; then
8364
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8365
	else
8366
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8367
	fi
8368
	;;
8369
      esac
8370
      link_all_deplibs=yes
8371
      ;;
8372
 
8373
    sunos4*)
8374
      if test "x$host_vendor" = xsequent; then
8375
	# Use $CC to link under sequent, because it throws in some extra .o
8376
	# files that make .init and .fini sections work.
8377
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8378
      else
8379
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8380
      fi
8381
      hardcode_libdir_flag_spec='-L$libdir'
8382
      hardcode_direct=yes
8383
      hardcode_minus_L=yes
8384
      hardcode_shlibpath_var=no
8385
      ;;
8386
 
8387
    sysv4)
8388
      case $host_vendor in
8389
	sni)
8390
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391
	  hardcode_direct=yes # is this really true???
8392
	;;
8393
	siemens)
8394
	  ## LD is ld it makes a PLAMLIB
8395
	  ## CC just makes a GrossModule.
8396
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8397
	  reload_cmds='$CC -r -o $output$reload_objs'
8398
	  hardcode_direct=no
8399
        ;;
8400
	motorola)
8401
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8403
	;;
8404
      esac
8405
      runpath_var='LD_RUN_PATH'
8406
      hardcode_shlibpath_var=no
8407
      ;;
8408
 
8409
    sysv4.3*)
8410
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411
      hardcode_shlibpath_var=no
8412
      export_dynamic_flag_spec='-Bexport'
8413
      ;;
8414
 
8415
    sysv4*MP*)
8416
      if test -d /usr/nec; then
8417
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418
	hardcode_shlibpath_var=no
8419
	runpath_var=LD_RUN_PATH
8420
	hardcode_runpath_var=yes
8421
	ld_shlibs=yes
8422
      fi
8423
      ;;
8424
 
8425
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8426
      no_undefined_flag='${wl}-z,text'
8427
      archive_cmds_need_lc=no
8428
      hardcode_shlibpath_var=no
8429
      runpath_var='LD_RUN_PATH'
8430
 
8431
      if test "$GCC" = yes; then
8432
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434
      else
8435
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8437
      fi
8438
      ;;
8439
 
8440
    sysv5* | sco3.2v5* | sco5v6*)
8441
      # Note: We can NOT use -z defs as we might desire, because we do not
8442
      # link with -lc, and that would cause any symbols used from libc to
8443
      # always be unresolved, which means just about no library would
8444
      # ever link correctly.  If we're not using GNU ld we use -z text
8445
      # though, which does catch some bad symbols but isn't as heavy-handed
8446
      # as -z defs.
8447
      no_undefined_flag='${wl}-z,text'
8448
      allow_undefined_flag='${wl}-z,nodefs'
8449
      archive_cmds_need_lc=no
8450
      hardcode_shlibpath_var=no
8451
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8452
      hardcode_libdir_separator=':'
8453
      link_all_deplibs=yes
8454
      export_dynamic_flag_spec='${wl}-Bexport'
8455
      runpath_var='LD_RUN_PATH'
8456
 
8457
      if test "$GCC" = yes; then
8458
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460
      else
8461
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463
      fi
8464
      ;;
8465
 
8466
    uts4*)
8467
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
      hardcode_libdir_flag_spec='-L$libdir'
8469
      hardcode_shlibpath_var=no
8470
      ;;
8471
 
8472
    *)
8473
      ld_shlibs=no
8474
      ;;
8475
    esac
8476
  fi
8477
 
8478
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8479
echo "${ECHO_T}$ld_shlibs" >&6; }
8480
test "$ld_shlibs" = no && can_build_shared=no
8481
 
8482
#
8483
# Do we need to explicitly link libc?
8484
#
8485
case "x$archive_cmds_need_lc" in
8486
x|xyes)
8487
  # Assume -lc should be added
8488
  archive_cmds_need_lc=yes
8489
 
8490
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8491
    case $archive_cmds in
8492
    *'~'*)
8493
      # FIXME: we may have to deal with multi-command sequences.
8494
      ;;
8495
    '$CC '*)
8496
      # Test whether the compiler implicitly links with -lc since on some
8497
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8498
      # to ld, don't add -lc before -lgcc.
8499
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8500
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8501
      $rm conftest*
8502
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8503
 
8504
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505
  (eval $ac_compile) 2>&5
8506
  ac_status=$?
8507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508
  (exit $ac_status); } 2>conftest.err; then
8509
        soname=conftest
8510
        lib=conftest
8511
        libobjs=conftest.$ac_objext
8512
        deplibs=
8513
        wl=$lt_prog_compiler_wl
8514
	pic_flag=$lt_prog_compiler_pic
8515
        compiler_flags=-v
8516
        linker_flags=-v
8517
        verstring=
8518
        output_objdir=.
8519
        libname=conftest
8520
        lt_save_allow_undefined_flag=$allow_undefined_flag
8521
        allow_undefined_flag=
8522
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8523
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8524
  ac_status=$?
8525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526
  (exit $ac_status); }
8527
        then
8528
	  archive_cmds_need_lc=no
8529
        else
8530
	  archive_cmds_need_lc=yes
8531
        fi
8532
        allow_undefined_flag=$lt_save_allow_undefined_flag
8533
      else
8534
        cat conftest.err 1>&5
8535
      fi
8536
      $rm conftest*
8537
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8538
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8539
      ;;
8540
    esac
8541
  fi
8542
  ;;
8543
esac
8544
 
8545
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8546
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547
library_names_spec=
8548
libname_spec='lib$name'
8549
soname_spec=
8550
shrext_cmds=".so"
8551
postinstall_cmds=
8552
postuninstall_cmds=
8553
finish_cmds=
8554
finish_eval=
8555
shlibpath_var=
8556
shlibpath_overrides_runpath=unknown
8557
version_type=none
8558
dynamic_linker="$host_os ld.so"
8559
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8560
 
8561
if test "$GCC" = yes; then
8562
  case $host_os in
8563
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8564
    *) lt_awk_arg="/^libraries:/" ;;
8565
  esac
8566
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8567
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8568
    # if the path contains ";" then we assume it to be the separator
8569
    # otherwise default to the standard path separator (i.e. ":") - it is
8570
    # assumed that no part of a normal pathname contains ";" but that should
8571
    # okay in the real world where ";" in dirpaths is itself problematic.
8572
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8573
  else
8574
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8575
  fi
8576
  # Ok, now we have the path, separated by spaces, we can step through it
8577
  # and add multilib dir if necessary.
8578
  lt_tmp_lt_search_path_spec=
8579
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8580
  for lt_sys_path in $lt_search_path_spec; do
8581
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8582
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8583
    else
8584
      test -d "$lt_sys_path" && \
8585
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8586
    fi
8587
  done
8588
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8589
BEGIN {RS=" "; FS="/|\n";} {
8590
  lt_foo="";
8591
  lt_count=0;
8592
  for (lt_i = NF; lt_i > 0; lt_i--) {
8593
    if ($lt_i != "" && $lt_i != ".") {
8594
      if ($lt_i == "..") {
8595
        lt_count++;
8596
      } else {
8597
        if (lt_count == 0) {
8598
          lt_foo="/" $lt_i lt_foo;
8599
        } else {
8600
          lt_count--;
8601
        }
8602
      }
8603
    }
8604
  }
8605
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8606
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8607
}'`
8608
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8609
else
8610
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8611
fi
8612
need_lib_prefix=unknown
8613
hardcode_into_libs=no
8614
 
8615
# when you set need_version to no, make sure it does not cause -set_version
8616
# flags to be left without arguments
8617
need_version=unknown
8618
 
8619
case $host_os in
8620
aix3*)
8621
  version_type=linux
8622
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8623
  shlibpath_var=LIBPATH
8624
 
8625
  # AIX 3 has no versioning support, so we append a major version to the name.
8626
  soname_spec='${libname}${release}${shared_ext}$major'
8627
  ;;
8628
 
8629
aix4* | aix5*)
8630
  version_type=linux
8631
  need_lib_prefix=no
8632
  need_version=no
8633
  hardcode_into_libs=yes
8634
  if test "$host_cpu" = ia64; then
8635
    # AIX 5 supports IA64
8636
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8637
    shlibpath_var=LD_LIBRARY_PATH
8638
  else
8639
    # With GCC up to 2.95.x, collect2 would create an import file
8640
    # for dependence libraries.  The import file would start with
8641
    # the line `#! .'.  This would cause the generated library to
8642
    # depend on `.', always an invalid library.  This was fixed in
8643
    # development snapshots of GCC prior to 3.0.
8644
    case $host_os in
8645
      aix4 | aix4.[01] | aix4.[01].*)
8646
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8647
	   echo ' yes '
8648
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8649
	:
8650
      else
8651
	can_build_shared=no
8652
      fi
8653
      ;;
8654
    esac
8655
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8656
    # soname into executable. Probably we can add versioning support to
8657
    # collect2, so additional links can be useful in future.
8658
    if test "$aix_use_runtimelinking" = yes; then
8659
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8660
      # instead of lib<name>.a to let people know that these are not
8661
      # typical AIX shared libraries.
8662
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8663
    else
8664
      # We preserve .a as extension for shared libraries through AIX4.2
8665
      # and later when we are not doing run time linking.
8666
      library_names_spec='${libname}${release}.a $libname.a'
8667
      soname_spec='${libname}${release}${shared_ext}$major'
8668
    fi
8669
    shlibpath_var=LIBPATH
8670
  fi
8671
  ;;
8672
 
8673
amigaos*)
8674
  library_names_spec='$libname.ixlibrary $libname.a'
8675
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8676
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8677
  ;;
8678
 
8679
beos*)
8680
  library_names_spec='${libname}${shared_ext}'
8681
  dynamic_linker="$host_os ld.so"
8682
  shlibpath_var=LIBRARY_PATH
8683
  ;;
8684
 
8685
bsdi[45]*)
8686
  version_type=linux
8687
  need_version=no
8688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689
  soname_spec='${libname}${release}${shared_ext}$major'
8690
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8691
  shlibpath_var=LD_LIBRARY_PATH
8692
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8693
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8694
  # the default ld.so.conf also contains /usr/contrib/lib and
8695
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8696
  # libtool to hard-code these into programs
8697
  ;;
8698
 
8699
cygwin* | mingw* | pw32*)
8700
  version_type=windows
8701
  shrext_cmds=".dll"
8702
  need_version=no
8703
  need_lib_prefix=no
8704
 
8705
  case $GCC,$host_os in
8706
  yes,cygwin* | yes,mingw* | yes,pw32*)
8707
    library_names_spec='$libname.dll.a'
8708
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8709
    postinstall_cmds='base_file=`basename \${file}`~
8710
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8711
      dldir=$destdir/`dirname \$dlpath`~
8712
      test -d \$dldir || mkdir -p \$dldir~
8713
      $install_prog $dir/$dlname \$dldir/$dlname~
8714
      chmod a+x \$dldir/$dlname'
8715
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8716
      dlpath=$dir/\$dldll~
8717
       $rm \$dlpath'
8718
    shlibpath_overrides_runpath=yes
8719
 
8720
    case $host_os in
8721
    cygwin*)
8722
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8723
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8724
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8725
      ;;
8726
    mingw*)
8727
      # MinGW DLLs use traditional 'lib' prefix
8728
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8730
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8731
        # It is most probably a Windows format PATH printed by
8732
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8733
        # path with ; separators, and with drive letters. We can handle the
8734
        # drive letters (cygwin fileutils understands them), so leave them,
8735
        # especially as we might pass files found there to a mingw objdump,
8736
        # which wouldn't understand a cygwinified path. Ahh.
8737
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8738
      else
8739
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8740
      fi
8741
      ;;
8742
    pw32*)
8743
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8744
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8745
      ;;
8746
    esac
8747
    ;;
8748
 
8749
  *)
8750
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8751
    ;;
8752
  esac
8753
  dynamic_linker='Win32 ld.exe'
8754
  # FIXME: first we should search . and the directory the executable is in
8755
  shlibpath_var=PATH
8756
  ;;
8757
 
8758
darwin* | rhapsody*)
8759
  dynamic_linker="$host_os dyld"
8760
  version_type=darwin
8761
  need_lib_prefix=no
8762
  need_version=no
8763
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8764
  soname_spec='${libname}${release}${major}$shared_ext'
8765
  shlibpath_overrides_runpath=yes
8766
  shlibpath_var=DYLD_LIBRARY_PATH
8767
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8768
 
8769
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
8770
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8771
  ;;
8772
 
8773
dgux*)
8774
  version_type=linux
8775
  need_lib_prefix=no
8776
  need_version=no
8777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8778
  soname_spec='${libname}${release}${shared_ext}$major'
8779
  shlibpath_var=LD_LIBRARY_PATH
8780
  ;;
8781
 
8782
freebsd1*)
8783
  dynamic_linker=no
8784
  ;;
8785
 
8786
freebsd* | dragonfly*)
8787
  # DragonFly does not have aout.  When/if they implement a new
8788
  # versioning mechanism, adjust this.
8789
  if test -x /usr/bin/objformat; then
8790
    objformat=`/usr/bin/objformat`
8791
  else
8792
    case $host_os in
8793
    freebsd[123]*) objformat=aout ;;
8794
    *) objformat=elf ;;
8795
    esac
8796
  fi
8797
  version_type=freebsd-$objformat
8798
  case $version_type in
8799
    freebsd-elf*)
8800
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8801
      need_version=no
8802
      need_lib_prefix=no
8803
      ;;
8804
    freebsd-*)
8805
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8806
      need_version=yes
8807
      ;;
8808
  esac
8809
  shlibpath_var=LD_LIBRARY_PATH
8810
  case $host_os in
8811
  freebsd2*)
8812
    shlibpath_overrides_runpath=yes
8813
    ;;
8814
  freebsd3.[01]* | freebsdelf3.[01]*)
8815
    shlibpath_overrides_runpath=yes
8816
    hardcode_into_libs=yes
8817
    ;;
8818
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8819
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8820
    shlibpath_overrides_runpath=no
8821
    hardcode_into_libs=yes
8822
    ;;
8823
  *) # from 4.6 on, and DragonFly
8824
    shlibpath_overrides_runpath=yes
8825
    hardcode_into_libs=yes
8826
    ;;
8827
  esac
8828
  ;;
8829
 
8830
gnu*)
8831
  version_type=linux
8832
  need_lib_prefix=no
8833
  need_version=no
8834
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8835
  soname_spec='${libname}${release}${shared_ext}$major'
8836
  shlibpath_var=LD_LIBRARY_PATH
8837
  hardcode_into_libs=yes
8838
  ;;
8839
 
8840
hpux9* | hpux10* | hpux11*)
8841
  # Give a soname corresponding to the major version so that dld.sl refuses to
8842
  # link against other versions.
8843
  version_type=sunos
8844
  need_lib_prefix=no
8845
  need_version=no
8846
  case $host_cpu in
8847
  ia64*)
8848
    shrext_cmds='.so'
8849
    hardcode_into_libs=yes
8850
    dynamic_linker="$host_os dld.so"
8851
    shlibpath_var=LD_LIBRARY_PATH
8852
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8853
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854
    soname_spec='${libname}${release}${shared_ext}$major'
8855
    if test "X$HPUX_IA64_MODE" = X32; then
8856
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8857
    else
8858
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8859
    fi
8860
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8861
    ;;
8862
   hppa*64*)
8863
     shrext_cmds='.sl'
8864
     hardcode_into_libs=yes
8865
     dynamic_linker="$host_os dld.sl"
8866
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8867
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8868
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869
     soname_spec='${libname}${release}${shared_ext}$major'
8870
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8871
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8872
     ;;
8873
   *)
8874
    shrext_cmds='.sl'
8875
    dynamic_linker="$host_os dld.sl"
8876
    shlibpath_var=SHLIB_PATH
8877
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8878
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879
    soname_spec='${libname}${release}${shared_ext}$major'
8880
    ;;
8881
  esac
8882
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8883
  postinstall_cmds='chmod 555 $lib'
8884
  ;;
8885
 
8886
interix[3-9]*)
8887
  version_type=linux
8888
  need_lib_prefix=no
8889
  need_version=no
8890
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8891
  soname_spec='${libname}${release}${shared_ext}$major'
8892
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8893
  shlibpath_var=LD_LIBRARY_PATH
8894
  shlibpath_overrides_runpath=no
8895
  hardcode_into_libs=yes
8896
  ;;
8897
 
8898
irix5* | irix6* | nonstopux*)
8899
  case $host_os in
8900
    nonstopux*) version_type=nonstopux ;;
8901
    *)
8902
	if test "$lt_cv_prog_gnu_ld" = yes; then
8903
		version_type=linux
8904
	else
8905
		version_type=irix
8906
	fi ;;
8907
  esac
8908
  need_lib_prefix=no
8909
  need_version=no
8910
  soname_spec='${libname}${release}${shared_ext}$major'
8911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8912
  case $host_os in
8913
  irix5* | nonstopux*)
8914
    libsuff= shlibsuff=
8915
    ;;
8916
  *)
8917
    case $LD in # libtool.m4 will add one of these switches to LD
8918
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8919
      libsuff= shlibsuff= libmagic=32-bit;;
8920
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8921
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8922
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8923
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8924
    *) libsuff= shlibsuff= libmagic=never-match;;
8925
    esac
8926
    ;;
8927
  esac
8928
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8929
  shlibpath_overrides_runpath=no
8930
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8931
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8932
  hardcode_into_libs=yes
8933
  ;;
8934
 
8935
# No shared lib support for Linux oldld, aout, or coff.
8936
linux*oldld* | linux*aout* | linux*coff*)
8937
  dynamic_linker=no
8938
  ;;
8939
 
8940
# This must be Linux ELF.
8941
linux* | k*bsd*-gnu)
8942
  version_type=linux
8943
  need_lib_prefix=no
8944
  need_version=no
8945
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946
  soname_spec='${libname}${release}${shared_ext}$major'
8947
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8948
  shlibpath_var=LD_LIBRARY_PATH
8949
  shlibpath_overrides_runpath=no
8950
  # This implies no fast_install, which is unacceptable.
8951
  # Some rework will be needed to allow for fast_install
8952
  # before this can be enabled.
8953
  hardcode_into_libs=yes
8954
 
8955
  # Append ld.so.conf contents to the search path
8956
  if test -f /etc/ld.so.conf; then
8957
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8958
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8959
  fi
8960
 
8961
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8962
  # powerpc, because MkLinux only supported shared libraries with the
8963
  # GNU dynamic linker.  Since this was broken with cross compilers,
8964
  # most powerpc-linux boxes support dynamic linking these days and
8965
  # people can always --disable-shared, the test was removed, and we
8966
  # assume the GNU/Linux dynamic linker is in use.
8967
  dynamic_linker='GNU/Linux ld.so'
8968
  ;;
8969
 
8970
netbsdelf*-gnu)
8971
  version_type=linux
8972
  need_lib_prefix=no
8973
  need_version=no
8974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8975
  soname_spec='${libname}${release}${shared_ext}$major'
8976
  shlibpath_var=LD_LIBRARY_PATH
8977
  shlibpath_overrides_runpath=no
8978
  hardcode_into_libs=yes
8979
  dynamic_linker='NetBSD ld.elf_so'
8980
  ;;
8981
 
8982
netbsd*)
8983
  version_type=sunos
8984
  need_lib_prefix=no
8985
  need_version=no
8986
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8987
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8989
    dynamic_linker='NetBSD (a.out) ld.so'
8990
  else
8991
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8992
    soname_spec='${libname}${release}${shared_ext}$major'
8993
    dynamic_linker='NetBSD ld.elf_so'
8994
  fi
8995
  shlibpath_var=LD_LIBRARY_PATH
8996
  shlibpath_overrides_runpath=yes
8997
  hardcode_into_libs=yes
8998
  ;;
8999
 
9000
newsos6)
9001
  version_type=linux
9002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003
  shlibpath_var=LD_LIBRARY_PATH
9004
  shlibpath_overrides_runpath=yes
9005
  ;;
9006
 
9007
nto-qnx*)
9008
  version_type=linux
9009
  need_lib_prefix=no
9010
  need_version=no
9011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012
  soname_spec='${libname}${release}${shared_ext}$major'
9013
  shlibpath_var=LD_LIBRARY_PATH
9014
  shlibpath_overrides_runpath=yes
9015
  ;;
9016
 
9017
openbsd*)
9018
  version_type=sunos
9019
  sys_lib_dlsearch_path_spec="/usr/lib"
9020
  need_lib_prefix=no
9021
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9022
  case $host_os in
9023
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9024
    *)                         need_version=no  ;;
9025
  esac
9026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9027
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9028
  shlibpath_var=LD_LIBRARY_PATH
9029
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030
    case $host_os in
9031
      openbsd2.[89] | openbsd2.[89].*)
9032
	shlibpath_overrides_runpath=no
9033
	;;
9034
      *)
9035
	shlibpath_overrides_runpath=yes
9036
	;;
9037
      esac
9038
  else
9039
    shlibpath_overrides_runpath=yes
9040
  fi
9041
  ;;
9042
 
9043
os2*)
9044
  libname_spec='$name'
9045
  shrext_cmds=".dll"
9046
  need_lib_prefix=no
9047
  library_names_spec='$libname${shared_ext} $libname.a'
9048
  dynamic_linker='OS/2 ld.exe'
9049
  shlibpath_var=LIBPATH
9050
  ;;
9051
 
9052
osf3* | osf4* | osf5*)
9053
  version_type=osf
9054
  need_lib_prefix=no
9055
  need_version=no
9056
  soname_spec='${libname}${release}${shared_ext}$major'
9057
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058
  shlibpath_var=LD_LIBRARY_PATH
9059
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9060
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9061
  ;;
9062
 
9063
rdos*)
9064
  dynamic_linker=no
9065
  ;;
9066
 
9067
solaris*)
9068
  version_type=linux
9069
  need_lib_prefix=no
9070
  need_version=no
9071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072
  soname_spec='${libname}${release}${shared_ext}$major'
9073
  shlibpath_var=LD_LIBRARY_PATH
9074
  shlibpath_overrides_runpath=yes
9075
  hardcode_into_libs=yes
9076
  # ldd complains unless libraries are executable
9077
  postinstall_cmds='chmod +x $lib'
9078
  ;;
9079
 
9080
sunos4*)
9081
  version_type=sunos
9082
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9083
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9084
  shlibpath_var=LD_LIBRARY_PATH
9085
  shlibpath_overrides_runpath=yes
9086
  if test "$with_gnu_ld" = yes; then
9087
    need_lib_prefix=no
9088
  fi
9089
  need_version=yes
9090
  ;;
9091
 
9092
sysv4 | sysv4.3*)
9093
  version_type=linux
9094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095
  soname_spec='${libname}${release}${shared_ext}$major'
9096
  shlibpath_var=LD_LIBRARY_PATH
9097
  case $host_vendor in
9098
    sni)
9099
      shlibpath_overrides_runpath=no
9100
      need_lib_prefix=no
9101
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9102
      runpath_var=LD_RUN_PATH
9103
      ;;
9104
    siemens)
9105
      need_lib_prefix=no
9106
      ;;
9107
    motorola)
9108
      need_lib_prefix=no
9109
      need_version=no
9110
      shlibpath_overrides_runpath=no
9111
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9112
      ;;
9113
  esac
9114
  ;;
9115
 
9116
sysv4*MP*)
9117
  if test -d /usr/nec ;then
9118
    version_type=linux
9119
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9120
    soname_spec='$libname${shared_ext}.$major'
9121
    shlibpath_var=LD_LIBRARY_PATH
9122
  fi
9123
  ;;
9124
 
9125
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9126
  version_type=freebsd-elf
9127
  need_lib_prefix=no
9128
  need_version=no
9129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9130
  soname_spec='${libname}${release}${shared_ext}$major'
9131
  shlibpath_var=LD_LIBRARY_PATH
9132
  hardcode_into_libs=yes
9133
  if test "$with_gnu_ld" = yes; then
9134
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9135
    shlibpath_overrides_runpath=no
9136
  else
9137
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9138
    shlibpath_overrides_runpath=yes
9139
    case $host_os in
9140
      sco3.2v5*)
9141
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9142
	;;
9143
    esac
9144
  fi
9145
  sys_lib_dlsearch_path_spec='/usr/lib'
9146
  ;;
9147
 
9148
uts4*)
9149
  version_type=linux
9150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151
  soname_spec='${libname}${release}${shared_ext}$major'
9152
  shlibpath_var=LD_LIBRARY_PATH
9153
  ;;
9154
 
9155
*)
9156
  dynamic_linker=no
9157
  ;;
9158
esac
9159
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9160
echo "${ECHO_T}$dynamic_linker" >&6; }
9161
test "$dynamic_linker" = no && can_build_shared=no
9162
 
9163
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9164
if test "$GCC" = yes; then
9165
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9166
fi
9167
 
9168
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9169
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9170
hardcode_action=
9171
if test -n "$hardcode_libdir_flag_spec" || \
9172
   test -n "$runpath_var" || \
9173
   test "X$hardcode_automatic" = "Xyes" ; then
9174
 
9175
  # We can hardcode non-existant directories.
9176
  if test "$hardcode_direct" != no &&
9177
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9178
     # have to relink, otherwise we might link with an installed library
9179
     # when we should be linking with a yet-to-be-installed one
9180
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9181
     test "$hardcode_minus_L" != no; then
9182
    # Linking always hardcodes the temporary library directory.
9183
    hardcode_action=relink
9184
  else
9185
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9186
    hardcode_action=immediate
9187
  fi
9188
else
9189
  # We cannot hardcode anything, or else we can only hardcode existing
9190
  # directories.
9191
  hardcode_action=unsupported
9192
fi
9193
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9194
echo "${ECHO_T}$hardcode_action" >&6; }
9195
 
9196
if test "$hardcode_action" = relink; then
9197
  # Fast installation is not supported
9198
  enable_fast_install=no
9199
elif test "$shlibpath_overrides_runpath" = yes ||
9200
     test "$enable_shared" = no; then
9201
  # Fast installation is not necessary
9202
  enable_fast_install=needless
9203
fi
9204
 
9205
striplib=
9206
old_striplib=
9207
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9208
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9209
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9210
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9211
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9212
  { echo "$as_me:$LINENO: result: yes" >&5
9213
echo "${ECHO_T}yes" >&6; }
9214
else
9215
# FIXME - insert some real tests, host_os isn't really good enough
9216
  case $host_os in
9217
   darwin*)
9218
       if test -n "$STRIP" ; then
9219
         striplib="$STRIP -x"
9220
         old_striplib="$STRIP -S"
9221
         { echo "$as_me:$LINENO: result: yes" >&5
9222
echo "${ECHO_T}yes" >&6; }
9223
       else
9224
  { echo "$as_me:$LINENO: result: no" >&5
9225
echo "${ECHO_T}no" >&6; }
9226
fi
9227
       ;;
9228
   *)
9229
  { echo "$as_me:$LINENO: result: no" >&5
9230
echo "${ECHO_T}no" >&6; }
9231
    ;;
9232
  esac
9233
fi
9234
 
9235
if test "x$enable_dlopen" != xyes; then
9236
  enable_dlopen=unknown
9237
  enable_dlopen_self=unknown
9238
  enable_dlopen_self_static=unknown
9239
else
9240
  lt_cv_dlopen=no
9241
  lt_cv_dlopen_libs=
9242
 
9243
  case $host_os in
9244
  beos*)
9245
    lt_cv_dlopen="load_add_on"
9246
    lt_cv_dlopen_libs=
9247
    lt_cv_dlopen_self=yes
9248
    ;;
9249
 
9250
  mingw* | pw32*)
9251
    lt_cv_dlopen="LoadLibrary"
9252
    lt_cv_dlopen_libs=
9253
   ;;
9254
 
9255
  cygwin*)
9256
    lt_cv_dlopen="dlopen"
9257
    lt_cv_dlopen_libs=
9258
   ;;
9259
 
9260
  darwin*)
9261
  # if libdl is installed we need to link against it
9262
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9263
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9264
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9265
  echo $ECHO_N "(cached) $ECHO_C" >&6
9266
else
9267
  ac_check_lib_save_LIBS=$LIBS
9268
LIBS="-ldl  $LIBS"
9269
cat >conftest.$ac_ext <<_ACEOF
9270
/* confdefs.h.  */
9271
_ACEOF
9272
cat confdefs.h >>conftest.$ac_ext
9273
cat >>conftest.$ac_ext <<_ACEOF
9274
/* end confdefs.h.  */
9275
 
9276
/* Override any GCC internal prototype to avoid an error.
9277
   Use char because int might match the return type of a GCC
9278
   builtin and then its argument prototype would still apply.  */
9279
#ifdef __cplusplus
9280
extern "C"
9281
#endif
9282
char dlopen ();
9283
int
9284
main ()
9285
{
9286
return dlopen ();
9287
  ;
9288
  return 0;
9289
}
9290
_ACEOF
9291
rm -f conftest.$ac_objext conftest$ac_exeext
9292
if { (ac_try="$ac_link"
9293
case "(($ac_try" in
9294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295
  *) ac_try_echo=$ac_try;;
9296
esac
9297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298
  (eval "$ac_link") 2>conftest.er1
9299
  ac_status=$?
9300
  grep -v '^ *+' conftest.er1 >conftest.err
9301
  rm -f conftest.er1
9302
  cat conftest.err >&5
9303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304
  (exit $ac_status); } && {
9305
	 test -z "$ac_c_werror_flag" ||
9306
	 test ! -s conftest.err
9307
       } && test -s conftest$ac_exeext &&
9308
       $as_test_x conftest$ac_exeext; then
9309
  ac_cv_lib_dl_dlopen=yes
9310
else
9311
  echo "$as_me: failed program was:" >&5
9312
sed 's/^/| /' conftest.$ac_ext >&5
9313
 
9314
	ac_cv_lib_dl_dlopen=no
9315
fi
9316
 
9317
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9318
      conftest$ac_exeext conftest.$ac_ext
9319
LIBS=$ac_check_lib_save_LIBS
9320
fi
9321
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9322
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9323
if test $ac_cv_lib_dl_dlopen = yes; then
9324
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9325
else
9326
 
9327
    lt_cv_dlopen="dyld"
9328
    lt_cv_dlopen_libs=
9329
    lt_cv_dlopen_self=yes
9330
 
9331
fi
9332
 
9333
   ;;
9334
 
9335
  *)
9336
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9337
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9338
if test "${ac_cv_func_shl_load+set}" = set; then
9339
  echo $ECHO_N "(cached) $ECHO_C" >&6
9340
else
9341
  cat >conftest.$ac_ext <<_ACEOF
9342
/* confdefs.h.  */
9343
_ACEOF
9344
cat confdefs.h >>conftest.$ac_ext
9345
cat >>conftest.$ac_ext <<_ACEOF
9346
/* end confdefs.h.  */
9347
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9348
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9349
#define shl_load innocuous_shl_load
9350
 
9351
/* System header to define __stub macros and hopefully few prototypes,
9352
    which can conflict with char shl_load (); below.
9353
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354
    <limits.h> exists even on freestanding compilers.  */
9355
 
9356
#ifdef __STDC__
9357
# include <limits.h>
9358
#else
9359
# include <assert.h>
9360
#endif
9361
 
9362
#undef shl_load
9363
 
9364
/* Override any GCC internal prototype to avoid an error.
9365
   Use char because int might match the return type of a GCC
9366
   builtin and then its argument prototype would still apply.  */
9367
#ifdef __cplusplus
9368
extern "C"
9369
#endif
9370
char shl_load ();
9371
/* The GNU C library defines this for functions which it implements
9372
    to always fail with ENOSYS.  Some functions are actually named
9373
    something starting with __ and the normal name is an alias.  */
9374
#if defined __stub_shl_load || defined __stub___shl_load
9375
choke me
9376
#endif
9377
 
9378
int
9379
main ()
9380
{
9381
return shl_load ();
9382
  ;
9383
  return 0;
9384
}
9385
_ACEOF
9386
rm -f conftest.$ac_objext conftest$ac_exeext
9387
if { (ac_try="$ac_link"
9388
case "(($ac_try" in
9389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390
  *) ac_try_echo=$ac_try;;
9391
esac
9392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393
  (eval "$ac_link") 2>conftest.er1
9394
  ac_status=$?
9395
  grep -v '^ *+' conftest.er1 >conftest.err
9396
  rm -f conftest.er1
9397
  cat conftest.err >&5
9398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399
  (exit $ac_status); } && {
9400
	 test -z "$ac_c_werror_flag" ||
9401
	 test ! -s conftest.err
9402
       } && test -s conftest$ac_exeext &&
9403
       $as_test_x conftest$ac_exeext; then
9404
  ac_cv_func_shl_load=yes
9405
else
9406
  echo "$as_me: failed program was:" >&5
9407
sed 's/^/| /' conftest.$ac_ext >&5
9408
 
9409
	ac_cv_func_shl_load=no
9410
fi
9411
 
9412
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9413
      conftest$ac_exeext conftest.$ac_ext
9414
fi
9415
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9416
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9417
if test $ac_cv_func_shl_load = yes; then
9418
  lt_cv_dlopen="shl_load"
9419
else
9420
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9421
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9422
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9423
  echo $ECHO_N "(cached) $ECHO_C" >&6
9424
else
9425
  ac_check_lib_save_LIBS=$LIBS
9426
LIBS="-ldld  $LIBS"
9427
cat >conftest.$ac_ext <<_ACEOF
9428
/* confdefs.h.  */
9429
_ACEOF
9430
cat confdefs.h >>conftest.$ac_ext
9431
cat >>conftest.$ac_ext <<_ACEOF
9432
/* end confdefs.h.  */
9433
 
9434
/* Override any GCC internal prototype to avoid an error.
9435
   Use char because int might match the return type of a GCC
9436
   builtin and then its argument prototype would still apply.  */
9437
#ifdef __cplusplus
9438
extern "C"
9439
#endif
9440
char shl_load ();
9441
int
9442
main ()
9443
{
9444
return shl_load ();
9445
  ;
9446
  return 0;
9447
}
9448
_ACEOF
9449
rm -f conftest.$ac_objext conftest$ac_exeext
9450
if { (ac_try="$ac_link"
9451
case "(($ac_try" in
9452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453
  *) ac_try_echo=$ac_try;;
9454
esac
9455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456
  (eval "$ac_link") 2>conftest.er1
9457
  ac_status=$?
9458
  grep -v '^ *+' conftest.er1 >conftest.err
9459
  rm -f conftest.er1
9460
  cat conftest.err >&5
9461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462
  (exit $ac_status); } && {
9463
	 test -z "$ac_c_werror_flag" ||
9464
	 test ! -s conftest.err
9465
       } && test -s conftest$ac_exeext &&
9466
       $as_test_x conftest$ac_exeext; then
9467
  ac_cv_lib_dld_shl_load=yes
9468
else
9469
  echo "$as_me: failed program was:" >&5
9470
sed 's/^/| /' conftest.$ac_ext >&5
9471
 
9472
	ac_cv_lib_dld_shl_load=no
9473
fi
9474
 
9475
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9476
      conftest$ac_exeext conftest.$ac_ext
9477
LIBS=$ac_check_lib_save_LIBS
9478
fi
9479
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9480
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9481
if test $ac_cv_lib_dld_shl_load = yes; then
9482
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9483
else
9484
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9485
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9486
if test "${ac_cv_func_dlopen+set}" = set; then
9487
  echo $ECHO_N "(cached) $ECHO_C" >&6
9488
else
9489
  cat >conftest.$ac_ext <<_ACEOF
9490
/* confdefs.h.  */
9491
_ACEOF
9492
cat confdefs.h >>conftest.$ac_ext
9493
cat >>conftest.$ac_ext <<_ACEOF
9494
/* end confdefs.h.  */
9495
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9496
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9497
#define dlopen innocuous_dlopen
9498
 
9499
/* System header to define __stub macros and hopefully few prototypes,
9500
    which can conflict with char dlopen (); below.
9501
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502
    <limits.h> exists even on freestanding compilers.  */
9503
 
9504
#ifdef __STDC__
9505
# include <limits.h>
9506
#else
9507
# include <assert.h>
9508
#endif
9509
 
9510
#undef dlopen
9511
 
9512
/* Override any GCC internal prototype to avoid an error.
9513
   Use char because int might match the return type of a GCC
9514
   builtin and then its argument prototype would still apply.  */
9515
#ifdef __cplusplus
9516
extern "C"
9517
#endif
9518
char dlopen ();
9519
/* The GNU C library defines this for functions which it implements
9520
    to always fail with ENOSYS.  Some functions are actually named
9521
    something starting with __ and the normal name is an alias.  */
9522
#if defined __stub_dlopen || defined __stub___dlopen
9523
choke me
9524
#endif
9525
 
9526
int
9527
main ()
9528
{
9529
return dlopen ();
9530
  ;
9531
  return 0;
9532
}
9533
_ACEOF
9534
rm -f conftest.$ac_objext conftest$ac_exeext
9535
if { (ac_try="$ac_link"
9536
case "(($ac_try" in
9537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538
  *) ac_try_echo=$ac_try;;
9539
esac
9540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541
  (eval "$ac_link") 2>conftest.er1
9542
  ac_status=$?
9543
  grep -v '^ *+' conftest.er1 >conftest.err
9544
  rm -f conftest.er1
9545
  cat conftest.err >&5
9546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547
  (exit $ac_status); } && {
9548
	 test -z "$ac_c_werror_flag" ||
9549
	 test ! -s conftest.err
9550
       } && test -s conftest$ac_exeext &&
9551
       $as_test_x conftest$ac_exeext; then
9552
  ac_cv_func_dlopen=yes
9553
else
9554
  echo "$as_me: failed program was:" >&5
9555
sed 's/^/| /' conftest.$ac_ext >&5
9556
 
9557
	ac_cv_func_dlopen=no
9558
fi
9559
 
9560
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561
      conftest$ac_exeext conftest.$ac_ext
9562
fi
9563
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9564
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9565
if test $ac_cv_func_dlopen = yes; then
9566
  lt_cv_dlopen="dlopen"
9567
else
9568
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9569
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9570
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9571
  echo $ECHO_N "(cached) $ECHO_C" >&6
9572
else
9573
  ac_check_lib_save_LIBS=$LIBS
9574
LIBS="-ldl  $LIBS"
9575
cat >conftest.$ac_ext <<_ACEOF
9576
/* confdefs.h.  */
9577
_ACEOF
9578
cat confdefs.h >>conftest.$ac_ext
9579
cat >>conftest.$ac_ext <<_ACEOF
9580
/* end confdefs.h.  */
9581
 
9582
/* Override any GCC internal prototype to avoid an error.
9583
   Use char because int might match the return type of a GCC
9584
   builtin and then its argument prototype would still apply.  */
9585
#ifdef __cplusplus
9586
extern "C"
9587
#endif
9588
char dlopen ();
9589
int
9590
main ()
9591
{
9592
return dlopen ();
9593
  ;
9594
  return 0;
9595
}
9596
_ACEOF
9597
rm -f conftest.$ac_objext conftest$ac_exeext
9598
if { (ac_try="$ac_link"
9599
case "(($ac_try" in
9600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601
  *) ac_try_echo=$ac_try;;
9602
esac
9603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604
  (eval "$ac_link") 2>conftest.er1
9605
  ac_status=$?
9606
  grep -v '^ *+' conftest.er1 >conftest.err
9607
  rm -f conftest.er1
9608
  cat conftest.err >&5
9609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610
  (exit $ac_status); } && {
9611
	 test -z "$ac_c_werror_flag" ||
9612
	 test ! -s conftest.err
9613
       } && test -s conftest$ac_exeext &&
9614
       $as_test_x conftest$ac_exeext; then
9615
  ac_cv_lib_dl_dlopen=yes
9616
else
9617
  echo "$as_me: failed program was:" >&5
9618
sed 's/^/| /' conftest.$ac_ext >&5
9619
 
9620
	ac_cv_lib_dl_dlopen=no
9621
fi
9622
 
9623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9624
      conftest$ac_exeext conftest.$ac_ext
9625
LIBS=$ac_check_lib_save_LIBS
9626
fi
9627
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9628
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9629
if test $ac_cv_lib_dl_dlopen = yes; then
9630
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9631
else
9632
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9633
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9634
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9635
  echo $ECHO_N "(cached) $ECHO_C" >&6
9636
else
9637
  ac_check_lib_save_LIBS=$LIBS
9638
LIBS="-lsvld  $LIBS"
9639
cat >conftest.$ac_ext <<_ACEOF
9640
/* confdefs.h.  */
9641
_ACEOF
9642
cat confdefs.h >>conftest.$ac_ext
9643
cat >>conftest.$ac_ext <<_ACEOF
9644
/* end confdefs.h.  */
9645
 
9646
/* Override any GCC internal prototype to avoid an error.
9647
   Use char because int might match the return type of a GCC
9648
   builtin and then its argument prototype would still apply.  */
9649
#ifdef __cplusplus
9650
extern "C"
9651
#endif
9652
char dlopen ();
9653
int
9654
main ()
9655
{
9656
return dlopen ();
9657
  ;
9658
  return 0;
9659
}
9660
_ACEOF
9661
rm -f conftest.$ac_objext conftest$ac_exeext
9662
if { (ac_try="$ac_link"
9663
case "(($ac_try" in
9664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665
  *) ac_try_echo=$ac_try;;
9666
esac
9667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668
  (eval "$ac_link") 2>conftest.er1
9669
  ac_status=$?
9670
  grep -v '^ *+' conftest.er1 >conftest.err
9671
  rm -f conftest.er1
9672
  cat conftest.err >&5
9673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674
  (exit $ac_status); } && {
9675
	 test -z "$ac_c_werror_flag" ||
9676
	 test ! -s conftest.err
9677
       } && test -s conftest$ac_exeext &&
9678
       $as_test_x conftest$ac_exeext; then
9679
  ac_cv_lib_svld_dlopen=yes
9680
else
9681
  echo "$as_me: failed program was:" >&5
9682
sed 's/^/| /' conftest.$ac_ext >&5
9683
 
9684
	ac_cv_lib_svld_dlopen=no
9685
fi
9686
 
9687
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9688
      conftest$ac_exeext conftest.$ac_ext
9689
LIBS=$ac_check_lib_save_LIBS
9690
fi
9691
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9692
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9693
if test $ac_cv_lib_svld_dlopen = yes; then
9694
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9695
else
9696
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9697
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9698
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9699
  echo $ECHO_N "(cached) $ECHO_C" >&6
9700
else
9701
  ac_check_lib_save_LIBS=$LIBS
9702
LIBS="-ldld  $LIBS"
9703
cat >conftest.$ac_ext <<_ACEOF
9704
/* confdefs.h.  */
9705
_ACEOF
9706
cat confdefs.h >>conftest.$ac_ext
9707
cat >>conftest.$ac_ext <<_ACEOF
9708
/* end confdefs.h.  */
9709
 
9710
/* Override any GCC internal prototype to avoid an error.
9711
   Use char because int might match the return type of a GCC
9712
   builtin and then its argument prototype would still apply.  */
9713
#ifdef __cplusplus
9714
extern "C"
9715
#endif
9716
char dld_link ();
9717
int
9718
main ()
9719
{
9720
return dld_link ();
9721
  ;
9722
  return 0;
9723
}
9724
_ACEOF
9725
rm -f conftest.$ac_objext conftest$ac_exeext
9726
if { (ac_try="$ac_link"
9727
case "(($ac_try" in
9728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729
  *) ac_try_echo=$ac_try;;
9730
esac
9731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732
  (eval "$ac_link") 2>conftest.er1
9733
  ac_status=$?
9734
  grep -v '^ *+' conftest.er1 >conftest.err
9735
  rm -f conftest.er1
9736
  cat conftest.err >&5
9737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738
  (exit $ac_status); } && {
9739
	 test -z "$ac_c_werror_flag" ||
9740
	 test ! -s conftest.err
9741
       } && test -s conftest$ac_exeext &&
9742
       $as_test_x conftest$ac_exeext; then
9743
  ac_cv_lib_dld_dld_link=yes
9744
else
9745
  echo "$as_me: failed program was:" >&5
9746
sed 's/^/| /' conftest.$ac_ext >&5
9747
 
9748
	ac_cv_lib_dld_dld_link=no
9749
fi
9750
 
9751
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9752
      conftest$ac_exeext conftest.$ac_ext
9753
LIBS=$ac_check_lib_save_LIBS
9754
fi
9755
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9756
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9757
if test $ac_cv_lib_dld_dld_link = yes; then
9758
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9759
fi
9760
 
9761
 
9762
fi
9763
 
9764
 
9765
fi
9766
 
9767
 
9768
fi
9769
 
9770
 
9771
fi
9772
 
9773
 
9774
fi
9775
 
9776
    ;;
9777
  esac
9778
 
9779
  if test "x$lt_cv_dlopen" != xno; then
9780
    enable_dlopen=yes
9781
  else
9782
    enable_dlopen=no
9783
  fi
9784
 
9785
  case $lt_cv_dlopen in
9786
  dlopen)
9787
    save_CPPFLAGS="$CPPFLAGS"
9788
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9789
 
9790
    save_LDFLAGS="$LDFLAGS"
9791
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9792
 
9793
    save_LIBS="$LIBS"
9794
    LIBS="$lt_cv_dlopen_libs $LIBS"
9795
 
9796
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9797
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9798
if test "${lt_cv_dlopen_self+set}" = set; then
9799
  echo $ECHO_N "(cached) $ECHO_C" >&6
9800
else
9801
  	  if test "$cross_compiling" = yes; then :
9802
  lt_cv_dlopen_self=cross
9803
else
9804
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9805
  lt_status=$lt_dlunknown
9806
  cat > conftest.$ac_ext <<EOF
9807
#line __oline__ "configure"
9808
#include "confdefs.h"
9809
 
9810
#if HAVE_DLFCN_H
9811
#include <dlfcn.h>
9812
#endif
9813
 
9814
#include <stdio.h>
9815
 
9816
#ifdef RTLD_GLOBAL
9817
#  define LT_DLGLOBAL		RTLD_GLOBAL
9818
#else
9819
#  ifdef DL_GLOBAL
9820
#    define LT_DLGLOBAL		DL_GLOBAL
9821
#  else
9822
#    define LT_DLGLOBAL		0
9823
#  endif
9824
#endif
9825
 
9826
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9827
   find out it does not work in some platform. */
9828
#ifndef LT_DLLAZY_OR_NOW
9829
#  ifdef RTLD_LAZY
9830
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9831
#  else
9832
#    ifdef DL_LAZY
9833
#      define LT_DLLAZY_OR_NOW		DL_LAZY
9834
#    else
9835
#      ifdef RTLD_NOW
9836
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9837
#      else
9838
#        ifdef DL_NOW
9839
#          define LT_DLLAZY_OR_NOW	DL_NOW
9840
#        else
9841
#          define LT_DLLAZY_OR_NOW	0
9842
#        endif
9843
#      endif
9844
#    endif
9845
#  endif
9846
#endif
9847
 
9848
#ifdef __cplusplus
9849
extern "C" void exit (int);
9850
#endif
9851
 
9852
void fnord() { int i=42;}
9853
int main ()
9854
{
9855
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9856
  int status = $lt_dlunknown;
9857
 
9858
  if (self)
9859
    {
9860
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9861
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9862
      /* dlclose (self); */
9863
    }
9864
  else
9865
    puts (dlerror ());
9866
 
9867
    exit (status);
9868
}
9869
EOF
9870
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871
  (eval $ac_link) 2>&5
9872
  ac_status=$?
9873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9875
    (./conftest; exit; ) >&5 2>/dev/null
9876
    lt_status=$?
9877
    case x$lt_status in
9878
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9879
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9880
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9881
    esac
9882
  else :
9883
    # compilation failed
9884
    lt_cv_dlopen_self=no
9885
  fi
9886
fi
9887
rm -fr conftest*
9888
 
9889
 
9890
fi
9891
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9892
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9893
 
9894
    if test "x$lt_cv_dlopen_self" = xyes; then
9895
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9896
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9897
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9898
if test "${lt_cv_dlopen_self_static+set}" = set; then
9899
  echo $ECHO_N "(cached) $ECHO_C" >&6
9900
else
9901
  	  if test "$cross_compiling" = yes; then :
9902
  lt_cv_dlopen_self_static=cross
9903
else
9904
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9905
  lt_status=$lt_dlunknown
9906
  cat > conftest.$ac_ext <<EOF
9907
#line __oline__ "configure"
9908
#include "confdefs.h"
9909
 
9910
#if HAVE_DLFCN_H
9911
#include <dlfcn.h>
9912
#endif
9913
 
9914
#include <stdio.h>
9915
 
9916
#ifdef RTLD_GLOBAL
9917
#  define LT_DLGLOBAL		RTLD_GLOBAL
9918
#else
9919
#  ifdef DL_GLOBAL
9920
#    define LT_DLGLOBAL		DL_GLOBAL
9921
#  else
9922
#    define LT_DLGLOBAL		0
9923
#  endif
9924
#endif
9925
 
9926
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9927
   find out it does not work in some platform. */
9928
#ifndef LT_DLLAZY_OR_NOW
9929
#  ifdef RTLD_LAZY
9930
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9931
#  else
9932
#    ifdef DL_LAZY
9933
#      define LT_DLLAZY_OR_NOW		DL_LAZY
9934
#    else
9935
#      ifdef RTLD_NOW
9936
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9937
#      else
9938
#        ifdef DL_NOW
9939
#          define LT_DLLAZY_OR_NOW	DL_NOW
9940
#        else
9941
#          define LT_DLLAZY_OR_NOW	0
9942
#        endif
9943
#      endif
9944
#    endif
9945
#  endif
9946
#endif
9947
 
9948
#ifdef __cplusplus
9949
extern "C" void exit (int);
9950
#endif
9951
 
9952
void fnord() { int i=42;}
9953
int main ()
9954
{
9955
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9956
  int status = $lt_dlunknown;
9957
 
9958
  if (self)
9959
    {
9960
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9961
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9962
      /* dlclose (self); */
9963
    }
9964
  else
9965
    puts (dlerror ());
9966
 
9967
    exit (status);
9968
}
9969
EOF
9970
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971
  (eval $ac_link) 2>&5
9972
  ac_status=$?
9973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9975
    (./conftest; exit; ) >&5 2>/dev/null
9976
    lt_status=$?
9977
    case x$lt_status in
9978
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9979
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9980
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9981
    esac
9982
  else :
9983
    # compilation failed
9984
    lt_cv_dlopen_self_static=no
9985
  fi
9986
fi
9987
rm -fr conftest*
9988
 
9989
 
9990
fi
9991
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9992
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9993
    fi
9994
 
9995
    CPPFLAGS="$save_CPPFLAGS"
9996
    LDFLAGS="$save_LDFLAGS"
9997
    LIBS="$save_LIBS"
9998
    ;;
9999
  esac
10000
 
10001
  case $lt_cv_dlopen_self in
10002
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10003
  *) enable_dlopen_self=unknown ;;
10004
  esac
10005
 
10006
  case $lt_cv_dlopen_self_static in
10007
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10008
  *) enable_dlopen_self_static=unknown ;;
10009
  esac
10010
fi
10011
 
10012
 
10013
# Report which library types will actually be built
10014
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10015
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10016
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10017
echo "${ECHO_T}$can_build_shared" >&6; }
10018
 
10019
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10020
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10021
test "$can_build_shared" = "no" && enable_shared=no
10022
 
10023
# On AIX, shared libraries and static libraries use the same namespace, and
10024
# are all built from PIC.
10025
case $host_os in
10026
aix3*)
10027
  test "$enable_shared" = yes && enable_static=no
10028
  if test -n "$RANLIB"; then
10029
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10030
    postinstall_cmds='$RANLIB $lib'
10031
  fi
10032
  ;;
10033
 
10034
aix4* | aix5*)
10035
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10036
    test "$enable_shared" = yes && enable_static=no
10037
  fi
10038
    ;;
10039
esac
10040
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10041
echo "${ECHO_T}$enable_shared" >&6; }
10042
 
10043
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10044
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10045
# Make sure either enable_shared or enable_static is yes.
10046
test "$enable_shared" = yes || enable_static=yes
10047
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10048
echo "${ECHO_T}$enable_static" >&6; }
10049
 
10050
# The else clause should only fire when bootstrapping the
10051
# libtool distribution, otherwise you forgot to ship ltmain.sh
10052
# with your package, and you will get complaints that there are
10053
# no rules to generate ltmain.sh.
10054
if test -f "$ltmain"; then
10055
  # See if we are running on zsh, and set the options which allow our commands through
10056
  # without removal of \ escapes.
10057
  if test -n "${ZSH_VERSION+set}" ; then
10058
    setopt NO_GLOB_SUBST
10059
  fi
10060
  # Now quote all the things that may contain metacharacters while being
10061
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10062
  # variables and quote the copies for generation of the libtool script.
10063
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10064
    SED SHELL STRIP \
10065
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10066
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10067
    deplibs_check_method reload_flag reload_cmds need_locks \
10068
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10069
    lt_cv_sys_global_symbol_to_c_name_address \
10070
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10071
    old_postinstall_cmds old_postuninstall_cmds \
10072
    compiler \
10073
    CC \
10074
    LD \
10075
    lt_prog_compiler_wl \
10076
    lt_prog_compiler_pic \
10077
    lt_prog_compiler_static \
10078
    lt_prog_compiler_no_builtin_flag \
10079
    export_dynamic_flag_spec \
10080
    thread_safe_flag_spec \
10081
    whole_archive_flag_spec \
10082
    enable_shared_with_static_runtimes \
10083
    old_archive_cmds \
10084
    old_archive_from_new_cmds \
10085
    predep_objects \
10086
    postdep_objects \
10087
    predeps \
10088
    postdeps \
10089
    compiler_lib_search_path \
10090
    archive_cmds \
10091
    archive_expsym_cmds \
10092
    postinstall_cmds \
10093
    postuninstall_cmds \
10094
    old_archive_from_expsyms_cmds \
10095
    allow_undefined_flag \
10096
    no_undefined_flag \
10097
    export_symbols_cmds \
10098
    hardcode_libdir_flag_spec \
10099
    hardcode_libdir_flag_spec_ld \
10100
    hardcode_libdir_separator \
10101
    hardcode_automatic \
10102
    module_cmds \
10103
    module_expsym_cmds \
10104
    lt_cv_prog_compiler_c_o \
10105
    fix_srcfile_path \
10106
    exclude_expsyms \
10107
    include_expsyms; do
10108
 
10109
    case $var in
10110
    old_archive_cmds | \
10111
    old_archive_from_new_cmds | \
10112
    archive_cmds | \
10113
    archive_expsym_cmds | \
10114
    module_cmds | \
10115
    module_expsym_cmds | \
10116
    old_archive_from_expsyms_cmds | \
10117
    export_symbols_cmds | \
10118
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10119
    postinstall_cmds | postuninstall_cmds | \
10120
    old_postinstall_cmds | old_postuninstall_cmds | \
10121
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10122
      # Double-quote double-evaled strings.
10123
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10124
      ;;
10125
    *)
10126
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10127
      ;;
10128
    esac
10129
  done
10130
 
10131
  case $lt_echo in
10132
  *'\$0 --fallback-echo"')
10133
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10134
    ;;
10135
  esac
10136
 
10137
cfgfile="${ofile}T"
10138
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10139
  $rm -f "$cfgfile"
10140
  { echo "$as_me:$LINENO: creating $ofile" >&5
10141
echo "$as_me: creating $ofile" >&6;}
10142
 
10143
  cat <<__EOF__ >> "$cfgfile"
10144
#! $SHELL
10145
 
10146
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10147
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10148
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10149
#
10150
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10151
# Free Software Foundation, Inc.
10152
#
10153
# This file is part of GNU Libtool:
10154
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10155
#
10156
# This program is free software; you can redistribute it and/or modify
10157
# it under the terms of the GNU General Public License as published by
10158
# the Free Software Foundation; either version 2 of the License, or
10159
# (at your option) any later version.
10160
#
10161
# This program is distributed in the hope that it will be useful, but
10162
# WITHOUT ANY WARRANTY; without even the implied warranty of
10163
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10164
# General Public License for more details.
10165
#
10166
# You should have received a copy of the GNU General Public License
10167
# along with this program; if not, write to the Free Software
10168
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10169
#
10170
# As a special exception to the GNU General Public License, if you
10171
# distribute this file as part of a program that contains a
10172
# configuration script generated by Autoconf, you may include it under
10173
# the same distribution terms that you use for the rest of that program.
10174
 
10175
# A sed program that does not truncate output.
10176
SED=$lt_SED
10177
 
10178
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10179
Xsed="$SED -e 1s/^X//"
10180
 
10181
# The HP-UX ksh and POSIX shell print the target directory to stdout
10182
# if CDPATH is set.
10183
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10184
 
10185
# The names of the tagged configurations supported by this script.
10186
available_tags=
10187
 
10188
# ### BEGIN LIBTOOL CONFIG
10189
 
10190
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10191
 
10192
# Shell to use when invoking shell scripts.
10193
SHELL=$lt_SHELL
10194
 
10195
# Whether or not to build shared libraries.
10196
build_libtool_libs=$enable_shared
10197
 
10198
# Whether or not to build static libraries.
10199
build_old_libs=$enable_static
10200
 
10201
# Whether or not to add -lc for building shared libraries.
10202
build_libtool_need_lc=$archive_cmds_need_lc
10203
 
10204
# Whether or not to disallow shared libs when runtime libs are static
10205
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10206
 
10207
# Whether or not to optimize for fast installation.
10208
fast_install=$enable_fast_install
10209
 
10210
# The host system.
10211
host_alias=$host_alias
10212
host=$host
10213
host_os=$host_os
10214
 
10215
# The build system.
10216
build_alias=$build_alias
10217
build=$build
10218
build_os=$build_os
10219
 
10220
# An echo program that does not interpret backslashes.
10221
echo=$lt_echo
10222
 
10223
# The archiver.
10224
AR=$lt_AR
10225
AR_FLAGS=$lt_AR_FLAGS
10226
 
10227
# A C compiler.
10228
LTCC=$lt_LTCC
10229
 
10230
# LTCC compiler flags.
10231
LTCFLAGS=$lt_LTCFLAGS
10232
 
10233
# A language-specific compiler.
10234
CC=$lt_compiler
10235
 
10236
# Is the compiler the GNU C compiler?
10237
with_gcc=$GCC
10238
 
10239
# An ERE matcher.
10240
EGREP=$lt_EGREP
10241
 
10242
# The linker used to build libraries.
10243
LD=$lt_LD
10244
 
10245
# Whether we need hard or soft links.
10246
LN_S=$lt_LN_S
10247
 
10248
# A BSD-compatible nm program.
10249
NM=$lt_NM
10250
 
10251
# A symbol stripping program
10252
STRIP=$lt_STRIP
10253
 
10254
# Used to examine libraries when file_magic_cmd begins "file"
10255
MAGIC_CMD=$MAGIC_CMD
10256
 
10257
# Used on cygwin: DLL creation program.
10258
DLLTOOL="$DLLTOOL"
10259
 
10260
# Used on cygwin: object dumper.
10261
OBJDUMP="$OBJDUMP"
10262
 
10263
# Used on cygwin: assembler.
10264
AS="$AS"
10265
 
10266
# The name of the directory that contains temporary libtool files.
10267
objdir=$objdir
10268
 
10269
# How to create reloadable object files.
10270
reload_flag=$lt_reload_flag
10271
reload_cmds=$lt_reload_cmds
10272
 
10273
# How to pass a linker flag through the compiler.
10274
wl=$lt_lt_prog_compiler_wl
10275
 
10276
# Object file suffix (normally "o").
10277
objext="$ac_objext"
10278
 
10279
# Old archive suffix (normally "a").
10280
libext="$libext"
10281
 
10282
# Shared library suffix (normally ".so").
10283
shrext_cmds='$shrext_cmds'
10284
 
10285
# Executable file suffix (normally "").
10286
exeext="$exeext"
10287
 
10288
# Additional compiler flags for building library objects.
10289
pic_flag=$lt_lt_prog_compiler_pic
10290
pic_mode=$pic_mode
10291
 
10292
# What is the maximum length of a command?
10293
max_cmd_len=$lt_cv_sys_max_cmd_len
10294
 
10295
# Does compiler simultaneously support -c and -o options?
10296
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10297
 
10298
# Must we lock files when doing compilation?
10299
need_locks=$lt_need_locks
10300
 
10301
# Do we need the lib prefix for modules?
10302
need_lib_prefix=$need_lib_prefix
10303
 
10304
# Do we need a version for libraries?
10305
need_version=$need_version
10306
 
10307
# Whether dlopen is supported.
10308
dlopen_support=$enable_dlopen
10309
 
10310
# Whether dlopen of programs is supported.
10311
dlopen_self=$enable_dlopen_self
10312
 
10313
# Whether dlopen of statically linked programs is supported.
10314
dlopen_self_static=$enable_dlopen_self_static
10315
 
10316
# Compiler flag to prevent dynamic linking.
10317
link_static_flag=$lt_lt_prog_compiler_static
10318
 
10319
# Compiler flag to turn off builtin functions.
10320
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10321
 
10322
# Compiler flag to allow reflexive dlopens.
10323
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10324
 
10325
# Compiler flag to generate shared objects directly from archives.
10326
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10327
 
10328
# Compiler flag to generate thread-safe objects.
10329
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10330
 
10331
# Library versioning type.
10332
version_type=$version_type
10333
 
10334
# Format of library name prefix.
10335
libname_spec=$lt_libname_spec
10336
 
10337
# List of archive names.  First name is the real one, the rest are links.
10338
# The last name is the one that the linker finds with -lNAME.
10339
library_names_spec=$lt_library_names_spec
10340
 
10341
# The coded name of the library, if different from the real name.
10342
soname_spec=$lt_soname_spec
10343
 
10344
# Commands used to build and install an old-style archive.
10345
RANLIB=$lt_RANLIB
10346
old_archive_cmds=$lt_old_archive_cmds
10347
old_postinstall_cmds=$lt_old_postinstall_cmds
10348
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10349
 
10350
# Create an old-style archive from a shared archive.
10351
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10352
 
10353
# Create a temporary old-style archive to link instead of a shared archive.
10354
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10355
 
10356
# Commands used to build and install a shared archive.
10357
archive_cmds=$lt_archive_cmds
10358
archive_expsym_cmds=$lt_archive_expsym_cmds
10359
postinstall_cmds=$lt_postinstall_cmds
10360
postuninstall_cmds=$lt_postuninstall_cmds
10361
 
10362
# Commands used to build a loadable module (assumed same as above if empty)
10363
module_cmds=$lt_module_cmds
10364
module_expsym_cmds=$lt_module_expsym_cmds
10365
 
10366
# Commands to strip libraries.
10367
old_striplib=$lt_old_striplib
10368
striplib=$lt_striplib
10369
 
10370
# Dependencies to place before the objects being linked to create a
10371
# shared library.
10372
predep_objects=$lt_predep_objects
10373
 
10374
# Dependencies to place after the objects being linked to create a
10375
# shared library.
10376
postdep_objects=$lt_postdep_objects
10377
 
10378
# Dependencies to place before the objects being linked to create a
10379
# shared library.
10380
predeps=$lt_predeps
10381
 
10382
# Dependencies to place after the objects being linked to create a
10383
# shared library.
10384
postdeps=$lt_postdeps
10385
 
10386
# The library search path used internally by the compiler when linking
10387
# a shared library.
10388
compiler_lib_search_path=$lt_compiler_lib_search_path
10389
 
10390
# Method to check whether dependent libraries are shared objects.
10391
deplibs_check_method=$lt_deplibs_check_method
10392
 
10393
# Command to use when deplibs_check_method == file_magic.
10394
file_magic_cmd=$lt_file_magic_cmd
10395
 
10396
# Flag that allows shared libraries with undefined symbols to be built.
10397
allow_undefined_flag=$lt_allow_undefined_flag
10398
 
10399
# Flag that forces no undefined symbols.
10400
no_undefined_flag=$lt_no_undefined_flag
10401
 
10402
# Commands used to finish a libtool library installation in a directory.
10403
finish_cmds=$lt_finish_cmds
10404
 
10405
# Same as above, but a single script fragment to be evaled but not shown.
10406
finish_eval=$lt_finish_eval
10407
 
10408
# Take the output of nm and produce a listing of raw symbols and C names.
10409
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10410
 
10411
# Transform the output of nm in a proper C declaration
10412
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10413
 
10414
# Transform the output of nm in a C name address pair
10415
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10416
 
10417
# This is the shared library runtime path variable.
10418
runpath_var=$runpath_var
10419
 
10420
# This is the shared library path variable.
10421
shlibpath_var=$shlibpath_var
10422
 
10423
# Is shlibpath searched before the hard-coded library search path?
10424
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10425
 
10426
# How to hardcode a shared library path into an executable.
10427
hardcode_action=$hardcode_action
10428
 
10429
# Whether we should hardcode library paths into libraries.
10430
hardcode_into_libs=$hardcode_into_libs
10431
 
10432
# Flag to hardcode \$libdir into a binary during linking.
10433
# This must work even if \$libdir does not exist.
10434
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10435
 
10436
# If ld is used when linking, flag to hardcode \$libdir into
10437
# a binary during linking. This must work even if \$libdir does
10438
# not exist.
10439
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10440
 
10441
# Whether we need a single -rpath flag with a separated argument.
10442
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10443
 
10444
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10445
# resulting binary.
10446
hardcode_direct=$hardcode_direct
10447
 
10448
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10449
# resulting binary.
10450
hardcode_minus_L=$hardcode_minus_L
10451
 
10452
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10453
# the resulting binary.
10454
hardcode_shlibpath_var=$hardcode_shlibpath_var
10455
 
10456
# Set to yes if building a shared library automatically hardcodes DIR into the library
10457
# and all subsequent libraries and executables linked against it.
10458
hardcode_automatic=$hardcode_automatic
10459
 
10460
# Variables whose values should be saved in libtool wrapper scripts and
10461
# restored at relink time.
10462
variables_saved_for_relink="$variables_saved_for_relink"
10463
 
10464
# Whether libtool must link a program against all its dependency libraries.
10465
link_all_deplibs=$link_all_deplibs
10466
 
10467
# Compile-time system search path for libraries
10468
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10469
 
10470
# Run-time system search path for libraries
10471
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10472
 
10473
# Fix the shell variable \$srcfile for the compiler.
10474
fix_srcfile_path=$lt_fix_srcfile_path
10475
 
10476
# Set to yes if exported symbols are required.
10477
always_export_symbols=$always_export_symbols
10478
 
10479
# The commands to list exported symbols.
10480
export_symbols_cmds=$lt_export_symbols_cmds
10481
 
10482
# The commands to extract the exported symbol list from a shared archive.
10483
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10484
 
10485
# Symbols that should not be listed in the preloaded symbols.
10486
exclude_expsyms=$lt_exclude_expsyms
10487
 
10488
# Symbols that must always be exported.
10489
include_expsyms=$lt_include_expsyms
10490
 
10491
# ### END LIBTOOL CONFIG
10492
 
10493
__EOF__
10494
 
10495
 
10496
  case $host_os in
10497
  aix3*)
10498
    cat <<\EOF >> "$cfgfile"
10499
 
10500
# AIX sometimes has problems with the GCC collect2 program.  For some
10501
# reason, if we set the COLLECT_NAMES environment variable, the problems
10502
# vanish in a puff of smoke.
10503
if test "X${COLLECT_NAMES+set}" != Xset; then
10504
  COLLECT_NAMES=
10505
  export COLLECT_NAMES
10506
fi
10507
EOF
10508
    ;;
10509
  esac
10510
 
10511
  # We use sed instead of cat because bash on DJGPP gets confused if
10512
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10513
  # text mode, it properly converts lines to CR/LF.  This bash problem
10514
  # is reportedly fixed, but why not run on old versions too?
10515
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10516
 
10517
  mv -f "$cfgfile" "$ofile" || \
10518
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10519
  chmod +x "$ofile"
10520
 
10521
else
10522
  # If there is no Makefile yet, we rely on a make rule to execute
10523
  # `config.status --recheck' to rerun these tests and create the
10524
  # libtool script then.
10525
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10526
  if test -f "$ltmain_in"; then
10527
    test -f Makefile && make "$ltmain"
10528
  fi
10529
fi
10530
 
10531
 
10532
ac_ext=c
10533
ac_cpp='$CPP $CPPFLAGS'
10534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10537
 
10538
CC="$lt_save_CC"
10539
 
10540
 
10541
# Check whether --with-tags was given.
10542
if test "${with_tags+set}" = set; then
10543
  withval=$with_tags; tagnames="$withval"
10544
fi
10545
 
10546
 
10547
if test -f "$ltmain" && test -n "$tagnames"; then
10548
  if test ! -f "${ofile}"; then
10549
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10550
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10551
  fi
10552
 
10553
  if test -z "$LTCC"; then
10554
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10555
    if test -z "$LTCC"; then
10556
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10557
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10558
    else
10559
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10560
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10561
    fi
10562
  fi
10563
  if test -z "$LTCFLAGS"; then
10564
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10565
  fi
10566
 
10567
  # Extract list of available tagged configurations in $ofile.
10568
  # Note that this assumes the entire list is on one line.
10569
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10570
 
10571
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10572
  for tagname in $tagnames; do
10573
    IFS="$lt_save_ifs"
10574
    # Check whether tagname contains only valid characters
10575
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10576
    "") ;;
10577
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10578
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10579
   { (exit 1); exit 1; }; }
10580
	;;
10581
    esac
10582
 
10583
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10584
    then
10585
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10586
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10587
   { (exit 1); exit 1; }; }
10588
    fi
10589
 
10590
    # Update the list of available tags.
10591
    if test -n "$tagname"; then
10592
      echo appending configuration tag \"$tagname\" to $ofile
10593
 
10594
      case $tagname in
10595
      CXX)
10596
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10597
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10598
	    (test "X$CXX" != "Xg++"))) ; then
10599
	  ac_ext=cpp
10600
ac_cpp='$CXXCPP $CPPFLAGS'
10601
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10602
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10603
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10604
 
10605
 
10606
 
10607
 
10608
archive_cmds_need_lc_CXX=no
10609
allow_undefined_flag_CXX=
10610
always_export_symbols_CXX=no
10611
archive_expsym_cmds_CXX=
10612
export_dynamic_flag_spec_CXX=
10613
hardcode_direct_CXX=no
10614
hardcode_libdir_flag_spec_CXX=
10615
hardcode_libdir_flag_spec_ld_CXX=
10616
hardcode_libdir_separator_CXX=
10617
hardcode_minus_L_CXX=no
10618
hardcode_shlibpath_var_CXX=unsupported
10619
hardcode_automatic_CXX=no
10620
module_cmds_CXX=
10621
module_expsym_cmds_CXX=
10622
link_all_deplibs_CXX=unknown
10623
old_archive_cmds_CXX=$old_archive_cmds
10624
no_undefined_flag_CXX=
10625
whole_archive_flag_spec_CXX=
10626
enable_shared_with_static_runtimes_CXX=no
10627
 
10628
# Dependencies to place before and after the object being linked:
10629
predep_objects_CXX=
10630
postdep_objects_CXX=
10631
predeps_CXX=
10632
postdeps_CXX=
10633
compiler_lib_search_path_CXX=
10634
 
10635
# Source file extension for C++ test sources.
10636
ac_ext=cpp
10637
 
10638
# Object file extension for compiled C++ test sources.
10639
objext=o
10640
objext_CXX=$objext
10641
 
10642
# Code to be used in simple compile tests
10643
lt_simple_compile_test_code="int some_variable = 0;"
10644
 
10645
# Code to be used in simple link tests
10646
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10647
 
10648
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10649
 
10650
# If no C compiler was specified, use CC.
10651
LTCC=${LTCC-"$CC"}
10652
 
10653
# If no C compiler flags were specified, use CFLAGS.
10654
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10655
 
10656
# Allow CC to be a program name with arguments.
10657
compiler=$CC
10658
 
10659
 
10660
# save warnings/boilerplate of simple test code
10661
ac_outfile=conftest.$ac_objext
10662
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10663
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10664
_lt_compiler_boilerplate=`cat conftest.err`
10665
$rm conftest*
10666
 
10667
ac_outfile=conftest.$ac_objext
10668
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10669
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10670
_lt_linker_boilerplate=`cat conftest.err`
10671
$rm conftest*
10672
 
10673
 
10674
# Allow CC to be a program name with arguments.
10675
lt_save_CC=$CC
10676
lt_save_LD=$LD
10677
lt_save_GCC=$GCC
10678
GCC=$GXX
10679
lt_save_with_gnu_ld=$with_gnu_ld
10680
lt_save_path_LD=$lt_cv_path_LD
10681
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10682
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10683
else
10684
  $as_unset lt_cv_prog_gnu_ld
10685
fi
10686
if test -n "${lt_cv_path_LDCXX+set}"; then
10687
  lt_cv_path_LD=$lt_cv_path_LDCXX
10688
else
10689
  $as_unset lt_cv_path_LD
10690
fi
10691
test -z "${LDCXX+set}" || LD=$LDCXX
10692
CC=${CXX-"c++"}
10693
compiler=$CC
10694
compiler_CXX=$CC
10695
for cc_temp in $compiler""; do
10696
  case $cc_temp in
10697
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10698
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10699
    \-*) ;;
10700
    *) break;;
10701
  esac
10702
done
10703
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10704
 
10705
 
10706
# We don't want -fno-exception wen compiling C++ code, so set the
10707
# no_builtin_flag separately
10708
if test "$GXX" = yes; then
10709
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10710
else
10711
  lt_prog_compiler_no_builtin_flag_CXX=
10712
fi
10713
 
10714
if test "$GXX" = yes; then
10715
  # Set up default GNU C++ configuration
10716
 
10717
 
10718
# Check whether --with-gnu-ld was given.
10719
if test "${with_gnu_ld+set}" = set; then
10720
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10721
else
10722
  with_gnu_ld=no
10723
fi
10724
 
10725
ac_prog=ld
10726
if test "$GCC" = yes; then
10727
  # Check if gcc -print-prog-name=ld gives a path.
10728
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10729
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10730
  case $host in
10731
  *-*-mingw*)
10732
    # gcc leaves a trailing carriage return which upsets mingw
10733
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10734
  *)
10735
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10736
  esac
10737
  case $ac_prog in
10738
    # Accept absolute paths.
10739
    [\\/]* | ?:[\\/]*)
10740
      re_direlt='/[^/][^/]*/\.\./'
10741
      # Canonicalize the pathname of ld
10742
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10743
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10744
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10745
      done
10746
      test -z "$LD" && LD="$ac_prog"
10747
      ;;
10748
  "")
10749
    # If it fails, then pretend we aren't using GCC.
10750
    ac_prog=ld
10751
    ;;
10752
  *)
10753
    # If it is relative, then search for the first ld in PATH.
10754
    with_gnu_ld=unknown
10755
    ;;
10756
  esac
10757
elif test "$with_gnu_ld" = yes; then
10758
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10759
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10760
else
10761
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10762
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10763
fi
10764
if test "${lt_cv_path_LD+set}" = set; then
10765
  echo $ECHO_N "(cached) $ECHO_C" >&6
10766
else
10767
  if test -z "$LD"; then
10768
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10769
  for ac_dir in $PATH; do
10770
    IFS="$lt_save_ifs"
10771
    test -z "$ac_dir" && ac_dir=.
10772
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10773
      lt_cv_path_LD="$ac_dir/$ac_prog"
10774
      # Check to see if the program is GNU ld.  I'd rather use --version,
10775
      # but apparently some variants of GNU ld only accept -v.
10776
      # Break only if it was the GNU/non-GNU ld that we prefer.
10777
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10778
      *GNU* | *'with BFD'*)
10779
	test "$with_gnu_ld" != no && break
10780
	;;
10781
      *)
10782
	test "$with_gnu_ld" != yes && break
10783
	;;
10784
      esac
10785
    fi
10786
  done
10787
  IFS="$lt_save_ifs"
10788
else
10789
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10790
fi
10791
fi
10792
 
10793
LD="$lt_cv_path_LD"
10794
if test -n "$LD"; then
10795
  { echo "$as_me:$LINENO: result: $LD" >&5
10796
echo "${ECHO_T}$LD" >&6; }
10797
else
10798
  { echo "$as_me:$LINENO: result: no" >&5
10799
echo "${ECHO_T}no" >&6; }
10800
fi
10801
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10802
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10803
   { (exit 1); exit 1; }; }
10804
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10805
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10806
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10807
  echo $ECHO_N "(cached) $ECHO_C" >&6
10808
else
10809
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10810
case `$LD -v 2>&1 </dev/null` in
10811
*GNU* | *'with BFD'*)
10812
  lt_cv_prog_gnu_ld=yes
10813
  ;;
10814
*)
10815
  lt_cv_prog_gnu_ld=no
10816
  ;;
10817
esac
10818
fi
10819
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10820
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10821
with_gnu_ld=$lt_cv_prog_gnu_ld
10822
 
10823
 
10824
 
10825
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10826
  # archiving commands below assume that GNU ld is being used.
10827
  if test "$with_gnu_ld" = yes; then
10828
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10830
 
10831
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10832
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833
 
10834
    # If archive_cmds runs LD, not CC, wlarc should be empty
10835
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10836
    #     investigate it a little bit more. (MM)
10837
    wlarc='${wl}'
10838
 
10839
    # ancient GNU ld didn't support --whole-archive et. al.
10840
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10841
	grep 'no-whole-archive' > /dev/null; then
10842
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10843
    else
10844
      whole_archive_flag_spec_CXX=
10845
    fi
10846
  else
10847
    with_gnu_ld=no
10848
    wlarc=
10849
 
10850
    # A generic and very simple default shared library creation
10851
    # command for GNU C++ for the case where it uses the native
10852
    # linker, instead of GNU ld.  If possible, this setting should
10853
    # overridden to take advantage of the native linker features on
10854
    # the platform it is being used on.
10855
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10856
  fi
10857
 
10858
  # Commands to make compiler produce verbose output that lists
10859
  # what "hidden" libraries, object files and flags are used when
10860
  # linking a shared library.
10861
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10862
 
10863
else
10864
  GXX=no
10865
  with_gnu_ld=no
10866
  wlarc=
10867
fi
10868
 
10869
# PORTME: fill in a description of your system's C++ link characteristics
10870
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10871
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10872
ld_shlibs_CXX=yes
10873
case $host_os in
10874
  aix3*)
10875
    # FIXME: insert proper C++ library support
10876
    ld_shlibs_CXX=no
10877
    ;;
10878
  aix4* | aix5*)
10879
    if test "$host_cpu" = ia64; then
10880
      # On IA64, the linker does run time linking by default, so we don't
10881
      # have to do anything special.
10882
      aix_use_runtimelinking=no
10883
      exp_sym_flag='-Bexport'
10884
      no_entry_flag=""
10885
    else
10886
      aix_use_runtimelinking=no
10887
 
10888
      # Test if we are trying to use run time linking or normal
10889
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10890
      # need to do runtime linking.
10891
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10892
	for ld_flag in $LDFLAGS; do
10893
	  case $ld_flag in
10894
	  *-brtl*)
10895
	    aix_use_runtimelinking=yes
10896
	    break
10897
	    ;;
10898
	  esac
10899
	done
10900
	;;
10901
      esac
10902
 
10903
      exp_sym_flag='-bexport'
10904
      no_entry_flag='-bnoentry'
10905
    fi
10906
 
10907
    # When large executables or shared objects are built, AIX ld can
10908
    # have problems creating the table of contents.  If linking a library
10909
    # or program results in "error TOC overflow" add -mminimal-toc to
10910
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10911
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912
 
10913
    archive_cmds_CXX=''
10914
    hardcode_direct_CXX=yes
10915
    hardcode_libdir_separator_CXX=':'
10916
    link_all_deplibs_CXX=yes
10917
 
10918
    if test "$GXX" = yes; then
10919
      case $host_os in aix4.[012]|aix4.[012].*)
10920
      # We only want to do this on AIX 4.2 and lower, the check
10921
      # below for broken collect2 doesn't work under 4.3+
10922
	collect2name=`${CC} -print-prog-name=collect2`
10923
	if test -f "$collect2name" && \
10924
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10925
	then
10926
	  # We have reworked collect2
10927
	  :
10928
	else
10929
	  # We have old collect2
10930
	  hardcode_direct_CXX=unsupported
10931
	  # It fails to find uninstalled libraries when the uninstalled
10932
	  # path is not listed in the libpath.  Setting hardcode_minus_L
10933
	  # to unsupported forces relinking
10934
	  hardcode_minus_L_CXX=yes
10935
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10936
	  hardcode_libdir_separator_CXX=
10937
	fi
10938
	;;
10939
      esac
10940
      shared_flag='-shared'
10941
      if test "$aix_use_runtimelinking" = yes; then
10942
	shared_flag="$shared_flag "'${wl}-G'
10943
      fi
10944
    else
10945
      # not using gcc
10946
      if test "$host_cpu" = ia64; then
10947
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10948
	# chokes on -Wl,-G. The following line is correct:
10949
	shared_flag='-G'
10950
      else
10951
	if test "$aix_use_runtimelinking" = yes; then
10952
	  shared_flag='${wl}-G'
10953
	else
10954
	  shared_flag='${wl}-bM:SRE'
10955
	fi
10956
      fi
10957
    fi
10958
 
10959
    # It seems that -bexpall does not export symbols beginning with
10960
    # underscore (_), so it is better to generate a list of symbols to export.
10961
    always_export_symbols_CXX=yes
10962
    if test "$aix_use_runtimelinking" = yes; then
10963
      # Warning - without using the other runtime loading flags (-brtl),
10964
      # -berok will link without error, but may produce a broken library.
10965
      allow_undefined_flag_CXX='-berok'
10966
      # Determine the default libpath from the value encoded in an empty executable.
10967
      cat >conftest.$ac_ext <<_ACEOF
10968
/* confdefs.h.  */
10969
_ACEOF
10970
cat confdefs.h >>conftest.$ac_ext
10971
cat >>conftest.$ac_ext <<_ACEOF
10972
/* end confdefs.h.  */
10973
 
10974
int
10975
main ()
10976
{
10977
 
10978
  ;
10979
  return 0;
10980
}
10981
_ACEOF
10982
rm -f conftest.$ac_objext conftest$ac_exeext
10983
if { (ac_try="$ac_link"
10984
case "(($ac_try" in
10985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986
  *) ac_try_echo=$ac_try;;
10987
esac
10988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989
  (eval "$ac_link") 2>conftest.er1
10990
  ac_status=$?
10991
  grep -v '^ *+' conftest.er1 >conftest.err
10992
  rm -f conftest.er1
10993
  cat conftest.err >&5
10994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995
  (exit $ac_status); } && {
10996
	 test -z "$ac_cxx_werror_flag" ||
10997
	 test ! -s conftest.err
10998
       } && test -s conftest$ac_exeext &&
10999
       $as_test_x conftest$ac_exeext; then
11000
 
11001
lt_aix_libpath_sed='
11002
    /Import File Strings/,/^$/ {
11003
	/^0/ {
11004
	    s/^0  *\(.*\)$/\1/
11005
	    p
11006
	}
11007
    }'
11008
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11009
# Check for a 64-bit object if we didn't find anything.
11010
if test -z "$aix_libpath"; then
11011
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11012
fi
11013
else
11014
  echo "$as_me: failed program was:" >&5
11015
sed 's/^/| /' conftest.$ac_ext >&5
11016
 
11017
 
11018
fi
11019
 
11020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021
      conftest$ac_exeext conftest.$ac_ext
11022
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11023
 
11024
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11025
 
11026
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11027
     else
11028
      if test "$host_cpu" = ia64; then
11029
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11030
	allow_undefined_flag_CXX="-z nodefs"
11031
	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"
11032
      else
11033
	# Determine the default libpath from the value encoded in an empty executable.
11034
	cat >conftest.$ac_ext <<_ACEOF
11035
/* confdefs.h.  */
11036
_ACEOF
11037
cat confdefs.h >>conftest.$ac_ext
11038
cat >>conftest.$ac_ext <<_ACEOF
11039
/* end confdefs.h.  */
11040
 
11041
int
11042
main ()
11043
{
11044
 
11045
  ;
11046
  return 0;
11047
}
11048
_ACEOF
11049
rm -f conftest.$ac_objext conftest$ac_exeext
11050
if { (ac_try="$ac_link"
11051
case "(($ac_try" in
11052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053
  *) ac_try_echo=$ac_try;;
11054
esac
11055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056
  (eval "$ac_link") 2>conftest.er1
11057
  ac_status=$?
11058
  grep -v '^ *+' conftest.er1 >conftest.err
11059
  rm -f conftest.er1
11060
  cat conftest.err >&5
11061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062
  (exit $ac_status); } && {
11063
	 test -z "$ac_cxx_werror_flag" ||
11064
	 test ! -s conftest.err
11065
       } && test -s conftest$ac_exeext &&
11066
       $as_test_x conftest$ac_exeext; then
11067
 
11068
lt_aix_libpath_sed='
11069
    /Import File Strings/,/^$/ {
11070
	/^0/ {
11071
	    s/^0  *\(.*\)$/\1/
11072
	    p
11073
	}
11074
    }'
11075
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11076
# Check for a 64-bit object if we didn't find anything.
11077
if test -z "$aix_libpath"; then
11078
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11079
fi
11080
else
11081
  echo "$as_me: failed program was:" >&5
11082
sed 's/^/| /' conftest.$ac_ext >&5
11083
 
11084
 
11085
fi
11086
 
11087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088
      conftest$ac_exeext conftest.$ac_ext
11089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11090
 
11091
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11092
	# Warning - without using the other run time loading flags,
11093
	# -berok will link without error, but may produce a broken library.
11094
	no_undefined_flag_CXX=' ${wl}-bernotok'
11095
	allow_undefined_flag_CXX=' ${wl}-berok'
11096
	# Exported symbols can be pulled into shared objects from archives
11097
	whole_archive_flag_spec_CXX='$convenience'
11098
	archive_cmds_need_lc_CXX=yes
11099
	# This is similar to how AIX traditionally builds its shared libraries.
11100
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11101
      fi
11102
    fi
11103
    ;;
11104
 
11105
  beos*)
11106
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11107
      allow_undefined_flag_CXX=unsupported
11108
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11109
      # support --undefined.  This deserves some investigation.  FIXME
11110
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11111
    else
11112
      ld_shlibs_CXX=no
11113
    fi
11114
    ;;
11115
 
11116
  chorus*)
11117
    case $cc_basename in
11118
      *)
11119
	# FIXME: insert proper C++ library support
11120
	ld_shlibs_CXX=no
11121
	;;
11122
    esac
11123
    ;;
11124
 
11125
  cygwin* | mingw* | pw32*)
11126
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11127
    # as there is no search path for DLLs.
11128
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11129
    allow_undefined_flag_CXX=unsupported
11130
    always_export_symbols_CXX=no
11131
    enable_shared_with_static_runtimes_CXX=yes
11132
 
11133
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11134
      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'
11135
      # If the export-symbols file already is a .def file (1st line
11136
      # is EXPORTS), use it as is; otherwise, prepend...
11137
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11138
	cp $export_symbols $output_objdir/$soname.def;
11139
      else
11140
	echo EXPORTS > $output_objdir/$soname.def;
11141
	cat $export_symbols >> $output_objdir/$soname.def;
11142
      fi~
11143
      $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'
11144
    else
11145
      ld_shlibs_CXX=no
11146
    fi
11147
  ;;
11148
      darwin* | rhapsody*)
11149
        case $host_os in
11150
        rhapsody* | darwin1.[012])
11151
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11152
         ;;
11153
       *) # Darwin 1.3 on
11154
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11155
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11156
         else
11157
           case ${MACOSX_DEPLOYMENT_TARGET} in
11158
             10.[012])
11159
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11160
               ;;
11161
             10.*)
11162
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11163
               ;;
11164
           esac
11165
         fi
11166
         ;;
11167
        esac
11168
      archive_cmds_need_lc_CXX=no
11169
      hardcode_direct_CXX=no
11170
      hardcode_automatic_CXX=yes
11171
      hardcode_shlibpath_var_CXX=unsupported
11172
      whole_archive_flag_spec_CXX=''
11173
      link_all_deplibs_CXX=yes
11174
 
11175
    if test "$GXX" = yes ; then
11176
      lt_int_apple_cc_single_mod=no
11177
      output_verbose_link_cmd='echo'
11178
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11179
       lt_int_apple_cc_single_mod=yes
11180
      fi
11181
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11182
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11183
      else
11184
          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'
11185
        fi
11186
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11187
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11188
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11189
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11190
          else
11191
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11192
          fi
11193
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11194
      else
11195
      case $cc_basename in
11196
        xlc*)
11197
         output_verbose_link_cmd='echo'
11198
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11199
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11200
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11201
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11202
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11203
          ;;
11204
       *)
11205
         ld_shlibs_CXX=no
11206
          ;;
11207
      esac
11208
      fi
11209
        ;;
11210
 
11211
  dgux*)
11212
    case $cc_basename in
11213
      ec++*)
11214
	# FIXME: insert proper C++ library support
11215
	ld_shlibs_CXX=no
11216
	;;
11217
      ghcx*)
11218
	# Green Hills C++ Compiler
11219
	# FIXME: insert proper C++ library support
11220
	ld_shlibs_CXX=no
11221
	;;
11222
      *)
11223
	# FIXME: insert proper C++ library support
11224
	ld_shlibs_CXX=no
11225
	;;
11226
    esac
11227
    ;;
11228
  freebsd[12]*)
11229
    # C++ shared libraries reported to be fairly broken before switch to ELF
11230
    ld_shlibs_CXX=no
11231
    ;;
11232
  freebsd-elf*)
11233
    archive_cmds_need_lc_CXX=no
11234
    ;;
11235
  freebsd* | dragonfly*)
11236
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11237
    # conventions
11238
    ld_shlibs_CXX=yes
11239
    ;;
11240
  gnu*)
11241
    ;;
11242
  hpux9*)
11243
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11244
    hardcode_libdir_separator_CXX=:
11245
    export_dynamic_flag_spec_CXX='${wl}-E'
11246
    hardcode_direct_CXX=yes
11247
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11248
				# but as the default
11249
				# location of the library.
11250
 
11251
    case $cc_basename in
11252
    CC*)
11253
      # FIXME: insert proper C++ library support
11254
      ld_shlibs_CXX=no
11255
      ;;
11256
    aCC*)
11257
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11258
      # Commands to make compiler produce verbose output that lists
11259
      # what "hidden" libraries, object files and flags are used when
11260
      # linking a shared library.
11261
      #
11262
      # There doesn't appear to be a way to prevent this compiler from
11263
      # explicitly linking system object files so we need to strip them
11264
      # from the output so that they don't get included in the library
11265
      # dependencies.
11266
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11267
      ;;
11268
    *)
11269
      if test "$GXX" = yes; then
11270
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11271
      else
11272
        # FIXME: insert proper C++ library support
11273
        ld_shlibs_CXX=no
11274
      fi
11275
      ;;
11276
    esac
11277
    ;;
11278
  hpux10*|hpux11*)
11279
    if test $with_gnu_ld = no; then
11280
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11281
      hardcode_libdir_separator_CXX=:
11282
 
11283
      case $host_cpu in
11284
      hppa*64*|ia64*) ;;
11285
      *)
11286
	export_dynamic_flag_spec_CXX='${wl}-E'
11287
        ;;
11288
      esac
11289
    fi
11290
    case $host_cpu in
11291
    hppa*64*|ia64*)
11292
      hardcode_direct_CXX=no
11293
      hardcode_shlibpath_var_CXX=no
11294
      ;;
11295
    *)
11296
      hardcode_direct_CXX=yes
11297
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11298
					      # but as the default
11299
					      # location of the library.
11300
      ;;
11301
    esac
11302
 
11303
    case $cc_basename in
11304
      CC*)
11305
	# FIXME: insert proper C++ library support
11306
	ld_shlibs_CXX=no
11307
	;;
11308
      aCC*)
11309
	case $host_cpu in
11310
	hppa*64*)
11311
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11312
	  ;;
11313
	ia64*)
11314
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11315
	  ;;
11316
	*)
11317
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318
	  ;;
11319
	esac
11320
	# Commands to make compiler produce verbose output that lists
11321
	# what "hidden" libraries, object files and flags are used when
11322
	# linking a shared library.
11323
	#
11324
	# There doesn't appear to be a way to prevent this compiler from
11325
	# explicitly linking system object files so we need to strip them
11326
	# from the output so that they don't get included in the library
11327
	# dependencies.
11328
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11329
	;;
11330
      *)
11331
	if test "$GXX" = yes; then
11332
	  if test $with_gnu_ld = no; then
11333
	    case $host_cpu in
11334
	    hppa*64*)
11335
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336
	      ;;
11337
	    ia64*)
11338
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339
	      ;;
11340
	    *)
11341
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11342
	      ;;
11343
	    esac
11344
	  fi
11345
	else
11346
	  # FIXME: insert proper C++ library support
11347
	  ld_shlibs_CXX=no
11348
	fi
11349
	;;
11350
    esac
11351
    ;;
11352
  interix[3-9]*)
11353
    hardcode_direct_CXX=no
11354
    hardcode_shlibpath_var_CXX=no
11355
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11356
    export_dynamic_flag_spec_CXX='${wl}-E'
11357
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11358
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11359
    # default) and relocated if they conflict, which is a slow very memory
11360
    # consuming and fragmenting process.  To avoid this, we pick a random,
11361
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11362
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11363
    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'
11364
    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'
11365
    ;;
11366
  irix5* | irix6*)
11367
    case $cc_basename in
11368
      CC*)
11369
	# SGI C++
11370
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11371
 
11372
	# Archives containing C++ object files must be created using
11373
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11374
	# necessary to make sure instantiated templates are included
11375
	# in the archive.
11376
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11377
	;;
11378
      *)
11379
	if test "$GXX" = yes; then
11380
	  if test "$with_gnu_ld" = no; then
11381
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11382
	  else
11383
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11384
	  fi
11385
	fi
11386
	link_all_deplibs_CXX=yes
11387
	;;
11388
    esac
11389
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11390
    hardcode_libdir_separator_CXX=:
11391
    ;;
11392
  linux* | k*bsd*-gnu)
11393
    case $cc_basename in
11394
      KCC*)
11395
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11396
 
11397
	# KCC will only create a shared library if the output file
11398
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11399
	# to its proper name (with version) after linking.
11400
	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'
11401
	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'
11402
	# Commands to make compiler produce verbose output that lists
11403
	# what "hidden" libraries, object files and flags are used when
11404
	# linking a shared library.
11405
	#
11406
	# There doesn't appear to be a way to prevent this compiler from
11407
	# explicitly linking system object files so we need to strip them
11408
	# from the output so that they don't get included in the library
11409
	# dependencies.
11410
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11411
 
11412
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11413
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414
 
11415
	# Archives containing C++ object files must be created using
11416
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11417
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11418
	;;
11419
      icpc*)
11420
	# Intel C++
11421
	with_gnu_ld=yes
11422
	# version 8.0 and above of icpc choke on multiply defined symbols
11423
	# if we add $predep_objects and $postdep_objects, however 7.1 and
11424
	# earlier do not add the objects themselves.
11425
	case `$CC -V 2>&1` in
11426
	*"Version 7."*)
11427
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11428
  	  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'
11429
	  ;;
11430
	*)  # Version 8.0 or newer
11431
	  tmp_idyn=
11432
	  case $host_cpu in
11433
	    ia64*) tmp_idyn=' -i_dynamic';;
11434
	  esac
11435
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11436
	  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'
11437
	  ;;
11438
	esac
11439
	archive_cmds_need_lc_CXX=no
11440
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11441
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11442
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11443
	;;
11444
      pgCC*)
11445
        # Portland Group C++ compiler
11446
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11447
  	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'
11448
 
11449
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11450
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11452
        ;;
11453
      cxx*)
11454
	# Compaq C++
11455
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11456
	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'
11457
 
11458
	runpath_var=LD_RUN_PATH
11459
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11460
	hardcode_libdir_separator_CXX=:
11461
 
11462
	# Commands to make compiler produce verbose output that lists
11463
	# what "hidden" libraries, object files and flags are used when
11464
	# linking a shared library.
11465
	#
11466
	# There doesn't appear to be a way to prevent this compiler from
11467
	# explicitly linking system object files so we need to strip them
11468
	# from the output so that they don't get included in the library
11469
	# dependencies.
11470
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11471
	;;
11472
      *)
11473
	case `$CC -V 2>&1 | sed 5q` in
11474
	*Sun\ C*)
11475
	  # Sun C++ 5.9
11476
	  no_undefined_flag_CXX=' -zdefs'
11477
	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11478
	  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'
11479
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11480
	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11481
 
11482
	  # Not sure whether something based on
11483
	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11484
	  # would be better.
11485
	  output_verbose_link_cmd='echo'
11486
 
11487
	  # Archives containing C++ object files must be created using
11488
	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11489
	  # necessary to make sure instantiated templates are included
11490
	  # in the archive.
11491
	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11492
	  ;;
11493
	esac
11494
	;;
11495
    esac
11496
    ;;
11497
  lynxos*)
11498
    # FIXME: insert proper C++ library support
11499
    ld_shlibs_CXX=no
11500
    ;;
11501
  m88k*)
11502
    # FIXME: insert proper C++ library support
11503
    ld_shlibs_CXX=no
11504
    ;;
11505
  mvs*)
11506
    case $cc_basename in
11507
      cxx*)
11508
	# FIXME: insert proper C++ library support
11509
	ld_shlibs_CXX=no
11510
	;;
11511
      *)
11512
	# FIXME: insert proper C++ library support
11513
	ld_shlibs_CXX=no
11514
	;;
11515
    esac
11516
    ;;
11517
  netbsd* | netbsdelf*-gnu)
11518
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11519
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11520
      wlarc=
11521
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11522
      hardcode_direct_CXX=yes
11523
      hardcode_shlibpath_var_CXX=no
11524
    fi
11525
    # Workaround some broken pre-1.5 toolchains
11526
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11527
    ;;
11528
  openbsd2*)
11529
    # C++ shared libraries are fairly broken
11530
    ld_shlibs_CXX=no
11531
    ;;
11532
  openbsd*)
11533
    if test -f /usr/libexec/ld.so; then
11534
      hardcode_direct_CXX=yes
11535
      hardcode_shlibpath_var_CXX=no
11536
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11537
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11538
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11539
	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11540
	export_dynamic_flag_spec_CXX='${wl}-E'
11541
	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11542
      fi
11543
      output_verbose_link_cmd='echo'
11544
    else
11545
      ld_shlibs_CXX=no
11546
    fi
11547
    ;;
11548
  osf3*)
11549
    case $cc_basename in
11550
      KCC*)
11551
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11552
 
11553
	# KCC will only create a shared library if the output file
11554
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11555
	# to its proper name (with version) after linking.
11556
	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'
11557
 
11558
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11559
	hardcode_libdir_separator_CXX=:
11560
 
11561
	# Archives containing C++ object files must be created using
11562
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11563
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11564
 
11565
	;;
11566
      RCC*)
11567
	# Rational C++ 2.4.1
11568
	# FIXME: insert proper C++ library support
11569
	ld_shlibs_CXX=no
11570
	;;
11571
      cxx*)
11572
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11573
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11574
 
11575
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576
	hardcode_libdir_separator_CXX=:
11577
 
11578
	# Commands to make compiler produce verbose output that lists
11579
	# what "hidden" libraries, object files and flags are used when
11580
	# linking a shared library.
11581
	#
11582
	# There doesn't appear to be a way to prevent this compiler from
11583
	# explicitly linking system object files so we need to strip them
11584
	# from the output so that they don't get included in the library
11585
	# dependencies.
11586
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11587
	;;
11588
      *)
11589
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11590
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11591
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11592
 
11593
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11594
	  hardcode_libdir_separator_CXX=:
11595
 
11596
	  # Commands to make compiler produce verbose output that lists
11597
	  # what "hidden" libraries, object files and flags are used when
11598
	  # linking a shared library.
11599
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11600
 
11601
	else
11602
	  # FIXME: insert proper C++ library support
11603
	  ld_shlibs_CXX=no
11604
	fi
11605
	;;
11606
    esac
11607
    ;;
11608
  osf4* | osf5*)
11609
    case $cc_basename in
11610
      KCC*)
11611
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11612
 
11613
	# KCC will only create a shared library if the output file
11614
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11615
	# to its proper name (with version) after linking.
11616
	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'
11617
 
11618
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11619
	hardcode_libdir_separator_CXX=:
11620
 
11621
	# Archives containing C++ object files must be created using
11622
	# the KAI C++ compiler.
11623
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11624
	;;
11625
      RCC*)
11626
	# Rational C++ 2.4.1
11627
	# FIXME: insert proper C++ library support
11628
	ld_shlibs_CXX=no
11629
	;;
11630
      cxx*)
11631
	allow_undefined_flag_CXX=' -expect_unresolved \*'
11632
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11633
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11634
	  echo "-hidden">> $lib.exp~
11635
	  $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~
11636
	  $rm $lib.exp'
11637
 
11638
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11639
	hardcode_libdir_separator_CXX=:
11640
 
11641
	# Commands to make compiler produce verbose output that lists
11642
	# what "hidden" libraries, object files and flags are used when
11643
	# linking a shared library.
11644
	#
11645
	# There doesn't appear to be a way to prevent this compiler from
11646
	# explicitly linking system object files so we need to strip them
11647
	# from the output so that they don't get included in the library
11648
	# dependencies.
11649
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11650
	;;
11651
      *)
11652
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11653
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11654
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11655
 
11656
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11657
	  hardcode_libdir_separator_CXX=:
11658
 
11659
	  # Commands to make compiler produce verbose output that lists
11660
	  # what "hidden" libraries, object files and flags are used when
11661
	  # linking a shared library.
11662
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11663
 
11664
	else
11665
	  # FIXME: insert proper C++ library support
11666
	  ld_shlibs_CXX=no
11667
	fi
11668
	;;
11669
    esac
11670
    ;;
11671
  psos*)
11672
    # FIXME: insert proper C++ library support
11673
    ld_shlibs_CXX=no
11674
    ;;
11675
  sunos4*)
11676
    case $cc_basename in
11677
      CC*)
11678
	# Sun C++ 4.x
11679
	# FIXME: insert proper C++ library support
11680
	ld_shlibs_CXX=no
11681
	;;
11682
      lcc*)
11683
	# Lucid
11684
	# FIXME: insert proper C++ library support
11685
	ld_shlibs_CXX=no
11686
	;;
11687
      *)
11688
	# FIXME: insert proper C++ library support
11689
	ld_shlibs_CXX=no
11690
	;;
11691
    esac
11692
    ;;
11693
  solaris*)
11694
    case $cc_basename in
11695
      CC*)
11696
	# Sun C++ 4.2, 5.x and Centerline C++
11697
        archive_cmds_need_lc_CXX=yes
11698
	no_undefined_flag_CXX=' -zdefs'
11699
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11701
	$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'
11702
 
11703
	hardcode_libdir_flag_spec_CXX='-R$libdir'
11704
	hardcode_shlibpath_var_CXX=no
11705
	case $host_os in
11706
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11707
	  *)
11708
	    # The compiler driver will combine and reorder linker options,
11709
	    # but understands `-z linker_flag'.
11710
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11711
	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11712
	    ;;
11713
	esac
11714
	link_all_deplibs_CXX=yes
11715
 
11716
	output_verbose_link_cmd='echo'
11717
 
11718
	# Archives containing C++ object files must be created using
11719
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11720
	# necessary to make sure instantiated templates are included
11721
	# in the archive.
11722
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11723
	;;
11724
      gcx*)
11725
	# Green Hills C++ Compiler
11726
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11727
 
11728
	# The C++ compiler must be used to create the archive.
11729
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11730
	;;
11731
      *)
11732
	# GNU C++ compiler with Solaris linker
11733
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11734
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11735
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11736
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11737
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11738
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739
 
11740
	    # Commands to make compiler produce verbose output that lists
11741
	    # what "hidden" libraries, object files and flags are used when
11742
	    # linking a shared library.
11743
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744
	  else
11745
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11746
	    # platform.
11747
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11748
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11749
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11750
 
11751
	    # Commands to make compiler produce verbose output that lists
11752
	    # what "hidden" libraries, object files and flags are used when
11753
	    # linking a shared library.
11754
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11755
	  fi
11756
 
11757
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11758
	  case $host_os in
11759
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11760
	  *)
11761
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11762
	    ;;
11763
	  esac
11764
	fi
11765
	;;
11766
    esac
11767
    ;;
11768
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11769
    no_undefined_flag_CXX='${wl}-z,text'
11770
    archive_cmds_need_lc_CXX=no
11771
    hardcode_shlibpath_var_CXX=no
11772
    runpath_var='LD_RUN_PATH'
11773
 
11774
    case $cc_basename in
11775
      CC*)
11776
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778
	;;
11779
      *)
11780
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782
	;;
11783
    esac
11784
    ;;
11785
  sysv5* | sco3.2v5* | sco5v6*)
11786
    # Note: We can NOT use -z defs as we might desire, because we do not
11787
    # link with -lc, and that would cause any symbols used from libc to
11788
    # always be unresolved, which means just about no library would
11789
    # ever link correctly.  If we're not using GNU ld we use -z text
11790
    # though, which does catch some bad symbols but isn't as heavy-handed
11791
    # as -z defs.
11792
    # For security reasons, it is highly recommended that you always
11793
    # use absolute paths for naming shared libraries, and exclude the
11794
    # DT_RUNPATH tag from executables and libraries.  But doing so
11795
    # requires that you compile everything twice, which is a pain.
11796
    # So that behaviour is only enabled if SCOABSPATH is set to a
11797
    # non-empty value in the environment.  Most likely only useful for
11798
    # creating official distributions of packages.
11799
    # This is a hack until libtool officially supports absolute path
11800
    # names for shared libraries.
11801
    no_undefined_flag_CXX='${wl}-z,text'
11802
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11803
    archive_cmds_need_lc_CXX=no
11804
    hardcode_shlibpath_var_CXX=no
11805
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11806
    hardcode_libdir_separator_CXX=':'
11807
    link_all_deplibs_CXX=yes
11808
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11809
    runpath_var='LD_RUN_PATH'
11810
 
11811
    case $cc_basename in
11812
      CC*)
11813
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11814
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815
	;;
11816
      *)
11817
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819
	;;
11820
    esac
11821
    ;;
11822
  tandem*)
11823
    case $cc_basename in
11824
      NCC*)
11825
	# NonStop-UX NCC 3.20
11826
	# FIXME: insert proper C++ library support
11827
	ld_shlibs_CXX=no
11828
	;;
11829
      *)
11830
	# FIXME: insert proper C++ library support
11831
	ld_shlibs_CXX=no
11832
	;;
11833
    esac
11834
    ;;
11835
  vxworks*)
11836
    # FIXME: insert proper C++ library support
11837
    ld_shlibs_CXX=no
11838
    ;;
11839
  *)
11840
    # FIXME: insert proper C++ library support
11841
    ld_shlibs_CXX=no
11842
    ;;
11843
esac
11844
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11845
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11846
test "$ld_shlibs_CXX" = no && can_build_shared=no
11847
 
11848
GCC_CXX="$GXX"
11849
LD_CXX="$LD"
11850
 
11851
## CAVEAT EMPTOR:
11852
## There is no encapsulation within the following macros, do not change
11853
## the running order or otherwise move them around unless you know exactly
11854
## what you are doing...
11855
 
11856
cat > conftest.$ac_ext <<EOF
11857
class Foo
11858
{
11859
public:
11860
  Foo (void) { a = 0; }
11861
private:
11862
  int a;
11863
};
11864
EOF
11865
 
11866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867
  (eval $ac_compile) 2>&5
11868
  ac_status=$?
11869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870
  (exit $ac_status); }; then
11871
  # Parse the compiler output and extract the necessary
11872
  # objects, libraries and library flags.
11873
 
11874
  # Sentinel used to keep track of whether or not we are before
11875
  # the conftest object file.
11876
  pre_test_object_deps_done=no
11877
 
11878
  # The `*' in the case matches for architectures that use `case' in
11879
  # $output_verbose_cmd can trigger glob expansion during the loop
11880
  # eval without this substitution.
11881
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11882
 
11883
  for p in `eval $output_verbose_link_cmd`; do
11884
    case $p in
11885
 
11886
    -L* | -R* | -l*)
11887
       # Some compilers place space between "-{L,R}" and the path.
11888
       # Remove the space.
11889
       if test $p = "-L" \
11890
	  || test $p = "-R"; then
11891
	 prev=$p
11892
	 continue
11893
       else
11894
	 prev=
11895
       fi
11896
 
11897
       if test "$pre_test_object_deps_done" = no; then
11898
	 case $p in
11899
	 -L* | -R*)
11900
	   # Internal compiler library paths should come after those
11901
	   # provided the user.  The postdeps already come after the
11902
	   # user supplied libs so there is no need to process them.
11903
	   if test -z "$compiler_lib_search_path_CXX"; then
11904
	     compiler_lib_search_path_CXX="${prev}${p}"
11905
	   else
11906
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11907
	   fi
11908
	   ;;
11909
	 # The "-l" case would never come before the object being
11910
	 # linked, so don't bother handling this case.
11911
	 esac
11912
       else
11913
	 if test -z "$postdeps_CXX"; then
11914
	   postdeps_CXX="${prev}${p}"
11915
	 else
11916
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11917
	 fi
11918
       fi
11919
       ;;
11920
 
11921
    *.$objext)
11922
       # This assumes that the test object file only shows up
11923
       # once in the compiler output.
11924
       if test "$p" = "conftest.$objext"; then
11925
	 pre_test_object_deps_done=yes
11926
	 continue
11927
       fi
11928
 
11929
       if test "$pre_test_object_deps_done" = no; then
11930
	 if test -z "$predep_objects_CXX"; then
11931
	   predep_objects_CXX="$p"
11932
	 else
11933
	   predep_objects_CXX="$predep_objects_CXX $p"
11934
	 fi
11935
       else
11936
	 if test -z "$postdep_objects_CXX"; then
11937
	   postdep_objects_CXX="$p"
11938
	 else
11939
	   postdep_objects_CXX="$postdep_objects_CXX $p"
11940
	 fi
11941
       fi
11942
       ;;
11943
 
11944
    *) ;; # Ignore the rest.
11945
 
11946
    esac
11947
  done
11948
 
11949
  # Clean up.
11950
  rm -f a.out a.exe
11951
else
11952
  echo "libtool.m4: error: problem compiling CXX test program"
11953
fi
11954
 
11955
$rm -f confest.$objext
11956
 
11957
# PORTME: override above test on systems where it is broken
11958
case $host_os in
11959
interix[3-9]*)
11960
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11961
  # hack all around it, let's just trust "g++" to DTRT.
11962
  predep_objects_CXX=
11963
  postdep_objects_CXX=
11964
  postdeps_CXX=
11965
  ;;
11966
 
11967
linux*)
11968
  case `$CC -V 2>&1 | sed 5q` in
11969
  *Sun\ C*)
11970
    # Sun C++ 5.9
11971
    #
11972
    # The more standards-conforming stlport4 library is
11973
    # incompatible with the Cstd library. Avoid specifying
11974
    # it if it's in CXXFLAGS. Ignore libCrun as
11975
    # -library=stlport4 depends on it.
11976
    case " $CXX $CXXFLAGS " in
11977
    *" -library=stlport4 "*)
11978
      solaris_use_stlport4=yes
11979
      ;;
11980
    esac
11981
    if test "$solaris_use_stlport4" != yes; then
11982
      postdeps_CXX='-library=Cstd -library=Crun'
11983
    fi
11984
    ;;
11985
  esac
11986
  ;;
11987
 
11988
solaris*)
11989
  case $cc_basename in
11990
  CC*)
11991
    # The more standards-conforming stlport4 library is
11992
    # incompatible with the Cstd library. Avoid specifying
11993
    # it if it's in CXXFLAGS. Ignore libCrun as
11994
    # -library=stlport4 depends on it.
11995
    case " $CXX $CXXFLAGS " in
11996
    *" -library=stlport4 "*)
11997
      solaris_use_stlport4=yes
11998
      ;;
11999
    esac
12000
 
12001
    # Adding this requires a known-good setup of shared libraries for
12002
    # Sun compiler versions before 5.6, else PIC objects from an old
12003
    # archive will be linked into the output, leading to subtle bugs.
12004
    if test "$solaris_use_stlport4" != yes; then
12005
      postdeps_CXX='-library=Cstd -library=Crun'
12006
    fi
12007
    ;;
12008
  esac
12009
  ;;
12010
esac
12011
 
12012
 
12013
case " $postdeps_CXX " in
12014
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12015
esac
12016
 
12017
lt_prog_compiler_wl_CXX=
12018
lt_prog_compiler_pic_CXX=
12019
lt_prog_compiler_static_CXX=
12020
 
12021
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12022
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12023
 
12024
  # C++ specific cases for pic, static, wl, etc.
12025
  if test "$GXX" = yes; then
12026
    lt_prog_compiler_wl_CXX='-Wl,'
12027
    lt_prog_compiler_static_CXX='-static'
12028
 
12029
    case $host_os in
12030
    aix*)
12031
      # All AIX code is PIC.
12032
      if test "$host_cpu" = ia64; then
12033
	# AIX 5 now supports IA64 processor
12034
	lt_prog_compiler_static_CXX='-Bstatic'
12035
      fi
12036
      ;;
12037
    amigaos*)
12038
      # FIXME: we need at least 68020 code to build shared libraries, but
12039
      # adding the `-m68020' flag to GCC prevents building anything better,
12040
      # like `-m68040'.
12041
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12042
      ;;
12043
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12044
      # PIC is the default for these OSes.
12045
      ;;
12046
    mingw* | cygwin* | os2* | pw32*)
12047
      # This hack is so that the source file can tell whether it is being
12048
      # built for inclusion in a dll (and should export symbols for example).
12049
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12050
      # (--disable-auto-import) libraries
12051
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12052
      ;;
12053
    darwin* | rhapsody*)
12054
      # PIC is the default on this platform
12055
      # Common symbols not allowed in MH_DYLIB files
12056
      lt_prog_compiler_pic_CXX='-fno-common'
12057
      ;;
12058
    *djgpp*)
12059
      # DJGPP does not support shared libraries at all
12060
      lt_prog_compiler_pic_CXX=
12061
      ;;
12062
    interix[3-9]*)
12063
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12064
      # Instead, we relocate shared libraries at runtime.
12065
      ;;
12066
    sysv4*MP*)
12067
      if test -d /usr/nec; then
12068
	lt_prog_compiler_pic_CXX=-Kconform_pic
12069
      fi
12070
      ;;
12071
    hpux*)
12072
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12073
      # not for PA HP-UX.
12074
      case $host_cpu in
12075
      hppa*64*|ia64*)
12076
	;;
12077
      *)
12078
	lt_prog_compiler_pic_CXX='-fPIC'
12079
	;;
12080
      esac
12081
      ;;
12082
    *)
12083
      lt_prog_compiler_pic_CXX='-fPIC'
12084
      ;;
12085
    esac
12086
  else
12087
    case $host_os in
12088
      aix4* | aix5*)
12089
	# All AIX code is PIC.
12090
	if test "$host_cpu" = ia64; then
12091
	  # AIX 5 now supports IA64 processor
12092
	  lt_prog_compiler_static_CXX='-Bstatic'
12093
	else
12094
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12095
	fi
12096
	;;
12097
      chorus*)
12098
	case $cc_basename in
12099
	cxch68*)
12100
	  # Green Hills C++ Compiler
12101
	  # _LT_AC_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"
12102
	  ;;
12103
	esac
12104
	;;
12105
       darwin*)
12106
         # PIC is the default on this platform
12107
         # Common symbols not allowed in MH_DYLIB files
12108
         case $cc_basename in
12109
           xlc*)
12110
           lt_prog_compiler_pic_CXX='-qnocommon'
12111
           lt_prog_compiler_wl_CXX='-Wl,'
12112
           ;;
12113
         esac
12114
       ;;
12115
      dgux*)
12116
	case $cc_basename in
12117
	  ec++*)
12118
	    lt_prog_compiler_pic_CXX='-KPIC'
12119
	    ;;
12120
	  ghcx*)
12121
	    # Green Hills C++ Compiler
12122
	    lt_prog_compiler_pic_CXX='-pic'
12123
	    ;;
12124
	  *)
12125
	    ;;
12126
	esac
12127
	;;
12128
      freebsd* | dragonfly*)
12129
	# FreeBSD uses GNU C++
12130
	;;
12131
      hpux9* | hpux10* | hpux11*)
12132
	case $cc_basename in
12133
	  CC*)
12134
	    lt_prog_compiler_wl_CXX='-Wl,'
12135
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12136
	    if test "$host_cpu" != ia64; then
12137
	      lt_prog_compiler_pic_CXX='+Z'
12138
	    fi
12139
	    ;;
12140
	  aCC*)
12141
	    lt_prog_compiler_wl_CXX='-Wl,'
12142
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12143
	    case $host_cpu in
12144
	    hppa*64*|ia64*)
12145
	      # +Z the default
12146
	      ;;
12147
	    *)
12148
	      lt_prog_compiler_pic_CXX='+Z'
12149
	      ;;
12150
	    esac
12151
	    ;;
12152
	  *)
12153
	    ;;
12154
	esac
12155
	;;
12156
      interix*)
12157
	# This is c89, which is MS Visual C++ (no shared libs)
12158
	# Anyone wants to do a port?
12159
	;;
12160
      irix5* | irix6* | nonstopux*)
12161
	case $cc_basename in
12162
	  CC*)
12163
	    lt_prog_compiler_wl_CXX='-Wl,'
12164
	    lt_prog_compiler_static_CXX='-non_shared'
12165
	    # CC pic flag -KPIC is the default.
12166
	    ;;
12167
	  *)
12168
	    ;;
12169
	esac
12170
	;;
12171
      linux* | k*bsd*-gnu)
12172
	case $cc_basename in
12173
	  KCC*)
12174
	    # KAI C++ Compiler
12175
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12176
	    lt_prog_compiler_pic_CXX='-fPIC'
12177
	    ;;
12178
	  icpc* | ecpc*)
12179
	    # Intel C++
12180
	    lt_prog_compiler_wl_CXX='-Wl,'
12181
	    lt_prog_compiler_pic_CXX='-KPIC'
12182
	    lt_prog_compiler_static_CXX='-static'
12183
	    ;;
12184
	  pgCC*)
12185
	    # Portland Group C++ compiler.
12186
	    lt_prog_compiler_wl_CXX='-Wl,'
12187
	    lt_prog_compiler_pic_CXX='-fpic'
12188
	    lt_prog_compiler_static_CXX='-Bstatic'
12189
	    ;;
12190
	  cxx*)
12191
	    # Compaq C++
12192
	    # Make sure the PIC flag is empty.  It appears that all Alpha
12193
	    # Linux and Compaq Tru64 Unix objects are PIC.
12194
	    lt_prog_compiler_pic_CXX=
12195
	    lt_prog_compiler_static_CXX='-non_shared'
12196
	    ;;
12197
	  *)
12198
	    case `$CC -V 2>&1 | sed 5q` in
12199
	    *Sun\ C*)
12200
	      # Sun C++ 5.9
12201
	      lt_prog_compiler_pic_CXX='-KPIC'
12202
	      lt_prog_compiler_static_CXX='-Bstatic'
12203
	      lt_prog_compiler_wl_CXX='-Qoption ld '
12204
	      ;;
12205
	    esac
12206
	    ;;
12207
	esac
12208
	;;
12209
      lynxos*)
12210
	;;
12211
      m88k*)
12212
	;;
12213
      mvs*)
12214
	case $cc_basename in
12215
	  cxx*)
12216
	    lt_prog_compiler_pic_CXX='-W c,exportall'
12217
	    ;;
12218
	  *)
12219
	    ;;
12220
	esac
12221
	;;
12222
      netbsd* | netbsdelf*-gnu)
12223
	;;
12224
      osf3* | osf4* | osf5*)
12225
	case $cc_basename in
12226
	  KCC*)
12227
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12228
	    ;;
12229
	  RCC*)
12230
	    # Rational C++ 2.4.1
12231
	    lt_prog_compiler_pic_CXX='-pic'
12232
	    ;;
12233
	  cxx*)
12234
	    # Digital/Compaq C++
12235
	    lt_prog_compiler_wl_CXX='-Wl,'
12236
	    # Make sure the PIC flag is empty.  It appears that all Alpha
12237
	    # Linux and Compaq Tru64 Unix objects are PIC.
12238
	    lt_prog_compiler_pic_CXX=
12239
	    lt_prog_compiler_static_CXX='-non_shared'
12240
	    ;;
12241
	  *)
12242
	    ;;
12243
	esac
12244
	;;
12245
      psos*)
12246
	;;
12247
      solaris*)
12248
	case $cc_basename in
12249
	  CC*)
12250
	    # Sun C++ 4.2, 5.x and Centerline C++
12251
	    lt_prog_compiler_pic_CXX='-KPIC'
12252
	    lt_prog_compiler_static_CXX='-Bstatic'
12253
	    lt_prog_compiler_wl_CXX='-Qoption ld '
12254
	    ;;
12255
	  gcx*)
12256
	    # Green Hills C++ Compiler
12257
	    lt_prog_compiler_pic_CXX='-PIC'
12258
	    ;;
12259
	  *)
12260
	    ;;
12261
	esac
12262
	;;
12263
      sunos4*)
12264
	case $cc_basename in
12265
	  CC*)
12266
	    # Sun C++ 4.x
12267
	    lt_prog_compiler_pic_CXX='-pic'
12268
	    lt_prog_compiler_static_CXX='-Bstatic'
12269
	    ;;
12270
	  lcc*)
12271
	    # Lucid
12272
	    lt_prog_compiler_pic_CXX='-pic'
12273
	    ;;
12274
	  *)
12275
	    ;;
12276
	esac
12277
	;;
12278
      tandem*)
12279
	case $cc_basename in
12280
	  NCC*)
12281
	    # NonStop-UX NCC 3.20
12282
	    lt_prog_compiler_pic_CXX='-KPIC'
12283
	    ;;
12284
	  *)
12285
	    ;;
12286
	esac
12287
	;;
12288
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12289
	case $cc_basename in
12290
	  CC*)
12291
	    lt_prog_compiler_wl_CXX='-Wl,'
12292
	    lt_prog_compiler_pic_CXX='-KPIC'
12293
	    lt_prog_compiler_static_CXX='-Bstatic'
12294
	    ;;
12295
	esac
12296
	;;
12297
      vxworks*)
12298
	;;
12299
      *)
12300
	lt_prog_compiler_can_build_shared_CXX=no
12301
	;;
12302
    esac
12303
  fi
12304
 
12305
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12306
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12307
 
12308
#
12309
# Check to make sure the PIC flag actually works.
12310
#
12311
if test -n "$lt_prog_compiler_pic_CXX"; then
12312
 
12313
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12314
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12315
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12316
  echo $ECHO_N "(cached) $ECHO_C" >&6
12317
else
12318
  lt_prog_compiler_pic_works_CXX=no
12319
  ac_outfile=conftest.$ac_objext
12320
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12321
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12322
   # Insert the option either (1) after the last *FLAGS variable, or
12323
   # (2) before a word containing "conftest.", or (3) at the end.
12324
   # Note that $ac_compile itself does not contain backslashes and begins
12325
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12326
   # The option is referenced via a variable to avoid confusing sed.
12327
   lt_compile=`echo "$ac_compile" | $SED \
12328
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12329
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12330
   -e 's:$: $lt_compiler_flag:'`
12331
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12332
   (eval "$lt_compile" 2>conftest.err)
12333
   ac_status=$?
12334
   cat conftest.err >&5
12335
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12336
   if (exit $ac_status) && test -s "$ac_outfile"; then
12337
     # The compiler can only warn and ignore the option if not recognized
12338
     # So say no if there are warnings other than the usual output.
12339
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12340
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12341
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12342
       lt_prog_compiler_pic_works_CXX=yes
12343
     fi
12344
   fi
12345
   $rm conftest*
12346
 
12347
fi
12348
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12349
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12350
 
12351
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12352
    case $lt_prog_compiler_pic_CXX in
12353
     "" | " "*) ;;
12354
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12355
     esac
12356
else
12357
    lt_prog_compiler_pic_CXX=
12358
     lt_prog_compiler_can_build_shared_CXX=no
12359
fi
12360
 
12361
fi
12362
case $host_os in
12363
  # For platforms which do not support PIC, -DPIC is meaningless:
12364
  *djgpp*)
12365
    lt_prog_compiler_pic_CXX=
12366
    ;;
12367
  *)
12368
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12369
    ;;
12370
esac
12371
 
12372
#
12373
# Check to make sure the static flag actually works.
12374
#
12375
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12376
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12377
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12378
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12379
  echo $ECHO_N "(cached) $ECHO_C" >&6
12380
else
12381
  lt_prog_compiler_static_works_CXX=no
12382
   save_LDFLAGS="$LDFLAGS"
12383
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12384
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12385
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12386
     # The linker can only warn and ignore the option if not recognized
12387
     # So say no if there are warnings
12388
     if test -s conftest.err; then
12389
       # Append any errors to the config.log.
12390
       cat conftest.err 1>&5
12391
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12392
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12393
       if diff conftest.exp conftest.er2 >/dev/null; then
12394
         lt_prog_compiler_static_works_CXX=yes
12395
       fi
12396
     else
12397
       lt_prog_compiler_static_works_CXX=yes
12398
     fi
12399
   fi
12400
   $rm conftest*
12401
   LDFLAGS="$save_LDFLAGS"
12402
 
12403
fi
12404
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12405
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12406
 
12407
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12408
    :
12409
else
12410
    lt_prog_compiler_static_CXX=
12411
fi
12412
 
12413
 
12414
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12415
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12416
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12417
  echo $ECHO_N "(cached) $ECHO_C" >&6
12418
else
12419
  lt_cv_prog_compiler_c_o_CXX=no
12420
   $rm -r conftest 2>/dev/null
12421
   mkdir conftest
12422
   cd conftest
12423
   mkdir out
12424
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425
 
12426
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12427
   # Insert the option either (1) after the last *FLAGS variable, or
12428
   # (2) before a word containing "conftest.", or (3) at the end.
12429
   # Note that $ac_compile itself does not contain backslashes and begins
12430
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12431
   lt_compile=`echo "$ac_compile" | $SED \
12432
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434
   -e 's:$: $lt_compiler_flag:'`
12435
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12436
   (eval "$lt_compile" 2>out/conftest.err)
12437
   ac_status=$?
12438
   cat out/conftest.err >&5
12439
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12440
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12441
   then
12442
     # The compiler can only warn and ignore the option if not recognized
12443
     # So say no if there are warnings
12444
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12445
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12446
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12447
       lt_cv_prog_compiler_c_o_CXX=yes
12448
     fi
12449
   fi
12450
   chmod u+w . 2>&5
12451
   $rm conftest*
12452
   # SGI C++ compiler will create directory out/ii_files/ for
12453
   # template instantiation
12454
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12455
   $rm out/* && rmdir out
12456
   cd ..
12457
   rmdir conftest
12458
   $rm conftest*
12459
 
12460
fi
12461
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12462
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12463
 
12464
 
12465
hard_links="nottested"
12466
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12467
  # do not overwrite the value of need_locks provided by the user
12468
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12469
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12470
  hard_links=yes
12471
  $rm conftest*
12472
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12473
  touch conftest.a
12474
  ln conftest.a conftest.b 2>&5 || hard_links=no
12475
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12476
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12477
echo "${ECHO_T}$hard_links" >&6; }
12478
  if test "$hard_links" = no; then
12479
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12480
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12481
    need_locks=warn
12482
  fi
12483
else
12484
  need_locks=no
12485
fi
12486
 
12487
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12488
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12489
 
12490
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12491
  case $host_os in
12492
  aix4* | aix5*)
12493
    # If we're using GNU nm, then we don't want the "-C" option.
12494
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12495
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12496
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12497
    else
12498
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12499
    fi
12500
    ;;
12501
  pw32*)
12502
    export_symbols_cmds_CXX="$ltdll_cmds"
12503
  ;;
12504
  cygwin* | mingw*)
12505
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12506
  ;;
12507
  linux* | k*bsd*-gnu)
12508
    link_all_deplibs_CXX=no
12509
  ;;
12510
  *)
12511
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12512
  ;;
12513
  esac
12514
 
12515
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12516
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12517
test "$ld_shlibs_CXX" = no && can_build_shared=no
12518
 
12519
#
12520
# Do we need to explicitly link libc?
12521
#
12522
case "x$archive_cmds_need_lc_CXX" in
12523
x|xyes)
12524
  # Assume -lc should be added
12525
  archive_cmds_need_lc_CXX=yes
12526
 
12527
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12528
    case $archive_cmds_CXX in
12529
    *'~'*)
12530
      # FIXME: we may have to deal with multi-command sequences.
12531
      ;;
12532
    '$CC '*)
12533
      # Test whether the compiler implicitly links with -lc since on some
12534
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12535
      # to ld, don't add -lc before -lgcc.
12536
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12537
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12538
      $rm conftest*
12539
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12540
 
12541
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542
  (eval $ac_compile) 2>&5
12543
  ac_status=$?
12544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545
  (exit $ac_status); } 2>conftest.err; then
12546
        soname=conftest
12547
        lib=conftest
12548
        libobjs=conftest.$ac_objext
12549
        deplibs=
12550
        wl=$lt_prog_compiler_wl_CXX
12551
	pic_flag=$lt_prog_compiler_pic_CXX
12552
        compiler_flags=-v
12553
        linker_flags=-v
12554
        verstring=
12555
        output_objdir=.
12556
        libname=conftest
12557
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12558
        allow_undefined_flag_CXX=
12559
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12560
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12561
  ac_status=$?
12562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563
  (exit $ac_status); }
12564
        then
12565
	  archive_cmds_need_lc_CXX=no
12566
        else
12567
	  archive_cmds_need_lc_CXX=yes
12568
        fi
12569
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12570
      else
12571
        cat conftest.err 1>&5
12572
      fi
12573
      $rm conftest*
12574
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12575
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12576
      ;;
12577
    esac
12578
  fi
12579
  ;;
12580
esac
12581
 
12582
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12583
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12584
library_names_spec=
12585
libname_spec='lib$name'
12586
soname_spec=
12587
shrext_cmds=".so"
12588
postinstall_cmds=
12589
postuninstall_cmds=
12590
finish_cmds=
12591
finish_eval=
12592
shlibpath_var=
12593
shlibpath_overrides_runpath=unknown
12594
version_type=none
12595
dynamic_linker="$host_os ld.so"
12596
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12597
 
12598
need_lib_prefix=unknown
12599
hardcode_into_libs=no
12600
 
12601
# when you set need_version to no, make sure it does not cause -set_version
12602
# flags to be left without arguments
12603
need_version=unknown
12604
 
12605
case $host_os in
12606
aix3*)
12607
  version_type=linux
12608
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12609
  shlibpath_var=LIBPATH
12610
 
12611
  # AIX 3 has no versioning support, so we append a major version to the name.
12612
  soname_spec='${libname}${release}${shared_ext}$major'
12613
  ;;
12614
 
12615
aix4* | aix5*)
12616
  version_type=linux
12617
  need_lib_prefix=no
12618
  need_version=no
12619
  hardcode_into_libs=yes
12620
  if test "$host_cpu" = ia64; then
12621
    # AIX 5 supports IA64
12622
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12623
    shlibpath_var=LD_LIBRARY_PATH
12624
  else
12625
    # With GCC up to 2.95.x, collect2 would create an import file
12626
    # for dependence libraries.  The import file would start with
12627
    # the line `#! .'.  This would cause the generated library to
12628
    # depend on `.', always an invalid library.  This was fixed in
12629
    # development snapshots of GCC prior to 3.0.
12630
    case $host_os in
12631
      aix4 | aix4.[01] | aix4.[01].*)
12632
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12633
	   echo ' yes '
12634
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12635
	:
12636
      else
12637
	can_build_shared=no
12638
      fi
12639
      ;;
12640
    esac
12641
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12642
    # soname into executable. Probably we can add versioning support to
12643
    # collect2, so additional links can be useful in future.
12644
    if test "$aix_use_runtimelinking" = yes; then
12645
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12646
      # instead of lib<name>.a to let people know that these are not
12647
      # typical AIX shared libraries.
12648
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12649
    else
12650
      # We preserve .a as extension for shared libraries through AIX4.2
12651
      # and later when we are not doing run time linking.
12652
      library_names_spec='${libname}${release}.a $libname.a'
12653
      soname_spec='${libname}${release}${shared_ext}$major'
12654
    fi
12655
    shlibpath_var=LIBPATH
12656
  fi
12657
  ;;
12658
 
12659
amigaos*)
12660
  library_names_spec='$libname.ixlibrary $libname.a'
12661
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12662
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12663
  ;;
12664
 
12665
beos*)
12666
  library_names_spec='${libname}${shared_ext}'
12667
  dynamic_linker="$host_os ld.so"
12668
  shlibpath_var=LIBRARY_PATH
12669
  ;;
12670
 
12671
bsdi[45]*)
12672
  version_type=linux
12673
  need_version=no
12674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675
  soname_spec='${libname}${release}${shared_ext}$major'
12676
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12677
  shlibpath_var=LD_LIBRARY_PATH
12678
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12679
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12680
  # the default ld.so.conf also contains /usr/contrib/lib and
12681
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12682
  # libtool to hard-code these into programs
12683
  ;;
12684
 
12685
cygwin* | mingw* | pw32*)
12686
  version_type=windows
12687
  shrext_cmds=".dll"
12688
  need_version=no
12689
  need_lib_prefix=no
12690
 
12691
  case $GCC,$host_os in
12692
  yes,cygwin* | yes,mingw* | yes,pw32*)
12693
    library_names_spec='$libname.dll.a'
12694
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12695
    postinstall_cmds='base_file=`basename \${file}`~
12696
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12697
      dldir=$destdir/`dirname \$dlpath`~
12698
      test -d \$dldir || mkdir -p \$dldir~
12699
      $install_prog $dir/$dlname \$dldir/$dlname~
12700
      chmod a+x \$dldir/$dlname'
12701
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12702
      dlpath=$dir/\$dldll~
12703
       $rm \$dlpath'
12704
    shlibpath_overrides_runpath=yes
12705
 
12706
    case $host_os in
12707
    cygwin*)
12708
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12709
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12711
      ;;
12712
    mingw*)
12713
      # MinGW DLLs use traditional 'lib' prefix
12714
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12715
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12716
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12717
        # It is most probably a Windows format PATH printed by
12718
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12719
        # path with ; separators, and with drive letters. We can handle the
12720
        # drive letters (cygwin fileutils understands them), so leave them,
12721
        # especially as we might pass files found there to a mingw objdump,
12722
        # which wouldn't understand a cygwinified path. Ahh.
12723
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12724
      else
12725
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12726
      fi
12727
      ;;
12728
    pw32*)
12729
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12730
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12731
      ;;
12732
    esac
12733
    ;;
12734
 
12735
  *)
12736
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12737
    ;;
12738
  esac
12739
  dynamic_linker='Win32 ld.exe'
12740
  # FIXME: first we should search . and the directory the executable is in
12741
  shlibpath_var=PATH
12742
  ;;
12743
 
12744
darwin* | rhapsody*)
12745
  dynamic_linker="$host_os dyld"
12746
  version_type=darwin
12747
  need_lib_prefix=no
12748
  need_version=no
12749
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12750
  soname_spec='${libname}${release}${major}$shared_ext'
12751
  shlibpath_overrides_runpath=yes
12752
  shlibpath_var=DYLD_LIBRARY_PATH
12753
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12754
 
12755
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12756
  ;;
12757
 
12758
dgux*)
12759
  version_type=linux
12760
  need_lib_prefix=no
12761
  need_version=no
12762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12763
  soname_spec='${libname}${release}${shared_ext}$major'
12764
  shlibpath_var=LD_LIBRARY_PATH
12765
  ;;
12766
 
12767
freebsd1*)
12768
  dynamic_linker=no
12769
  ;;
12770
 
12771
freebsd* | dragonfly*)
12772
  # DragonFly does not have aout.  When/if they implement a new
12773
  # versioning mechanism, adjust this.
12774
  if test -x /usr/bin/objformat; then
12775
    objformat=`/usr/bin/objformat`
12776
  else
12777
    case $host_os in
12778
    freebsd[123]*) objformat=aout ;;
12779
    *) objformat=elf ;;
12780
    esac
12781
  fi
12782
  version_type=freebsd-$objformat
12783
  case $version_type in
12784
    freebsd-elf*)
12785
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12786
      need_version=no
12787
      need_lib_prefix=no
12788
      ;;
12789
    freebsd-*)
12790
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12791
      need_version=yes
12792
      ;;
12793
  esac
12794
  shlibpath_var=LD_LIBRARY_PATH
12795
  case $host_os in
12796
  freebsd2*)
12797
    shlibpath_overrides_runpath=yes
12798
    ;;
12799
  freebsd3.[01]* | freebsdelf3.[01]*)
12800
    shlibpath_overrides_runpath=yes
12801
    hardcode_into_libs=yes
12802
    ;;
12803
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12804
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12805
    shlibpath_overrides_runpath=no
12806
    hardcode_into_libs=yes
12807
    ;;
12808
  *) # from 4.6 on, and DragonFly
12809
    shlibpath_overrides_runpath=yes
12810
    hardcode_into_libs=yes
12811
    ;;
12812
  esac
12813
  ;;
12814
 
12815
gnu*)
12816
  version_type=linux
12817
  need_lib_prefix=no
12818
  need_version=no
12819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12820
  soname_spec='${libname}${release}${shared_ext}$major'
12821
  shlibpath_var=LD_LIBRARY_PATH
12822
  hardcode_into_libs=yes
12823
  ;;
12824
 
12825
hpux9* | hpux10* | hpux11*)
12826
  # Give a soname corresponding to the major version so that dld.sl refuses to
12827
  # link against other versions.
12828
  version_type=sunos
12829
  need_lib_prefix=no
12830
  need_version=no
12831
  case $host_cpu in
12832
  ia64*)
12833
    shrext_cmds='.so'
12834
    hardcode_into_libs=yes
12835
    dynamic_linker="$host_os dld.so"
12836
    shlibpath_var=LD_LIBRARY_PATH
12837
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12838
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839
    soname_spec='${libname}${release}${shared_ext}$major'
12840
    if test "X$HPUX_IA64_MODE" = X32; then
12841
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12842
    else
12843
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12844
    fi
12845
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12846
    ;;
12847
   hppa*64*)
12848
     shrext_cmds='.sl'
12849
     hardcode_into_libs=yes
12850
     dynamic_linker="$host_os dld.sl"
12851
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12852
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12853
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854
     soname_spec='${libname}${release}${shared_ext}$major'
12855
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12856
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12857
     ;;
12858
   *)
12859
    shrext_cmds='.sl'
12860
    dynamic_linker="$host_os dld.sl"
12861
    shlibpath_var=SHLIB_PATH
12862
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12863
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864
    soname_spec='${libname}${release}${shared_ext}$major'
12865
    ;;
12866
  esac
12867
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12868
  postinstall_cmds='chmod 555 $lib'
12869
  ;;
12870
 
12871
interix[3-9]*)
12872
  version_type=linux
12873
  need_lib_prefix=no
12874
  need_version=no
12875
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12876
  soname_spec='${libname}${release}${shared_ext}$major'
12877
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12878
  shlibpath_var=LD_LIBRARY_PATH
12879
  shlibpath_overrides_runpath=no
12880
  hardcode_into_libs=yes
12881
  ;;
12882
 
12883
irix5* | irix6* | nonstopux*)
12884
  case $host_os in
12885
    nonstopux*) version_type=nonstopux ;;
12886
    *)
12887
	if test "$lt_cv_prog_gnu_ld" = yes; then
12888
		version_type=linux
12889
	else
12890
		version_type=irix
12891
	fi ;;
12892
  esac
12893
  need_lib_prefix=no
12894
  need_version=no
12895
  soname_spec='${libname}${release}${shared_ext}$major'
12896
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12897
  case $host_os in
12898
  irix5* | nonstopux*)
12899
    libsuff= shlibsuff=
12900
    ;;
12901
  *)
12902
    case $LD in # libtool.m4 will add one of these switches to LD
12903
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12904
      libsuff= shlibsuff= libmagic=32-bit;;
12905
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12906
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12907
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12908
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12909
    *) libsuff= shlibsuff= libmagic=never-match;;
12910
    esac
12911
    ;;
12912
  esac
12913
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12914
  shlibpath_overrides_runpath=no
12915
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12916
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12917
  hardcode_into_libs=yes
12918
  ;;
12919
 
12920
# No shared lib support for Linux oldld, aout, or coff.
12921
linux*oldld* | linux*aout* | linux*coff*)
12922
  dynamic_linker=no
12923
  ;;
12924
 
12925
# This must be Linux ELF.
12926
linux* | k*bsd*-gnu)
12927
  version_type=linux
12928
  need_lib_prefix=no
12929
  need_version=no
12930
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931
  soname_spec='${libname}${release}${shared_ext}$major'
12932
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12933
  shlibpath_var=LD_LIBRARY_PATH
12934
  shlibpath_overrides_runpath=no
12935
  # This implies no fast_install, which is unacceptable.
12936
  # Some rework will be needed to allow for fast_install
12937
  # before this can be enabled.
12938
  hardcode_into_libs=yes
12939
 
12940
  # Append ld.so.conf contents to the search path
12941
  if test -f /etc/ld.so.conf; then
12942
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12943
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12944
  fi
12945
 
12946
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12947
  # powerpc, because MkLinux only supported shared libraries with the
12948
  # GNU dynamic linker.  Since this was broken with cross compilers,
12949
  # most powerpc-linux boxes support dynamic linking these days and
12950
  # people can always --disable-shared, the test was removed, and we
12951
  # assume the GNU/Linux dynamic linker is in use.
12952
  dynamic_linker='GNU/Linux ld.so'
12953
  ;;
12954
 
12955
netbsdelf*-gnu)
12956
  version_type=linux
12957
  need_lib_prefix=no
12958
  need_version=no
12959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12960
  soname_spec='${libname}${release}${shared_ext}$major'
12961
  shlibpath_var=LD_LIBRARY_PATH
12962
  shlibpath_overrides_runpath=no
12963
  hardcode_into_libs=yes
12964
  dynamic_linker='NetBSD ld.elf_so'
12965
  ;;
12966
 
12967
netbsd*)
12968
  version_type=sunos
12969
  need_lib_prefix=no
12970
  need_version=no
12971
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12972
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12973
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12974
    dynamic_linker='NetBSD (a.out) ld.so'
12975
  else
12976
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12977
    soname_spec='${libname}${release}${shared_ext}$major'
12978
    dynamic_linker='NetBSD ld.elf_so'
12979
  fi
12980
  shlibpath_var=LD_LIBRARY_PATH
12981
  shlibpath_overrides_runpath=yes
12982
  hardcode_into_libs=yes
12983
  ;;
12984
 
12985
newsos6)
12986
  version_type=linux
12987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988
  shlibpath_var=LD_LIBRARY_PATH
12989
  shlibpath_overrides_runpath=yes
12990
  ;;
12991
 
12992
nto-qnx*)
12993
  version_type=linux
12994
  need_lib_prefix=no
12995
  need_version=no
12996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997
  soname_spec='${libname}${release}${shared_ext}$major'
12998
  shlibpath_var=LD_LIBRARY_PATH
12999
  shlibpath_overrides_runpath=yes
13000
  ;;
13001
 
13002
openbsd*)
13003
  version_type=sunos
13004
  sys_lib_dlsearch_path_spec="/usr/lib"
13005
  need_lib_prefix=no
13006
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13007
  case $host_os in
13008
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13009
    *)                         need_version=no  ;;
13010
  esac
13011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13012
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13013
  shlibpath_var=LD_LIBRARY_PATH
13014
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13015
    case $host_os in
13016
      openbsd2.[89] | openbsd2.[89].*)
13017
	shlibpath_overrides_runpath=no
13018
	;;
13019
      *)
13020
	shlibpath_overrides_runpath=yes
13021
	;;
13022
      esac
13023
  else
13024
    shlibpath_overrides_runpath=yes
13025
  fi
13026
  ;;
13027
 
13028
os2*)
13029
  libname_spec='$name'
13030
  shrext_cmds=".dll"
13031
  need_lib_prefix=no
13032
  library_names_spec='$libname${shared_ext} $libname.a'
13033
  dynamic_linker='OS/2 ld.exe'
13034
  shlibpath_var=LIBPATH
13035
  ;;
13036
 
13037
osf3* | osf4* | osf5*)
13038
  version_type=osf
13039
  need_lib_prefix=no
13040
  need_version=no
13041
  soname_spec='${libname}${release}${shared_ext}$major'
13042
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043
  shlibpath_var=LD_LIBRARY_PATH
13044
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13045
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13046
  ;;
13047
 
13048
rdos*)
13049
  dynamic_linker=no
13050
  ;;
13051
 
13052
solaris*)
13053
  version_type=linux
13054
  need_lib_prefix=no
13055
  need_version=no
13056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13057
  soname_spec='${libname}${release}${shared_ext}$major'
13058
  shlibpath_var=LD_LIBRARY_PATH
13059
  shlibpath_overrides_runpath=yes
13060
  hardcode_into_libs=yes
13061
  # ldd complains unless libraries are executable
13062
  postinstall_cmds='chmod +x $lib'
13063
  ;;
13064
 
13065
sunos4*)
13066
  version_type=sunos
13067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13068
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13069
  shlibpath_var=LD_LIBRARY_PATH
13070
  shlibpath_overrides_runpath=yes
13071
  if test "$with_gnu_ld" = yes; then
13072
    need_lib_prefix=no
13073
  fi
13074
  need_version=yes
13075
  ;;
13076
 
13077
sysv4 | sysv4.3*)
13078
  version_type=linux
13079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080
  soname_spec='${libname}${release}${shared_ext}$major'
13081
  shlibpath_var=LD_LIBRARY_PATH
13082
  case $host_vendor in
13083
    sni)
13084
      shlibpath_overrides_runpath=no
13085
      need_lib_prefix=no
13086
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13087
      runpath_var=LD_RUN_PATH
13088
      ;;
13089
    siemens)
13090
      need_lib_prefix=no
13091
      ;;
13092
    motorola)
13093
      need_lib_prefix=no
13094
      need_version=no
13095
      shlibpath_overrides_runpath=no
13096
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13097
      ;;
13098
  esac
13099
  ;;
13100
 
13101
sysv4*MP*)
13102
  if test -d /usr/nec ;then
13103
    version_type=linux
13104
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13105
    soname_spec='$libname${shared_ext}.$major'
13106
    shlibpath_var=LD_LIBRARY_PATH
13107
  fi
13108
  ;;
13109
 
13110
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13111
  version_type=freebsd-elf
13112
  need_lib_prefix=no
13113
  need_version=no
13114
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13115
  soname_spec='${libname}${release}${shared_ext}$major'
13116
  shlibpath_var=LD_LIBRARY_PATH
13117
  hardcode_into_libs=yes
13118
  if test "$with_gnu_ld" = yes; then
13119
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13120
    shlibpath_overrides_runpath=no
13121
  else
13122
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13123
    shlibpath_overrides_runpath=yes
13124
    case $host_os in
13125
      sco3.2v5*)
13126
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13127
	;;
13128
    esac
13129
  fi
13130
  sys_lib_dlsearch_path_spec='/usr/lib'
13131
  ;;
13132
 
13133
uts4*)
13134
  version_type=linux
13135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136
  soname_spec='${libname}${release}${shared_ext}$major'
13137
  shlibpath_var=LD_LIBRARY_PATH
13138
  ;;
13139
 
13140
*)
13141
  dynamic_linker=no
13142
  ;;
13143
esac
13144
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13145
echo "${ECHO_T}$dynamic_linker" >&6; }
13146
test "$dynamic_linker" = no && can_build_shared=no
13147
 
13148
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13149
if test "$GCC" = yes; then
13150
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13151
fi
13152
 
13153
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13154
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13155
hardcode_action_CXX=
13156
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13157
   test -n "$runpath_var_CXX" || \
13158
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13159
 
13160
  # We can hardcode non-existant directories.
13161
  if test "$hardcode_direct_CXX" != no &&
13162
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13163
     # have to relink, otherwise we might link with an installed library
13164
     # when we should be linking with a yet-to-be-installed one
13165
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13166
     test "$hardcode_minus_L_CXX" != no; then
13167
    # Linking always hardcodes the temporary library directory.
13168
    hardcode_action_CXX=relink
13169
  else
13170
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13171
    hardcode_action_CXX=immediate
13172
  fi
13173
else
13174
  # We cannot hardcode anything, or else we can only hardcode existing
13175
  # directories.
13176
  hardcode_action_CXX=unsupported
13177
fi
13178
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13179
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13180
 
13181
if test "$hardcode_action_CXX" = relink; then
13182
  # Fast installation is not supported
13183
  enable_fast_install=no
13184
elif test "$shlibpath_overrides_runpath" = yes ||
13185
     test "$enable_shared" = no; then
13186
  # Fast installation is not necessary
13187
  enable_fast_install=needless
13188
fi
13189
 
13190
 
13191
# The else clause should only fire when bootstrapping the
13192
# libtool distribution, otherwise you forgot to ship ltmain.sh
13193
# with your package, and you will get complaints that there are
13194
# no rules to generate ltmain.sh.
13195
if test -f "$ltmain"; then
13196
  # See if we are running on zsh, and set the options which allow our commands through
13197
  # without removal of \ escapes.
13198
  if test -n "${ZSH_VERSION+set}" ; then
13199
    setopt NO_GLOB_SUBST
13200
  fi
13201
  # Now quote all the things that may contain metacharacters while being
13202
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13203
  # variables and quote the copies for generation of the libtool script.
13204
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13205
    SED SHELL STRIP \
13206
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13207
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13208
    deplibs_check_method reload_flag reload_cmds need_locks \
13209
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13210
    lt_cv_sys_global_symbol_to_c_name_address \
13211
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13212
    old_postinstall_cmds old_postuninstall_cmds \
13213
    compiler_CXX \
13214
    CC_CXX \
13215
    LD_CXX \
13216
    lt_prog_compiler_wl_CXX \
13217
    lt_prog_compiler_pic_CXX \
13218
    lt_prog_compiler_static_CXX \
13219
    lt_prog_compiler_no_builtin_flag_CXX \
13220
    export_dynamic_flag_spec_CXX \
13221
    thread_safe_flag_spec_CXX \
13222
    whole_archive_flag_spec_CXX \
13223
    enable_shared_with_static_runtimes_CXX \
13224
    old_archive_cmds_CXX \
13225
    old_archive_from_new_cmds_CXX \
13226
    predep_objects_CXX \
13227
    postdep_objects_CXX \
13228
    predeps_CXX \
13229
    postdeps_CXX \
13230
    compiler_lib_search_path_CXX \
13231
    archive_cmds_CXX \
13232
    archive_expsym_cmds_CXX \
13233
    postinstall_cmds_CXX \
13234
    postuninstall_cmds_CXX \
13235
    old_archive_from_expsyms_cmds_CXX \
13236
    allow_undefined_flag_CXX \
13237
    no_undefined_flag_CXX \
13238
    export_symbols_cmds_CXX \
13239
    hardcode_libdir_flag_spec_CXX \
13240
    hardcode_libdir_flag_spec_ld_CXX \
13241
    hardcode_libdir_separator_CXX \
13242
    hardcode_automatic_CXX \
13243
    module_cmds_CXX \
13244
    module_expsym_cmds_CXX \
13245
    lt_cv_prog_compiler_c_o_CXX \
13246
    fix_srcfile_path_CXX \
13247
    exclude_expsyms_CXX \
13248
    include_expsyms_CXX; do
13249
 
13250
    case $var in
13251
    old_archive_cmds_CXX | \
13252
    old_archive_from_new_cmds_CXX | \
13253
    archive_cmds_CXX | \
13254
    archive_expsym_cmds_CXX | \
13255
    module_cmds_CXX | \
13256
    module_expsym_cmds_CXX | \
13257
    old_archive_from_expsyms_cmds_CXX | \
13258
    export_symbols_cmds_CXX | \
13259
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13260
    postinstall_cmds | postuninstall_cmds | \
13261
    old_postinstall_cmds | old_postuninstall_cmds | \
13262
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13263
      # Double-quote double-evaled strings.
13264
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13265
      ;;
13266
    *)
13267
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13268
      ;;
13269
    esac
13270
  done
13271
 
13272
  case $lt_echo in
13273
  *'\$0 --fallback-echo"')
13274
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13275
    ;;
13276
  esac
13277
 
13278
cfgfile="$ofile"
13279
 
13280
  cat <<__EOF__ >> "$cfgfile"
13281
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13282
 
13283
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13284
 
13285
# Shell to use when invoking shell scripts.
13286
SHELL=$lt_SHELL
13287
 
13288
# Whether or not to build shared libraries.
13289
build_libtool_libs=$enable_shared
13290
 
13291
# Whether or not to build static libraries.
13292
build_old_libs=$enable_static
13293
 
13294
# Whether or not to add -lc for building shared libraries.
13295
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13296
 
13297
# Whether or not to disallow shared libs when runtime libs are static
13298
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13299
 
13300
# Whether or not to optimize for fast installation.
13301
fast_install=$enable_fast_install
13302
 
13303
# The host system.
13304
host_alias=$host_alias
13305
host=$host
13306
host_os=$host_os
13307
 
13308
# The build system.
13309
build_alias=$build_alias
13310
build=$build
13311
build_os=$build_os
13312
 
13313
# An echo program that does not interpret backslashes.
13314
echo=$lt_echo
13315
 
13316
# The archiver.
13317
AR=$lt_AR
13318
AR_FLAGS=$lt_AR_FLAGS
13319
 
13320
# A C compiler.
13321
LTCC=$lt_LTCC
13322
 
13323
# LTCC compiler flags.
13324
LTCFLAGS=$lt_LTCFLAGS
13325
 
13326
# A language-specific compiler.
13327
CC=$lt_compiler_CXX
13328
 
13329
# Is the compiler the GNU C compiler?
13330
with_gcc=$GCC_CXX
13331
 
13332
# An ERE matcher.
13333
EGREP=$lt_EGREP
13334
 
13335
# The linker used to build libraries.
13336
LD=$lt_LD_CXX
13337
 
13338
# Whether we need hard or soft links.
13339
LN_S=$lt_LN_S
13340
 
13341
# A BSD-compatible nm program.
13342
NM=$lt_NM
13343
 
13344
# A symbol stripping program
13345
STRIP=$lt_STRIP
13346
 
13347
# Used to examine libraries when file_magic_cmd begins "file"
13348
MAGIC_CMD=$MAGIC_CMD
13349
 
13350
# Used on cygwin: DLL creation program.
13351
DLLTOOL="$DLLTOOL"
13352
 
13353
# Used on cygwin: object dumper.
13354
OBJDUMP="$OBJDUMP"
13355
 
13356
# Used on cygwin: assembler.
13357
AS="$AS"
13358
 
13359
# The name of the directory that contains temporary libtool files.
13360
objdir=$objdir
13361
 
13362
# How to create reloadable object files.
13363
reload_flag=$lt_reload_flag
13364
reload_cmds=$lt_reload_cmds
13365
 
13366
# How to pass a linker flag through the compiler.
13367
wl=$lt_lt_prog_compiler_wl_CXX
13368
 
13369
# Object file suffix (normally "o").
13370
objext="$ac_objext"
13371
 
13372
# Old archive suffix (normally "a").
13373
libext="$libext"
13374
 
13375
# Shared library suffix (normally ".so").
13376
shrext_cmds='$shrext_cmds'
13377
 
13378
# Executable file suffix (normally "").
13379
exeext="$exeext"
13380
 
13381
# Additional compiler flags for building library objects.
13382
pic_flag=$lt_lt_prog_compiler_pic_CXX
13383
pic_mode=$pic_mode
13384
 
13385
# What is the maximum length of a command?
13386
max_cmd_len=$lt_cv_sys_max_cmd_len
13387
 
13388
# Does compiler simultaneously support -c and -o options?
13389
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13390
 
13391
# Must we lock files when doing compilation?
13392
need_locks=$lt_need_locks
13393
 
13394
# Do we need the lib prefix for modules?
13395
need_lib_prefix=$need_lib_prefix
13396
 
13397
# Do we need a version for libraries?
13398
need_version=$need_version
13399
 
13400
# Whether dlopen is supported.
13401
dlopen_support=$enable_dlopen
13402
 
13403
# Whether dlopen of programs is supported.
13404
dlopen_self=$enable_dlopen_self
13405
 
13406
# Whether dlopen of statically linked programs is supported.
13407
dlopen_self_static=$enable_dlopen_self_static
13408
 
13409
# Compiler flag to prevent dynamic linking.
13410
link_static_flag=$lt_lt_prog_compiler_static_CXX
13411
 
13412
# Compiler flag to turn off builtin functions.
13413
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13414
 
13415
# Compiler flag to allow reflexive dlopens.
13416
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13417
 
13418
# Compiler flag to generate shared objects directly from archives.
13419
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13420
 
13421
# Compiler flag to generate thread-safe objects.
13422
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13423
 
13424
# Library versioning type.
13425
version_type=$version_type
13426
 
13427
# Format of library name prefix.
13428
libname_spec=$lt_libname_spec
13429
 
13430
# List of archive names.  First name is the real one, the rest are links.
13431
# The last name is the one that the linker finds with -lNAME.
13432
library_names_spec=$lt_library_names_spec
13433
 
13434
# The coded name of the library, if different from the real name.
13435
soname_spec=$lt_soname_spec
13436
 
13437
# Commands used to build and install an old-style archive.
13438
RANLIB=$lt_RANLIB
13439
old_archive_cmds=$lt_old_archive_cmds_CXX
13440
old_postinstall_cmds=$lt_old_postinstall_cmds
13441
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13442
 
13443
# Create an old-style archive from a shared archive.
13444
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13445
 
13446
# Create a temporary old-style archive to link instead of a shared archive.
13447
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13448
 
13449
# Commands used to build and install a shared archive.
13450
archive_cmds=$lt_archive_cmds_CXX
13451
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13452
postinstall_cmds=$lt_postinstall_cmds
13453
postuninstall_cmds=$lt_postuninstall_cmds
13454
 
13455
# Commands used to build a loadable module (assumed same as above if empty)
13456
module_cmds=$lt_module_cmds_CXX
13457
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13458
 
13459
# Commands to strip libraries.
13460
old_striplib=$lt_old_striplib
13461
striplib=$lt_striplib
13462
 
13463
# Dependencies to place before the objects being linked to create a
13464
# shared library.
13465
predep_objects=$lt_predep_objects_CXX
13466
 
13467
# Dependencies to place after the objects being linked to create a
13468
# shared library.
13469
postdep_objects=$lt_postdep_objects_CXX
13470
 
13471
# Dependencies to place before the objects being linked to create a
13472
# shared library.
13473
predeps=$lt_predeps_CXX
13474
 
13475
# Dependencies to place after the objects being linked to create a
13476
# shared library.
13477
postdeps=$lt_postdeps_CXX
13478
 
13479
# The library search path used internally by the compiler when linking
13480
# a shared library.
13481
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13482
 
13483
# Method to check whether dependent libraries are shared objects.
13484
deplibs_check_method=$lt_deplibs_check_method
13485
 
13486
# Command to use when deplibs_check_method == file_magic.
13487
file_magic_cmd=$lt_file_magic_cmd
13488
 
13489
# Flag that allows shared libraries with undefined symbols to be built.
13490
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13491
 
13492
# Flag that forces no undefined symbols.
13493
no_undefined_flag=$lt_no_undefined_flag_CXX
13494
 
13495
# Commands used to finish a libtool library installation in a directory.
13496
finish_cmds=$lt_finish_cmds
13497
 
13498
# Same as above, but a single script fragment to be evaled but not shown.
13499
finish_eval=$lt_finish_eval
13500
 
13501
# Take the output of nm and produce a listing of raw symbols and C names.
13502
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13503
 
13504
# Transform the output of nm in a proper C declaration
13505
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13506
 
13507
# Transform the output of nm in a C name address pair
13508
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13509
 
13510
# This is the shared library runtime path variable.
13511
runpath_var=$runpath_var
13512
 
13513
# This is the shared library path variable.
13514
shlibpath_var=$shlibpath_var
13515
 
13516
# Is shlibpath searched before the hard-coded library search path?
13517
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13518
 
13519
# How to hardcode a shared library path into an executable.
13520
hardcode_action=$hardcode_action_CXX
13521
 
13522
# Whether we should hardcode library paths into libraries.
13523
hardcode_into_libs=$hardcode_into_libs
13524
 
13525
# Flag to hardcode \$libdir into a binary during linking.
13526
# This must work even if \$libdir does not exist.
13527
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13528
 
13529
# If ld is used when linking, flag to hardcode \$libdir into
13530
# a binary during linking. This must work even if \$libdir does
13531
# not exist.
13532
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13533
 
13534
# Whether we need a single -rpath flag with a separated argument.
13535
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13536
 
13537
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13538
# resulting binary.
13539
hardcode_direct=$hardcode_direct_CXX
13540
 
13541
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13542
# resulting binary.
13543
hardcode_minus_L=$hardcode_minus_L_CXX
13544
 
13545
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13546
# the resulting binary.
13547
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13548
 
13549
# Set to yes if building a shared library automatically hardcodes DIR into the library
13550
# and all subsequent libraries and executables linked against it.
13551
hardcode_automatic=$hardcode_automatic_CXX
13552
 
13553
# Variables whose values should be saved in libtool wrapper scripts and
13554
# restored at relink time.
13555
variables_saved_for_relink="$variables_saved_for_relink"
13556
 
13557
# Whether libtool must link a program against all its dependency libraries.
13558
link_all_deplibs=$link_all_deplibs_CXX
13559
 
13560
# Compile-time system search path for libraries
13561
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13562
 
13563
# Run-time system search path for libraries
13564
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13565
 
13566
# Fix the shell variable \$srcfile for the compiler.
13567
fix_srcfile_path=$lt_fix_srcfile_path
13568
 
13569
# Set to yes if exported symbols are required.
13570
always_export_symbols=$always_export_symbols_CXX
13571
 
13572
# The commands to list exported symbols.
13573
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13574
 
13575
# The commands to extract the exported symbol list from a shared archive.
13576
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13577
 
13578
# Symbols that should not be listed in the preloaded symbols.
13579
exclude_expsyms=$lt_exclude_expsyms_CXX
13580
 
13581
# Symbols that must always be exported.
13582
include_expsyms=$lt_include_expsyms_CXX
13583
 
13584
# ### END LIBTOOL TAG CONFIG: $tagname
13585
 
13586
__EOF__
13587
 
13588
 
13589
else
13590
  # If there is no Makefile yet, we rely on a make rule to execute
13591
  # `config.status --recheck' to rerun these tests and create the
13592
  # libtool script then.
13593
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13594
  if test -f "$ltmain_in"; then
13595
    test -f Makefile && make "$ltmain"
13596
  fi
13597
fi
13598
 
13599
 
13600
ac_ext=c
13601
ac_cpp='$CPP $CPPFLAGS'
13602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13605
 
13606
CC=$lt_save_CC
13607
LDCXX=$LD
13608
LD=$lt_save_LD
13609
GCC=$lt_save_GCC
13610
with_gnu_ldcxx=$with_gnu_ld
13611
with_gnu_ld=$lt_save_with_gnu_ld
13612
lt_cv_path_LDCXX=$lt_cv_path_LD
13613
lt_cv_path_LD=$lt_save_path_LD
13614
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13615
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13616
 
13617
	else
13618
	  tagname=""
13619
	fi
13620
	;;
13621
 
13622
      F77)
13623
	if test -n "$F77" && test "X$F77" != "Xno"; then
13624
 
13625
ac_ext=f
13626
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13627
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13629
 
13630
 
13631
archive_cmds_need_lc_F77=no
13632
allow_undefined_flag_F77=
13633
always_export_symbols_F77=no
13634
archive_expsym_cmds_F77=
13635
export_dynamic_flag_spec_F77=
13636
hardcode_direct_F77=no
13637
hardcode_libdir_flag_spec_F77=
13638
hardcode_libdir_flag_spec_ld_F77=
13639
hardcode_libdir_separator_F77=
13640
hardcode_minus_L_F77=no
13641
hardcode_automatic_F77=no
13642
module_cmds_F77=
13643
module_expsym_cmds_F77=
13644
link_all_deplibs_F77=unknown
13645
old_archive_cmds_F77=$old_archive_cmds
13646
no_undefined_flag_F77=
13647
whole_archive_flag_spec_F77=
13648
enable_shared_with_static_runtimes_F77=no
13649
 
13650
# Source file extension for f77 test sources.
13651
ac_ext=f
13652
 
13653
# Object file extension for compiled f77 test sources.
13654
objext=o
13655
objext_F77=$objext
13656
 
13657
# Code to be used in simple compile tests
13658
lt_simple_compile_test_code="\
13659
      subroutine t
13660
      return
13661
      end
13662
"
13663
 
13664
# Code to be used in simple link tests
13665
lt_simple_link_test_code="\
13666
      program t
13667
      end
13668
"
13669
 
13670
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13671
 
13672
# If no C compiler was specified, use CC.
13673
LTCC=${LTCC-"$CC"}
13674
 
13675
# If no C compiler flags were specified, use CFLAGS.
13676
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13677
 
13678
# Allow CC to be a program name with arguments.
13679
compiler=$CC
13680
 
13681
 
13682
# save warnings/boilerplate of simple test code
13683
ac_outfile=conftest.$ac_objext
13684
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13685
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13686
_lt_compiler_boilerplate=`cat conftest.err`
13687
$rm conftest*
13688
 
13689
ac_outfile=conftest.$ac_objext
13690
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13691
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13692
_lt_linker_boilerplate=`cat conftest.err`
13693
$rm conftest*
13694
 
13695
 
13696
# Allow CC to be a program name with arguments.
13697
lt_save_CC="$CC"
13698
CC=${F77-"f77"}
13699
compiler=$CC
13700
compiler_F77=$CC
13701
for cc_temp in $compiler""; do
13702
  case $cc_temp in
13703
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13705
    \-*) ;;
13706
    *) break;;
13707
  esac
13708
done
13709
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13710
 
13711
 
13712
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13713
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13714
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13715
echo "${ECHO_T}$can_build_shared" >&6; }
13716
 
13717
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13718
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13719
test "$can_build_shared" = "no" && enable_shared=no
13720
 
13721
# On AIX, shared libraries and static libraries use the same namespace, and
13722
# are all built from PIC.
13723
case $host_os in
13724
aix3*)
13725
  test "$enable_shared" = yes && enable_static=no
13726
  if test -n "$RANLIB"; then
13727
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13728
    postinstall_cmds='$RANLIB $lib'
13729
  fi
13730
  ;;
13731
aix4* | aix5*)
13732
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13733
    test "$enable_shared" = yes && enable_static=no
13734
  fi
13735
  ;;
13736
esac
13737
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13738
echo "${ECHO_T}$enable_shared" >&6; }
13739
 
13740
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13741
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13742
# Make sure either enable_shared or enable_static is yes.
13743
test "$enable_shared" = yes || enable_static=yes
13744
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13745
echo "${ECHO_T}$enable_static" >&6; }
13746
 
13747
GCC_F77="$G77"
13748
LD_F77="$LD"
13749
 
13750
lt_prog_compiler_wl_F77=
13751
lt_prog_compiler_pic_F77=
13752
lt_prog_compiler_static_F77=
13753
 
13754
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13755
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13756
 
13757
  if test "$GCC" = yes; then
13758
    lt_prog_compiler_wl_F77='-Wl,'
13759
    lt_prog_compiler_static_F77='-static'
13760
 
13761
    case $host_os in
13762
      aix*)
13763
      # All AIX code is PIC.
13764
      if test "$host_cpu" = ia64; then
13765
	# AIX 5 now supports IA64 processor
13766
	lt_prog_compiler_static_F77='-Bstatic'
13767
      fi
13768
      ;;
13769
 
13770
    amigaos*)
13771
      # FIXME: we need at least 68020 code to build shared libraries, but
13772
      # adding the `-m68020' flag to GCC prevents building anything better,
13773
      # like `-m68040'.
13774
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13775
      ;;
13776
 
13777
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13778
      # PIC is the default for these OSes.
13779
      ;;
13780
 
13781
    mingw* | cygwin* | pw32* | os2*)
13782
      # This hack is so that the source file can tell whether it is being
13783
      # built for inclusion in a dll (and should export symbols for example).
13784
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13785
      # (--disable-auto-import) libraries
13786
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13787
      ;;
13788
 
13789
    darwin* | rhapsody*)
13790
      # PIC is the default on this platform
13791
      # Common symbols not allowed in MH_DYLIB files
13792
      lt_prog_compiler_pic_F77='-fno-common'
13793
      ;;
13794
 
13795
    interix[3-9]*)
13796
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13797
      # Instead, we relocate shared libraries at runtime.
13798
      ;;
13799
 
13800
    msdosdjgpp*)
13801
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13802
      # on systems that don't support them.
13803
      lt_prog_compiler_can_build_shared_F77=no
13804
      enable_shared=no
13805
      ;;
13806
 
13807
    sysv4*MP*)
13808
      if test -d /usr/nec; then
13809
	lt_prog_compiler_pic_F77=-Kconform_pic
13810
      fi
13811
      ;;
13812
 
13813
    hpux*)
13814
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13815
      # not for PA HP-UX.
13816
      case $host_cpu in
13817
      hppa*64*|ia64*)
13818
	# +Z the default
13819
	;;
13820
      *)
13821
	lt_prog_compiler_pic_F77='-fPIC'
13822
	;;
13823
      esac
13824
      ;;
13825
 
13826
    *)
13827
      lt_prog_compiler_pic_F77='-fPIC'
13828
      ;;
13829
    esac
13830
  else
13831
    # PORTME Check for flag to pass linker flags through the system compiler.
13832
    case $host_os in
13833
    aix*)
13834
      lt_prog_compiler_wl_F77='-Wl,'
13835
      if test "$host_cpu" = ia64; then
13836
	# AIX 5 now supports IA64 processor
13837
	lt_prog_compiler_static_F77='-Bstatic'
13838
      else
13839
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13840
      fi
13841
      ;;
13842
      darwin*)
13843
        # PIC is the default on this platform
13844
        # Common symbols not allowed in MH_DYLIB files
13845
       case $cc_basename in
13846
         xlc*)
13847
         lt_prog_compiler_pic_F77='-qnocommon'
13848
         lt_prog_compiler_wl_F77='-Wl,'
13849
         ;;
13850
       esac
13851
       ;;
13852
 
13853
    mingw* | cygwin* | pw32* | os2*)
13854
      # This hack is so that the source file can tell whether it is being
13855
      # built for inclusion in a dll (and should export symbols for example).
13856
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13857
      ;;
13858
 
13859
    hpux9* | hpux10* | hpux11*)
13860
      lt_prog_compiler_wl_F77='-Wl,'
13861
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13862
      # not for PA HP-UX.
13863
      case $host_cpu in
13864
      hppa*64*|ia64*)
13865
	# +Z the default
13866
	;;
13867
      *)
13868
	lt_prog_compiler_pic_F77='+Z'
13869
	;;
13870
      esac
13871
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13872
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13873
      ;;
13874
 
13875
    irix5* | irix6* | nonstopux*)
13876
      lt_prog_compiler_wl_F77='-Wl,'
13877
      # PIC (with -KPIC) is the default.
13878
      lt_prog_compiler_static_F77='-non_shared'
13879
      ;;
13880
 
13881
    newsos6)
13882
      lt_prog_compiler_pic_F77='-KPIC'
13883
      lt_prog_compiler_static_F77='-Bstatic'
13884
      ;;
13885
 
13886
    linux* | k*bsd*-gnu)
13887
      case $cc_basename in
13888
      icc* | ecc*)
13889
	lt_prog_compiler_wl_F77='-Wl,'
13890
	lt_prog_compiler_pic_F77='-KPIC'
13891
	lt_prog_compiler_static_F77='-static'
13892
        ;;
13893
      pgcc* | pgf77* | pgf90* | pgf95*)
13894
        # Portland Group compilers (*not* the Pentium gcc compiler,
13895
	# which looks to be a dead project)
13896
	lt_prog_compiler_wl_F77='-Wl,'
13897
	lt_prog_compiler_pic_F77='-fpic'
13898
	lt_prog_compiler_static_F77='-Bstatic'
13899
        ;;
13900
      ccc*)
13901
        lt_prog_compiler_wl_F77='-Wl,'
13902
        # All Alpha code is PIC.
13903
        lt_prog_compiler_static_F77='-non_shared'
13904
        ;;
13905
      *)
13906
        case `$CC -V 2>&1 | sed 5q` in
13907
	*Sun\ C*)
13908
	  # Sun C 5.9
13909
	  lt_prog_compiler_pic_F77='-KPIC'
13910
	  lt_prog_compiler_static_F77='-Bstatic'
13911
	  lt_prog_compiler_wl_F77='-Wl,'
13912
	  ;;
13913
	*Sun\ F*)
13914
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13915
	  lt_prog_compiler_pic_F77='-KPIC'
13916
	  lt_prog_compiler_static_F77='-Bstatic'
13917
	  lt_prog_compiler_wl_F77=''
13918
	  ;;
13919
	esac
13920
	;;
13921
      esac
13922
      ;;
13923
 
13924
    osf3* | osf4* | osf5*)
13925
      lt_prog_compiler_wl_F77='-Wl,'
13926
      # All OSF/1 code is PIC.
13927
      lt_prog_compiler_static_F77='-non_shared'
13928
      ;;
13929
 
13930
    rdos*)
13931
      lt_prog_compiler_static_F77='-non_shared'
13932
      ;;
13933
 
13934
    solaris*)
13935
      lt_prog_compiler_pic_F77='-KPIC'
13936
      lt_prog_compiler_static_F77='-Bstatic'
13937
      case $cc_basename in
13938
      f77* | f90* | f95*)
13939
	lt_prog_compiler_wl_F77='-Qoption ld ';;
13940
      *)
13941
	lt_prog_compiler_wl_F77='-Wl,';;
13942
      esac
13943
      ;;
13944
 
13945
    sunos4*)
13946
      lt_prog_compiler_wl_F77='-Qoption ld '
13947
      lt_prog_compiler_pic_F77='-PIC'
13948
      lt_prog_compiler_static_F77='-Bstatic'
13949
      ;;
13950
 
13951
    sysv4 | sysv4.2uw2* | sysv4.3*)
13952
      lt_prog_compiler_wl_F77='-Wl,'
13953
      lt_prog_compiler_pic_F77='-KPIC'
13954
      lt_prog_compiler_static_F77='-Bstatic'
13955
      ;;
13956
 
13957
    sysv4*MP*)
13958
      if test -d /usr/nec ;then
13959
	lt_prog_compiler_pic_F77='-Kconform_pic'
13960
	lt_prog_compiler_static_F77='-Bstatic'
13961
      fi
13962
      ;;
13963
 
13964
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13965
      lt_prog_compiler_wl_F77='-Wl,'
13966
      lt_prog_compiler_pic_F77='-KPIC'
13967
      lt_prog_compiler_static_F77='-Bstatic'
13968
      ;;
13969
 
13970
    unicos*)
13971
      lt_prog_compiler_wl_F77='-Wl,'
13972
      lt_prog_compiler_can_build_shared_F77=no
13973
      ;;
13974
 
13975
    uts4*)
13976
      lt_prog_compiler_pic_F77='-pic'
13977
      lt_prog_compiler_static_F77='-Bstatic'
13978
      ;;
13979
 
13980
    *)
13981
      lt_prog_compiler_can_build_shared_F77=no
13982
      ;;
13983
    esac
13984
  fi
13985
 
13986
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13987
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13988
 
13989
#
13990
# Check to make sure the PIC flag actually works.
13991
#
13992
if test -n "$lt_prog_compiler_pic_F77"; then
13993
 
13994
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13995
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13996
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13997
  echo $ECHO_N "(cached) $ECHO_C" >&6
13998
else
13999
  lt_prog_compiler_pic_works_F77=no
14000
  ac_outfile=conftest.$ac_objext
14001
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14003
   # Insert the option either (1) after the last *FLAGS variable, or
14004
   # (2) before a word containing "conftest.", or (3) at the end.
14005
   # Note that $ac_compile itself does not contain backslashes and begins
14006
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14007
   # The option is referenced via a variable to avoid confusing sed.
14008
   lt_compile=`echo "$ac_compile" | $SED \
14009
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14010
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14011
   -e 's:$: $lt_compiler_flag:'`
14012
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14013
   (eval "$lt_compile" 2>conftest.err)
14014
   ac_status=$?
14015
   cat conftest.err >&5
14016
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14017
   if (exit $ac_status) && test -s "$ac_outfile"; then
14018
     # The compiler can only warn and ignore the option if not recognized
14019
     # So say no if there are warnings other than the usual output.
14020
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14021
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14022
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14023
       lt_prog_compiler_pic_works_F77=yes
14024
     fi
14025
   fi
14026
   $rm conftest*
14027
 
14028
fi
14029
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14030
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14031
 
14032
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14033
    case $lt_prog_compiler_pic_F77 in
14034
     "" | " "*) ;;
14035
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14036
     esac
14037
else
14038
    lt_prog_compiler_pic_F77=
14039
     lt_prog_compiler_can_build_shared_F77=no
14040
fi
14041
 
14042
fi
14043
case $host_os in
14044
  # For platforms which do not support PIC, -DPIC is meaningless:
14045
  *djgpp*)
14046
    lt_prog_compiler_pic_F77=
14047
    ;;
14048
  *)
14049
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14050
    ;;
14051
esac
14052
 
14053
#
14054
# Check to make sure the static flag actually works.
14055
#
14056
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14057
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14058
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14059
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14060
  echo $ECHO_N "(cached) $ECHO_C" >&6
14061
else
14062
  lt_prog_compiler_static_works_F77=no
14063
   save_LDFLAGS="$LDFLAGS"
14064
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14065
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14066
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14067
     # The linker can only warn and ignore the option if not recognized
14068
     # So say no if there are warnings
14069
     if test -s conftest.err; then
14070
       # Append any errors to the config.log.
14071
       cat conftest.err 1>&5
14072
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14073
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14074
       if diff conftest.exp conftest.er2 >/dev/null; then
14075
         lt_prog_compiler_static_works_F77=yes
14076
       fi
14077
     else
14078
       lt_prog_compiler_static_works_F77=yes
14079
     fi
14080
   fi
14081
   $rm conftest*
14082
   LDFLAGS="$save_LDFLAGS"
14083
 
14084
fi
14085
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14086
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14087
 
14088
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14089
    :
14090
else
14091
    lt_prog_compiler_static_F77=
14092
fi
14093
 
14094
 
14095
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14096
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14097
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14098
  echo $ECHO_N "(cached) $ECHO_C" >&6
14099
else
14100
  lt_cv_prog_compiler_c_o_F77=no
14101
   $rm -r conftest 2>/dev/null
14102
   mkdir conftest
14103
   cd conftest
14104
   mkdir out
14105
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14106
 
14107
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14108
   # Insert the option either (1) after the last *FLAGS variable, or
14109
   # (2) before a word containing "conftest.", or (3) at the end.
14110
   # Note that $ac_compile itself does not contain backslashes and begins
14111
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14112
   lt_compile=`echo "$ac_compile" | $SED \
14113
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14114
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14115
   -e 's:$: $lt_compiler_flag:'`
14116
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14117
   (eval "$lt_compile" 2>out/conftest.err)
14118
   ac_status=$?
14119
   cat out/conftest.err >&5
14120
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14121
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14122
   then
14123
     # The compiler can only warn and ignore the option if not recognized
14124
     # So say no if there are warnings
14125
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14126
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14127
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14128
       lt_cv_prog_compiler_c_o_F77=yes
14129
     fi
14130
   fi
14131
   chmod u+w . 2>&5
14132
   $rm conftest*
14133
   # SGI C++ compiler will create directory out/ii_files/ for
14134
   # template instantiation
14135
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14136
   $rm out/* && rmdir out
14137
   cd ..
14138
   rmdir conftest
14139
   $rm conftest*
14140
 
14141
fi
14142
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14143
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14144
 
14145
 
14146
hard_links="nottested"
14147
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14148
  # do not overwrite the value of need_locks provided by the user
14149
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14150
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14151
  hard_links=yes
14152
  $rm conftest*
14153
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14154
  touch conftest.a
14155
  ln conftest.a conftest.b 2>&5 || hard_links=no
14156
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14157
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14158
echo "${ECHO_T}$hard_links" >&6; }
14159
  if test "$hard_links" = no; then
14160
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14161
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14162
    need_locks=warn
14163
  fi
14164
else
14165
  need_locks=no
14166
fi
14167
 
14168
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14169
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14170
 
14171
  runpath_var=
14172
  allow_undefined_flag_F77=
14173
  enable_shared_with_static_runtimes_F77=no
14174
  archive_cmds_F77=
14175
  archive_expsym_cmds_F77=
14176
  old_archive_From_new_cmds_F77=
14177
  old_archive_from_expsyms_cmds_F77=
14178
  export_dynamic_flag_spec_F77=
14179
  whole_archive_flag_spec_F77=
14180
  thread_safe_flag_spec_F77=
14181
  hardcode_libdir_flag_spec_F77=
14182
  hardcode_libdir_flag_spec_ld_F77=
14183
  hardcode_libdir_separator_F77=
14184
  hardcode_direct_F77=no
14185
  hardcode_minus_L_F77=no
14186
  hardcode_shlibpath_var_F77=unsupported
14187
  link_all_deplibs_F77=unknown
14188
  hardcode_automatic_F77=no
14189
  module_cmds_F77=
14190
  module_expsym_cmds_F77=
14191
  always_export_symbols_F77=no
14192
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14193
  # include_expsyms should be a list of space-separated symbols to be *always*
14194
  # included in the symbol list
14195
  include_expsyms_F77=
14196
  # exclude_expsyms can be an extended regexp of symbols to exclude
14197
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14198
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14199
  # as well as any symbol that contains `d'.
14200
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14201
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14202
  # platforms (ab)use it in PIC code, but their linkers get confused if
14203
  # the symbol is explicitly referenced.  Since portable code cannot
14204
  # rely on this symbol name, it's probably fine to never include it in
14205
  # preloaded symbol tables.
14206
  extract_expsyms_cmds=
14207
  # Just being paranoid about ensuring that cc_basename is set.
14208
  for cc_temp in $compiler""; do
14209
  case $cc_temp in
14210
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14211
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14212
    \-*) ;;
14213
    *) break;;
14214
  esac
14215
done
14216
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14217
 
14218
  case $host_os in
14219
  cygwin* | mingw* | pw32*)
14220
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14221
    # When not using gcc, we currently assume that we are using
14222
    # Microsoft Visual C++.
14223
    if test "$GCC" != yes; then
14224
      with_gnu_ld=no
14225
    fi
14226
    ;;
14227
  interix*)
14228
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14229
    with_gnu_ld=yes
14230
    ;;
14231
  openbsd*)
14232
    with_gnu_ld=no
14233
    ;;
14234
  esac
14235
 
14236
  ld_shlibs_F77=yes
14237
  if test "$with_gnu_ld" = yes; then
14238
    # If archive_cmds runs LD, not CC, wlarc should be empty
14239
    wlarc='${wl}'
14240
 
14241
    # Set some defaults for GNU ld with shared library support. These
14242
    # are reset later if shared libraries are not supported. Putting them
14243
    # here allows them to be overridden if necessary.
14244
    runpath_var=LD_RUN_PATH
14245
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14246
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14247
    # ancient GNU ld didn't support --whole-archive et. al.
14248
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14249
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14250
      else
14251
  	whole_archive_flag_spec_F77=
14252
    fi
14253
    supports_anon_versioning=no
14254
    case `$LD -v 2>/dev/null` in
14255
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14256
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14257
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14258
      *\ 2.11.*) ;; # other 2.11 versions
14259
      *) supports_anon_versioning=yes ;;
14260
    esac
14261
 
14262
    # See if GNU ld supports shared libraries.
14263
    case $host_os in
14264
    aix3* | aix4* | aix5*)
14265
      # On AIX/PPC, the GNU linker is very broken
14266
      if test "$host_cpu" != ia64; then
14267
	ld_shlibs_F77=no
14268
	cat <<EOF 1>&2
14269
 
14270
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14271
*** to be unable to reliably create shared libraries on AIX.
14272
*** Therefore, libtool is disabling shared libraries support.  If you
14273
*** really care for shared libraries, you may want to modify your PATH
14274
*** so that a non-GNU linker is found, and then restart.
14275
 
14276
EOF
14277
      fi
14278
      ;;
14279
 
14280
    amigaos*)
14281
      archive_cmds_F77='$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)'
14282
      hardcode_libdir_flag_spec_F77='-L$libdir'
14283
      hardcode_minus_L_F77=yes
14284
 
14285
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14286
      # that the semantics of dynamic libraries on AmigaOS, at least up
14287
      # to version 4, is to share data among multiple programs linked
14288
      # with the same dynamic library.  Since this doesn't match the
14289
      # behavior of shared libraries on other platforms, we can't use
14290
      # them.
14291
      ld_shlibs_F77=no
14292
      ;;
14293
 
14294
    beos*)
14295
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14296
	allow_undefined_flag_F77=unsupported
14297
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14298
	# support --undefined.  This deserves some investigation.  FIXME
14299
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300
      else
14301
	ld_shlibs_F77=no
14302
      fi
14303
      ;;
14304
 
14305
    cygwin* | mingw* | pw32*)
14306
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14307
      # as there is no search path for DLLs.
14308
      hardcode_libdir_flag_spec_F77='-L$libdir'
14309
      allow_undefined_flag_F77=unsupported
14310
      always_export_symbols_F77=no
14311
      enable_shared_with_static_runtimes_F77=yes
14312
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14313
 
14314
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14315
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14316
	# If the export-symbols file already is a .def file (1st line
14317
	# is EXPORTS), use it as is; otherwise, prepend...
14318
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14319
	  cp $export_symbols $output_objdir/$soname.def;
14320
	else
14321
	  echo EXPORTS > $output_objdir/$soname.def;
14322
	  cat $export_symbols >> $output_objdir/$soname.def;
14323
	fi~
14324
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14325
      else
14326
	ld_shlibs_F77=no
14327
      fi
14328
      ;;
14329
 
14330
    interix[3-9]*)
14331
      hardcode_direct_F77=no
14332
      hardcode_shlibpath_var_F77=no
14333
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14334
      export_dynamic_flag_spec_F77='${wl}-E'
14335
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14336
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14337
      # default) and relocated if they conflict, which is a slow very memory
14338
      # consuming and fragmenting process.  To avoid this, we pick a random,
14339
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14340
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14341
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14342
      archive_expsym_cmds_F77='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'
14343
      ;;
14344
 
14345
    gnu* | linux* | k*bsd*-gnu)
14346
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14347
	tmp_addflag=
14348
	case $cc_basename,$host_cpu in
14349
	pgcc*)				# Portland Group C compiler
14350
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14351
	  tmp_addflag=' $pic_flag'
14352
	  ;;
14353
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14354
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14355
	  tmp_addflag=' $pic_flag -Mnomain' ;;
14356
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14357
	  tmp_addflag=' -i_dynamic' ;;
14358
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14359
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14360
	ifc* | ifort*)			# Intel Fortran compiler
14361
	  tmp_addflag=' -nofor_main' ;;
14362
	esac
14363
	case `$CC -V 2>&1 | sed 5q` in
14364
	*Sun\ C*)			# Sun C 5.9
14365
	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14366
	  tmp_sharedflag='-G' ;;
14367
	*Sun\ F*)			# Sun Fortran 8.3
14368
	  tmp_sharedflag='-G' ;;
14369
	*)
14370
	  tmp_sharedflag='-shared' ;;
14371
	esac
14372
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14373
 
14374
	if test $supports_anon_versioning = yes; then
14375
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14376
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14377
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14378
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14379
	fi
14380
	link_all_deplibs_F77=no
14381
      else
14382
	ld_shlibs_F77=no
14383
      fi
14384
      ;;
14385
 
14386
    netbsd* | netbsdelf*-gnu)
14387
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14388
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14389
	wlarc=
14390
      else
14391
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14393
      fi
14394
      ;;
14395
 
14396
    solaris*)
14397
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14398
	ld_shlibs_F77=no
14399
	cat <<EOF 1>&2
14400
 
14401
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14402
*** create shared libraries on Solaris systems.  Therefore, libtool
14403
*** is disabling shared libraries support.  We urge you to upgrade GNU
14404
*** binutils to release 2.9.1 or newer.  Another option is to modify
14405
*** your PATH or compiler configuration so that the native linker is
14406
*** used, and then restart.
14407
 
14408
EOF
14409
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14410
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14412
      else
14413
	ld_shlibs_F77=no
14414
      fi
14415
      ;;
14416
 
14417
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14418
      case `$LD -v 2>&1` in
14419
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14420
	ld_shlibs_F77=no
14421
	cat <<_LT_EOF 1>&2
14422
 
14423
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14424
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14425
*** is disabling shared libraries support.  We urge you to upgrade GNU
14426
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14427
*** your PATH or compiler configuration so that the native linker is
14428
*** used, and then restart.
14429
 
14430
_LT_EOF
14431
	;;
14432
	*)
14433
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14434
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14435
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14436
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14437
	  else
14438
	    ld_shlibs_F77=no
14439
	  fi
14440
	;;
14441
      esac
14442
      ;;
14443
 
14444
    sunos4*)
14445
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14446
      wlarc=
14447
      hardcode_direct_F77=yes
14448
      hardcode_shlibpath_var_F77=no
14449
      ;;
14450
 
14451
    *)
14452
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14455
      else
14456
	ld_shlibs_F77=no
14457
      fi
14458
      ;;
14459
    esac
14460
 
14461
    if test "$ld_shlibs_F77" = no; then
14462
      runpath_var=
14463
      hardcode_libdir_flag_spec_F77=
14464
      export_dynamic_flag_spec_F77=
14465
      whole_archive_flag_spec_F77=
14466
    fi
14467
  else
14468
    # PORTME fill in a description of your system's linker (not GNU ld)
14469
    case $host_os in
14470
    aix3*)
14471
      allow_undefined_flag_F77=unsupported
14472
      always_export_symbols_F77=yes
14473
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14474
      # Note: this linker hardcodes the directories in LIBPATH if there
14475
      # are no directories specified by -L.
14476
      hardcode_minus_L_F77=yes
14477
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14478
	# Neither direct hardcoding nor static linking is supported with a
14479
	# broken collect2.
14480
	hardcode_direct_F77=unsupported
14481
      fi
14482
      ;;
14483
 
14484
    aix4* | aix5*)
14485
      if test "$host_cpu" = ia64; then
14486
	# On IA64, the linker does run time linking by default, so we don't
14487
	# have to do anything special.
14488
	aix_use_runtimelinking=no
14489
	exp_sym_flag='-Bexport'
14490
	no_entry_flag=""
14491
      else
14492
	# If we're using GNU nm, then we don't want the "-C" option.
14493
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14494
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14495
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14496
	else
14497
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14498
	fi
14499
	aix_use_runtimelinking=no
14500
 
14501
	# Test if we are trying to use run time linking or normal
14502
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14503
	# need to do runtime linking.
14504
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14505
	  for ld_flag in $LDFLAGS; do
14506
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14507
  	    aix_use_runtimelinking=yes
14508
  	    break
14509
  	  fi
14510
	  done
14511
	  ;;
14512
	esac
14513
 
14514
	exp_sym_flag='-bexport'
14515
	no_entry_flag='-bnoentry'
14516
      fi
14517
 
14518
      # When large executables or shared objects are built, AIX ld can
14519
      # have problems creating the table of contents.  If linking a library
14520
      # or program results in "error TOC overflow" add -mminimal-toc to
14521
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14522
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14523
 
14524
      archive_cmds_F77=''
14525
      hardcode_direct_F77=yes
14526
      hardcode_libdir_separator_F77=':'
14527
      link_all_deplibs_F77=yes
14528
 
14529
      if test "$GCC" = yes; then
14530
	case $host_os in aix4.[012]|aix4.[012].*)
14531
	# We only want to do this on AIX 4.2 and lower, the check
14532
	# below for broken collect2 doesn't work under 4.3+
14533
	  collect2name=`${CC} -print-prog-name=collect2`
14534
	  if test -f "$collect2name" && \
14535
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14536
	  then
14537
  	  # We have reworked collect2
14538
  	  :
14539
	  else
14540
  	  # We have old collect2
14541
  	  hardcode_direct_F77=unsupported
14542
  	  # It fails to find uninstalled libraries when the uninstalled
14543
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14544
  	  # to unsupported forces relinking
14545
  	  hardcode_minus_L_F77=yes
14546
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14547
  	  hardcode_libdir_separator_F77=
14548
	  fi
14549
	  ;;
14550
	esac
14551
	shared_flag='-shared'
14552
	if test "$aix_use_runtimelinking" = yes; then
14553
	  shared_flag="$shared_flag "'${wl}-G'
14554
	fi
14555
      else
14556
	# not using gcc
14557
	if test "$host_cpu" = ia64; then
14558
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14559
  	# chokes on -Wl,-G. The following line is correct:
14560
	  shared_flag='-G'
14561
	else
14562
	  if test "$aix_use_runtimelinking" = yes; then
14563
	    shared_flag='${wl}-G'
14564
	  else
14565
	    shared_flag='${wl}-bM:SRE'
14566
	  fi
14567
	fi
14568
      fi
14569
 
14570
      # It seems that -bexpall does not export symbols beginning with
14571
      # underscore (_), so it is better to generate a list of symbols to export.
14572
      always_export_symbols_F77=yes
14573
      if test "$aix_use_runtimelinking" = yes; then
14574
	# Warning - without using the other runtime loading flags (-brtl),
14575
	# -berok will link without error, but may produce a broken library.
14576
	allow_undefined_flag_F77='-berok'
14577
       # Determine the default libpath from the value encoded in an empty executable.
14578
       cat >conftest.$ac_ext <<_ACEOF
14579
      program main
14580
 
14581
      end
14582
_ACEOF
14583
rm -f conftest.$ac_objext conftest$ac_exeext
14584
if { (ac_try="$ac_link"
14585
case "(($ac_try" in
14586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587
  *) ac_try_echo=$ac_try;;
14588
esac
14589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590
  (eval "$ac_link") 2>conftest.er1
14591
  ac_status=$?
14592
  grep -v '^ *+' conftest.er1 >conftest.err
14593
  rm -f conftest.er1
14594
  cat conftest.err >&5
14595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596
  (exit $ac_status); } && {
14597
	 test -z "$ac_f77_werror_flag" ||
14598
	 test ! -s conftest.err
14599
       } && test -s conftest$ac_exeext &&
14600
       $as_test_x conftest$ac_exeext; then
14601
 
14602
lt_aix_libpath_sed='
14603
    /Import File Strings/,/^$/ {
14604
	/^0/ {
14605
	    s/^0  *\(.*\)$/\1/
14606
	    p
14607
	}
14608
    }'
14609
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14610
# Check for a 64-bit object if we didn't find anything.
14611
if test -z "$aix_libpath"; then
14612
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14613
fi
14614
else
14615
  echo "$as_me: failed program was:" >&5
14616
sed 's/^/| /' conftest.$ac_ext >&5
14617
 
14618
 
14619
fi
14620
 
14621
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14622
      conftest$ac_exeext conftest.$ac_ext
14623
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14624
 
14625
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14626
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14627
       else
14628
	if test "$host_cpu" = ia64; then
14629
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14630
	  allow_undefined_flag_F77="-z nodefs"
14631
	  archive_expsym_cmds_F77="\$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"
14632
	else
14633
	 # Determine the default libpath from the value encoded in an empty executable.
14634
	 cat >conftest.$ac_ext <<_ACEOF
14635
      program main
14636
 
14637
      end
14638
_ACEOF
14639
rm -f conftest.$ac_objext conftest$ac_exeext
14640
if { (ac_try="$ac_link"
14641
case "(($ac_try" in
14642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643
  *) ac_try_echo=$ac_try;;
14644
esac
14645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646
  (eval "$ac_link") 2>conftest.er1
14647
  ac_status=$?
14648
  grep -v '^ *+' conftest.er1 >conftest.err
14649
  rm -f conftest.er1
14650
  cat conftest.err >&5
14651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652
  (exit $ac_status); } && {
14653
	 test -z "$ac_f77_werror_flag" ||
14654
	 test ! -s conftest.err
14655
       } && test -s conftest$ac_exeext &&
14656
       $as_test_x conftest$ac_exeext; then
14657
 
14658
lt_aix_libpath_sed='
14659
    /Import File Strings/,/^$/ {
14660
	/^0/ {
14661
	    s/^0  *\(.*\)$/\1/
14662
	    p
14663
	}
14664
    }'
14665
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14666
# Check for a 64-bit object if we didn't find anything.
14667
if test -z "$aix_libpath"; then
14668
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14669
fi
14670
else
14671
  echo "$as_me: failed program was:" >&5
14672
sed 's/^/| /' conftest.$ac_ext >&5
14673
 
14674
 
14675
fi
14676
 
14677
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14678
      conftest$ac_exeext conftest.$ac_ext
14679
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14680
 
14681
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14682
	  # Warning - without using the other run time loading flags,
14683
	  # -berok will link without error, but may produce a broken library.
14684
	  no_undefined_flag_F77=' ${wl}-bernotok'
14685
	  allow_undefined_flag_F77=' ${wl}-berok'
14686
	  # Exported symbols can be pulled into shared objects from archives
14687
	  whole_archive_flag_spec_F77='$convenience'
14688
	  archive_cmds_need_lc_F77=yes
14689
	  # This is similar to how AIX traditionally builds its shared libraries.
14690
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14691
	fi
14692
      fi
14693
      ;;
14694
 
14695
    amigaos*)
14696
      archive_cmds_F77='$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)'
14697
      hardcode_libdir_flag_spec_F77='-L$libdir'
14698
      hardcode_minus_L_F77=yes
14699
      # see comment about different semantics on the GNU ld section
14700
      ld_shlibs_F77=no
14701
      ;;
14702
 
14703
    bsdi[45]*)
14704
      export_dynamic_flag_spec_F77=-rdynamic
14705
      ;;
14706
 
14707
    cygwin* | mingw* | pw32*)
14708
      # When not using gcc, we currently assume that we are using
14709
      # Microsoft Visual C++.
14710
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14711
      # no search path for DLLs.
14712
      hardcode_libdir_flag_spec_F77=' '
14713
      allow_undefined_flag_F77=unsupported
14714
      # Tell ltmain to make .lib files, not .a files.
14715
      libext=lib
14716
      # Tell ltmain to make .dll files, not .so files.
14717
      shrext_cmds=".dll"
14718
      # FIXME: Setting linknames here is a bad hack.
14719
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14720
      # The linker will automatically build a .lib file if we build a DLL.
14721
      old_archive_From_new_cmds_F77='true'
14722
      # FIXME: Should let the user specify the lib program.
14723
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14724
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14725
      enable_shared_with_static_runtimes_F77=yes
14726
      ;;
14727
 
14728
    darwin* | rhapsody*)
14729
      case $host_os in
14730
        rhapsody* | darwin1.[012])
14731
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14732
         ;;
14733
       *) # Darwin 1.3 on
14734
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14735
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14736
         else
14737
           case ${MACOSX_DEPLOYMENT_TARGET} in
14738
             10.[012])
14739
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14740
               ;;
14741
             10.*)
14742
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14743
               ;;
14744
           esac
14745
         fi
14746
         ;;
14747
      esac
14748
      archive_cmds_need_lc_F77=no
14749
      hardcode_direct_F77=no
14750
      hardcode_automatic_F77=yes
14751
      hardcode_shlibpath_var_F77=unsupported
14752
      whole_archive_flag_spec_F77=''
14753
      link_all_deplibs_F77=yes
14754
    if test "$GCC" = yes ; then
14755
    	output_verbose_link_cmd='echo'
14756
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14757
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14758
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14759
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14760
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14761
    else
14762
      case $cc_basename in
14763
        xlc*)
14764
         output_verbose_link_cmd='echo'
14765
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14766
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14767
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14768
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14769
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14770
          ;;
14771
       *)
14772
         ld_shlibs_F77=no
14773
          ;;
14774
      esac
14775
    fi
14776
      ;;
14777
 
14778
    dgux*)
14779
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780
      hardcode_libdir_flag_spec_F77='-L$libdir'
14781
      hardcode_shlibpath_var_F77=no
14782
      ;;
14783
 
14784
    freebsd1*)
14785
      ld_shlibs_F77=no
14786
      ;;
14787
 
14788
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14789
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14790
    # does not break anything, and helps significantly (at the cost of a little
14791
    # extra space).
14792
    freebsd2.2*)
14793
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14794
      hardcode_libdir_flag_spec_F77='-R$libdir'
14795
      hardcode_direct_F77=yes
14796
      hardcode_shlibpath_var_F77=no
14797
      ;;
14798
 
14799
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14800
    freebsd2*)
14801
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14802
      hardcode_direct_F77=yes
14803
      hardcode_minus_L_F77=yes
14804
      hardcode_shlibpath_var_F77=no
14805
      ;;
14806
 
14807
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14808
    freebsd* | dragonfly*)
14809
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14810
      hardcode_libdir_flag_spec_F77='-R$libdir'
14811
      hardcode_direct_F77=yes
14812
      hardcode_shlibpath_var_F77=no
14813
      ;;
14814
 
14815
    hpux9*)
14816
      if test "$GCC" = yes; then
14817
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14818
      else
14819
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14820
      fi
14821
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14822
      hardcode_libdir_separator_F77=:
14823
      hardcode_direct_F77=yes
14824
 
14825
      # hardcode_minus_L: Not really in the search PATH,
14826
      # but as the default location of the library.
14827
      hardcode_minus_L_F77=yes
14828
      export_dynamic_flag_spec_F77='${wl}-E'
14829
      ;;
14830
 
14831
    hpux10*)
14832
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14833
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14834
      else
14835
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14836
      fi
14837
      if test "$with_gnu_ld" = no; then
14838
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14839
	hardcode_libdir_separator_F77=:
14840
 
14841
	hardcode_direct_F77=yes
14842
	export_dynamic_flag_spec_F77='${wl}-E'
14843
 
14844
	# hardcode_minus_L: Not really in the search PATH,
14845
	# but as the default location of the library.
14846
	hardcode_minus_L_F77=yes
14847
      fi
14848
      ;;
14849
 
14850
    hpux11*)
14851
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14852
	case $host_cpu in
14853
	hppa*64*)
14854
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14855
	  ;;
14856
	ia64*)
14857
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14858
	  ;;
14859
	*)
14860
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14861
	  ;;
14862
	esac
14863
      else
14864
	case $host_cpu in
14865
	hppa*64*)
14866
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14867
	  ;;
14868
	ia64*)
14869
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14870
	  ;;
14871
	*)
14872
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14873
	  ;;
14874
	esac
14875
      fi
14876
      if test "$with_gnu_ld" = no; then
14877
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14878
	hardcode_libdir_separator_F77=:
14879
 
14880
	case $host_cpu in
14881
	hppa*64*|ia64*)
14882
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14883
	  hardcode_direct_F77=no
14884
	  hardcode_shlibpath_var_F77=no
14885
	  ;;
14886
	*)
14887
	  hardcode_direct_F77=yes
14888
	  export_dynamic_flag_spec_F77='${wl}-E'
14889
 
14890
	  # hardcode_minus_L: Not really in the search PATH,
14891
	  # but as the default location of the library.
14892
	  hardcode_minus_L_F77=yes
14893
	  ;;
14894
	esac
14895
      fi
14896
      ;;
14897
 
14898
    irix5* | irix6* | nonstopux*)
14899
      if test "$GCC" = yes; then
14900
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14901
      else
14902
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14903
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14904
      fi
14905
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14906
      hardcode_libdir_separator_F77=:
14907
      link_all_deplibs_F77=yes
14908
      ;;
14909
 
14910
    netbsd* | netbsdelf*-gnu)
14911
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14912
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14913
      else
14914
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14915
      fi
14916
      hardcode_libdir_flag_spec_F77='-R$libdir'
14917
      hardcode_direct_F77=yes
14918
      hardcode_shlibpath_var_F77=no
14919
      ;;
14920
 
14921
    newsos6)
14922
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923
      hardcode_direct_F77=yes
14924
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14925
      hardcode_libdir_separator_F77=:
14926
      hardcode_shlibpath_var_F77=no
14927
      ;;
14928
 
14929
    openbsd*)
14930
      if test -f /usr/libexec/ld.so; then
14931
	hardcode_direct_F77=yes
14932
	hardcode_shlibpath_var_F77=no
14933
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14934
	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14935
	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14936
	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14937
	  export_dynamic_flag_spec_F77='${wl}-E'
14938
	else
14939
	  case $host_os in
14940
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14941
	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942
	     hardcode_libdir_flag_spec_F77='-R$libdir'
14943
	     ;;
14944
	   *)
14945
	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14946
	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14947
	     ;;
14948
	  esac
14949
        fi
14950
      else
14951
	ld_shlibs_F77=no
14952
      fi
14953
      ;;
14954
 
14955
    os2*)
14956
      hardcode_libdir_flag_spec_F77='-L$libdir'
14957
      hardcode_minus_L_F77=yes
14958
      allow_undefined_flag_F77=unsupported
14959
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14960
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14961
      ;;
14962
 
14963
    osf3*)
14964
      if test "$GCC" = yes; then
14965
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14966
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14967
      else
14968
	allow_undefined_flag_F77=' -expect_unresolved \*'
14969
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14970
      fi
14971
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14972
      hardcode_libdir_separator_F77=:
14973
      ;;
14974
 
14975
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14976
      if test "$GCC" = yes; then
14977
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14978
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14979
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14980
      else
14981
	allow_undefined_flag_F77=' -expect_unresolved \*'
14982
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14983
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14984
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14985
 
14986
	# Both c and cxx compiler support -rpath directly
14987
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14988
      fi
14989
      hardcode_libdir_separator_F77=:
14990
      ;;
14991
 
14992
    solaris*)
14993
      no_undefined_flag_F77=' -z text'
14994
      if test "$GCC" = yes; then
14995
	wlarc='${wl}'
14996
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14997
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14998
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14999
      else
15000
	wlarc=''
15001
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15003
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15004
      fi
15005
      hardcode_libdir_flag_spec_F77='-R$libdir'
15006
      hardcode_shlibpath_var_F77=no
15007
      case $host_os in
15008
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15009
      *)
15010
	# The compiler driver will combine and reorder linker options,
15011
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15012
	# but is careful enough not to reorder.
15013
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15014
	if test "$GCC" = yes; then
15015
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15016
	else
15017
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15018
	fi
15019
	;;
15020
      esac
15021
      link_all_deplibs_F77=yes
15022
      ;;
15023
 
15024
    sunos4*)
15025
      if test "x$host_vendor" = xsequent; then
15026
	# Use $CC to link under sequent, because it throws in some extra .o
15027
	# files that make .init and .fini sections work.
15028
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15029
      else
15030
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15031
      fi
15032
      hardcode_libdir_flag_spec_F77='-L$libdir'
15033
      hardcode_direct_F77=yes
15034
      hardcode_minus_L_F77=yes
15035
      hardcode_shlibpath_var_F77=no
15036
      ;;
15037
 
15038
    sysv4)
15039
      case $host_vendor in
15040
	sni)
15041
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15042
	  hardcode_direct_F77=yes # is this really true???
15043
	;;
15044
	siemens)
15045
	  ## LD is ld it makes a PLAMLIB
15046
	  ## CC just makes a GrossModule.
15047
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15048
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15049
	  hardcode_direct_F77=no
15050
        ;;
15051
	motorola)
15052
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15053
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15054
	;;
15055
      esac
15056
      runpath_var='LD_RUN_PATH'
15057
      hardcode_shlibpath_var_F77=no
15058
      ;;
15059
 
15060
    sysv4.3*)
15061
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062
      hardcode_shlibpath_var_F77=no
15063
      export_dynamic_flag_spec_F77='-Bexport'
15064
      ;;
15065
 
15066
    sysv4*MP*)
15067
      if test -d /usr/nec; then
15068
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15069
	hardcode_shlibpath_var_F77=no
15070
	runpath_var=LD_RUN_PATH
15071
	hardcode_runpath_var=yes
15072
	ld_shlibs_F77=yes
15073
      fi
15074
      ;;
15075
 
15076
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15077
      no_undefined_flag_F77='${wl}-z,text'
15078
      archive_cmds_need_lc_F77=no
15079
      hardcode_shlibpath_var_F77=no
15080
      runpath_var='LD_RUN_PATH'
15081
 
15082
      if test "$GCC" = yes; then
15083
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15084
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085
      else
15086
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088
      fi
15089
      ;;
15090
 
15091
    sysv5* | sco3.2v5* | sco5v6*)
15092
      # Note: We can NOT use -z defs as we might desire, because we do not
15093
      # link with -lc, and that would cause any symbols used from libc to
15094
      # always be unresolved, which means just about no library would
15095
      # ever link correctly.  If we're not using GNU ld we use -z text
15096
      # though, which does catch some bad symbols but isn't as heavy-handed
15097
      # as -z defs.
15098
      no_undefined_flag_F77='${wl}-z,text'
15099
      allow_undefined_flag_F77='${wl}-z,nodefs'
15100
      archive_cmds_need_lc_F77=no
15101
      hardcode_shlibpath_var_F77=no
15102
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15103
      hardcode_libdir_separator_F77=':'
15104
      link_all_deplibs_F77=yes
15105
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15106
      runpath_var='LD_RUN_PATH'
15107
 
15108
      if test "$GCC" = yes; then
15109
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15110
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15111
      else
15112
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15113
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15114
      fi
15115
      ;;
15116
 
15117
    uts4*)
15118
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15119
      hardcode_libdir_flag_spec_F77='-L$libdir'
15120
      hardcode_shlibpath_var_F77=no
15121
      ;;
15122
 
15123
    *)
15124
      ld_shlibs_F77=no
15125
      ;;
15126
    esac
15127
  fi
15128
 
15129
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15130
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15131
test "$ld_shlibs_F77" = no && can_build_shared=no
15132
 
15133
#
15134
# Do we need to explicitly link libc?
15135
#
15136
case "x$archive_cmds_need_lc_F77" in
15137
x|xyes)
15138
  # Assume -lc should be added
15139
  archive_cmds_need_lc_F77=yes
15140
 
15141
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15142
    case $archive_cmds_F77 in
15143
    *'~'*)
15144
      # FIXME: we may have to deal with multi-command sequences.
15145
      ;;
15146
    '$CC '*)
15147
      # Test whether the compiler implicitly links with -lc since on some
15148
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15149
      # to ld, don't add -lc before -lgcc.
15150
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15151
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15152
      $rm conftest*
15153
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15154
 
15155
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156
  (eval $ac_compile) 2>&5
15157
  ac_status=$?
15158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159
  (exit $ac_status); } 2>conftest.err; then
15160
        soname=conftest
15161
        lib=conftest
15162
        libobjs=conftest.$ac_objext
15163
        deplibs=
15164
        wl=$lt_prog_compiler_wl_F77
15165
	pic_flag=$lt_prog_compiler_pic_F77
15166
        compiler_flags=-v
15167
        linker_flags=-v
15168
        verstring=
15169
        output_objdir=.
15170
        libname=conftest
15171
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15172
        allow_undefined_flag_F77=
15173
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15174
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15175
  ac_status=$?
15176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177
  (exit $ac_status); }
15178
        then
15179
	  archive_cmds_need_lc_F77=no
15180
        else
15181
	  archive_cmds_need_lc_F77=yes
15182
        fi
15183
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15184
      else
15185
        cat conftest.err 1>&5
15186
      fi
15187
      $rm conftest*
15188
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15189
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15190
      ;;
15191
    esac
15192
  fi
15193
  ;;
15194
esac
15195
 
15196
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15197
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15198
library_names_spec=
15199
libname_spec='lib$name'
15200
soname_spec=
15201
shrext_cmds=".so"
15202
postinstall_cmds=
15203
postuninstall_cmds=
15204
finish_cmds=
15205
finish_eval=
15206
shlibpath_var=
15207
shlibpath_overrides_runpath=unknown
15208
version_type=none
15209
dynamic_linker="$host_os ld.so"
15210
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15211
 
15212
need_lib_prefix=unknown
15213
hardcode_into_libs=no
15214
 
15215
# when you set need_version to no, make sure it does not cause -set_version
15216
# flags to be left without arguments
15217
need_version=unknown
15218
 
15219
case $host_os in
15220
aix3*)
15221
  version_type=linux
15222
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15223
  shlibpath_var=LIBPATH
15224
 
15225
  # AIX 3 has no versioning support, so we append a major version to the name.
15226
  soname_spec='${libname}${release}${shared_ext}$major'
15227
  ;;
15228
 
15229
aix4* | aix5*)
15230
  version_type=linux
15231
  need_lib_prefix=no
15232
  need_version=no
15233
  hardcode_into_libs=yes
15234
  if test "$host_cpu" = ia64; then
15235
    # AIX 5 supports IA64
15236
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15237
    shlibpath_var=LD_LIBRARY_PATH
15238
  else
15239
    # With GCC up to 2.95.x, collect2 would create an import file
15240
    # for dependence libraries.  The import file would start with
15241
    # the line `#! .'.  This would cause the generated library to
15242
    # depend on `.', always an invalid library.  This was fixed in
15243
    # development snapshots of GCC prior to 3.0.
15244
    case $host_os in
15245
      aix4 | aix4.[01] | aix4.[01].*)
15246
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15247
	   echo ' yes '
15248
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15249
	:
15250
      else
15251
	can_build_shared=no
15252
      fi
15253
      ;;
15254
    esac
15255
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15256
    # soname into executable. Probably we can add versioning support to
15257
    # collect2, so additional links can be useful in future.
15258
    if test "$aix_use_runtimelinking" = yes; then
15259
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15260
      # instead of lib<name>.a to let people know that these are not
15261
      # typical AIX shared libraries.
15262
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263
    else
15264
      # We preserve .a as extension for shared libraries through AIX4.2
15265
      # and later when we are not doing run time linking.
15266
      library_names_spec='${libname}${release}.a $libname.a'
15267
      soname_spec='${libname}${release}${shared_ext}$major'
15268
    fi
15269
    shlibpath_var=LIBPATH
15270
  fi
15271
  ;;
15272
 
15273
amigaos*)
15274
  library_names_spec='$libname.ixlibrary $libname.a'
15275
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15276
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15277
  ;;
15278
 
15279
beos*)
15280
  library_names_spec='${libname}${shared_ext}'
15281
  dynamic_linker="$host_os ld.so"
15282
  shlibpath_var=LIBRARY_PATH
15283
  ;;
15284
 
15285
bsdi[45]*)
15286
  version_type=linux
15287
  need_version=no
15288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289
  soname_spec='${libname}${release}${shared_ext}$major'
15290
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15291
  shlibpath_var=LD_LIBRARY_PATH
15292
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15293
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15294
  # the default ld.so.conf also contains /usr/contrib/lib and
15295
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15296
  # libtool to hard-code these into programs
15297
  ;;
15298
 
15299
cygwin* | mingw* | pw32*)
15300
  version_type=windows
15301
  shrext_cmds=".dll"
15302
  need_version=no
15303
  need_lib_prefix=no
15304
 
15305
  case $GCC,$host_os in
15306
  yes,cygwin* | yes,mingw* | yes,pw32*)
15307
    library_names_spec='$libname.dll.a'
15308
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15309
    postinstall_cmds='base_file=`basename \${file}`~
15310
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15311
      dldir=$destdir/`dirname \$dlpath`~
15312
      test -d \$dldir || mkdir -p \$dldir~
15313
      $install_prog $dir/$dlname \$dldir/$dlname~
15314
      chmod a+x \$dldir/$dlname'
15315
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316
      dlpath=$dir/\$dldll~
15317
       $rm \$dlpath'
15318
    shlibpath_overrides_runpath=yes
15319
 
15320
    case $host_os in
15321
    cygwin*)
15322
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15323
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15324
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15325
      ;;
15326
    mingw*)
15327
      # MinGW DLLs use traditional 'lib' prefix
15328
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15329
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15330
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15331
        # It is most probably a Windows format PATH printed by
15332
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15333
        # path with ; separators, and with drive letters. We can handle the
15334
        # drive letters (cygwin fileutils understands them), so leave them,
15335
        # especially as we might pass files found there to a mingw objdump,
15336
        # which wouldn't understand a cygwinified path. Ahh.
15337
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15338
      else
15339
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15340
      fi
15341
      ;;
15342
    pw32*)
15343
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15344
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15345
      ;;
15346
    esac
15347
    ;;
15348
 
15349
  *)
15350
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15351
    ;;
15352
  esac
15353
  dynamic_linker='Win32 ld.exe'
15354
  # FIXME: first we should search . and the directory the executable is in
15355
  shlibpath_var=PATH
15356
  ;;
15357
 
15358
darwin* | rhapsody*)
15359
  dynamic_linker="$host_os dyld"
15360
  version_type=darwin
15361
  need_lib_prefix=no
15362
  need_version=no
15363
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15364
  soname_spec='${libname}${release}${major}$shared_ext'
15365
  shlibpath_overrides_runpath=yes
15366
  shlibpath_var=DYLD_LIBRARY_PATH
15367
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15368
 
15369
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15370
  ;;
15371
 
15372
dgux*)
15373
  version_type=linux
15374
  need_lib_prefix=no
15375
  need_version=no
15376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15377
  soname_spec='${libname}${release}${shared_ext}$major'
15378
  shlibpath_var=LD_LIBRARY_PATH
15379
  ;;
15380
 
15381
freebsd1*)
15382
  dynamic_linker=no
15383
  ;;
15384
 
15385
freebsd* | dragonfly*)
15386
  # DragonFly does not have aout.  When/if they implement a new
15387
  # versioning mechanism, adjust this.
15388
  if test -x /usr/bin/objformat; then
15389
    objformat=`/usr/bin/objformat`
15390
  else
15391
    case $host_os in
15392
    freebsd[123]*) objformat=aout ;;
15393
    *) objformat=elf ;;
15394
    esac
15395
  fi
15396
  version_type=freebsd-$objformat
15397
  case $version_type in
15398
    freebsd-elf*)
15399
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15400
      need_version=no
15401
      need_lib_prefix=no
15402
      ;;
15403
    freebsd-*)
15404
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15405
      need_version=yes
15406
      ;;
15407
  esac
15408
  shlibpath_var=LD_LIBRARY_PATH
15409
  case $host_os in
15410
  freebsd2*)
15411
    shlibpath_overrides_runpath=yes
15412
    ;;
15413
  freebsd3.[01]* | freebsdelf3.[01]*)
15414
    shlibpath_overrides_runpath=yes
15415
    hardcode_into_libs=yes
15416
    ;;
15417
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15418
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15419
    shlibpath_overrides_runpath=no
15420
    hardcode_into_libs=yes
15421
    ;;
15422
  *) # from 4.6 on, and DragonFly
15423
    shlibpath_overrides_runpath=yes
15424
    hardcode_into_libs=yes
15425
    ;;
15426
  esac
15427
  ;;
15428
 
15429
gnu*)
15430
  version_type=linux
15431
  need_lib_prefix=no
15432
  need_version=no
15433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15434
  soname_spec='${libname}${release}${shared_ext}$major'
15435
  shlibpath_var=LD_LIBRARY_PATH
15436
  hardcode_into_libs=yes
15437
  ;;
15438
 
15439
hpux9* | hpux10* | hpux11*)
15440
  # Give a soname corresponding to the major version so that dld.sl refuses to
15441
  # link against other versions.
15442
  version_type=sunos
15443
  need_lib_prefix=no
15444
  need_version=no
15445
  case $host_cpu in
15446
  ia64*)
15447
    shrext_cmds='.so'
15448
    hardcode_into_libs=yes
15449
    dynamic_linker="$host_os dld.so"
15450
    shlibpath_var=LD_LIBRARY_PATH
15451
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453
    soname_spec='${libname}${release}${shared_ext}$major'
15454
    if test "X$HPUX_IA64_MODE" = X32; then
15455
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15456
    else
15457
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15458
    fi
15459
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460
    ;;
15461
   hppa*64*)
15462
     shrext_cmds='.sl'
15463
     hardcode_into_libs=yes
15464
     dynamic_linker="$host_os dld.sl"
15465
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15466
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15467
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468
     soname_spec='${libname}${release}${shared_ext}$major'
15469
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15470
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15471
     ;;
15472
   *)
15473
    shrext_cmds='.sl'
15474
    dynamic_linker="$host_os dld.sl"
15475
    shlibpath_var=SHLIB_PATH
15476
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15477
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15478
    soname_spec='${libname}${release}${shared_ext}$major'
15479
    ;;
15480
  esac
15481
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15482
  postinstall_cmds='chmod 555 $lib'
15483
  ;;
15484
 
15485
interix[3-9]*)
15486
  version_type=linux
15487
  need_lib_prefix=no
15488
  need_version=no
15489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15490
  soname_spec='${libname}${release}${shared_ext}$major'
15491
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15492
  shlibpath_var=LD_LIBRARY_PATH
15493
  shlibpath_overrides_runpath=no
15494
  hardcode_into_libs=yes
15495
  ;;
15496
 
15497
irix5* | irix6* | nonstopux*)
15498
  case $host_os in
15499
    nonstopux*) version_type=nonstopux ;;
15500
    *)
15501
	if test "$lt_cv_prog_gnu_ld" = yes; then
15502
		version_type=linux
15503
	else
15504
		version_type=irix
15505
	fi ;;
15506
  esac
15507
  need_lib_prefix=no
15508
  need_version=no
15509
  soname_spec='${libname}${release}${shared_ext}$major'
15510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15511
  case $host_os in
15512
  irix5* | nonstopux*)
15513
    libsuff= shlibsuff=
15514
    ;;
15515
  *)
15516
    case $LD in # libtool.m4 will add one of these switches to LD
15517
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15518
      libsuff= shlibsuff= libmagic=32-bit;;
15519
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15520
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15521
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15522
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15523
    *) libsuff= shlibsuff= libmagic=never-match;;
15524
    esac
15525
    ;;
15526
  esac
15527
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15528
  shlibpath_overrides_runpath=no
15529
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15530
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15531
  hardcode_into_libs=yes
15532
  ;;
15533
 
15534
# No shared lib support for Linux oldld, aout, or coff.
15535
linux*oldld* | linux*aout* | linux*coff*)
15536
  dynamic_linker=no
15537
  ;;
15538
 
15539
# This must be Linux ELF.
15540
linux* | k*bsd*-gnu)
15541
  version_type=linux
15542
  need_lib_prefix=no
15543
  need_version=no
15544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545
  soname_spec='${libname}${release}${shared_ext}$major'
15546
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15547
  shlibpath_var=LD_LIBRARY_PATH
15548
  shlibpath_overrides_runpath=no
15549
  # This implies no fast_install, which is unacceptable.
15550
  # Some rework will be needed to allow for fast_install
15551
  # before this can be enabled.
15552
  hardcode_into_libs=yes
15553
 
15554
  # Append ld.so.conf contents to the search path
15555
  if test -f /etc/ld.so.conf; then
15556
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15557
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15558
  fi
15559
 
15560
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15561
  # powerpc, because MkLinux only supported shared libraries with the
15562
  # GNU dynamic linker.  Since this was broken with cross compilers,
15563
  # most powerpc-linux boxes support dynamic linking these days and
15564
  # people can always --disable-shared, the test was removed, and we
15565
  # assume the GNU/Linux dynamic linker is in use.
15566
  dynamic_linker='GNU/Linux ld.so'
15567
  ;;
15568
 
15569
netbsdelf*-gnu)
15570
  version_type=linux
15571
  need_lib_prefix=no
15572
  need_version=no
15573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574
  soname_spec='${libname}${release}${shared_ext}$major'
15575
  shlibpath_var=LD_LIBRARY_PATH
15576
  shlibpath_overrides_runpath=no
15577
  hardcode_into_libs=yes
15578
  dynamic_linker='NetBSD ld.elf_so'
15579
  ;;
15580
 
15581
netbsd*)
15582
  version_type=sunos
15583
  need_lib_prefix=no
15584
  need_version=no
15585
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15586
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15587
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15588
    dynamic_linker='NetBSD (a.out) ld.so'
15589
  else
15590
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15591
    soname_spec='${libname}${release}${shared_ext}$major'
15592
    dynamic_linker='NetBSD ld.elf_so'
15593
  fi
15594
  shlibpath_var=LD_LIBRARY_PATH
15595
  shlibpath_overrides_runpath=yes
15596
  hardcode_into_libs=yes
15597
  ;;
15598
 
15599
newsos6)
15600
  version_type=linux
15601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602
  shlibpath_var=LD_LIBRARY_PATH
15603
  shlibpath_overrides_runpath=yes
15604
  ;;
15605
 
15606
nto-qnx*)
15607
  version_type=linux
15608
  need_lib_prefix=no
15609
  need_version=no
15610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611
  soname_spec='${libname}${release}${shared_ext}$major'
15612
  shlibpath_var=LD_LIBRARY_PATH
15613
  shlibpath_overrides_runpath=yes
15614
  ;;
15615
 
15616
openbsd*)
15617
  version_type=sunos
15618
  sys_lib_dlsearch_path_spec="/usr/lib"
15619
  need_lib_prefix=no
15620
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15621
  case $host_os in
15622
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15623
    *)                         need_version=no  ;;
15624
  esac
15625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15626
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15627
  shlibpath_var=LD_LIBRARY_PATH
15628
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629
    case $host_os in
15630
      openbsd2.[89] | openbsd2.[89].*)
15631
	shlibpath_overrides_runpath=no
15632
	;;
15633
      *)
15634
	shlibpath_overrides_runpath=yes
15635
	;;
15636
      esac
15637
  else
15638
    shlibpath_overrides_runpath=yes
15639
  fi
15640
  ;;
15641
 
15642
os2*)
15643
  libname_spec='$name'
15644
  shrext_cmds=".dll"
15645
  need_lib_prefix=no
15646
  library_names_spec='$libname${shared_ext} $libname.a'
15647
  dynamic_linker='OS/2 ld.exe'
15648
  shlibpath_var=LIBPATH
15649
  ;;
15650
 
15651
osf3* | osf4* | osf5*)
15652
  version_type=osf
15653
  need_lib_prefix=no
15654
  need_version=no
15655
  soname_spec='${libname}${release}${shared_ext}$major'
15656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657
  shlibpath_var=LD_LIBRARY_PATH
15658
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15659
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15660
  ;;
15661
 
15662
rdos*)
15663
  dynamic_linker=no
15664
  ;;
15665
 
15666
solaris*)
15667
  version_type=linux
15668
  need_lib_prefix=no
15669
  need_version=no
15670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671
  soname_spec='${libname}${release}${shared_ext}$major'
15672
  shlibpath_var=LD_LIBRARY_PATH
15673
  shlibpath_overrides_runpath=yes
15674
  hardcode_into_libs=yes
15675
  # ldd complains unless libraries are executable
15676
  postinstall_cmds='chmod +x $lib'
15677
  ;;
15678
 
15679
sunos4*)
15680
  version_type=sunos
15681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15682
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15683
  shlibpath_var=LD_LIBRARY_PATH
15684
  shlibpath_overrides_runpath=yes
15685
  if test "$with_gnu_ld" = yes; then
15686
    need_lib_prefix=no
15687
  fi
15688
  need_version=yes
15689
  ;;
15690
 
15691
sysv4 | sysv4.3*)
15692
  version_type=linux
15693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694
  soname_spec='${libname}${release}${shared_ext}$major'
15695
  shlibpath_var=LD_LIBRARY_PATH
15696
  case $host_vendor in
15697
    sni)
15698
      shlibpath_overrides_runpath=no
15699
      need_lib_prefix=no
15700
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15701
      runpath_var=LD_RUN_PATH
15702
      ;;
15703
    siemens)
15704
      need_lib_prefix=no
15705
      ;;
15706
    motorola)
15707
      need_lib_prefix=no
15708
      need_version=no
15709
      shlibpath_overrides_runpath=no
15710
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15711
      ;;
15712
  esac
15713
  ;;
15714
 
15715
sysv4*MP*)
15716
  if test -d /usr/nec ;then
15717
    version_type=linux
15718
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15719
    soname_spec='$libname${shared_ext}.$major'
15720
    shlibpath_var=LD_LIBRARY_PATH
15721
  fi
15722
  ;;
15723
 
15724
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15725
  version_type=freebsd-elf
15726
  need_lib_prefix=no
15727
  need_version=no
15728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15729
  soname_spec='${libname}${release}${shared_ext}$major'
15730
  shlibpath_var=LD_LIBRARY_PATH
15731
  hardcode_into_libs=yes
15732
  if test "$with_gnu_ld" = yes; then
15733
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15734
    shlibpath_overrides_runpath=no
15735
  else
15736
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15737
    shlibpath_overrides_runpath=yes
15738
    case $host_os in
15739
      sco3.2v5*)
15740
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15741
	;;
15742
    esac
15743
  fi
15744
  sys_lib_dlsearch_path_spec='/usr/lib'
15745
  ;;
15746
 
15747
uts4*)
15748
  version_type=linux
15749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750
  soname_spec='${libname}${release}${shared_ext}$major'
15751
  shlibpath_var=LD_LIBRARY_PATH
15752
  ;;
15753
 
15754
*)
15755
  dynamic_linker=no
15756
  ;;
15757
esac
15758
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15759
echo "${ECHO_T}$dynamic_linker" >&6; }
15760
test "$dynamic_linker" = no && can_build_shared=no
15761
 
15762
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15763
if test "$GCC" = yes; then
15764
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15765
fi
15766
 
15767
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15768
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15769
hardcode_action_F77=
15770
if test -n "$hardcode_libdir_flag_spec_F77" || \
15771
   test -n "$runpath_var_F77" || \
15772
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15773
 
15774
  # We can hardcode non-existant directories.
15775
  if test "$hardcode_direct_F77" != no &&
15776
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15777
     # have to relink, otherwise we might link with an installed library
15778
     # when we should be linking with a yet-to-be-installed one
15779
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15780
     test "$hardcode_minus_L_F77" != no; then
15781
    # Linking always hardcodes the temporary library directory.
15782
    hardcode_action_F77=relink
15783
  else
15784
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15785
    hardcode_action_F77=immediate
15786
  fi
15787
else
15788
  # We cannot hardcode anything, or else we can only hardcode existing
15789
  # directories.
15790
  hardcode_action_F77=unsupported
15791
fi
15792
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15793
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15794
 
15795
if test "$hardcode_action_F77" = relink; then
15796
  # Fast installation is not supported
15797
  enable_fast_install=no
15798
elif test "$shlibpath_overrides_runpath" = yes ||
15799
     test "$enable_shared" = no; then
15800
  # Fast installation is not necessary
15801
  enable_fast_install=needless
15802
fi
15803
 
15804
 
15805
# The else clause should only fire when bootstrapping the
15806
# libtool distribution, otherwise you forgot to ship ltmain.sh
15807
# with your package, and you will get complaints that there are
15808
# no rules to generate ltmain.sh.
15809
if test -f "$ltmain"; then
15810
  # See if we are running on zsh, and set the options which allow our commands through
15811
  # without removal of \ escapes.
15812
  if test -n "${ZSH_VERSION+set}" ; then
15813
    setopt NO_GLOB_SUBST
15814
  fi
15815
  # Now quote all the things that may contain metacharacters while being
15816
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15817
  # variables and quote the copies for generation of the libtool script.
15818
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15819
    SED SHELL STRIP \
15820
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15821
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15822
    deplibs_check_method reload_flag reload_cmds need_locks \
15823
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15824
    lt_cv_sys_global_symbol_to_c_name_address \
15825
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15826
    old_postinstall_cmds old_postuninstall_cmds \
15827
    compiler_F77 \
15828
    CC_F77 \
15829
    LD_F77 \
15830
    lt_prog_compiler_wl_F77 \
15831
    lt_prog_compiler_pic_F77 \
15832
    lt_prog_compiler_static_F77 \
15833
    lt_prog_compiler_no_builtin_flag_F77 \
15834
    export_dynamic_flag_spec_F77 \
15835
    thread_safe_flag_spec_F77 \
15836
    whole_archive_flag_spec_F77 \
15837
    enable_shared_with_static_runtimes_F77 \
15838
    old_archive_cmds_F77 \
15839
    old_archive_from_new_cmds_F77 \
15840
    predep_objects_F77 \
15841
    postdep_objects_F77 \
15842
    predeps_F77 \
15843
    postdeps_F77 \
15844
    compiler_lib_search_path_F77 \
15845
    archive_cmds_F77 \
15846
    archive_expsym_cmds_F77 \
15847
    postinstall_cmds_F77 \
15848
    postuninstall_cmds_F77 \
15849
    old_archive_from_expsyms_cmds_F77 \
15850
    allow_undefined_flag_F77 \
15851
    no_undefined_flag_F77 \
15852
    export_symbols_cmds_F77 \
15853
    hardcode_libdir_flag_spec_F77 \
15854
    hardcode_libdir_flag_spec_ld_F77 \
15855
    hardcode_libdir_separator_F77 \
15856
    hardcode_automatic_F77 \
15857
    module_cmds_F77 \
15858
    module_expsym_cmds_F77 \
15859
    lt_cv_prog_compiler_c_o_F77 \
15860
    fix_srcfile_path_F77 \
15861
    exclude_expsyms_F77 \
15862
    include_expsyms_F77; do
15863
 
15864
    case $var in
15865
    old_archive_cmds_F77 | \
15866
    old_archive_from_new_cmds_F77 | \
15867
    archive_cmds_F77 | \
15868
    archive_expsym_cmds_F77 | \
15869
    module_cmds_F77 | \
15870
    module_expsym_cmds_F77 | \
15871
    old_archive_from_expsyms_cmds_F77 | \
15872
    export_symbols_cmds_F77 | \
15873
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15874
    postinstall_cmds | postuninstall_cmds | \
15875
    old_postinstall_cmds | old_postuninstall_cmds | \
15876
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15877
      # Double-quote double-evaled strings.
15878
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15879
      ;;
15880
    *)
15881
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15882
      ;;
15883
    esac
15884
  done
15885
 
15886
  case $lt_echo in
15887
  *'\$0 --fallback-echo"')
15888
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15889
    ;;
15890
  esac
15891
 
15892
cfgfile="$ofile"
15893
 
15894
  cat <<__EOF__ >> "$cfgfile"
15895
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15896
 
15897
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15898
 
15899
# Shell to use when invoking shell scripts.
15900
SHELL=$lt_SHELL
15901
 
15902
# Whether or not to build shared libraries.
15903
build_libtool_libs=$enable_shared
15904
 
15905
# Whether or not to build static libraries.
15906
build_old_libs=$enable_static
15907
 
15908
# Whether or not to add -lc for building shared libraries.
15909
build_libtool_need_lc=$archive_cmds_need_lc_F77
15910
 
15911
# Whether or not to disallow shared libs when runtime libs are static
15912
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15913
 
15914
# Whether or not to optimize for fast installation.
15915
fast_install=$enable_fast_install
15916
 
15917
# The host system.
15918
host_alias=$host_alias
15919
host=$host
15920
host_os=$host_os
15921
 
15922
# The build system.
15923
build_alias=$build_alias
15924
build=$build
15925
build_os=$build_os
15926
 
15927
# An echo program that does not interpret backslashes.
15928
echo=$lt_echo
15929
 
15930
# The archiver.
15931
AR=$lt_AR
15932
AR_FLAGS=$lt_AR_FLAGS
15933
 
15934
# A C compiler.
15935
LTCC=$lt_LTCC
15936
 
15937
# LTCC compiler flags.
15938
LTCFLAGS=$lt_LTCFLAGS
15939
 
15940
# A language-specific compiler.
15941
CC=$lt_compiler_F77
15942
 
15943
# Is the compiler the GNU C compiler?
15944
with_gcc=$GCC_F77
15945
 
15946
# An ERE matcher.
15947
EGREP=$lt_EGREP
15948
 
15949
# The linker used to build libraries.
15950
LD=$lt_LD_F77
15951
 
15952
# Whether we need hard or soft links.
15953
LN_S=$lt_LN_S
15954
 
15955
# A BSD-compatible nm program.
15956
NM=$lt_NM
15957
 
15958
# A symbol stripping program
15959
STRIP=$lt_STRIP
15960
 
15961
# Used to examine libraries when file_magic_cmd begins "file"
15962
MAGIC_CMD=$MAGIC_CMD
15963
 
15964
# Used on cygwin: DLL creation program.
15965
DLLTOOL="$DLLTOOL"
15966
 
15967
# Used on cygwin: object dumper.
15968
OBJDUMP="$OBJDUMP"
15969
 
15970
# Used on cygwin: assembler.
15971
AS="$AS"
15972
 
15973
# The name of the directory that contains temporary libtool files.
15974
objdir=$objdir
15975
 
15976
# How to create reloadable object files.
15977
reload_flag=$lt_reload_flag
15978
reload_cmds=$lt_reload_cmds
15979
 
15980
# How to pass a linker flag through the compiler.
15981
wl=$lt_lt_prog_compiler_wl_F77
15982
 
15983
# Object file suffix (normally "o").
15984
objext="$ac_objext"
15985
 
15986
# Old archive suffix (normally "a").
15987
libext="$libext"
15988
 
15989
# Shared library suffix (normally ".so").
15990
shrext_cmds='$shrext_cmds'
15991
 
15992
# Executable file suffix (normally "").
15993
exeext="$exeext"
15994
 
15995
# Additional compiler flags for building library objects.
15996
pic_flag=$lt_lt_prog_compiler_pic_F77
15997
pic_mode=$pic_mode
15998
 
15999
# What is the maximum length of a command?
16000
max_cmd_len=$lt_cv_sys_max_cmd_len
16001
 
16002
# Does compiler simultaneously support -c and -o options?
16003
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16004
 
16005
# Must we lock files when doing compilation?
16006
need_locks=$lt_need_locks
16007
 
16008
# Do we need the lib prefix for modules?
16009
need_lib_prefix=$need_lib_prefix
16010
 
16011
# Do we need a version for libraries?
16012
need_version=$need_version
16013
 
16014
# Whether dlopen is supported.
16015
dlopen_support=$enable_dlopen
16016
 
16017
# Whether dlopen of programs is supported.
16018
dlopen_self=$enable_dlopen_self
16019
 
16020
# Whether dlopen of statically linked programs is supported.
16021
dlopen_self_static=$enable_dlopen_self_static
16022
 
16023
# Compiler flag to prevent dynamic linking.
16024
link_static_flag=$lt_lt_prog_compiler_static_F77
16025
 
16026
# Compiler flag to turn off builtin functions.
16027
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16028
 
16029
# Compiler flag to allow reflexive dlopens.
16030
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16031
 
16032
# Compiler flag to generate shared objects directly from archives.
16033
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16034
 
16035
# Compiler flag to generate thread-safe objects.
16036
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16037
 
16038
# Library versioning type.
16039
version_type=$version_type
16040
 
16041
# Format of library name prefix.
16042
libname_spec=$lt_libname_spec
16043
 
16044
# List of archive names.  First name is the real one, the rest are links.
16045
# The last name is the one that the linker finds with -lNAME.
16046
library_names_spec=$lt_library_names_spec
16047
 
16048
# The coded name of the library, if different from the real name.
16049
soname_spec=$lt_soname_spec
16050
 
16051
# Commands used to build and install an old-style archive.
16052
RANLIB=$lt_RANLIB
16053
old_archive_cmds=$lt_old_archive_cmds_F77
16054
old_postinstall_cmds=$lt_old_postinstall_cmds
16055
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16056
 
16057
# Create an old-style archive from a shared archive.
16058
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16059
 
16060
# Create a temporary old-style archive to link instead of a shared archive.
16061
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16062
 
16063
# Commands used to build and install a shared archive.
16064
archive_cmds=$lt_archive_cmds_F77
16065
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16066
postinstall_cmds=$lt_postinstall_cmds
16067
postuninstall_cmds=$lt_postuninstall_cmds
16068
 
16069
# Commands used to build a loadable module (assumed same as above if empty)
16070
module_cmds=$lt_module_cmds_F77
16071
module_expsym_cmds=$lt_module_expsym_cmds_F77
16072
 
16073
# Commands to strip libraries.
16074
old_striplib=$lt_old_striplib
16075
striplib=$lt_striplib
16076
 
16077
# Dependencies to place before the objects being linked to create a
16078
# shared library.
16079
predep_objects=$lt_predep_objects_F77
16080
 
16081
# Dependencies to place after the objects being linked to create a
16082
# shared library.
16083
postdep_objects=$lt_postdep_objects_F77
16084
 
16085
# Dependencies to place before the objects being linked to create a
16086
# shared library.
16087
predeps=$lt_predeps_F77
16088
 
16089
# Dependencies to place after the objects being linked to create a
16090
# shared library.
16091
postdeps=$lt_postdeps_F77
16092
 
16093
# The library search path used internally by the compiler when linking
16094
# a shared library.
16095
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16096
 
16097
# Method to check whether dependent libraries are shared objects.
16098
deplibs_check_method=$lt_deplibs_check_method
16099
 
16100
# Command to use when deplibs_check_method == file_magic.
16101
file_magic_cmd=$lt_file_magic_cmd
16102
 
16103
# Flag that allows shared libraries with undefined symbols to be built.
16104
allow_undefined_flag=$lt_allow_undefined_flag_F77
16105
 
16106
# Flag that forces no undefined symbols.
16107
no_undefined_flag=$lt_no_undefined_flag_F77
16108
 
16109
# Commands used to finish a libtool library installation in a directory.
16110
finish_cmds=$lt_finish_cmds
16111
 
16112
# Same as above, but a single script fragment to be evaled but not shown.
16113
finish_eval=$lt_finish_eval
16114
 
16115
# Take the output of nm and produce a listing of raw symbols and C names.
16116
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16117
 
16118
# Transform the output of nm in a proper C declaration
16119
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16120
 
16121
# Transform the output of nm in a C name address pair
16122
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16123
 
16124
# This is the shared library runtime path variable.
16125
runpath_var=$runpath_var
16126
 
16127
# This is the shared library path variable.
16128
shlibpath_var=$shlibpath_var
16129
 
16130
# Is shlibpath searched before the hard-coded library search path?
16131
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16132
 
16133
# How to hardcode a shared library path into an executable.
16134
hardcode_action=$hardcode_action_F77
16135
 
16136
# Whether we should hardcode library paths into libraries.
16137
hardcode_into_libs=$hardcode_into_libs
16138
 
16139
# Flag to hardcode \$libdir into a binary during linking.
16140
# This must work even if \$libdir does not exist.
16141
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16142
 
16143
# If ld is used when linking, flag to hardcode \$libdir into
16144
# a binary during linking. This must work even if \$libdir does
16145
# not exist.
16146
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16147
 
16148
# Whether we need a single -rpath flag with a separated argument.
16149
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16150
 
16151
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16152
# resulting binary.
16153
hardcode_direct=$hardcode_direct_F77
16154
 
16155
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16156
# resulting binary.
16157
hardcode_minus_L=$hardcode_minus_L_F77
16158
 
16159
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16160
# the resulting binary.
16161
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16162
 
16163
# Set to yes if building a shared library automatically hardcodes DIR into the library
16164
# and all subsequent libraries and executables linked against it.
16165
hardcode_automatic=$hardcode_automatic_F77
16166
 
16167
# Variables whose values should be saved in libtool wrapper scripts and
16168
# restored at relink time.
16169
variables_saved_for_relink="$variables_saved_for_relink"
16170
 
16171
# Whether libtool must link a program against all its dependency libraries.
16172
link_all_deplibs=$link_all_deplibs_F77
16173
 
16174
# Compile-time system search path for libraries
16175
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16176
 
16177
# Run-time system search path for libraries
16178
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16179
 
16180
# Fix the shell variable \$srcfile for the compiler.
16181
fix_srcfile_path=$lt_fix_srcfile_path
16182
 
16183
# Set to yes if exported symbols are required.
16184
always_export_symbols=$always_export_symbols_F77
16185
 
16186
# The commands to list exported symbols.
16187
export_symbols_cmds=$lt_export_symbols_cmds_F77
16188
 
16189
# The commands to extract the exported symbol list from a shared archive.
16190
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16191
 
16192
# Symbols that should not be listed in the preloaded symbols.
16193
exclude_expsyms=$lt_exclude_expsyms_F77
16194
 
16195
# Symbols that must always be exported.
16196
include_expsyms=$lt_include_expsyms_F77
16197
 
16198
# ### END LIBTOOL TAG CONFIG: $tagname
16199
 
16200
__EOF__
16201
 
16202
 
16203
else
16204
  # If there is no Makefile yet, we rely on a make rule to execute
16205
  # `config.status --recheck' to rerun these tests and create the
16206
  # libtool script then.
16207
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16208
  if test -f "$ltmain_in"; then
16209
    test -f Makefile && make "$ltmain"
16210
  fi
16211
fi
16212
 
16213
 
16214
ac_ext=c
16215
ac_cpp='$CPP $CPPFLAGS'
16216
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16217
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16218
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16219
 
16220
CC="$lt_save_CC"
16221
 
16222
	else
16223
	  tagname=""
16224
	fi
16225
	;;
16226
 
16227
      GCJ)
16228
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16229
 
16230
 
16231
# Source file extension for Java test sources.
16232
ac_ext=java
16233
 
16234
# Object file extension for compiled Java test sources.
16235
objext=o
16236
objext_GCJ=$objext
16237
 
16238
# Code to be used in simple compile tests
16239
lt_simple_compile_test_code="class foo {}"
16240
 
16241
# Code to be used in simple link tests
16242
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16243
 
16244
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16245
 
16246
# If no C compiler was specified, use CC.
16247
LTCC=${LTCC-"$CC"}
16248
 
16249
# If no C compiler flags were specified, use CFLAGS.
16250
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16251
 
16252
# Allow CC to be a program name with arguments.
16253
compiler=$CC
16254
 
16255
 
16256
# save warnings/boilerplate of simple test code
16257
ac_outfile=conftest.$ac_objext
16258
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16259
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16260
_lt_compiler_boilerplate=`cat conftest.err`
16261
$rm conftest*
16262
 
16263
ac_outfile=conftest.$ac_objext
16264
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16265
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16266
_lt_linker_boilerplate=`cat conftest.err`
16267
$rm conftest*
16268
 
16269
 
16270
# Allow CC to be a program name with arguments.
16271
lt_save_CC="$CC"
16272
CC=${GCJ-"gcj"}
16273
compiler=$CC
16274
compiler_GCJ=$CC
16275
for cc_temp in $compiler""; do
16276
  case $cc_temp in
16277
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16278
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16279
    \-*) ;;
16280
    *) break;;
16281
  esac
16282
done
16283
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16284
 
16285
 
16286
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16287
archive_cmds_need_lc_GCJ=no
16288
 
16289
old_archive_cmds_GCJ=$old_archive_cmds
16290
 
16291
## CAVEAT EMPTOR:
16292
## There is no encapsulation within the following macros, do not change
16293
## the running order or otherwise move them around unless you know exactly
16294
## what you are doing...
16295
 
16296
lt_prog_compiler_no_builtin_flag_GCJ=
16297
 
16298
if test "$GCC" = yes; then
16299
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16300
 
16301
 
16302
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16303
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16304
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16305
  echo $ECHO_N "(cached) $ECHO_C" >&6
16306
else
16307
  lt_cv_prog_compiler_rtti_exceptions=no
16308
  ac_outfile=conftest.$ac_objext
16309
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16310
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16311
   # Insert the option either (1) after the last *FLAGS variable, or
16312
   # (2) before a word containing "conftest.", or (3) at the end.
16313
   # Note that $ac_compile itself does not contain backslashes and begins
16314
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16315
   # The option is referenced via a variable to avoid confusing sed.
16316
   lt_compile=`echo "$ac_compile" | $SED \
16317
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16318
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16319
   -e 's:$: $lt_compiler_flag:'`
16320
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16321
   (eval "$lt_compile" 2>conftest.err)
16322
   ac_status=$?
16323
   cat conftest.err >&5
16324
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16325
   if (exit $ac_status) && test -s "$ac_outfile"; then
16326
     # The compiler can only warn and ignore the option if not recognized
16327
     # So say no if there are warnings other than the usual output.
16328
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16329
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16330
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16331
       lt_cv_prog_compiler_rtti_exceptions=yes
16332
     fi
16333
   fi
16334
   $rm conftest*
16335
 
16336
fi
16337
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16338
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16339
 
16340
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16341
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16342
else
16343
    :
16344
fi
16345
 
16346
fi
16347
 
16348
lt_prog_compiler_wl_GCJ=
16349
lt_prog_compiler_pic_GCJ=
16350
lt_prog_compiler_static_GCJ=
16351
 
16352
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16353
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16354
 
16355
  if test "$GCC" = yes; then
16356
    lt_prog_compiler_wl_GCJ='-Wl,'
16357
    lt_prog_compiler_static_GCJ='-static'
16358
 
16359
    case $host_os in
16360
      aix*)
16361
      # All AIX code is PIC.
16362
      if test "$host_cpu" = ia64; then
16363
	# AIX 5 now supports IA64 processor
16364
	lt_prog_compiler_static_GCJ='-Bstatic'
16365
      fi
16366
      ;;
16367
 
16368
    amigaos*)
16369
      # FIXME: we need at least 68020 code to build shared libraries, but
16370
      # adding the `-m68020' flag to GCC prevents building anything better,
16371
      # like `-m68040'.
16372
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16373
      ;;
16374
 
16375
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16376
      # PIC is the default for these OSes.
16377
      ;;
16378
 
16379
    mingw* | cygwin* | pw32* | os2*)
16380
      # This hack is so that the source file can tell whether it is being
16381
      # built for inclusion in a dll (and should export symbols for example).
16382
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16383
      # (--disable-auto-import) libraries
16384
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16385
      ;;
16386
 
16387
    darwin* | rhapsody*)
16388
      # PIC is the default on this platform
16389
      # Common symbols not allowed in MH_DYLIB files
16390
      lt_prog_compiler_pic_GCJ='-fno-common'
16391
      ;;
16392
 
16393
    interix[3-9]*)
16394
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16395
      # Instead, we relocate shared libraries at runtime.
16396
      ;;
16397
 
16398
    msdosdjgpp*)
16399
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16400
      # on systems that don't support them.
16401
      lt_prog_compiler_can_build_shared_GCJ=no
16402
      enable_shared=no
16403
      ;;
16404
 
16405
    sysv4*MP*)
16406
      if test -d /usr/nec; then
16407
	lt_prog_compiler_pic_GCJ=-Kconform_pic
16408
      fi
16409
      ;;
16410
 
16411
    hpux*)
16412
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16413
      # not for PA HP-UX.
16414
      case $host_cpu in
16415
      hppa*64*|ia64*)
16416
	# +Z the default
16417
	;;
16418
      *)
16419
	lt_prog_compiler_pic_GCJ='-fPIC'
16420
	;;
16421
      esac
16422
      ;;
16423
 
16424
    *)
16425
      lt_prog_compiler_pic_GCJ='-fPIC'
16426
      ;;
16427
    esac
16428
  else
16429
    # PORTME Check for flag to pass linker flags through the system compiler.
16430
    case $host_os in
16431
    aix*)
16432
      lt_prog_compiler_wl_GCJ='-Wl,'
16433
      if test "$host_cpu" = ia64; then
16434
	# AIX 5 now supports IA64 processor
16435
	lt_prog_compiler_static_GCJ='-Bstatic'
16436
      else
16437
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16438
      fi
16439
      ;;
16440
      darwin*)
16441
        # PIC is the default on this platform
16442
        # Common symbols not allowed in MH_DYLIB files
16443
       case $cc_basename in
16444
         xlc*)
16445
         lt_prog_compiler_pic_GCJ='-qnocommon'
16446
         lt_prog_compiler_wl_GCJ='-Wl,'
16447
         ;;
16448
       esac
16449
       ;;
16450
 
16451
    mingw* | cygwin* | pw32* | os2*)
16452
      # This hack is so that the source file can tell whether it is being
16453
      # built for inclusion in a dll (and should export symbols for example).
16454
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16455
      ;;
16456
 
16457
    hpux9* | hpux10* | hpux11*)
16458
      lt_prog_compiler_wl_GCJ='-Wl,'
16459
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16460
      # not for PA HP-UX.
16461
      case $host_cpu in
16462
      hppa*64*|ia64*)
16463
	# +Z the default
16464
	;;
16465
      *)
16466
	lt_prog_compiler_pic_GCJ='+Z'
16467
	;;
16468
      esac
16469
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16470
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16471
      ;;
16472
 
16473
    irix5* | irix6* | nonstopux*)
16474
      lt_prog_compiler_wl_GCJ='-Wl,'
16475
      # PIC (with -KPIC) is the default.
16476
      lt_prog_compiler_static_GCJ='-non_shared'
16477
      ;;
16478
 
16479
    newsos6)
16480
      lt_prog_compiler_pic_GCJ='-KPIC'
16481
      lt_prog_compiler_static_GCJ='-Bstatic'
16482
      ;;
16483
 
16484
    linux* | k*bsd*-gnu)
16485
      case $cc_basename in
16486
      icc* | ecc*)
16487
	lt_prog_compiler_wl_GCJ='-Wl,'
16488
	lt_prog_compiler_pic_GCJ='-KPIC'
16489
	lt_prog_compiler_static_GCJ='-static'
16490
        ;;
16491
      pgcc* | pgf77* | pgf90* | pgf95*)
16492
        # Portland Group compilers (*not* the Pentium gcc compiler,
16493
	# which looks to be a dead project)
16494
	lt_prog_compiler_wl_GCJ='-Wl,'
16495
	lt_prog_compiler_pic_GCJ='-fpic'
16496
	lt_prog_compiler_static_GCJ='-Bstatic'
16497
        ;;
16498
      ccc*)
16499
        lt_prog_compiler_wl_GCJ='-Wl,'
16500
        # All Alpha code is PIC.
16501
        lt_prog_compiler_static_GCJ='-non_shared'
16502
        ;;
16503
      *)
16504
        case `$CC -V 2>&1 | sed 5q` in
16505
	*Sun\ C*)
16506
	  # Sun C 5.9
16507
	  lt_prog_compiler_pic_GCJ='-KPIC'
16508
	  lt_prog_compiler_static_GCJ='-Bstatic'
16509
	  lt_prog_compiler_wl_GCJ='-Wl,'
16510
	  ;;
16511
	*Sun\ F*)
16512
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16513
	  lt_prog_compiler_pic_GCJ='-KPIC'
16514
	  lt_prog_compiler_static_GCJ='-Bstatic'
16515
	  lt_prog_compiler_wl_GCJ=''
16516
	  ;;
16517
	esac
16518
	;;
16519
      esac
16520
      ;;
16521
 
16522
    osf3* | osf4* | osf5*)
16523
      lt_prog_compiler_wl_GCJ='-Wl,'
16524
      # All OSF/1 code is PIC.
16525
      lt_prog_compiler_static_GCJ='-non_shared'
16526
      ;;
16527
 
16528
    rdos*)
16529
      lt_prog_compiler_static_GCJ='-non_shared'
16530
      ;;
16531
 
16532
    solaris*)
16533
      lt_prog_compiler_pic_GCJ='-KPIC'
16534
      lt_prog_compiler_static_GCJ='-Bstatic'
16535
      case $cc_basename in
16536
      f77* | f90* | f95*)
16537
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16538
      *)
16539
	lt_prog_compiler_wl_GCJ='-Wl,';;
16540
      esac
16541
      ;;
16542
 
16543
    sunos4*)
16544
      lt_prog_compiler_wl_GCJ='-Qoption ld '
16545
      lt_prog_compiler_pic_GCJ='-PIC'
16546
      lt_prog_compiler_static_GCJ='-Bstatic'
16547
      ;;
16548
 
16549
    sysv4 | sysv4.2uw2* | sysv4.3*)
16550
      lt_prog_compiler_wl_GCJ='-Wl,'
16551
      lt_prog_compiler_pic_GCJ='-KPIC'
16552
      lt_prog_compiler_static_GCJ='-Bstatic'
16553
      ;;
16554
 
16555
    sysv4*MP*)
16556
      if test -d /usr/nec ;then
16557
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16558
	lt_prog_compiler_static_GCJ='-Bstatic'
16559
      fi
16560
      ;;
16561
 
16562
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16563
      lt_prog_compiler_wl_GCJ='-Wl,'
16564
      lt_prog_compiler_pic_GCJ='-KPIC'
16565
      lt_prog_compiler_static_GCJ='-Bstatic'
16566
      ;;
16567
 
16568
    unicos*)
16569
      lt_prog_compiler_wl_GCJ='-Wl,'
16570
      lt_prog_compiler_can_build_shared_GCJ=no
16571
      ;;
16572
 
16573
    uts4*)
16574
      lt_prog_compiler_pic_GCJ='-pic'
16575
      lt_prog_compiler_static_GCJ='-Bstatic'
16576
      ;;
16577
 
16578
    *)
16579
      lt_prog_compiler_can_build_shared_GCJ=no
16580
      ;;
16581
    esac
16582
  fi
16583
 
16584
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16585
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16586
 
16587
#
16588
# Check to make sure the PIC flag actually works.
16589
#
16590
if test -n "$lt_prog_compiler_pic_GCJ"; then
16591
 
16592
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16593
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16594
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16595
  echo $ECHO_N "(cached) $ECHO_C" >&6
16596
else
16597
  lt_prog_compiler_pic_works_GCJ=no
16598
  ac_outfile=conftest.$ac_objext
16599
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16600
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16601
   # Insert the option either (1) after the last *FLAGS variable, or
16602
   # (2) before a word containing "conftest.", or (3) at the end.
16603
   # Note that $ac_compile itself does not contain backslashes and begins
16604
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16605
   # The option is referenced via a variable to avoid confusing sed.
16606
   lt_compile=`echo "$ac_compile" | $SED \
16607
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16608
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16609
   -e 's:$: $lt_compiler_flag:'`
16610
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16611
   (eval "$lt_compile" 2>conftest.err)
16612
   ac_status=$?
16613
   cat conftest.err >&5
16614
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16615
   if (exit $ac_status) && test -s "$ac_outfile"; then
16616
     # The compiler can only warn and ignore the option if not recognized
16617
     # So say no if there are warnings other than the usual output.
16618
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16619
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16620
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16621
       lt_prog_compiler_pic_works_GCJ=yes
16622
     fi
16623
   fi
16624
   $rm conftest*
16625
 
16626
fi
16627
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16628
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16629
 
16630
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16631
    case $lt_prog_compiler_pic_GCJ in
16632
     "" | " "*) ;;
16633
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16634
     esac
16635
else
16636
    lt_prog_compiler_pic_GCJ=
16637
     lt_prog_compiler_can_build_shared_GCJ=no
16638
fi
16639
 
16640
fi
16641
case $host_os in
16642
  # For platforms which do not support PIC, -DPIC is meaningless:
16643
  *djgpp*)
16644
    lt_prog_compiler_pic_GCJ=
16645
    ;;
16646
  *)
16647
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16648
    ;;
16649
esac
16650
 
16651
#
16652
# Check to make sure the static flag actually works.
16653
#
16654
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16655
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16656
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16657
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16658
  echo $ECHO_N "(cached) $ECHO_C" >&6
16659
else
16660
  lt_prog_compiler_static_works_GCJ=no
16661
   save_LDFLAGS="$LDFLAGS"
16662
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16663
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16664
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16665
     # The linker can only warn and ignore the option if not recognized
16666
     # So say no if there are warnings
16667
     if test -s conftest.err; then
16668
       # Append any errors to the config.log.
16669
       cat conftest.err 1>&5
16670
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16671
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16672
       if diff conftest.exp conftest.er2 >/dev/null; then
16673
         lt_prog_compiler_static_works_GCJ=yes
16674
       fi
16675
     else
16676
       lt_prog_compiler_static_works_GCJ=yes
16677
     fi
16678
   fi
16679
   $rm conftest*
16680
   LDFLAGS="$save_LDFLAGS"
16681
 
16682
fi
16683
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16684
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16685
 
16686
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16687
    :
16688
else
16689
    lt_prog_compiler_static_GCJ=
16690
fi
16691
 
16692
 
16693
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16694
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16695
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16696
  echo $ECHO_N "(cached) $ECHO_C" >&6
16697
else
16698
  lt_cv_prog_compiler_c_o_GCJ=no
16699
   $rm -r conftest 2>/dev/null
16700
   mkdir conftest
16701
   cd conftest
16702
   mkdir out
16703
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16704
 
16705
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16706
   # Insert the option either (1) after the last *FLAGS variable, or
16707
   # (2) before a word containing "conftest.", or (3) at the end.
16708
   # Note that $ac_compile itself does not contain backslashes and begins
16709
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16710
   lt_compile=`echo "$ac_compile" | $SED \
16711
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16712
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16713
   -e 's:$: $lt_compiler_flag:'`
16714
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16715
   (eval "$lt_compile" 2>out/conftest.err)
16716
   ac_status=$?
16717
   cat out/conftest.err >&5
16718
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16719
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16720
   then
16721
     # The compiler can only warn and ignore the option if not recognized
16722
     # So say no if there are warnings
16723
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16724
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16725
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16726
       lt_cv_prog_compiler_c_o_GCJ=yes
16727
     fi
16728
   fi
16729
   chmod u+w . 2>&5
16730
   $rm conftest*
16731
   # SGI C++ compiler will create directory out/ii_files/ for
16732
   # template instantiation
16733
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16734
   $rm out/* && rmdir out
16735
   cd ..
16736
   rmdir conftest
16737
   $rm conftest*
16738
 
16739
fi
16740
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16741
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16742
 
16743
 
16744
hard_links="nottested"
16745
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16746
  # do not overwrite the value of need_locks provided by the user
16747
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16748
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16749
  hard_links=yes
16750
  $rm conftest*
16751
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16752
  touch conftest.a
16753
  ln conftest.a conftest.b 2>&5 || hard_links=no
16754
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16755
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16756
echo "${ECHO_T}$hard_links" >&6; }
16757
  if test "$hard_links" = no; then
16758
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16759
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16760
    need_locks=warn
16761
  fi
16762
else
16763
  need_locks=no
16764
fi
16765
 
16766
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16767
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16768
 
16769
  runpath_var=
16770
  allow_undefined_flag_GCJ=
16771
  enable_shared_with_static_runtimes_GCJ=no
16772
  archive_cmds_GCJ=
16773
  archive_expsym_cmds_GCJ=
16774
  old_archive_From_new_cmds_GCJ=
16775
  old_archive_from_expsyms_cmds_GCJ=
16776
  export_dynamic_flag_spec_GCJ=
16777
  whole_archive_flag_spec_GCJ=
16778
  thread_safe_flag_spec_GCJ=
16779
  hardcode_libdir_flag_spec_GCJ=
16780
  hardcode_libdir_flag_spec_ld_GCJ=
16781
  hardcode_libdir_separator_GCJ=
16782
  hardcode_direct_GCJ=no
16783
  hardcode_minus_L_GCJ=no
16784
  hardcode_shlibpath_var_GCJ=unsupported
16785
  link_all_deplibs_GCJ=unknown
16786
  hardcode_automatic_GCJ=no
16787
  module_cmds_GCJ=
16788
  module_expsym_cmds_GCJ=
16789
  always_export_symbols_GCJ=no
16790
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16791
  # include_expsyms should be a list of space-separated symbols to be *always*
16792
  # included in the symbol list
16793
  include_expsyms_GCJ=
16794
  # exclude_expsyms can be an extended regexp of symbols to exclude
16795
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16796
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16797
  # as well as any symbol that contains `d'.
16798
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16799
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16800
  # platforms (ab)use it in PIC code, but their linkers get confused if
16801
  # the symbol is explicitly referenced.  Since portable code cannot
16802
  # rely on this symbol name, it's probably fine to never include it in
16803
  # preloaded symbol tables.
16804
  extract_expsyms_cmds=
16805
  # Just being paranoid about ensuring that cc_basename is set.
16806
  for cc_temp in $compiler""; do
16807
  case $cc_temp in
16808
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16809
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16810
    \-*) ;;
16811
    *) break;;
16812
  esac
16813
done
16814
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16815
 
16816
  case $host_os in
16817
  cygwin* | mingw* | pw32*)
16818
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16819
    # When not using gcc, we currently assume that we are using
16820
    # Microsoft Visual C++.
16821
    if test "$GCC" != yes; then
16822
      with_gnu_ld=no
16823
    fi
16824
    ;;
16825
  interix*)
16826
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16827
    with_gnu_ld=yes
16828
    ;;
16829
  openbsd*)
16830
    with_gnu_ld=no
16831
    ;;
16832
  esac
16833
 
16834
  ld_shlibs_GCJ=yes
16835
  if test "$with_gnu_ld" = yes; then
16836
    # If archive_cmds runs LD, not CC, wlarc should be empty
16837
    wlarc='${wl}'
16838
 
16839
    # Set some defaults for GNU ld with shared library support. These
16840
    # are reset later if shared libraries are not supported. Putting them
16841
    # here allows them to be overridden if necessary.
16842
    runpath_var=LD_RUN_PATH
16843
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16844
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16845
    # ancient GNU ld didn't support --whole-archive et. al.
16846
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16847
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16848
      else
16849
  	whole_archive_flag_spec_GCJ=
16850
    fi
16851
    supports_anon_versioning=no
16852
    case `$LD -v 2>/dev/null` in
16853
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16854
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16855
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16856
      *\ 2.11.*) ;; # other 2.11 versions
16857
      *) supports_anon_versioning=yes ;;
16858
    esac
16859
 
16860
    # See if GNU ld supports shared libraries.
16861
    case $host_os in
16862
    aix3* | aix4* | aix5*)
16863
      # On AIX/PPC, the GNU linker is very broken
16864
      if test "$host_cpu" != ia64; then
16865
	ld_shlibs_GCJ=no
16866
	cat <<EOF 1>&2
16867
 
16868
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16869
*** to be unable to reliably create shared libraries on AIX.
16870
*** Therefore, libtool is disabling shared libraries support.  If you
16871
*** really care for shared libraries, you may want to modify your PATH
16872
*** so that a non-GNU linker is found, and then restart.
16873
 
16874
EOF
16875
      fi
16876
      ;;
16877
 
16878
    amigaos*)
16879
      archive_cmds_GCJ='$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)'
16880
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16881
      hardcode_minus_L_GCJ=yes
16882
 
16883
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16884
      # that the semantics of dynamic libraries on AmigaOS, at least up
16885
      # to version 4, is to share data among multiple programs linked
16886
      # with the same dynamic library.  Since this doesn't match the
16887
      # behavior of shared libraries on other platforms, we can't use
16888
      # them.
16889
      ld_shlibs_GCJ=no
16890
      ;;
16891
 
16892
    beos*)
16893
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16894
	allow_undefined_flag_GCJ=unsupported
16895
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16896
	# support --undefined.  This deserves some investigation.  FIXME
16897
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16898
      else
16899
	ld_shlibs_GCJ=no
16900
      fi
16901
      ;;
16902
 
16903
    cygwin* | mingw* | pw32*)
16904
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16905
      # as there is no search path for DLLs.
16906
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16907
      allow_undefined_flag_GCJ=unsupported
16908
      always_export_symbols_GCJ=no
16909
      enable_shared_with_static_runtimes_GCJ=yes
16910
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16911
 
16912
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16913
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16914
	# If the export-symbols file already is a .def file (1st line
16915
	# is EXPORTS), use it as is; otherwise, prepend...
16916
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16917
	  cp $export_symbols $output_objdir/$soname.def;
16918
	else
16919
	  echo EXPORTS > $output_objdir/$soname.def;
16920
	  cat $export_symbols >> $output_objdir/$soname.def;
16921
	fi~
16922
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16923
      else
16924
	ld_shlibs_GCJ=no
16925
      fi
16926
      ;;
16927
 
16928
    interix[3-9]*)
16929
      hardcode_direct_GCJ=no
16930
      hardcode_shlibpath_var_GCJ=no
16931
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16932
      export_dynamic_flag_spec_GCJ='${wl}-E'
16933
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16934
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16935
      # default) and relocated if they conflict, which is a slow very memory
16936
      # consuming and fragmenting process.  To avoid this, we pick a random,
16937
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16938
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16939
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16940
      archive_expsym_cmds_GCJ='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'
16941
      ;;
16942
 
16943
    gnu* | linux* | k*bsd*-gnu)
16944
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16945
	tmp_addflag=
16946
	case $cc_basename,$host_cpu in
16947
	pgcc*)				# Portland Group C compiler
16948
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16949
	  tmp_addflag=' $pic_flag'
16950
	  ;;
16951
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16952
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16953
	  tmp_addflag=' $pic_flag -Mnomain' ;;
16954
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16955
	  tmp_addflag=' -i_dynamic' ;;
16956
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16957
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16958
	ifc* | ifort*)			# Intel Fortran compiler
16959
	  tmp_addflag=' -nofor_main' ;;
16960
	esac
16961
	case `$CC -V 2>&1 | sed 5q` in
16962
	*Sun\ C*)			# Sun C 5.9
16963
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16964
	  tmp_sharedflag='-G' ;;
16965
	*Sun\ F*)			# Sun Fortran 8.3
16966
	  tmp_sharedflag='-G' ;;
16967
	*)
16968
	  tmp_sharedflag='-shared' ;;
16969
	esac
16970
	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16971
 
16972
	if test $supports_anon_versioning = yes; then
16973
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16974
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16975
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16976
	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16977
	fi
16978
	link_all_deplibs_GCJ=no
16979
      else
16980
	ld_shlibs_GCJ=no
16981
      fi
16982
      ;;
16983
 
16984
    netbsd* | netbsdelf*-gnu)
16985
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16986
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16987
	wlarc=
16988
      else
16989
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16990
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16991
      fi
16992
      ;;
16993
 
16994
    solaris*)
16995
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16996
	ld_shlibs_GCJ=no
16997
	cat <<EOF 1>&2
16998
 
16999
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17000
*** create shared libraries on Solaris systems.  Therefore, libtool
17001
*** is disabling shared libraries support.  We urge you to upgrade GNU
17002
*** binutils to release 2.9.1 or newer.  Another option is to modify
17003
*** your PATH or compiler configuration so that the native linker is
17004
*** used, and then restart.
17005
 
17006
EOF
17007
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17008
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17009
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17010
      else
17011
	ld_shlibs_GCJ=no
17012
      fi
17013
      ;;
17014
 
17015
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17016
      case `$LD -v 2>&1` in
17017
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17018
	ld_shlibs_GCJ=no
17019
	cat <<_LT_EOF 1>&2
17020
 
17021
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17022
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17023
*** is disabling shared libraries support.  We urge you to upgrade GNU
17024
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17025
*** your PATH or compiler configuration so that the native linker is
17026
*** used, and then restart.
17027
 
17028
_LT_EOF
17029
	;;
17030
	*)
17031
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17032
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17033
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17034
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17035
	  else
17036
	    ld_shlibs_GCJ=no
17037
	  fi
17038
	;;
17039
      esac
17040
      ;;
17041
 
17042
    sunos4*)
17043
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17044
      wlarc=
17045
      hardcode_direct_GCJ=yes
17046
      hardcode_shlibpath_var_GCJ=no
17047
      ;;
17048
 
17049
    *)
17050
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17051
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17052
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17053
      else
17054
	ld_shlibs_GCJ=no
17055
      fi
17056
      ;;
17057
    esac
17058
 
17059
    if test "$ld_shlibs_GCJ" = no; then
17060
      runpath_var=
17061
      hardcode_libdir_flag_spec_GCJ=
17062
      export_dynamic_flag_spec_GCJ=
17063
      whole_archive_flag_spec_GCJ=
17064
    fi
17065
  else
17066
    # PORTME fill in a description of your system's linker (not GNU ld)
17067
    case $host_os in
17068
    aix3*)
17069
      allow_undefined_flag_GCJ=unsupported
17070
      always_export_symbols_GCJ=yes
17071
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17072
      # Note: this linker hardcodes the directories in LIBPATH if there
17073
      # are no directories specified by -L.
17074
      hardcode_minus_L_GCJ=yes
17075
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17076
	# Neither direct hardcoding nor static linking is supported with a
17077
	# broken collect2.
17078
	hardcode_direct_GCJ=unsupported
17079
      fi
17080
      ;;
17081
 
17082
    aix4* | aix5*)
17083
      if test "$host_cpu" = ia64; then
17084
	# On IA64, the linker does run time linking by default, so we don't
17085
	# have to do anything special.
17086
	aix_use_runtimelinking=no
17087
	exp_sym_flag='-Bexport'
17088
	no_entry_flag=""
17089
      else
17090
	# If we're using GNU nm, then we don't want the "-C" option.
17091
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17092
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17093
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17094
	else
17095
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17096
	fi
17097
	aix_use_runtimelinking=no
17098
 
17099
	# Test if we are trying to use run time linking or normal
17100
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17101
	# need to do runtime linking.
17102
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17103
	  for ld_flag in $LDFLAGS; do
17104
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17105
  	    aix_use_runtimelinking=yes
17106
  	    break
17107
  	  fi
17108
	  done
17109
	  ;;
17110
	esac
17111
 
17112
	exp_sym_flag='-bexport'
17113
	no_entry_flag='-bnoentry'
17114
      fi
17115
 
17116
      # When large executables or shared objects are built, AIX ld can
17117
      # have problems creating the table of contents.  If linking a library
17118
      # or program results in "error TOC overflow" add -mminimal-toc to
17119
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17120
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17121
 
17122
      archive_cmds_GCJ=''
17123
      hardcode_direct_GCJ=yes
17124
      hardcode_libdir_separator_GCJ=':'
17125
      link_all_deplibs_GCJ=yes
17126
 
17127
      if test "$GCC" = yes; then
17128
	case $host_os in aix4.[012]|aix4.[012].*)
17129
	# We only want to do this on AIX 4.2 and lower, the check
17130
	# below for broken collect2 doesn't work under 4.3+
17131
	  collect2name=`${CC} -print-prog-name=collect2`
17132
	  if test -f "$collect2name" && \
17133
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17134
	  then
17135
  	  # We have reworked collect2
17136
  	  :
17137
	  else
17138
  	  # We have old collect2
17139
  	  hardcode_direct_GCJ=unsupported
17140
  	  # It fails to find uninstalled libraries when the uninstalled
17141
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17142
  	  # to unsupported forces relinking
17143
  	  hardcode_minus_L_GCJ=yes
17144
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145
  	  hardcode_libdir_separator_GCJ=
17146
	  fi
17147
	  ;;
17148
	esac
17149
	shared_flag='-shared'
17150
	if test "$aix_use_runtimelinking" = yes; then
17151
	  shared_flag="$shared_flag "'${wl}-G'
17152
	fi
17153
      else
17154
	# not using gcc
17155
	if test "$host_cpu" = ia64; then
17156
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17157
  	# chokes on -Wl,-G. The following line is correct:
17158
	  shared_flag='-G'
17159
	else
17160
	  if test "$aix_use_runtimelinking" = yes; then
17161
	    shared_flag='${wl}-G'
17162
	  else
17163
	    shared_flag='${wl}-bM:SRE'
17164
	  fi
17165
	fi
17166
      fi
17167
 
17168
      # It seems that -bexpall does not export symbols beginning with
17169
      # underscore (_), so it is better to generate a list of symbols to export.
17170
      always_export_symbols_GCJ=yes
17171
      if test "$aix_use_runtimelinking" = yes; then
17172
	# Warning - without using the other runtime loading flags (-brtl),
17173
	# -berok will link without error, but may produce a broken library.
17174
	allow_undefined_flag_GCJ='-berok'
17175
       # Determine the default libpath from the value encoded in an empty executable.
17176
       cat >conftest.$ac_ext <<_ACEOF
17177
/* confdefs.h.  */
17178
_ACEOF
17179
cat confdefs.h >>conftest.$ac_ext
17180
cat >>conftest.$ac_ext <<_ACEOF
17181
/* end confdefs.h.  */
17182
 
17183
int
17184
main ()
17185
{
17186
 
17187
  ;
17188
  return 0;
17189
}
17190
_ACEOF
17191
rm -f conftest.$ac_objext conftest$ac_exeext
17192
if { (ac_try="$ac_link"
17193
case "(($ac_try" in
17194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195
  *) ac_try_echo=$ac_try;;
17196
esac
17197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198
  (eval "$ac_link") 2>conftest.er1
17199
  ac_status=$?
17200
  grep -v '^ *+' conftest.er1 >conftest.err
17201
  rm -f conftest.er1
17202
  cat conftest.err >&5
17203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204
  (exit $ac_status); } && {
17205
	 test -z "$ac_c_werror_flag" ||
17206
	 test ! -s conftest.err
17207
       } && test -s conftest$ac_exeext &&
17208
       $as_test_x conftest$ac_exeext; then
17209
 
17210
lt_aix_libpath_sed='
17211
    /Import File Strings/,/^$/ {
17212
	/^0/ {
17213
	    s/^0  *\(.*\)$/\1/
17214
	    p
17215
	}
17216
    }'
17217
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17218
# Check for a 64-bit object if we didn't find anything.
17219
if test -z "$aix_libpath"; then
17220
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17221
fi
17222
else
17223
  echo "$as_me: failed program was:" >&5
17224
sed 's/^/| /' conftest.$ac_ext >&5
17225
 
17226
 
17227
fi
17228
 
17229
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17230
      conftest$ac_exeext conftest.$ac_ext
17231
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17232
 
17233
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17234
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17235
       else
17236
	if test "$host_cpu" = ia64; then
17237
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17238
	  allow_undefined_flag_GCJ="-z nodefs"
17239
	  archive_expsym_cmds_GCJ="\$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"
17240
	else
17241
	 # Determine the default libpath from the value encoded in an empty executable.
17242
	 cat >conftest.$ac_ext <<_ACEOF
17243
/* confdefs.h.  */
17244
_ACEOF
17245
cat confdefs.h >>conftest.$ac_ext
17246
cat >>conftest.$ac_ext <<_ACEOF
17247
/* end confdefs.h.  */
17248
 
17249
int
17250
main ()
17251
{
17252
 
17253
  ;
17254
  return 0;
17255
}
17256
_ACEOF
17257
rm -f conftest.$ac_objext conftest$ac_exeext
17258
if { (ac_try="$ac_link"
17259
case "(($ac_try" in
17260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261
  *) ac_try_echo=$ac_try;;
17262
esac
17263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264
  (eval "$ac_link") 2>conftest.er1
17265
  ac_status=$?
17266
  grep -v '^ *+' conftest.er1 >conftest.err
17267
  rm -f conftest.er1
17268
  cat conftest.err >&5
17269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270
  (exit $ac_status); } && {
17271
	 test -z "$ac_c_werror_flag" ||
17272
	 test ! -s conftest.err
17273
       } && test -s conftest$ac_exeext &&
17274
       $as_test_x conftest$ac_exeext; then
17275
 
17276
lt_aix_libpath_sed='
17277
    /Import File Strings/,/^$/ {
17278
	/^0/ {
17279
	    s/^0  *\(.*\)$/\1/
17280
	    p
17281
	}
17282
    }'
17283
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17284
# Check for a 64-bit object if we didn't find anything.
17285
if test -z "$aix_libpath"; then
17286
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17287
fi
17288
else
17289
  echo "$as_me: failed program was:" >&5
17290
sed 's/^/| /' conftest.$ac_ext >&5
17291
 
17292
 
17293
fi
17294
 
17295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17296
      conftest$ac_exeext conftest.$ac_ext
17297
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17298
 
17299
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17300
	  # Warning - without using the other run time loading flags,
17301
	  # -berok will link without error, but may produce a broken library.
17302
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17303
	  allow_undefined_flag_GCJ=' ${wl}-berok'
17304
	  # Exported symbols can be pulled into shared objects from archives
17305
	  whole_archive_flag_spec_GCJ='$convenience'
17306
	  archive_cmds_need_lc_GCJ=yes
17307
	  # This is similar to how AIX traditionally builds its shared libraries.
17308
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17309
	fi
17310
      fi
17311
      ;;
17312
 
17313
    amigaos*)
17314
      archive_cmds_GCJ='$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)'
17315
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17316
      hardcode_minus_L_GCJ=yes
17317
      # see comment about different semantics on the GNU ld section
17318
      ld_shlibs_GCJ=no
17319
      ;;
17320
 
17321
    bsdi[45]*)
17322
      export_dynamic_flag_spec_GCJ=-rdynamic
17323
      ;;
17324
 
17325
    cygwin* | mingw* | pw32*)
17326
      # When not using gcc, we currently assume that we are using
17327
      # Microsoft Visual C++.
17328
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17329
      # no search path for DLLs.
17330
      hardcode_libdir_flag_spec_GCJ=' '
17331
      allow_undefined_flag_GCJ=unsupported
17332
      # Tell ltmain to make .lib files, not .a files.
17333
      libext=lib
17334
      # Tell ltmain to make .dll files, not .so files.
17335
      shrext_cmds=".dll"
17336
      # FIXME: Setting linknames here is a bad hack.
17337
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17338
      # The linker will automatically build a .lib file if we build a DLL.
17339
      old_archive_From_new_cmds_GCJ='true'
17340
      # FIXME: Should let the user specify the lib program.
17341
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17342
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17343
      enable_shared_with_static_runtimes_GCJ=yes
17344
      ;;
17345
 
17346
    darwin* | rhapsody*)
17347
      case $host_os in
17348
        rhapsody* | darwin1.[012])
17349
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17350
         ;;
17351
       *) # Darwin 1.3 on
17352
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17353
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17354
         else
17355
           case ${MACOSX_DEPLOYMENT_TARGET} in
17356
             10.[012])
17357
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17358
               ;;
17359
             10.*)
17360
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17361
               ;;
17362
           esac
17363
         fi
17364
         ;;
17365
      esac
17366
      archive_cmds_need_lc_GCJ=no
17367
      hardcode_direct_GCJ=no
17368
      hardcode_automatic_GCJ=yes
17369
      hardcode_shlibpath_var_GCJ=unsupported
17370
      whole_archive_flag_spec_GCJ=''
17371
      link_all_deplibs_GCJ=yes
17372
    if test "$GCC" = yes ; then
17373
    	output_verbose_link_cmd='echo'
17374
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17375
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17376
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17377
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17378
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17379
    else
17380
      case $cc_basename in
17381
        xlc*)
17382
         output_verbose_link_cmd='echo'
17383
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17384
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17385
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17386
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17387
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17388
          ;;
17389
       *)
17390
         ld_shlibs_GCJ=no
17391
          ;;
17392
      esac
17393
    fi
17394
      ;;
17395
 
17396
    dgux*)
17397
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17398
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399
      hardcode_shlibpath_var_GCJ=no
17400
      ;;
17401
 
17402
    freebsd1*)
17403
      ld_shlibs_GCJ=no
17404
      ;;
17405
 
17406
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17407
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17408
    # does not break anything, and helps significantly (at the cost of a little
17409
    # extra space).
17410
    freebsd2.2*)
17411
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17412
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17413
      hardcode_direct_GCJ=yes
17414
      hardcode_shlibpath_var_GCJ=no
17415
      ;;
17416
 
17417
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17418
    freebsd2*)
17419
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17420
      hardcode_direct_GCJ=yes
17421
      hardcode_minus_L_GCJ=yes
17422
      hardcode_shlibpath_var_GCJ=no
17423
      ;;
17424
 
17425
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17426
    freebsd* | dragonfly*)
17427
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17428
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17429
      hardcode_direct_GCJ=yes
17430
      hardcode_shlibpath_var_GCJ=no
17431
      ;;
17432
 
17433
    hpux9*)
17434
      if test "$GCC" = yes; then
17435
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17436
      else
17437
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17438
      fi
17439
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17440
      hardcode_libdir_separator_GCJ=:
17441
      hardcode_direct_GCJ=yes
17442
 
17443
      # hardcode_minus_L: Not really in the search PATH,
17444
      # but as the default location of the library.
17445
      hardcode_minus_L_GCJ=yes
17446
      export_dynamic_flag_spec_GCJ='${wl}-E'
17447
      ;;
17448
 
17449
    hpux10*)
17450
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17451
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17452
      else
17453
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17454
      fi
17455
      if test "$with_gnu_ld" = no; then
17456
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17457
	hardcode_libdir_separator_GCJ=:
17458
 
17459
	hardcode_direct_GCJ=yes
17460
	export_dynamic_flag_spec_GCJ='${wl}-E'
17461
 
17462
	# hardcode_minus_L: Not really in the search PATH,
17463
	# but as the default location of the library.
17464
	hardcode_minus_L_GCJ=yes
17465
      fi
17466
      ;;
17467
 
17468
    hpux11*)
17469
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17470
	case $host_cpu in
17471
	hppa*64*)
17472
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473
	  ;;
17474
	ia64*)
17475
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17476
	  ;;
17477
	*)
17478
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17479
	  ;;
17480
	esac
17481
      else
17482
	case $host_cpu in
17483
	hppa*64*)
17484
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17485
	  ;;
17486
	ia64*)
17487
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17488
	  ;;
17489
	*)
17490
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17491
	  ;;
17492
	esac
17493
      fi
17494
      if test "$with_gnu_ld" = no; then
17495
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17496
	hardcode_libdir_separator_GCJ=:
17497
 
17498
	case $host_cpu in
17499
	hppa*64*|ia64*)
17500
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17501
	  hardcode_direct_GCJ=no
17502
	  hardcode_shlibpath_var_GCJ=no
17503
	  ;;
17504
	*)
17505
	  hardcode_direct_GCJ=yes
17506
	  export_dynamic_flag_spec_GCJ='${wl}-E'
17507
 
17508
	  # hardcode_minus_L: Not really in the search PATH,
17509
	  # but as the default location of the library.
17510
	  hardcode_minus_L_GCJ=yes
17511
	  ;;
17512
	esac
17513
      fi
17514
      ;;
17515
 
17516
    irix5* | irix6* | nonstopux*)
17517
      if test "$GCC" = yes; then
17518
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17519
      else
17520
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17521
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17522
      fi
17523
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17524
      hardcode_libdir_separator_GCJ=:
17525
      link_all_deplibs_GCJ=yes
17526
      ;;
17527
 
17528
    netbsd* | netbsdelf*-gnu)
17529
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17530
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17531
      else
17532
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17533
      fi
17534
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17535
      hardcode_direct_GCJ=yes
17536
      hardcode_shlibpath_var_GCJ=no
17537
      ;;
17538
 
17539
    newsos6)
17540
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541
      hardcode_direct_GCJ=yes
17542
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17543
      hardcode_libdir_separator_GCJ=:
17544
      hardcode_shlibpath_var_GCJ=no
17545
      ;;
17546
 
17547
    openbsd*)
17548
      if test -f /usr/libexec/ld.so; then
17549
	hardcode_direct_GCJ=yes
17550
	hardcode_shlibpath_var_GCJ=no
17551
	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17552
	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17553
	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17554
	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17555
	  export_dynamic_flag_spec_GCJ='${wl}-E'
17556
	else
17557
	  case $host_os in
17558
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17559
	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17560
	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17561
	     ;;
17562
	   *)
17563
	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17564
	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17565
	     ;;
17566
	  esac
17567
        fi
17568
      else
17569
	ld_shlibs_GCJ=no
17570
      fi
17571
      ;;
17572
 
17573
    os2*)
17574
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17575
      hardcode_minus_L_GCJ=yes
17576
      allow_undefined_flag_GCJ=unsupported
17577
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17578
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17579
      ;;
17580
 
17581
    osf3*)
17582
      if test "$GCC" = yes; then
17583
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17584
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17585
      else
17586
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17587
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17588
      fi
17589
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17590
      hardcode_libdir_separator_GCJ=:
17591
      ;;
17592
 
17593
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17594
      if test "$GCC" = yes; then
17595
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17596
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17597
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17598
      else
17599
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17600
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17601
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17602
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17603
 
17604
	# Both c and cxx compiler support -rpath directly
17605
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17606
      fi
17607
      hardcode_libdir_separator_GCJ=:
17608
      ;;
17609
 
17610
    solaris*)
17611
      no_undefined_flag_GCJ=' -z text'
17612
      if test "$GCC" = yes; then
17613
	wlarc='${wl}'
17614
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17615
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17616
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17617
      else
17618
	wlarc=''
17619
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17621
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17622
      fi
17623
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17624
      hardcode_shlibpath_var_GCJ=no
17625
      case $host_os in
17626
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17627
      *)
17628
	# The compiler driver will combine and reorder linker options,
17629
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17630
	# but is careful enough not to reorder.
17631
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17632
	if test "$GCC" = yes; then
17633
	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17634
	else
17635
	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17636
	fi
17637
	;;
17638
      esac
17639
      link_all_deplibs_GCJ=yes
17640
      ;;
17641
 
17642
    sunos4*)
17643
      if test "x$host_vendor" = xsequent; then
17644
	# Use $CC to link under sequent, because it throws in some extra .o
17645
	# files that make .init and .fini sections work.
17646
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17647
      else
17648
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17649
      fi
17650
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17651
      hardcode_direct_GCJ=yes
17652
      hardcode_minus_L_GCJ=yes
17653
      hardcode_shlibpath_var_GCJ=no
17654
      ;;
17655
 
17656
    sysv4)
17657
      case $host_vendor in
17658
	sni)
17659
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17660
	  hardcode_direct_GCJ=yes # is this really true???
17661
	;;
17662
	siemens)
17663
	  ## LD is ld it makes a PLAMLIB
17664
	  ## CC just makes a GrossModule.
17665
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17666
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17667
	  hardcode_direct_GCJ=no
17668
        ;;
17669
	motorola)
17670
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17672
	;;
17673
      esac
17674
      runpath_var='LD_RUN_PATH'
17675
      hardcode_shlibpath_var_GCJ=no
17676
      ;;
17677
 
17678
    sysv4.3*)
17679
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17680
      hardcode_shlibpath_var_GCJ=no
17681
      export_dynamic_flag_spec_GCJ='-Bexport'
17682
      ;;
17683
 
17684
    sysv4*MP*)
17685
      if test -d /usr/nec; then
17686
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17687
	hardcode_shlibpath_var_GCJ=no
17688
	runpath_var=LD_RUN_PATH
17689
	hardcode_runpath_var=yes
17690
	ld_shlibs_GCJ=yes
17691
      fi
17692
      ;;
17693
 
17694
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17695
      no_undefined_flag_GCJ='${wl}-z,text'
17696
      archive_cmds_need_lc_GCJ=no
17697
      hardcode_shlibpath_var_GCJ=no
17698
      runpath_var='LD_RUN_PATH'
17699
 
17700
      if test "$GCC" = yes; then
17701
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17702
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17703
      else
17704
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17705
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17706
      fi
17707
      ;;
17708
 
17709
    sysv5* | sco3.2v5* | sco5v6*)
17710
      # Note: We can NOT use -z defs as we might desire, because we do not
17711
      # link with -lc, and that would cause any symbols used from libc to
17712
      # always be unresolved, which means just about no library would
17713
      # ever link correctly.  If we're not using GNU ld we use -z text
17714
      # though, which does catch some bad symbols but isn't as heavy-handed
17715
      # as -z defs.
17716
      no_undefined_flag_GCJ='${wl}-z,text'
17717
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17718
      archive_cmds_need_lc_GCJ=no
17719
      hardcode_shlibpath_var_GCJ=no
17720
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17721
      hardcode_libdir_separator_GCJ=':'
17722
      link_all_deplibs_GCJ=yes
17723
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17724
      runpath_var='LD_RUN_PATH'
17725
 
17726
      if test "$GCC" = yes; then
17727
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17728
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17729
      else
17730
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17731
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732
      fi
17733
      ;;
17734
 
17735
    uts4*)
17736
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17737
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17738
      hardcode_shlibpath_var_GCJ=no
17739
      ;;
17740
 
17741
    *)
17742
      ld_shlibs_GCJ=no
17743
      ;;
17744
    esac
17745
  fi
17746
 
17747
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17748
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17749
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17750
 
17751
#
17752
# Do we need to explicitly link libc?
17753
#
17754
case "x$archive_cmds_need_lc_GCJ" in
17755
x|xyes)
17756
  # Assume -lc should be added
17757
  archive_cmds_need_lc_GCJ=yes
17758
 
17759
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17760
    case $archive_cmds_GCJ in
17761
    *'~'*)
17762
      # FIXME: we may have to deal with multi-command sequences.
17763
      ;;
17764
    '$CC '*)
17765
      # Test whether the compiler implicitly links with -lc since on some
17766
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17767
      # to ld, don't add -lc before -lgcc.
17768
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17769
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17770
      $rm conftest*
17771
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17772
 
17773
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774
  (eval $ac_compile) 2>&5
17775
  ac_status=$?
17776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777
  (exit $ac_status); } 2>conftest.err; then
17778
        soname=conftest
17779
        lib=conftest
17780
        libobjs=conftest.$ac_objext
17781
        deplibs=
17782
        wl=$lt_prog_compiler_wl_GCJ
17783
	pic_flag=$lt_prog_compiler_pic_GCJ
17784
        compiler_flags=-v
17785
        linker_flags=-v
17786
        verstring=
17787
        output_objdir=.
17788
        libname=conftest
17789
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17790
        allow_undefined_flag_GCJ=
17791
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17792
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17793
  ac_status=$?
17794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795
  (exit $ac_status); }
17796
        then
17797
	  archive_cmds_need_lc_GCJ=no
17798
        else
17799
	  archive_cmds_need_lc_GCJ=yes
17800
        fi
17801
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17802
      else
17803
        cat conftest.err 1>&5
17804
      fi
17805
      $rm conftest*
17806
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17807
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17808
      ;;
17809
    esac
17810
  fi
17811
  ;;
17812
esac
17813
 
17814
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17815
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17816
library_names_spec=
17817
libname_spec='lib$name'
17818
soname_spec=
17819
shrext_cmds=".so"
17820
postinstall_cmds=
17821
postuninstall_cmds=
17822
finish_cmds=
17823
finish_eval=
17824
shlibpath_var=
17825
shlibpath_overrides_runpath=unknown
17826
version_type=none
17827
dynamic_linker="$host_os ld.so"
17828
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17829
 
17830
need_lib_prefix=unknown
17831
hardcode_into_libs=no
17832
 
17833
# when you set need_version to no, make sure it does not cause -set_version
17834
# flags to be left without arguments
17835
need_version=unknown
17836
 
17837
case $host_os in
17838
aix3*)
17839
  version_type=linux
17840
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17841
  shlibpath_var=LIBPATH
17842
 
17843
  # AIX 3 has no versioning support, so we append a major version to the name.
17844
  soname_spec='${libname}${release}${shared_ext}$major'
17845
  ;;
17846
 
17847
aix4* | aix5*)
17848
  version_type=linux
17849
  need_lib_prefix=no
17850
  need_version=no
17851
  hardcode_into_libs=yes
17852
  if test "$host_cpu" = ia64; then
17853
    # AIX 5 supports IA64
17854
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17855
    shlibpath_var=LD_LIBRARY_PATH
17856
  else
17857
    # With GCC up to 2.95.x, collect2 would create an import file
17858
    # for dependence libraries.  The import file would start with
17859
    # the line `#! .'.  This would cause the generated library to
17860
    # depend on `.', always an invalid library.  This was fixed in
17861
    # development snapshots of GCC prior to 3.0.
17862
    case $host_os in
17863
      aix4 | aix4.[01] | aix4.[01].*)
17864
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17865
	   echo ' yes '
17866
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17867
	:
17868
      else
17869
	can_build_shared=no
17870
      fi
17871
      ;;
17872
    esac
17873
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17874
    # soname into executable. Probably we can add versioning support to
17875
    # collect2, so additional links can be useful in future.
17876
    if test "$aix_use_runtimelinking" = yes; then
17877
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17878
      # instead of lib<name>.a to let people know that these are not
17879
      # typical AIX shared libraries.
17880
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881
    else
17882
      # We preserve .a as extension for shared libraries through AIX4.2
17883
      # and later when we are not doing run time linking.
17884
      library_names_spec='${libname}${release}.a $libname.a'
17885
      soname_spec='${libname}${release}${shared_ext}$major'
17886
    fi
17887
    shlibpath_var=LIBPATH
17888
  fi
17889
  ;;
17890
 
17891
amigaos*)
17892
  library_names_spec='$libname.ixlibrary $libname.a'
17893
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17894
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17895
  ;;
17896
 
17897
beos*)
17898
  library_names_spec='${libname}${shared_ext}'
17899
  dynamic_linker="$host_os ld.so"
17900
  shlibpath_var=LIBRARY_PATH
17901
  ;;
17902
 
17903
bsdi[45]*)
17904
  version_type=linux
17905
  need_version=no
17906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907
  soname_spec='${libname}${release}${shared_ext}$major'
17908
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17909
  shlibpath_var=LD_LIBRARY_PATH
17910
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17911
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17912
  # the default ld.so.conf also contains /usr/contrib/lib and
17913
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17914
  # libtool to hard-code these into programs
17915
  ;;
17916
 
17917
cygwin* | mingw* | pw32*)
17918
  version_type=windows
17919
  shrext_cmds=".dll"
17920
  need_version=no
17921
  need_lib_prefix=no
17922
 
17923
  case $GCC,$host_os in
17924
  yes,cygwin* | yes,mingw* | yes,pw32*)
17925
    library_names_spec='$libname.dll.a'
17926
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17927
    postinstall_cmds='base_file=`basename \${file}`~
17928
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17929
      dldir=$destdir/`dirname \$dlpath`~
17930
      test -d \$dldir || mkdir -p \$dldir~
17931
      $install_prog $dir/$dlname \$dldir/$dlname~
17932
      chmod a+x \$dldir/$dlname'
17933
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17934
      dlpath=$dir/\$dldll~
17935
       $rm \$dlpath'
17936
    shlibpath_overrides_runpath=yes
17937
 
17938
    case $host_os in
17939
    cygwin*)
17940
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17941
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17942
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17943
      ;;
17944
    mingw*)
17945
      # MinGW DLLs use traditional 'lib' prefix
17946
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17947
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17948
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17949
        # It is most probably a Windows format PATH printed by
17950
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17951
        # path with ; separators, and with drive letters. We can handle the
17952
        # drive letters (cygwin fileutils understands them), so leave them,
17953
        # especially as we might pass files found there to a mingw objdump,
17954
        # which wouldn't understand a cygwinified path. Ahh.
17955
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17956
      else
17957
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17958
      fi
17959
      ;;
17960
    pw32*)
17961
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17962
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17963
      ;;
17964
    esac
17965
    ;;
17966
 
17967
  *)
17968
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17969
    ;;
17970
  esac
17971
  dynamic_linker='Win32 ld.exe'
17972
  # FIXME: first we should search . and the directory the executable is in
17973
  shlibpath_var=PATH
17974
  ;;
17975
 
17976
darwin* | rhapsody*)
17977
  dynamic_linker="$host_os dyld"
17978
  version_type=darwin
17979
  need_lib_prefix=no
17980
  need_version=no
17981
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17982
  soname_spec='${libname}${release}${major}$shared_ext'
17983
  shlibpath_overrides_runpath=yes
17984
  shlibpath_var=DYLD_LIBRARY_PATH
17985
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17986
 
17987
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17988
  ;;
17989
 
17990
dgux*)
17991
  version_type=linux
17992
  need_lib_prefix=no
17993
  need_version=no
17994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17995
  soname_spec='${libname}${release}${shared_ext}$major'
17996
  shlibpath_var=LD_LIBRARY_PATH
17997
  ;;
17998
 
17999
freebsd1*)
18000
  dynamic_linker=no
18001
  ;;
18002
 
18003
freebsd* | dragonfly*)
18004
  # DragonFly does not have aout.  When/if they implement a new
18005
  # versioning mechanism, adjust this.
18006
  if test -x /usr/bin/objformat; then
18007
    objformat=`/usr/bin/objformat`
18008
  else
18009
    case $host_os in
18010
    freebsd[123]*) objformat=aout ;;
18011
    *) objformat=elf ;;
18012
    esac
18013
  fi
18014
  version_type=freebsd-$objformat
18015
  case $version_type in
18016
    freebsd-elf*)
18017
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18018
      need_version=no
18019
      need_lib_prefix=no
18020
      ;;
18021
    freebsd-*)
18022
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18023
      need_version=yes
18024
      ;;
18025
  esac
18026
  shlibpath_var=LD_LIBRARY_PATH
18027
  case $host_os in
18028
  freebsd2*)
18029
    shlibpath_overrides_runpath=yes
18030
    ;;
18031
  freebsd3.[01]* | freebsdelf3.[01]*)
18032
    shlibpath_overrides_runpath=yes
18033
    hardcode_into_libs=yes
18034
    ;;
18035
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037
    shlibpath_overrides_runpath=no
18038
    hardcode_into_libs=yes
18039
    ;;
18040
  *) # from 4.6 on, and DragonFly
18041
    shlibpath_overrides_runpath=yes
18042
    hardcode_into_libs=yes
18043
    ;;
18044
  esac
18045
  ;;
18046
 
18047
gnu*)
18048
  version_type=linux
18049
  need_lib_prefix=no
18050
  need_version=no
18051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052
  soname_spec='${libname}${release}${shared_ext}$major'
18053
  shlibpath_var=LD_LIBRARY_PATH
18054
  hardcode_into_libs=yes
18055
  ;;
18056
 
18057
hpux9* | hpux10* | hpux11*)
18058
  # Give a soname corresponding to the major version so that dld.sl refuses to
18059
  # link against other versions.
18060
  version_type=sunos
18061
  need_lib_prefix=no
18062
  need_version=no
18063
  case $host_cpu in
18064
  ia64*)
18065
    shrext_cmds='.so'
18066
    hardcode_into_libs=yes
18067
    dynamic_linker="$host_os dld.so"
18068
    shlibpath_var=LD_LIBRARY_PATH
18069
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071
    soname_spec='${libname}${release}${shared_ext}$major'
18072
    if test "X$HPUX_IA64_MODE" = X32; then
18073
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18074
    else
18075
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18076
    fi
18077
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18078
    ;;
18079
   hppa*64*)
18080
     shrext_cmds='.sl'
18081
     hardcode_into_libs=yes
18082
     dynamic_linker="$host_os dld.sl"
18083
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086
     soname_spec='${libname}${release}${shared_ext}$major'
18087
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18089
     ;;
18090
   *)
18091
    shrext_cmds='.sl'
18092
    dynamic_linker="$host_os dld.sl"
18093
    shlibpath_var=SHLIB_PATH
18094
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096
    soname_spec='${libname}${release}${shared_ext}$major'
18097
    ;;
18098
  esac
18099
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18100
  postinstall_cmds='chmod 555 $lib'
18101
  ;;
18102
 
18103
interix[3-9]*)
18104
  version_type=linux
18105
  need_lib_prefix=no
18106
  need_version=no
18107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108
  soname_spec='${libname}${release}${shared_ext}$major'
18109
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18110
  shlibpath_var=LD_LIBRARY_PATH
18111
  shlibpath_overrides_runpath=no
18112
  hardcode_into_libs=yes
18113
  ;;
18114
 
18115
irix5* | irix6* | nonstopux*)
18116
  case $host_os in
18117
    nonstopux*) version_type=nonstopux ;;
18118
    *)
18119
	if test "$lt_cv_prog_gnu_ld" = yes; then
18120
		version_type=linux
18121
	else
18122
		version_type=irix
18123
	fi ;;
18124
  esac
18125
  need_lib_prefix=no
18126
  need_version=no
18127
  soname_spec='${libname}${release}${shared_ext}$major'
18128
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18129
  case $host_os in
18130
  irix5* | nonstopux*)
18131
    libsuff= shlibsuff=
18132
    ;;
18133
  *)
18134
    case $LD in # libtool.m4 will add one of these switches to LD
18135
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18136
      libsuff= shlibsuff= libmagic=32-bit;;
18137
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18138
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18139
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18140
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18141
    *) libsuff= shlibsuff= libmagic=never-match;;
18142
    esac
18143
    ;;
18144
  esac
18145
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18146
  shlibpath_overrides_runpath=no
18147
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18148
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18149
  hardcode_into_libs=yes
18150
  ;;
18151
 
18152
# No shared lib support for Linux oldld, aout, or coff.
18153
linux*oldld* | linux*aout* | linux*coff*)
18154
  dynamic_linker=no
18155
  ;;
18156
 
18157
# This must be Linux ELF.
18158
linux* | k*bsd*-gnu)
18159
  version_type=linux
18160
  need_lib_prefix=no
18161
  need_version=no
18162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163
  soname_spec='${libname}${release}${shared_ext}$major'
18164
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18165
  shlibpath_var=LD_LIBRARY_PATH
18166
  shlibpath_overrides_runpath=no
18167
  # This implies no fast_install, which is unacceptable.
18168
  # Some rework will be needed to allow for fast_install
18169
  # before this can be enabled.
18170
  hardcode_into_libs=yes
18171
 
18172
  # Append ld.so.conf contents to the search path
18173
  if test -f /etc/ld.so.conf; then
18174
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18175
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18176
  fi
18177
 
18178
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18179
  # powerpc, because MkLinux only supported shared libraries with the
18180
  # GNU dynamic linker.  Since this was broken with cross compilers,
18181
  # most powerpc-linux boxes support dynamic linking these days and
18182
  # people can always --disable-shared, the test was removed, and we
18183
  # assume the GNU/Linux dynamic linker is in use.
18184
  dynamic_linker='GNU/Linux ld.so'
18185
  ;;
18186
 
18187
netbsdelf*-gnu)
18188
  version_type=linux
18189
  need_lib_prefix=no
18190
  need_version=no
18191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192
  soname_spec='${libname}${release}${shared_ext}$major'
18193
  shlibpath_var=LD_LIBRARY_PATH
18194
  shlibpath_overrides_runpath=no
18195
  hardcode_into_libs=yes
18196
  dynamic_linker='NetBSD ld.elf_so'
18197
  ;;
18198
 
18199
netbsd*)
18200
  version_type=sunos
18201
  need_lib_prefix=no
18202
  need_version=no
18203
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18206
    dynamic_linker='NetBSD (a.out) ld.so'
18207
  else
18208
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209
    soname_spec='${libname}${release}${shared_ext}$major'
18210
    dynamic_linker='NetBSD ld.elf_so'
18211
  fi
18212
  shlibpath_var=LD_LIBRARY_PATH
18213
  shlibpath_overrides_runpath=yes
18214
  hardcode_into_libs=yes
18215
  ;;
18216
 
18217
newsos6)
18218
  version_type=linux
18219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220
  shlibpath_var=LD_LIBRARY_PATH
18221
  shlibpath_overrides_runpath=yes
18222
  ;;
18223
 
18224
nto-qnx*)
18225
  version_type=linux
18226
  need_lib_prefix=no
18227
  need_version=no
18228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229
  soname_spec='${libname}${release}${shared_ext}$major'
18230
  shlibpath_var=LD_LIBRARY_PATH
18231
  shlibpath_overrides_runpath=yes
18232
  ;;
18233
 
18234
openbsd*)
18235
  version_type=sunos
18236
  sys_lib_dlsearch_path_spec="/usr/lib"
18237
  need_lib_prefix=no
18238
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18239
  case $host_os in
18240
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18241
    *)                         need_version=no  ;;
18242
  esac
18243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245
  shlibpath_var=LD_LIBRARY_PATH
18246
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18247
    case $host_os in
18248
      openbsd2.[89] | openbsd2.[89].*)
18249
	shlibpath_overrides_runpath=no
18250
	;;
18251
      *)
18252
	shlibpath_overrides_runpath=yes
18253
	;;
18254
      esac
18255
  else
18256
    shlibpath_overrides_runpath=yes
18257
  fi
18258
  ;;
18259
 
18260
os2*)
18261
  libname_spec='$name'
18262
  shrext_cmds=".dll"
18263
  need_lib_prefix=no
18264
  library_names_spec='$libname${shared_ext} $libname.a'
18265
  dynamic_linker='OS/2 ld.exe'
18266
  shlibpath_var=LIBPATH
18267
  ;;
18268
 
18269
osf3* | osf4* | osf5*)
18270
  version_type=osf
18271
  need_lib_prefix=no
18272
  need_version=no
18273
  soname_spec='${libname}${release}${shared_ext}$major'
18274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275
  shlibpath_var=LD_LIBRARY_PATH
18276
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18277
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18278
  ;;
18279
 
18280
rdos*)
18281
  dynamic_linker=no
18282
  ;;
18283
 
18284
solaris*)
18285
  version_type=linux
18286
  need_lib_prefix=no
18287
  need_version=no
18288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289
  soname_spec='${libname}${release}${shared_ext}$major'
18290
  shlibpath_var=LD_LIBRARY_PATH
18291
  shlibpath_overrides_runpath=yes
18292
  hardcode_into_libs=yes
18293
  # ldd complains unless libraries are executable
18294
  postinstall_cmds='chmod +x $lib'
18295
  ;;
18296
 
18297
sunos4*)
18298
  version_type=sunos
18299
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301
  shlibpath_var=LD_LIBRARY_PATH
18302
  shlibpath_overrides_runpath=yes
18303
  if test "$with_gnu_ld" = yes; then
18304
    need_lib_prefix=no
18305
  fi
18306
  need_version=yes
18307
  ;;
18308
 
18309
sysv4 | sysv4.3*)
18310
  version_type=linux
18311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312
  soname_spec='${libname}${release}${shared_ext}$major'
18313
  shlibpath_var=LD_LIBRARY_PATH
18314
  case $host_vendor in
18315
    sni)
18316
      shlibpath_overrides_runpath=no
18317
      need_lib_prefix=no
18318
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18319
      runpath_var=LD_RUN_PATH
18320
      ;;
18321
    siemens)
18322
      need_lib_prefix=no
18323
      ;;
18324
    motorola)
18325
      need_lib_prefix=no
18326
      need_version=no
18327
      shlibpath_overrides_runpath=no
18328
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18329
      ;;
18330
  esac
18331
  ;;
18332
 
18333
sysv4*MP*)
18334
  if test -d /usr/nec ;then
18335
    version_type=linux
18336
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337
    soname_spec='$libname${shared_ext}.$major'
18338
    shlibpath_var=LD_LIBRARY_PATH
18339
  fi
18340
  ;;
18341
 
18342
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18343
  version_type=freebsd-elf
18344
  need_lib_prefix=no
18345
  need_version=no
18346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18347
  soname_spec='${libname}${release}${shared_ext}$major'
18348
  shlibpath_var=LD_LIBRARY_PATH
18349
  hardcode_into_libs=yes
18350
  if test "$with_gnu_ld" = yes; then
18351
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18352
    shlibpath_overrides_runpath=no
18353
  else
18354
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18355
    shlibpath_overrides_runpath=yes
18356
    case $host_os in
18357
      sco3.2v5*)
18358
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18359
	;;
18360
    esac
18361
  fi
18362
  sys_lib_dlsearch_path_spec='/usr/lib'
18363
  ;;
18364
 
18365
uts4*)
18366
  version_type=linux
18367
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368
  soname_spec='${libname}${release}${shared_ext}$major'
18369
  shlibpath_var=LD_LIBRARY_PATH
18370
  ;;
18371
 
18372
*)
18373
  dynamic_linker=no
18374
  ;;
18375
esac
18376
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18377
echo "${ECHO_T}$dynamic_linker" >&6; }
18378
test "$dynamic_linker" = no && can_build_shared=no
18379
 
18380
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18381
if test "$GCC" = yes; then
18382
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18383
fi
18384
 
18385
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18386
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18387
hardcode_action_GCJ=
18388
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18389
   test -n "$runpath_var_GCJ" || \
18390
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18391
 
18392
  # We can hardcode non-existant directories.
18393
  if test "$hardcode_direct_GCJ" != no &&
18394
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18395
     # have to relink, otherwise we might link with an installed library
18396
     # when we should be linking with a yet-to-be-installed one
18397
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18398
     test "$hardcode_minus_L_GCJ" != no; then
18399
    # Linking always hardcodes the temporary library directory.
18400
    hardcode_action_GCJ=relink
18401
  else
18402
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18403
    hardcode_action_GCJ=immediate
18404
  fi
18405
else
18406
  # We cannot hardcode anything, or else we can only hardcode existing
18407
  # directories.
18408
  hardcode_action_GCJ=unsupported
18409
fi
18410
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18411
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18412
 
18413
if test "$hardcode_action_GCJ" = relink; then
18414
  # Fast installation is not supported
18415
  enable_fast_install=no
18416
elif test "$shlibpath_overrides_runpath" = yes ||
18417
     test "$enable_shared" = no; then
18418
  # Fast installation is not necessary
18419
  enable_fast_install=needless
18420
fi
18421
 
18422
 
18423
# The else clause should only fire when bootstrapping the
18424
# libtool distribution, otherwise you forgot to ship ltmain.sh
18425
# with your package, and you will get complaints that there are
18426
# no rules to generate ltmain.sh.
18427
if test -f "$ltmain"; then
18428
  # See if we are running on zsh, and set the options which allow our commands through
18429
  # without removal of \ escapes.
18430
  if test -n "${ZSH_VERSION+set}" ; then
18431
    setopt NO_GLOB_SUBST
18432
  fi
18433
  # Now quote all the things that may contain metacharacters while being
18434
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18435
  # variables and quote the copies for generation of the libtool script.
18436
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18437
    SED SHELL STRIP \
18438
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18439
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18440
    deplibs_check_method reload_flag reload_cmds need_locks \
18441
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18442
    lt_cv_sys_global_symbol_to_c_name_address \
18443
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18444
    old_postinstall_cmds old_postuninstall_cmds \
18445
    compiler_GCJ \
18446
    CC_GCJ \
18447
    LD_GCJ \
18448
    lt_prog_compiler_wl_GCJ \
18449
    lt_prog_compiler_pic_GCJ \
18450
    lt_prog_compiler_static_GCJ \
18451
    lt_prog_compiler_no_builtin_flag_GCJ \
18452
    export_dynamic_flag_spec_GCJ \
18453
    thread_safe_flag_spec_GCJ \
18454
    whole_archive_flag_spec_GCJ \
18455
    enable_shared_with_static_runtimes_GCJ \
18456
    old_archive_cmds_GCJ \
18457
    old_archive_from_new_cmds_GCJ \
18458
    predep_objects_GCJ \
18459
    postdep_objects_GCJ \
18460
    predeps_GCJ \
18461
    postdeps_GCJ \
18462
    compiler_lib_search_path_GCJ \
18463
    archive_cmds_GCJ \
18464
    archive_expsym_cmds_GCJ \
18465
    postinstall_cmds_GCJ \
18466
    postuninstall_cmds_GCJ \
18467
    old_archive_from_expsyms_cmds_GCJ \
18468
    allow_undefined_flag_GCJ \
18469
    no_undefined_flag_GCJ \
18470
    export_symbols_cmds_GCJ \
18471
    hardcode_libdir_flag_spec_GCJ \
18472
    hardcode_libdir_flag_spec_ld_GCJ \
18473
    hardcode_libdir_separator_GCJ \
18474
    hardcode_automatic_GCJ \
18475
    module_cmds_GCJ \
18476
    module_expsym_cmds_GCJ \
18477
    lt_cv_prog_compiler_c_o_GCJ \
18478
    fix_srcfile_path_GCJ \
18479
    exclude_expsyms_GCJ \
18480
    include_expsyms_GCJ; do
18481
 
18482
    case $var in
18483
    old_archive_cmds_GCJ | \
18484
    old_archive_from_new_cmds_GCJ | \
18485
    archive_cmds_GCJ | \
18486
    archive_expsym_cmds_GCJ | \
18487
    module_cmds_GCJ | \
18488
    module_expsym_cmds_GCJ | \
18489
    old_archive_from_expsyms_cmds_GCJ | \
18490
    export_symbols_cmds_GCJ | \
18491
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18492
    postinstall_cmds | postuninstall_cmds | \
18493
    old_postinstall_cmds | old_postuninstall_cmds | \
18494
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18495
      # Double-quote double-evaled strings.
18496
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18497
      ;;
18498
    *)
18499
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18500
      ;;
18501
    esac
18502
  done
18503
 
18504
  case $lt_echo in
18505
  *'\$0 --fallback-echo"')
18506
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18507
    ;;
18508
  esac
18509
 
18510
cfgfile="$ofile"
18511
 
18512
  cat <<__EOF__ >> "$cfgfile"
18513
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18514
 
18515
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18516
 
18517
# Shell to use when invoking shell scripts.
18518
SHELL=$lt_SHELL
18519
 
18520
# Whether or not to build shared libraries.
18521
build_libtool_libs=$enable_shared
18522
 
18523
# Whether or not to build static libraries.
18524
build_old_libs=$enable_static
18525
 
18526
# Whether or not to add -lc for building shared libraries.
18527
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18528
 
18529
# Whether or not to disallow shared libs when runtime libs are static
18530
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18531
 
18532
# Whether or not to optimize for fast installation.
18533
fast_install=$enable_fast_install
18534
 
18535
# The host system.
18536
host_alias=$host_alias
18537
host=$host
18538
host_os=$host_os
18539
 
18540
# The build system.
18541
build_alias=$build_alias
18542
build=$build
18543
build_os=$build_os
18544
 
18545
# An echo program that does not interpret backslashes.
18546
echo=$lt_echo
18547
 
18548
# The archiver.
18549
AR=$lt_AR
18550
AR_FLAGS=$lt_AR_FLAGS
18551
 
18552
# A C compiler.
18553
LTCC=$lt_LTCC
18554
 
18555
# LTCC compiler flags.
18556
LTCFLAGS=$lt_LTCFLAGS
18557
 
18558
# A language-specific compiler.
18559
CC=$lt_compiler_GCJ
18560
 
18561
# Is the compiler the GNU C compiler?
18562
with_gcc=$GCC_GCJ
18563
 
18564
# An ERE matcher.
18565
EGREP=$lt_EGREP
18566
 
18567
# The linker used to build libraries.
18568
LD=$lt_LD_GCJ
18569
 
18570
# Whether we need hard or soft links.
18571
LN_S=$lt_LN_S
18572
 
18573
# A BSD-compatible nm program.
18574
NM=$lt_NM
18575
 
18576
# A symbol stripping program
18577
STRIP=$lt_STRIP
18578
 
18579
# Used to examine libraries when file_magic_cmd begins "file"
18580
MAGIC_CMD=$MAGIC_CMD
18581
 
18582
# Used on cygwin: DLL creation program.
18583
DLLTOOL="$DLLTOOL"
18584
 
18585
# Used on cygwin: object dumper.
18586
OBJDUMP="$OBJDUMP"
18587
 
18588
# Used on cygwin: assembler.
18589
AS="$AS"
18590
 
18591
# The name of the directory that contains temporary libtool files.
18592
objdir=$objdir
18593
 
18594
# How to create reloadable object files.
18595
reload_flag=$lt_reload_flag
18596
reload_cmds=$lt_reload_cmds
18597
 
18598
# How to pass a linker flag through the compiler.
18599
wl=$lt_lt_prog_compiler_wl_GCJ
18600
 
18601
# Object file suffix (normally "o").
18602
objext="$ac_objext"
18603
 
18604
# Old archive suffix (normally "a").
18605
libext="$libext"
18606
 
18607
# Shared library suffix (normally ".so").
18608
shrext_cmds='$shrext_cmds'
18609
 
18610
# Executable file suffix (normally "").
18611
exeext="$exeext"
18612
 
18613
# Additional compiler flags for building library objects.
18614
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18615
pic_mode=$pic_mode
18616
 
18617
# What is the maximum length of a command?
18618
max_cmd_len=$lt_cv_sys_max_cmd_len
18619
 
18620
# Does compiler simultaneously support -c and -o options?
18621
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18622
 
18623
# Must we lock files when doing compilation?
18624
need_locks=$lt_need_locks
18625
 
18626
# Do we need the lib prefix for modules?
18627
need_lib_prefix=$need_lib_prefix
18628
 
18629
# Do we need a version for libraries?
18630
need_version=$need_version
18631
 
18632
# Whether dlopen is supported.
18633
dlopen_support=$enable_dlopen
18634
 
18635
# Whether dlopen of programs is supported.
18636
dlopen_self=$enable_dlopen_self
18637
 
18638
# Whether dlopen of statically linked programs is supported.
18639
dlopen_self_static=$enable_dlopen_self_static
18640
 
18641
# Compiler flag to prevent dynamic linking.
18642
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18643
 
18644
# Compiler flag to turn off builtin functions.
18645
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18646
 
18647
# Compiler flag to allow reflexive dlopens.
18648
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18649
 
18650
# Compiler flag to generate shared objects directly from archives.
18651
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18652
 
18653
# Compiler flag to generate thread-safe objects.
18654
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18655
 
18656
# Library versioning type.
18657
version_type=$version_type
18658
 
18659
# Format of library name prefix.
18660
libname_spec=$lt_libname_spec
18661
 
18662
# List of archive names.  First name is the real one, the rest are links.
18663
# The last name is the one that the linker finds with -lNAME.
18664
library_names_spec=$lt_library_names_spec
18665
 
18666
# The coded name of the library, if different from the real name.
18667
soname_spec=$lt_soname_spec
18668
 
18669
# Commands used to build and install an old-style archive.
18670
RANLIB=$lt_RANLIB
18671
old_archive_cmds=$lt_old_archive_cmds_GCJ
18672
old_postinstall_cmds=$lt_old_postinstall_cmds
18673
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18674
 
18675
# Create an old-style archive from a shared archive.
18676
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18677
 
18678
# Create a temporary old-style archive to link instead of a shared archive.
18679
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18680
 
18681
# Commands used to build and install a shared archive.
18682
archive_cmds=$lt_archive_cmds_GCJ
18683
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18684
postinstall_cmds=$lt_postinstall_cmds
18685
postuninstall_cmds=$lt_postuninstall_cmds
18686
 
18687
# Commands used to build a loadable module (assumed same as above if empty)
18688
module_cmds=$lt_module_cmds_GCJ
18689
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18690
 
18691
# Commands to strip libraries.
18692
old_striplib=$lt_old_striplib
18693
striplib=$lt_striplib
18694
 
18695
# Dependencies to place before the objects being linked to create a
18696
# shared library.
18697
predep_objects=$lt_predep_objects_GCJ
18698
 
18699
# Dependencies to place after the objects being linked to create a
18700
# shared library.
18701
postdep_objects=$lt_postdep_objects_GCJ
18702
 
18703
# Dependencies to place before the objects being linked to create a
18704
# shared library.
18705
predeps=$lt_predeps_GCJ
18706
 
18707
# Dependencies to place after the objects being linked to create a
18708
# shared library.
18709
postdeps=$lt_postdeps_GCJ
18710
 
18711
# The library search path used internally by the compiler when linking
18712
# a shared library.
18713
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18714
 
18715
# Method to check whether dependent libraries are shared objects.
18716
deplibs_check_method=$lt_deplibs_check_method
18717
 
18718
# Command to use when deplibs_check_method == file_magic.
18719
file_magic_cmd=$lt_file_magic_cmd
18720
 
18721
# Flag that allows shared libraries with undefined symbols to be built.
18722
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18723
 
18724
# Flag that forces no undefined symbols.
18725
no_undefined_flag=$lt_no_undefined_flag_GCJ
18726
 
18727
# Commands used to finish a libtool library installation in a directory.
18728
finish_cmds=$lt_finish_cmds
18729
 
18730
# Same as above, but a single script fragment to be evaled but not shown.
18731
finish_eval=$lt_finish_eval
18732
 
18733
# Take the output of nm and produce a listing of raw symbols and C names.
18734
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18735
 
18736
# Transform the output of nm in a proper C declaration
18737
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18738
 
18739
# Transform the output of nm in a C name address pair
18740
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18741
 
18742
# This is the shared library runtime path variable.
18743
runpath_var=$runpath_var
18744
 
18745
# This is the shared library path variable.
18746
shlibpath_var=$shlibpath_var
18747
 
18748
# Is shlibpath searched before the hard-coded library search path?
18749
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18750
 
18751
# How to hardcode a shared library path into an executable.
18752
hardcode_action=$hardcode_action_GCJ
18753
 
18754
# Whether we should hardcode library paths into libraries.
18755
hardcode_into_libs=$hardcode_into_libs
18756
 
18757
# Flag to hardcode \$libdir into a binary during linking.
18758
# This must work even if \$libdir does not exist.
18759
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18760
 
18761
# If ld is used when linking, flag to hardcode \$libdir into
18762
# a binary during linking. This must work even if \$libdir does
18763
# not exist.
18764
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18765
 
18766
# Whether we need a single -rpath flag with a separated argument.
18767
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18768
 
18769
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18770
# resulting binary.
18771
hardcode_direct=$hardcode_direct_GCJ
18772
 
18773
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18774
# resulting binary.
18775
hardcode_minus_L=$hardcode_minus_L_GCJ
18776
 
18777
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18778
# the resulting binary.
18779
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18780
 
18781
# Set to yes if building a shared library automatically hardcodes DIR into the library
18782
# and all subsequent libraries and executables linked against it.
18783
hardcode_automatic=$hardcode_automatic_GCJ
18784
 
18785
# Variables whose values should be saved in libtool wrapper scripts and
18786
# restored at relink time.
18787
variables_saved_for_relink="$variables_saved_for_relink"
18788
 
18789
# Whether libtool must link a program against all its dependency libraries.
18790
link_all_deplibs=$link_all_deplibs_GCJ
18791
 
18792
# Compile-time system search path for libraries
18793
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18794
 
18795
# Run-time system search path for libraries
18796
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18797
 
18798
# Fix the shell variable \$srcfile for the compiler.
18799
fix_srcfile_path=$lt_fix_srcfile_path
18800
 
18801
# Set to yes if exported symbols are required.
18802
always_export_symbols=$always_export_symbols_GCJ
18803
 
18804
# The commands to list exported symbols.
18805
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18806
 
18807
# The commands to extract the exported symbol list from a shared archive.
18808
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18809
 
18810
# Symbols that should not be listed in the preloaded symbols.
18811
exclude_expsyms=$lt_exclude_expsyms_GCJ
18812
 
18813
# Symbols that must always be exported.
18814
include_expsyms=$lt_include_expsyms_GCJ
18815
 
18816
# ### END LIBTOOL TAG CONFIG: $tagname
18817
 
18818
__EOF__
18819
 
18820
 
18821
else
18822
  # If there is no Makefile yet, we rely on a make rule to execute
18823
  # `config.status --recheck' to rerun these tests and create the
18824
  # libtool script then.
18825
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18826
  if test -f "$ltmain_in"; then
18827
    test -f Makefile && make "$ltmain"
18828
  fi
18829
fi
18830
 
18831
 
18832
ac_ext=c
18833
ac_cpp='$CPP $CPPFLAGS'
18834
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18835
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18836
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18837
 
18838
CC="$lt_save_CC"
18839
 
18840
	else
18841
	  tagname=""
18842
	fi
18843
	;;
18844
 
18845
      RC)
18846
 
18847
 
18848
# Source file extension for RC test sources.
18849
ac_ext=rc
18850
 
18851
# Object file extension for compiled RC test sources.
18852
objext=o
18853
objext_RC=$objext
18854
 
18855
# Code to be used in simple compile tests
18856
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18857
 
18858
# Code to be used in simple link tests
18859
lt_simple_link_test_code="$lt_simple_compile_test_code"
18860
 
18861
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18862
 
18863
# If no C compiler was specified, use CC.
18864
LTCC=${LTCC-"$CC"}
18865
 
18866
# If no C compiler flags were specified, use CFLAGS.
18867
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18868
 
18869
# Allow CC to be a program name with arguments.
18870
compiler=$CC
18871
 
18872
 
18873
# save warnings/boilerplate of simple test code
18874
ac_outfile=conftest.$ac_objext
18875
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18876
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18877
_lt_compiler_boilerplate=`cat conftest.err`
18878
$rm conftest*
18879
 
18880
ac_outfile=conftest.$ac_objext
18881
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18882
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18883
_lt_linker_boilerplate=`cat conftest.err`
18884
$rm conftest*
18885
 
18886
 
18887
# Allow CC to be a program name with arguments.
18888
lt_save_CC="$CC"
18889
CC=${RC-"windres"}
18890
compiler=$CC
18891
compiler_RC=$CC
18892
for cc_temp in $compiler""; do
18893
  case $cc_temp in
18894
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18895
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18896
    \-*) ;;
18897
    *) break;;
18898
  esac
18899
done
18900
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18901
 
18902
lt_cv_prog_compiler_c_o_RC=yes
18903
 
18904
# The else clause should only fire when bootstrapping the
18905
# libtool distribution, otherwise you forgot to ship ltmain.sh
18906
# with your package, and you will get complaints that there are
18907
# no rules to generate ltmain.sh.
18908
if test -f "$ltmain"; then
18909
  # See if we are running on zsh, and set the options which allow our commands through
18910
  # without removal of \ escapes.
18911
  if test -n "${ZSH_VERSION+set}" ; then
18912
    setopt NO_GLOB_SUBST
18913
  fi
18914
  # Now quote all the things that may contain metacharacters while being
18915
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18916
  # variables and quote the copies for generation of the libtool script.
18917
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18918
    SED SHELL STRIP \
18919
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18920
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18921
    deplibs_check_method reload_flag reload_cmds need_locks \
18922
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18923
    lt_cv_sys_global_symbol_to_c_name_address \
18924
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18925
    old_postinstall_cmds old_postuninstall_cmds \
18926
    compiler_RC \
18927
    CC_RC \
18928
    LD_RC \
18929
    lt_prog_compiler_wl_RC \
18930
    lt_prog_compiler_pic_RC \
18931
    lt_prog_compiler_static_RC \
18932
    lt_prog_compiler_no_builtin_flag_RC \
18933
    export_dynamic_flag_spec_RC \
18934
    thread_safe_flag_spec_RC \
18935
    whole_archive_flag_spec_RC \
18936
    enable_shared_with_static_runtimes_RC \
18937
    old_archive_cmds_RC \
18938
    old_archive_from_new_cmds_RC \
18939
    predep_objects_RC \
18940
    postdep_objects_RC \
18941
    predeps_RC \
18942
    postdeps_RC \
18943
    compiler_lib_search_path_RC \
18944
    archive_cmds_RC \
18945
    archive_expsym_cmds_RC \
18946
    postinstall_cmds_RC \
18947
    postuninstall_cmds_RC \
18948
    old_archive_from_expsyms_cmds_RC \
18949
    allow_undefined_flag_RC \
18950
    no_undefined_flag_RC \
18951
    export_symbols_cmds_RC \
18952
    hardcode_libdir_flag_spec_RC \
18953
    hardcode_libdir_flag_spec_ld_RC \
18954
    hardcode_libdir_separator_RC \
18955
    hardcode_automatic_RC \
18956
    module_cmds_RC \
18957
    module_expsym_cmds_RC \
18958
    lt_cv_prog_compiler_c_o_RC \
18959
    fix_srcfile_path_RC \
18960
    exclude_expsyms_RC \
18961
    include_expsyms_RC; do
18962
 
18963
    case $var in
18964
    old_archive_cmds_RC | \
18965
    old_archive_from_new_cmds_RC | \
18966
    archive_cmds_RC | \
18967
    archive_expsym_cmds_RC | \
18968
    module_cmds_RC | \
18969
    module_expsym_cmds_RC | \
18970
    old_archive_from_expsyms_cmds_RC | \
18971
    export_symbols_cmds_RC | \
18972
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18973
    postinstall_cmds | postuninstall_cmds | \
18974
    old_postinstall_cmds | old_postuninstall_cmds | \
18975
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18976
      # Double-quote double-evaled strings.
18977
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18978
      ;;
18979
    *)
18980
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18981
      ;;
18982
    esac
18983
  done
18984
 
18985
  case $lt_echo in
18986
  *'\$0 --fallback-echo"')
18987
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18988
    ;;
18989
  esac
18990
 
18991
cfgfile="$ofile"
18992
 
18993
  cat <<__EOF__ >> "$cfgfile"
18994
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18995
 
18996
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18997
 
18998
# Shell to use when invoking shell scripts.
18999
SHELL=$lt_SHELL
19000
 
19001
# Whether or not to build shared libraries.
19002
build_libtool_libs=$enable_shared
19003
 
19004
# Whether or not to build static libraries.
19005
build_old_libs=$enable_static
19006
 
19007
# Whether or not to add -lc for building shared libraries.
19008
build_libtool_need_lc=$archive_cmds_need_lc_RC
19009
 
19010
# Whether or not to disallow shared libs when runtime libs are static
19011
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19012
 
19013
# Whether or not to optimize for fast installation.
19014
fast_install=$enable_fast_install
19015
 
19016
# The host system.
19017
host_alias=$host_alias
19018
host=$host
19019
host_os=$host_os
19020
 
19021
# The build system.
19022
build_alias=$build_alias
19023
build=$build
19024
build_os=$build_os
19025
 
19026
# An echo program that does not interpret backslashes.
19027
echo=$lt_echo
19028
 
19029
# The archiver.
19030
AR=$lt_AR
19031
AR_FLAGS=$lt_AR_FLAGS
19032
 
19033
# A C compiler.
19034
LTCC=$lt_LTCC
19035
 
19036
# LTCC compiler flags.
19037
LTCFLAGS=$lt_LTCFLAGS
19038
 
19039
# A language-specific compiler.
19040
CC=$lt_compiler_RC
19041
 
19042
# Is the compiler the GNU C compiler?
19043
with_gcc=$GCC_RC
19044
 
19045
# An ERE matcher.
19046
EGREP=$lt_EGREP
19047
 
19048
# The linker used to build libraries.
19049
LD=$lt_LD_RC
19050
 
19051
# Whether we need hard or soft links.
19052
LN_S=$lt_LN_S
19053
 
19054
# A BSD-compatible nm program.
19055
NM=$lt_NM
19056
 
19057
# A symbol stripping program
19058
STRIP=$lt_STRIP
19059
 
19060
# Used to examine libraries when file_magic_cmd begins "file"
19061
MAGIC_CMD=$MAGIC_CMD
19062
 
19063
# Used on cygwin: DLL creation program.
19064
DLLTOOL="$DLLTOOL"
19065
 
19066
# Used on cygwin: object dumper.
19067
OBJDUMP="$OBJDUMP"
19068
 
19069
# Used on cygwin: assembler.
19070
AS="$AS"
19071
 
19072
# The name of the directory that contains temporary libtool files.
19073
objdir=$objdir
19074
 
19075
# How to create reloadable object files.
19076
reload_flag=$lt_reload_flag
19077
reload_cmds=$lt_reload_cmds
19078
 
19079
# How to pass a linker flag through the compiler.
19080
wl=$lt_lt_prog_compiler_wl_RC
19081
 
19082
# Object file suffix (normally "o").
19083
objext="$ac_objext"
19084
 
19085
# Old archive suffix (normally "a").
19086
libext="$libext"
19087
 
19088
# Shared library suffix (normally ".so").
19089
shrext_cmds='$shrext_cmds'
19090
 
19091
# Executable file suffix (normally "").
19092
exeext="$exeext"
19093
 
19094
# Additional compiler flags for building library objects.
19095
pic_flag=$lt_lt_prog_compiler_pic_RC
19096
pic_mode=$pic_mode
19097
 
19098
# What is the maximum length of a command?
19099
max_cmd_len=$lt_cv_sys_max_cmd_len
19100
 
19101
# Does compiler simultaneously support -c and -o options?
19102
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19103
 
19104
# Must we lock files when doing compilation?
19105
need_locks=$lt_need_locks
19106
 
19107
# Do we need the lib prefix for modules?
19108
need_lib_prefix=$need_lib_prefix
19109
 
19110
# Do we need a version for libraries?
19111
need_version=$need_version
19112
 
19113
# Whether dlopen is supported.
19114
dlopen_support=$enable_dlopen
19115
 
19116
# Whether dlopen of programs is supported.
19117
dlopen_self=$enable_dlopen_self
19118
 
19119
# Whether dlopen of statically linked programs is supported.
19120
dlopen_self_static=$enable_dlopen_self_static
19121
 
19122
# Compiler flag to prevent dynamic linking.
19123
link_static_flag=$lt_lt_prog_compiler_static_RC
19124
 
19125
# Compiler flag to turn off builtin functions.
19126
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19127
 
19128
# Compiler flag to allow reflexive dlopens.
19129
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19130
 
19131
# Compiler flag to generate shared objects directly from archives.
19132
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19133
 
19134
# Compiler flag to generate thread-safe objects.
19135
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19136
 
19137
# Library versioning type.
19138
version_type=$version_type
19139
 
19140
# Format of library name prefix.
19141
libname_spec=$lt_libname_spec
19142
 
19143
# List of archive names.  First name is the real one, the rest are links.
19144
# The last name is the one that the linker finds with -lNAME.
19145
library_names_spec=$lt_library_names_spec
19146
 
19147
# The coded name of the library, if different from the real name.
19148
soname_spec=$lt_soname_spec
19149
 
19150
# Commands used to build and install an old-style archive.
19151
RANLIB=$lt_RANLIB
19152
old_archive_cmds=$lt_old_archive_cmds_RC
19153
old_postinstall_cmds=$lt_old_postinstall_cmds
19154
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19155
 
19156
# Create an old-style archive from a shared archive.
19157
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19158
 
19159
# Create a temporary old-style archive to link instead of a shared archive.
19160
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19161
 
19162
# Commands used to build and install a shared archive.
19163
archive_cmds=$lt_archive_cmds_RC
19164
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19165
postinstall_cmds=$lt_postinstall_cmds
19166
postuninstall_cmds=$lt_postuninstall_cmds
19167
 
19168
# Commands used to build a loadable module (assumed same as above if empty)
19169
module_cmds=$lt_module_cmds_RC
19170
module_expsym_cmds=$lt_module_expsym_cmds_RC
19171
 
19172
# Commands to strip libraries.
19173
old_striplib=$lt_old_striplib
19174
striplib=$lt_striplib
19175
 
19176
# Dependencies to place before the objects being linked to create a
19177
# shared library.
19178
predep_objects=$lt_predep_objects_RC
19179
 
19180
# Dependencies to place after the objects being linked to create a
19181
# shared library.
19182
postdep_objects=$lt_postdep_objects_RC
19183
 
19184
# Dependencies to place before the objects being linked to create a
19185
# shared library.
19186
predeps=$lt_predeps_RC
19187
 
19188
# Dependencies to place after the objects being linked to create a
19189
# shared library.
19190
postdeps=$lt_postdeps_RC
19191
 
19192
# The library search path used internally by the compiler when linking
19193
# a shared library.
19194
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19195
 
19196
# Method to check whether dependent libraries are shared objects.
19197
deplibs_check_method=$lt_deplibs_check_method
19198
 
19199
# Command to use when deplibs_check_method == file_magic.
19200
file_magic_cmd=$lt_file_magic_cmd
19201
 
19202
# Flag that allows shared libraries with undefined symbols to be built.
19203
allow_undefined_flag=$lt_allow_undefined_flag_RC
19204
 
19205
# Flag that forces no undefined symbols.
19206
no_undefined_flag=$lt_no_undefined_flag_RC
19207
 
19208
# Commands used to finish a libtool library installation in a directory.
19209
finish_cmds=$lt_finish_cmds
19210
 
19211
# Same as above, but a single script fragment to be evaled but not shown.
19212
finish_eval=$lt_finish_eval
19213
 
19214
# Take the output of nm and produce a listing of raw symbols and C names.
19215
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19216
 
19217
# Transform the output of nm in a proper C declaration
19218
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19219
 
19220
# Transform the output of nm in a C name address pair
19221
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19222
 
19223
# This is the shared library runtime path variable.
19224
runpath_var=$runpath_var
19225
 
19226
# This is the shared library path variable.
19227
shlibpath_var=$shlibpath_var
19228
 
19229
# Is shlibpath searched before the hard-coded library search path?
19230
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19231
 
19232
# How to hardcode a shared library path into an executable.
19233
hardcode_action=$hardcode_action_RC
19234
 
19235
# Whether we should hardcode library paths into libraries.
19236
hardcode_into_libs=$hardcode_into_libs
19237
 
19238
# Flag to hardcode \$libdir into a binary during linking.
19239
# This must work even if \$libdir does not exist.
19240
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19241
 
19242
# If ld is used when linking, flag to hardcode \$libdir into
19243
# a binary during linking. This must work even if \$libdir does
19244
# not exist.
19245
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19246
 
19247
# Whether we need a single -rpath flag with a separated argument.
19248
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19249
 
19250
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19251
# resulting binary.
19252
hardcode_direct=$hardcode_direct_RC
19253
 
19254
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19255
# resulting binary.
19256
hardcode_minus_L=$hardcode_minus_L_RC
19257
 
19258
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19259
# the resulting binary.
19260
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19261
 
19262
# Set to yes if building a shared library automatically hardcodes DIR into the library
19263
# and all subsequent libraries and executables linked against it.
19264
hardcode_automatic=$hardcode_automatic_RC
19265
 
19266
# Variables whose values should be saved in libtool wrapper scripts and
19267
# restored at relink time.
19268
variables_saved_for_relink="$variables_saved_for_relink"
19269
 
19270
# Whether libtool must link a program against all its dependency libraries.
19271
link_all_deplibs=$link_all_deplibs_RC
19272
 
19273
# Compile-time system search path for libraries
19274
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19275
 
19276
# Run-time system search path for libraries
19277
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19278
 
19279
# Fix the shell variable \$srcfile for the compiler.
19280
fix_srcfile_path=$lt_fix_srcfile_path
19281
 
19282
# Set to yes if exported symbols are required.
19283
always_export_symbols=$always_export_symbols_RC
19284
 
19285
# The commands to list exported symbols.
19286
export_symbols_cmds=$lt_export_symbols_cmds_RC
19287
 
19288
# The commands to extract the exported symbol list from a shared archive.
19289
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19290
 
19291
# Symbols that should not be listed in the preloaded symbols.
19292
exclude_expsyms=$lt_exclude_expsyms_RC
19293
 
19294
# Symbols that must always be exported.
19295
include_expsyms=$lt_include_expsyms_RC
19296
 
19297
# ### END LIBTOOL TAG CONFIG: $tagname
19298
 
19299
__EOF__
19300
 
19301
 
19302
else
19303
  # If there is no Makefile yet, we rely on a make rule to execute
19304
  # `config.status --recheck' to rerun these tests and create the
19305
  # libtool script then.
19306
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19307
  if test -f "$ltmain_in"; then
19308
    test -f Makefile && make "$ltmain"
19309
  fi
19310
fi
19311
 
19312
 
19313
ac_ext=c
19314
ac_cpp='$CPP $CPPFLAGS'
19315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
 
19319
CC="$lt_save_CC"
19320
 
19321
	;;
19322
 
19323
      *)
19324
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19325
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19326
   { (exit 1); exit 1; }; }
19327
	;;
19328
      esac
19329
 
19330
      # Append the new tag name to the list of available tags.
19331
      if test -n "$tagname" ; then
19332
      available_tags="$available_tags $tagname"
19333
    fi
19334
    fi
19335
  done
19336
  IFS="$lt_save_ifs"
19337
 
19338
  # Now substitute the updated list of available tags.
19339
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19340
    mv "${ofile}T" "$ofile"
19341
    chmod +x "$ofile"
19342
  else
19343
    rm -f "${ofile}T"
19344
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19345
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19346
   { (exit 1); exit 1; }; }
19347
  fi
19348
fi
19349
 
19350
 
19351
 
19352
# This can be used to rebuild libtool when needed
19353
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19354
 
19355
# Always use our own libtool.
19356
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19357
 
19358
# Prevent multiple expansion
19359
 
19360
 
19361
 
19362
 
19363
 
19364
 
19365
 
19366
 
19367
 
19368
 
19369
 
19370
 
19371
 
19372
 
19373
 
19374
 
19375
 
19376
 
19377
 
19378
 
19379
 
19380
ac_config_files="$ac_config_files Makefile src/Makefile"
19381
 
19382
cat >confcache <<\_ACEOF
19383
# This file is a shell script that caches the results of configure
19384
# tests run on this system so they can be shared between configure
19385
# scripts and configure runs, see configure's option --config-cache.
19386
# It is not useful on other systems.  If it contains results you don't
19387
# want to keep, you may remove or edit it.
19388
#
19389
# config.status only pays attention to the cache file if you give it
19390
# the --recheck option to rerun configure.
19391
#
19392
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19393
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19394
# following values.
19395
 
19396
_ACEOF
19397
 
19398
# The following way of writing the cache mishandles newlines in values,
19399
# but we know of no workaround that is simple, portable, and efficient.
19400
# So, we kill variables containing newlines.
19401
# Ultrix sh set writes to stderr and can't be redirected directly,
19402
# and sets the high bit in the cache file unless we assign to the vars.
19403
(
19404
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19405
    eval ac_val=\$$ac_var
19406
    case $ac_val in #(
19407
    *${as_nl}*)
19408
      case $ac_var in #(
19409
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19410
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19411
      esac
19412
      case $ac_var in #(
19413
      _ | IFS | as_nl) ;; #(
19414
      *) $as_unset $ac_var ;;
19415
      esac ;;
19416
    esac
19417
  done
19418
 
19419
  (set) 2>&1 |
19420
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19421
    *${as_nl}ac_space=\ *)
19422
      # `set' does not quote correctly, so add quotes (double-quote
19423
      # substitution turns \\\\ into \\, and sed turns \\ into \).
19424
      sed -n \
19425
	"s/'/'\\\\''/g;
19426
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19427
      ;; #(
19428
    *)
19429
      # `set' quotes correctly as required by POSIX, so do not add quotes.
19430
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19431
      ;;
19432
    esac |
19433
    sort
19434
) |
19435
  sed '
19436
     /^ac_cv_env_/b end
19437
     t clear
19438
     :clear
19439
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19440
     t end
19441
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19442
     :end' >>confcache
19443
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19444
  if test -w "$cache_file"; then
19445
    test "x$cache_file" != "x/dev/null" &&
19446
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19447
echo "$as_me: updating cache $cache_file" >&6;}
19448
    cat confcache >$cache_file
19449
  else
19450
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19451
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19452
  fi
19453
fi
19454
rm -f confcache
19455
 
19456
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19457
# Let make expand exec_prefix.
19458
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19459
 
19460
DEFS=-DHAVE_CONFIG_H
19461
 
19462
ac_libobjs=
19463
ac_ltlibobjs=
19464
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19465
  # 1. Remove the extension, and $U if already installed.
19466
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19467
  ac_i=`echo "$ac_i" | sed "$ac_script"`
19468
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19469
  #    will be set to the directory where LIBOBJS objects are built.
19470
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19471
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19472
done
19473
LIB@&t@OBJS=$ac_libobjs
19474
 
19475
LTLIBOBJS=$ac_ltlibobjs
19476
 
19477
 
19478
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19479
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19480
Usually this means the macro was only invoked conditionally." >&5
19481
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19482
Usually this means the macro was only invoked conditionally." >&2;}
19483
   { (exit 1); exit 1; }; }
19484
fi
19485
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19486
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19487
Usually this means the macro was only invoked conditionally." >&5
19488
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19489
Usually this means the macro was only invoked conditionally." >&2;}
19490
   { (exit 1); exit 1; }; }
19491
fi
19492
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19493
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19494
Usually this means the macro was only invoked conditionally." >&5
19495
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19496
Usually this means the macro was only invoked conditionally." >&2;}
19497
   { (exit 1); exit 1; }; }
19498
fi
19499
 
19500
: ${CONFIG_STATUS=./config.status}
19501
ac_clean_files_save=$ac_clean_files
19502
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19503
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19504
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19505
cat >$CONFIG_STATUS <<_ACEOF
19506
#! $SHELL
19507
# Generated by $as_me.
19508
# Run this file to recreate the current configuration.
19509
# Compiler output produced by configure, useful for debugging
19510
# configure, is in config.log if it exists.
19511
 
19512
debug=false
19513
ac_cs_recheck=false
19514
ac_cs_silent=false
19515
SHELL=\${CONFIG_SHELL-$SHELL}
19516
_ACEOF
19517
 
19518
cat >>$CONFIG_STATUS <<\_ACEOF
19519
## --------------------- ##
19520
## M4sh Initialization.  ##
19521
## --------------------- ##
19522
 
19523
# Be more Bourne compatible
19524
DUALCASE=1; export DUALCASE # for MKS sh
19525
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19526
  emulate sh
19527
  NULLCMD=:
19528
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19529
  # is contrary to our usage.  Disable this feature.
19530
  alias -g '${1+"$@"}'='"$@"'
19531
  setopt NO_GLOB_SUBST
19532
else
19533
  case `(set -o) 2>/dev/null` in
19534
  *posix*) set -o posix ;;
19535
esac
19536
 
19537
fi
19538
 
19539
 
19540
 
19541
 
19542
# PATH needs CR
19543
# Avoid depending upon Character Ranges.
19544
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19545
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19546
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19547
as_cr_digits='0123456789'
19548
as_cr_alnum=$as_cr_Letters$as_cr_digits
19549
 
19550
# The user is always right.
19551
if test "${PATH_SEPARATOR+set}" != set; then
19552
  echo "#! /bin/sh" >conf$$.sh
19553
  echo  "exit 0"   >>conf$$.sh
19554
  chmod +x conf$$.sh
19555
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19556
    PATH_SEPARATOR=';'
19557
  else
19558
    PATH_SEPARATOR=:
19559
  fi
19560
  rm -f conf$$.sh
19561
fi
19562
 
19563
# Support unset when possible.
19564
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19565
  as_unset=unset
19566
else
19567
  as_unset=false
19568
fi
19569
 
19570
 
19571
# IFS
19572
# We need space, tab and new line, in precisely that order.  Quoting is
19573
# there to prevent editors from complaining about space-tab.
19574
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19575
# splitting by setting IFS to empty value.)
19576
as_nl='
19577
'
19578
IFS=" ""	$as_nl"
19579
 
19580
# Find who we are.  Look in the path if we contain no directory separator.
19581
case $0 in
19582
  *[\\/]* ) as_myself=$0 ;;
19583
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19584
for as_dir in $PATH
19585
do
19586
  IFS=$as_save_IFS
19587
  test -z "$as_dir" && as_dir=.
19588
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19589
done
19590
IFS=$as_save_IFS
19591
 
19592
     ;;
19593
esac
19594
# We did not find ourselves, most probably we were run as `sh COMMAND'
19595
# in which case we are not to be found in the path.
19596
if test "x$as_myself" = x; then
19597
  as_myself=$0
19598
fi
19599
if test ! -f "$as_myself"; then
19600
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19601
  { (exit 1); exit 1; }
19602
fi
19603
 
19604
# Work around bugs in pre-3.0 UWIN ksh.
19605
for as_var in ENV MAIL MAILPATH
19606
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19607
done
19608
PS1='$ '
19609
PS2='> '
19610
PS4='+ '
19611
 
19612
# NLS nuisances.
19613
for as_var in \
19614
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19615
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19616
  LC_TELEPHONE LC_TIME
19617
do
19618
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19619
    eval $as_var=C; export $as_var
19620
  else
19621
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19622
  fi
19623
done
19624
 
19625
# Required to use basename.
19626
if expr a : '\(a\)' >/dev/null 2>&1 &&
19627
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19628
  as_expr=expr
19629
else
19630
  as_expr=false
19631
fi
19632
 
19633
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19634
  as_basename=basename
19635
else
19636
  as_basename=false
19637
fi
19638
 
19639
 
19640
# Name of the executable.
19641
as_me=`$as_basename -- "$0" ||
19642
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19643
	 X"$0" : 'X\(//\)$' \| \
19644
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19645
echo X/"$0" |
19646
    sed '/^.*\/\([^/][^/]*\)\/*$/{
19647
	    s//\1/
19648
	    q
19649
	  }
19650
	  /^X\/\(\/\/\)$/{
19651
	    s//\1/
19652
	    q
19653
	  }
19654
	  /^X\/\(\/\).*/{
19655
	    s//\1/
19656
	    q
19657
	  }
19658
	  s/.*/./; q'`
19659
 
19660
# CDPATH.
19661
$as_unset CDPATH
19662
 
19663
 
19664
 
19665
  as_lineno_1=$LINENO
19666
  as_lineno_2=$LINENO
19667
  test "x$as_lineno_1" != "x$as_lineno_2" &&
19668
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19669
 
19670
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19671
  # uniformly replaced by the line number.  The first 'sed' inserts a
19672
  # line-number line after each line using $LINENO; the second 'sed'
19673
  # does the real work.  The second script uses 'N' to pair each
19674
  # line-number line with the line containing $LINENO, and appends
19675
  # trailing '-' during substitution so that $LINENO is not a special
19676
  # case at line end.
19677
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19678
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
19679
  # E. McMahon (1931-1989) for sed's syntax.  :-)
19680
  sed -n '
19681
    p
19682
    /[$]LINENO/=
19683
  ' <$as_myself |
19684
    sed '
19685
      s/[$]LINENO.*/&-/
19686
      t lineno
19687
      b
19688
      :lineno
19689
      N
19690
      :loop
19691
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19692
      t loop
19693
      s/-\n.*//
19694
    ' >$as_me.lineno &&
19695
  chmod +x "$as_me.lineno" ||
19696
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19697
   { (exit 1); exit 1; }; }
19698
 
19699
  # Don't try to exec as it changes $[0], causing all sort of problems
19700
  # (the dirname of $[0] is not the place where we might find the
19701
  # original and so on.  Autoconf is especially sensitive to this).
19702
  . "./$as_me.lineno"
19703
  # Exit status is that of the last command.
19704
  exit
19705
}
19706
 
19707
 
19708
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19709
  as_dirname=dirname
19710
else
19711
  as_dirname=false
19712
fi
19713
 
19714
ECHO_C= ECHO_N= ECHO_T=
19715
case `echo -n x` in
19716
-n*)
19717
  case `echo 'x\c'` in
19718
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19719
  *)   ECHO_C='\c';;
19720
  esac;;
19721
*)
19722
  ECHO_N='-n';;
19723
esac
19724
 
19725
if expr a : '\(a\)' >/dev/null 2>&1 &&
19726
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19727
  as_expr=expr
19728
else
19729
  as_expr=false
19730
fi
19731
 
19732
rm -f conf$$ conf$$.exe conf$$.file
19733
if test -d conf$$.dir; then
19734
  rm -f conf$$.dir/conf$$.file
19735
else
19736
  rm -f conf$$.dir
19737
  mkdir conf$$.dir
19738
fi
19739
echo >conf$$.file
19740
if ln -s conf$$.file conf$$ 2>/dev/null; then
19741
  as_ln_s='ln -s'
19742
  # ... but there are two gotchas:
19743
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19744
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19745
  # In both cases, we have to default to `cp -p'.
19746
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19747
    as_ln_s='cp -p'
19748
elif ln conf$$.file conf$$ 2>/dev/null; then
19749
  as_ln_s=ln
19750
else
19751
  as_ln_s='cp -p'
19752
fi
19753
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19754
rmdir conf$$.dir 2>/dev/null
19755
 
19756
if mkdir -p . 2>/dev/null; then
19757
  as_mkdir_p=:
19758
else
19759
  test -d ./-p && rmdir ./-p
19760
  as_mkdir_p=false
19761
fi
19762
 
19763
if test -x / >/dev/null 2>&1; then
19764
  as_test_x='test -x'
19765
else
19766
  if ls -dL / >/dev/null 2>&1; then
19767
    as_ls_L_option=L
19768
  else
19769
    as_ls_L_option=
19770
  fi
19771
  as_test_x='
19772
    eval sh -c '\''
19773
      if test -d "$1"; then
19774
        test -d "$1/.";
19775
      else
19776
	case $1 in
19777
        -*)set "./$1";;
19778
	esac;
19779
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19780
	???[sx]*):;;*)false;;esac;fi
19781
    '\'' sh
19782
  '
19783
fi
19784
as_executable_p=$as_test_x
19785
 
19786
# Sed expression to map a string onto a valid CPP name.
19787
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19788
 
19789
# Sed expression to map a string onto a valid variable name.
19790
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19791
 
19792
 
19793
exec 6>&1
19794
 
19795
# Save the log message, to keep $[0] and so on meaningful, and to
19796
# report actual input values of CONFIG_FILES etc. instead of their
19797
# values after options handling.
19798
ac_log="
19799
This file was extended by $as_me, which was
19800
generated by GNU Autoconf 2.61.  Invocation command line was
19801
 
19802
  CONFIG_FILES    = $CONFIG_FILES
19803
  CONFIG_HEADERS  = $CONFIG_HEADERS
19804
  CONFIG_LINKS    = $CONFIG_LINKS
19805
  CONFIG_COMMANDS = $CONFIG_COMMANDS
19806
  $ $0 $@
19807
 
19808
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19809
"
19810
 
19811
_ACEOF
19812
 
19813
cat >>$CONFIG_STATUS <<_ACEOF
19814
# Files that config.status was made for.
19815
config_files="$ac_config_files"
19816
config_headers="$ac_config_headers"
19817
config_commands="$ac_config_commands"
19818
 
19819
_ACEOF
19820
 
19821
cat >>$CONFIG_STATUS <<\_ACEOF
19822
ac_cs_usage="\
19823
\`$as_me' instantiates files from templates according to the
19824
current configuration.
19825
 
19826
Usage: $0 [OPTIONS] [FILE]...
19827
 
19828
  -h, --help       print this help, then exit
19829
  -V, --version    print version number and configuration settings, then exit
19830
  -q, --quiet      do not print progress messages
19831
  -d, --debug      don't remove temporary files
19832
      --recheck    update $as_me by reconfiguring in the same conditions
19833
  --file=FILE[:TEMPLATE]
19834
		   instantiate the configuration file FILE
19835
  --header=FILE[:TEMPLATE]
19836
		   instantiate the configuration header FILE
19837
 
19838
Configuration files:
19839
$config_files
19840
 
19841
Configuration headers:
19842
$config_headers
19843
 
19844
Configuration commands:
19845
$config_commands
19846
 
19847
Report bugs to <bug-autoconf@gnu.org>."
19848
 
19849
_ACEOF
19850
cat >>$CONFIG_STATUS <<_ACEOF
19851
ac_cs_version="\\
19852
config.status
19853
configured by $0, generated by GNU Autoconf 2.61,
19854
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19855
 
19856
Copyright (C) 2006 Free Software Foundation, Inc.
19857
This config.status script is free software; the Free Software Foundation
19858
gives unlimited permission to copy, distribute and modify it."
19859
 
19860
ac_pwd='$ac_pwd'
19861
srcdir='$srcdir'
19862
INSTALL='$INSTALL'
19863
MKDIR_P='$MKDIR_P'
19864
_ACEOF
19865
 
19866
cat >>$CONFIG_STATUS <<\_ACEOF
19867
# If no file are specified by the user, then we need to provide default
19868
# value.  By we need to know if files were specified by the user.
19869
ac_need_defaults=:
19870
while test $# != 0
19871
do
19872
  case $1 in
19873
  --*=*)
19874
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19875
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19876
    ac_shift=:
19877
    ;;
19878
  *)
19879
    ac_option=$1
19880
    ac_optarg=$2
19881
    ac_shift=shift
19882
    ;;
19883
  esac
19884
 
19885
  case $ac_option in
19886
  # Handling of the options.
19887
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19888
    ac_cs_recheck=: ;;
19889
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19890
    echo "$ac_cs_version"; exit ;;
19891
  --debug | --debu | --deb | --de | --d | -d )
19892
    debug=: ;;
19893
  --file | --fil | --fi | --f )
19894
    $ac_shift
19895
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19896
    ac_need_defaults=false;;
19897
  --header | --heade | --head | --hea )
19898
    $ac_shift
19899
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19900
    ac_need_defaults=false;;
19901
  --he | --h)
19902
    # Conflict between --help and --header
19903
    { echo "$as_me: error: ambiguous option: $1
19904
Try \`$0 --help' for more information." >&2
19905
   { (exit 1); exit 1; }; };;
19906
  --help | --hel | -h )
19907
    echo "$ac_cs_usage"; exit ;;
19908
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19909
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19910
    ac_cs_silent=: ;;
19911
 
19912
  # This is an error.
19913
  -*) { echo "$as_me: error: unrecognized option: $1
19914
Try \`$0 --help' for more information." >&2
19915
   { (exit 1); exit 1; }; } ;;
19916
 
19917
  *) ac_config_targets="$ac_config_targets $1"
19918
     ac_need_defaults=false ;;
19919
 
19920
  esac
19921
  shift
19922
done
19923
 
19924
ac_configure_extra_args=
19925
 
19926
if $ac_cs_silent; then
19927
  exec 6>/dev/null
19928
  ac_configure_extra_args="$ac_configure_extra_args --silent"
19929
fi
19930
 
19931
_ACEOF
19932
cat >>$CONFIG_STATUS <<_ACEOF
19933
if \$ac_cs_recheck; then
19934
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19935
  CONFIG_SHELL=$SHELL
19936
  export CONFIG_SHELL
19937
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19938
fi
19939
 
19940
_ACEOF
19941
cat >>$CONFIG_STATUS <<\_ACEOF
19942
exec 5>>config.log
19943
{
19944
  echo
19945
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19946
@%:@@%:@ Running $as_me. @%:@@%:@
19947
_ASBOX
19948
  echo "$ac_log"
19949
} >&5
19950
 
19951
_ACEOF
19952
cat >>$CONFIG_STATUS <<_ACEOF
19953
#
19954
# INIT-COMMANDS
19955
#
19956
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19957
 
19958
_ACEOF
19959
 
19960
cat >>$CONFIG_STATUS <<\_ACEOF
19961
 
19962
# Handling of arguments.
19963
for ac_config_target in $ac_config_targets
19964
do
19965
  case $ac_config_target in
19966
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19967
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19968
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19969
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19970
 
19971
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19972
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19973
   { (exit 1); exit 1; }; };;
19974
  esac
19975
done
19976
 
19977
 
19978
# If the user did not use the arguments to specify the items to instantiate,
19979
# then the envvar interface is used.  Set only those that are not.
19980
# We use the long form for the default assignment because of an extremely
19981
# bizarre bug on SunOS 4.1.3.
19982
if $ac_need_defaults; then
19983
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19984
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19985
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19986
fi
19987
 
19988
# Have a temporary directory for convenience.  Make it in the build tree
19989
# simply because there is no reason against having it here, and in addition,
19990
# creating and moving files from /tmp can sometimes cause problems.
19991
# Hook for its removal unless debugging.
19992
# Note that there is a small window in which the directory will not be cleaned:
19993
# after its creation but before its name has been assigned to `$tmp'.
19994
$debug ||
19995
{
19996
  tmp=
19997
  trap 'exit_status=$?
19998
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19999
' 0
20000
  trap '{ (exit 1); exit 1; }' 1 2 13 15
20001
}
20002
# Create a (secure) tmp directory for tmp files.
20003
 
20004
{
20005
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20006
  test -n "$tmp" && test -d "$tmp"
20007
}  ||
20008
{
20009
  tmp=./conf$$-$RANDOM
20010
  (umask 077 && mkdir "$tmp")
20011
} ||
20012
{
20013
   echo "$me: cannot create a temporary directory in ." >&2
20014
   { (exit 1); exit 1; }
20015
}
20016
 
20017
#
20018
# Set up the sed scripts for CONFIG_FILES section.
20019
#
20020
 
20021
# No need to generate the scripts if there are no CONFIG_FILES.
20022
# This happens for instance when ./config.status config.h
20023
if test -n "$CONFIG_FILES"; then
20024
 
20025
_ACEOF
20026
 
20027
 
20028
 
20029
ac_delim='%!_!# '
20030
for ac_last_try in false false false false false :; do
20031
  cat >conf$$subs.sed <<_ACEOF
20032
SHELL!$SHELL$ac_delim
20033
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20034
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20035
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20036
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20037
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20038
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20039
exec_prefix!$exec_prefix$ac_delim
20040
prefix!$prefix$ac_delim
20041
program_transform_name!$program_transform_name$ac_delim
20042
bindir!$bindir$ac_delim
20043
sbindir!$sbindir$ac_delim
20044
libexecdir!$libexecdir$ac_delim
20045
datarootdir!$datarootdir$ac_delim
20046
datadir!$datadir$ac_delim
20047
sysconfdir!$sysconfdir$ac_delim
20048
sharedstatedir!$sharedstatedir$ac_delim
20049
localstatedir!$localstatedir$ac_delim
20050
includedir!$includedir$ac_delim
20051
oldincludedir!$oldincludedir$ac_delim
20052
docdir!$docdir$ac_delim
20053
infodir!$infodir$ac_delim
20054
htmldir!$htmldir$ac_delim
20055
dvidir!$dvidir$ac_delim
20056
pdfdir!$pdfdir$ac_delim
20057
psdir!$psdir$ac_delim
20058
libdir!$libdir$ac_delim
20059
localedir!$localedir$ac_delim
20060
mandir!$mandir$ac_delim
20061
DEFS!$DEFS$ac_delim
20062
ECHO_C!$ECHO_C$ac_delim
20063
ECHO_N!$ECHO_N$ac_delim
20064
ECHO_T!$ECHO_T$ac_delim
20065
LIBS!$LIBS$ac_delim
20066
build_alias!$build_alias$ac_delim
20067
host_alias!$host_alias$ac_delim
20068
target_alias!$target_alias$ac_delim
20069
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20070
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20071
INSTALL_DATA!$INSTALL_DATA$ac_delim
20072
am__isrc!$am__isrc$ac_delim
20073
CYGPATH_W!$CYGPATH_W$ac_delim
20074
PACKAGE!$PACKAGE$ac_delim
20075
VERSION!$VERSION$ac_delim
20076
ACLOCAL!$ACLOCAL$ac_delim
20077
AUTOCONF!$AUTOCONF$ac_delim
20078
AUTOMAKE!$AUTOMAKE$ac_delim
20079
AUTOHEADER!$AUTOHEADER$ac_delim
20080
MAKEINFO!$MAKEINFO$ac_delim
20081
install_sh!$install_sh$ac_delim
20082
STRIP!$STRIP$ac_delim
20083
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20084
mkdir_p!$mkdir_p$ac_delim
20085
AWK!$AWK$ac_delim
20086
SET_MAKE!$SET_MAKE$ac_delim
20087
am__leading_dot!$am__leading_dot$ac_delim
20088
AMTAR!$AMTAR$ac_delim
20089
am__tar!$am__tar$ac_delim
20090
am__untar!$am__untar$ac_delim
20091
CC!$CC$ac_delim
20092
CFLAGS!$CFLAGS$ac_delim
20093
LDFLAGS!$LDFLAGS$ac_delim
20094
CPPFLAGS!$CPPFLAGS$ac_delim
20095
ac_ct_CC!$ac_ct_CC$ac_delim
20096
EXEEXT!$EXEEXT$ac_delim
20097
OBJEXT!$OBJEXT$ac_delim
20098
DEPDIR!$DEPDIR$ac_delim
20099
am__include!$am__include$ac_delim
20100
am__quote!$am__quote$ac_delim
20101
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20102
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20103
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20104
CCDEPMODE!$CCDEPMODE$ac_delim
20105
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20106
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20107
build!$build$ac_delim
20108
build_cpu!$build_cpu$ac_delim
20109
build_vendor!$build_vendor$ac_delim
20110
build_os!$build_os$ac_delim
20111
host!$host$ac_delim
20112
host_cpu!$host_cpu$ac_delim
20113
host_vendor!$host_vendor$ac_delim
20114
host_os!$host_os$ac_delim
20115
SED!$SED$ac_delim
20116
GREP!$GREP$ac_delim
20117
EGREP!$EGREP$ac_delim
20118
LN_S!$LN_S$ac_delim
20119
ECHO!$ECHO$ac_delim
20120
AR!$AR$ac_delim
20121
RANLIB!$RANLIB$ac_delim
20122
CPP!$CPP$ac_delim
20123
CXX!$CXX$ac_delim
20124
CXXFLAGS!$CXXFLAGS$ac_delim
20125
ac_ct_CXX!$ac_ct_CXX$ac_delim
20126
CXXDEPMODE!$CXXDEPMODE$ac_delim
20127
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20128
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20129
_ACEOF
20130
 
20131
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20132
    break
20133
  elif $ac_last_try; then
20134
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20135
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20136
   { (exit 1); exit 1; }; }
20137
  else
20138
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20139
  fi
20140
done
20141
 
20142
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20143
if test -n "$ac_eof"; then
20144
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20145
  ac_eof=`expr $ac_eof + 1`
20146
fi
20147
 
20148
cat >>$CONFIG_STATUS <<_ACEOF
20149
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20150
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20151
_ACEOF
20152
sed '
20153
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20154
s/^/s,@/; s/!/@,|#_!!_#|/
20155
:n
20156
t n
20157
s/'"$ac_delim"'$/,g/; t
20158
s/$/\\/; p
20159
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20160
' >>$CONFIG_STATUS <conf$$subs.sed
20161
rm -f conf$$subs.sed
20162
cat >>$CONFIG_STATUS <<_ACEOF
20163
CEOF$ac_eof
20164
_ACEOF
20165
 
20166
 
20167
ac_delim='%!_!# '
20168
for ac_last_try in false false false false false :; do
20169
  cat >conf$$subs.sed <<_ACEOF
20170
CXXCPP!$CXXCPP$ac_delim
20171
F77!$F77$ac_delim
20172
FFLAGS!$FFLAGS$ac_delim
20173
ac_ct_F77!$ac_ct_F77$ac_delim
20174
LIBTOOL!$LIBTOOL$ac_delim
20175
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
20176
LTLIBOBJS!$LTLIBOBJS$ac_delim
20177
_ACEOF
20178
 
20179
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
20180
    break
20181
  elif $ac_last_try; then
20182
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20183
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20184
   { (exit 1); exit 1; }; }
20185
  else
20186
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20187
  fi
20188
done
20189
 
20190
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20191
if test -n "$ac_eof"; then
20192
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20193
  ac_eof=`expr $ac_eof + 1`
20194
fi
20195
 
20196
cat >>$CONFIG_STATUS <<_ACEOF
20197
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20198
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20199
_ACEOF
20200
sed '
20201
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20202
s/^/s,@/; s/!/@,|#_!!_#|/
20203
:n
20204
t n
20205
s/'"$ac_delim"'$/,g/; t
20206
s/$/\\/; p
20207
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20208
' >>$CONFIG_STATUS <conf$$subs.sed
20209
rm -f conf$$subs.sed
20210
cat >>$CONFIG_STATUS <<_ACEOF
20211
:end
20212
s/|#_!!_#|//g
20213
CEOF$ac_eof
20214
_ACEOF
20215
 
20216
 
20217
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20218
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20219
# trailing colons and then remove the whole line if VPATH becomes empty
20220
# (actually we leave an empty line to preserve line numbers).
20221
if test "x$srcdir" = x.; then
20222
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20223
s/:*\$(srcdir):*/:/
20224
s/:*\${srcdir}:*/:/
20225
s/:*@srcdir@:*/:/
20226
s/^\([^=]*=[	 ]*\):*/\1/
20227
s/:*$//
20228
s/^[^=]*=[	 ]*$//
20229
}'
20230
fi
20231
 
20232
cat >>$CONFIG_STATUS <<\_ACEOF
20233
fi # test -n "$CONFIG_FILES"
20234
 
20235
 
20236
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20237
do
20238
  case $ac_tag in
20239
  :[FHLC]) ac_mode=$ac_tag; continue;;
20240
  esac
20241
  case $ac_mode$ac_tag in
20242
  :[FHL]*:*);;
20243
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20244
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20245
   { (exit 1); exit 1; }; };;
20246
  :[FH]-) ac_tag=-:-;;
20247
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20248
  esac
20249
  ac_save_IFS=$IFS
20250
  IFS=:
20251
  set x $ac_tag
20252
  IFS=$ac_save_IFS
20253
  shift
20254
  ac_file=$1
20255
  shift
20256
 
20257
  case $ac_mode in
20258
  :L) ac_source=$1;;
20259
  :[FH])
20260
    ac_file_inputs=
20261
    for ac_f
20262
    do
20263
      case $ac_f in
20264
      -) ac_f="$tmp/stdin";;
20265
      *) # Look for the file first in the build tree, then in the source tree
20266
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20267
	 # because $ac_f cannot contain `:'.
20268
	 test -f "$ac_f" ||
20269
	   case $ac_f in
20270
	   [\\/$]*) false;;
20271
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20272
	   esac ||
20273
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20274
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20275
   { (exit 1); exit 1; }; };;
20276
      esac
20277
      ac_file_inputs="$ac_file_inputs $ac_f"
20278
    done
20279
 
20280
    # Let's still pretend it is `configure' which instantiates (i.e., don't
20281
    # use $as_me), people would be surprised to read:
20282
    #    /* config.h.  Generated by config.status.  */
20283
    configure_input="Generated from "`IFS=:
20284
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20285
    if test x"$ac_file" != x-; then
20286
      configure_input="$ac_file.  $configure_input"
20287
      { echo "$as_me:$LINENO: creating $ac_file" >&5
20288
echo "$as_me: creating $ac_file" >&6;}
20289
    fi
20290
 
20291
    case $ac_tag in
20292
    *:-:* | *:-) cat >"$tmp/stdin";;
20293
    esac
20294
    ;;
20295
  esac
20296
 
20297
  ac_dir=`$as_dirname -- "$ac_file" ||
20298
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299
	 X"$ac_file" : 'X\(//\)[^/]' \| \
20300
	 X"$ac_file" : 'X\(//\)$' \| \
20301
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20302
echo X"$ac_file" |
20303
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20304
	    s//\1/
20305
	    q
20306
	  }
20307
	  /^X\(\/\/\)[^/].*/{
20308
	    s//\1/
20309
	    q
20310
	  }
20311
	  /^X\(\/\/\)$/{
20312
	    s//\1/
20313
	    q
20314
	  }
20315
	  /^X\(\/\).*/{
20316
	    s//\1/
20317
	    q
20318
	  }
20319
	  s/.*/./; q'`
20320
  { as_dir="$ac_dir"
20321
  case $as_dir in #(
20322
  -*) as_dir=./$as_dir;;
20323
  esac
20324
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20325
    as_dirs=
20326
    while :; do
20327
      case $as_dir in #(
20328
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20329
      *) as_qdir=$as_dir;;
20330
      esac
20331
      as_dirs="'$as_qdir' $as_dirs"
20332
      as_dir=`$as_dirname -- "$as_dir" ||
20333
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20334
	 X"$as_dir" : 'X\(//\)[^/]' \| \
20335
	 X"$as_dir" : 'X\(//\)$' \| \
20336
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20337
echo X"$as_dir" |
20338
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20339
	    s//\1/
20340
	    q
20341
	  }
20342
	  /^X\(\/\/\)[^/].*/{
20343
	    s//\1/
20344
	    q
20345
	  }
20346
	  /^X\(\/\/\)$/{
20347
	    s//\1/
20348
	    q
20349
	  }
20350
	  /^X\(\/\).*/{
20351
	    s//\1/
20352
	    q
20353
	  }
20354
	  s/.*/./; q'`
20355
      test -d "$as_dir" && break
20356
    done
20357
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20358
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20359
echo "$as_me: error: cannot create directory $as_dir" >&2;}
20360
   { (exit 1); exit 1; }; }; }
20361
  ac_builddir=.
20362
 
20363
case "$ac_dir" in
20364
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20365
*)
20366
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20367
  # A ".." for each directory in $ac_dir_suffix.
20368
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20369
  case $ac_top_builddir_sub in
20370
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20371
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20372
  esac ;;
20373
esac
20374
ac_abs_top_builddir=$ac_pwd
20375
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20376
# for backward compatibility:
20377
ac_top_builddir=$ac_top_build_prefix
20378
 
20379
case $srcdir in
20380
  .)  # We are building in place.
20381
    ac_srcdir=.
20382
    ac_top_srcdir=$ac_top_builddir_sub
20383
    ac_abs_top_srcdir=$ac_pwd ;;
20384
  [\\/]* | ?:[\\/]* )  # Absolute name.
20385
    ac_srcdir=$srcdir$ac_dir_suffix;
20386
    ac_top_srcdir=$srcdir
20387
    ac_abs_top_srcdir=$srcdir ;;
20388
  *) # Relative name.
20389
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20390
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20391
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20392
esac
20393
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20394
 
20395
 
20396
  case $ac_mode in
20397
  :F)
20398
  #
20399
  # CONFIG_FILE
20400
  #
20401
 
20402
  case $INSTALL in
20403
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20404
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20405
  esac
20406
  ac_MKDIR_P=$MKDIR_P
20407
  case $MKDIR_P in
20408
  [\\/$]* | ?:[\\/]* ) ;;
20409
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20410
  esac
20411
_ACEOF
20412
 
20413
cat >>$CONFIG_STATUS <<\_ACEOF
20414
# If the template does not know about datarootdir, expand it.
20415
# FIXME: This hack should be removed a few years after 2.60.
20416
ac_datarootdir_hack=; ac_datarootdir_seen=
20417
 
20418
case `sed -n '/datarootdir/ {
20419
  p
20420
  q
20421
}
20422
/@datadir@/p
20423
/@docdir@/p
20424
/@infodir@/p
20425
/@localedir@/p
20426
/@mandir@/p
20427
' $ac_file_inputs` in
20428
*datarootdir*) ac_datarootdir_seen=yes;;
20429
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20430
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20431
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20432
_ACEOF
20433
cat >>$CONFIG_STATUS <<_ACEOF
20434
  ac_datarootdir_hack='
20435
  s&@datadir@&$datadir&g
20436
  s&@docdir@&$docdir&g
20437
  s&@infodir@&$infodir&g
20438
  s&@localedir@&$localedir&g
20439
  s&@mandir@&$mandir&g
20440
    s&\\\${datarootdir}&$datarootdir&g' ;;
20441
esac
20442
_ACEOF
20443
 
20444
# Neutralize VPATH when `$srcdir' = `.'.
20445
# Shell code in configure.ac might set extrasub.
20446
# FIXME: do we really want to maintain this feature?
20447
cat >>$CONFIG_STATUS <<_ACEOF
20448
  sed "$ac_vpsub
20449
$extrasub
20450
_ACEOF
20451
cat >>$CONFIG_STATUS <<\_ACEOF
20452
:t
20453
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20454
s&@configure_input@&$configure_input&;t t
20455
s&@top_builddir@&$ac_top_builddir_sub&;t t
20456
s&@srcdir@&$ac_srcdir&;t t
20457
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20458
s&@top_srcdir@&$ac_top_srcdir&;t t
20459
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20460
s&@builddir@&$ac_builddir&;t t
20461
s&@abs_builddir@&$ac_abs_builddir&;t t
20462
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20463
s&@INSTALL@&$ac_INSTALL&;t t
20464
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20465
$ac_datarootdir_hack
20466
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20467
 
20468
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20469
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20470
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20471
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20472
which seems to be undefined.  Please make sure it is defined." >&5
20473
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20474
which seems to be undefined.  Please make sure it is defined." >&2;}
20475
 
20476
  rm -f "$tmp/stdin"
20477
  case $ac_file in
20478
  -) cat "$tmp/out"; rm -f "$tmp/out";;
20479
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20480
  esac
20481
 ;;
20482
  :H)
20483
  #
20484
  # CONFIG_HEADER
20485
  #
20486
_ACEOF
20487
 
20488
# Transform confdefs.h into a sed script `conftest.defines', that
20489
# substitutes the proper values into config.h.in to produce config.h.
20490
rm -f conftest.defines conftest.tail
20491
# First, append a space to every undef/define line, to ease matching.
20492
echo 's/$/ /' >conftest.defines
20493
# Then, protect against being on the right side of a sed subst, or in
20494
# an unquoted here document, in config.status.  If some macros were
20495
# called several times there might be several #defines for the same
20496
# symbol, which is useless.  But do not sort them, since the last
20497
# AC_DEFINE must be honored.
20498
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20499
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20500
# NAME is the cpp macro being defined, VALUE is the value it is being given.
20501
# PARAMS is the parameter list in the macro definition--in most cases, it's
20502
# just an empty string.
20503
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
20504
ac_dB='\\)[	 (].*,\\1define\\2'
20505
ac_dC=' '
20506
ac_dD=' ,'
20507
 
20508
uniq confdefs.h |
20509
  sed -n '
20510
	t rset
20511
	:rset
20512
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
20513
	t ok
20514
	d
20515
	:ok
20516
	s/[\\&,]/\\&/g
20517
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20518
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20519
  ' >>conftest.defines
20520
 
20521
# Remove the space that was appended to ease matching.
20522
# Then replace #undef with comments.  This is necessary, for
20523
# example, in the case of _POSIX_SOURCE, which is predefined and required
20524
# on some systems where configure will not decide to define it.
20525
# (The regexp can be short, since the line contains either #define or #undef.)
20526
echo 's/ $//
20527
s,^[	 #]*u.*,/* & */,' >>conftest.defines
20528
 
20529
# Break up conftest.defines:
20530
ac_max_sed_lines=50
20531
 
20532
# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20533
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20534
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20535
# et cetera.
20536
ac_in='$ac_file_inputs'
20537
ac_out='"$tmp/out1"'
20538
ac_nxt='"$tmp/out2"'
20539
 
20540
while :
20541
do
20542
  # Write a here document:
20543
    cat >>$CONFIG_STATUS <<_ACEOF
20544
    # First, check the format of the line:
20545
    cat >"\$tmp/defines.sed" <<\\CEOF
20546
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
20547
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
20548
b
20549
:def
20550
_ACEOF
20551
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20552
  echo 'CEOF
20553
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20554
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20555
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20556
  grep . conftest.tail >/dev/null || break
20557
  rm -f conftest.defines
20558
  mv conftest.tail conftest.defines
20559
done
20560
rm -f conftest.defines conftest.tail
20561
 
20562
echo "ac_result=$ac_in" >>$CONFIG_STATUS
20563
cat >>$CONFIG_STATUS <<\_ACEOF
20564
  if test x"$ac_file" != x-; then
20565
    echo "/* $configure_input  */" >"$tmp/config.h"
20566
    cat "$ac_result" >>"$tmp/config.h"
20567
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20568
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20569
echo "$as_me: $ac_file is unchanged" >&6;}
20570
    else
20571
      rm -f $ac_file
20572
      mv "$tmp/config.h" $ac_file
20573
    fi
20574
  else
20575
    echo "/* $configure_input  */"
20576
    cat "$ac_result"
20577
  fi
20578
  rm -f "$tmp/out12"
20579
# Compute $ac_file's index in $config_headers.
20580
_am_stamp_count=1
20581
for _am_header in $config_headers :; do
20582
  case $_am_header in
20583
    $ac_file | $ac_file:* )
20584
      break ;;
20585
    * )
20586
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20587
  esac
20588
done
20589
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20590
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20591
	 X$ac_file : 'X\(//\)[^/]' \| \
20592
	 X$ac_file : 'X\(//\)$' \| \
20593
	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20594
echo X$ac_file |
20595
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20596
	    s//\1/
20597
	    q
20598
	  }
20599
	  /^X\(\/\/\)[^/].*/{
20600
	    s//\1/
20601
	    q
20602
	  }
20603
	  /^X\(\/\/\)$/{
20604
	    s//\1/
20605
	    q
20606
	  }
20607
	  /^X\(\/\).*/{
20608
	    s//\1/
20609
	    q
20610
	  }
20611
	  s/.*/./; q'`/stamp-h$_am_stamp_count
20612
 ;;
20613
 
20614
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20615
echo "$as_me: executing $ac_file commands" >&6;}
20616
 ;;
20617
  esac
20618
 
20619
 
20620
  case $ac_file$ac_mode in
20621
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20622
  # Strip MF so we end up with the name of the file.
20623
  mf=`echo "$mf" | sed -e 's/:.*$//'`
20624
  # Check whether this is an Automake generated Makefile or not.
20625
  # We used to match only the files named `Makefile.in', but
20626
  # some people rename them; so instead we look at the file content.
20627
  # Grep'ing the first line is not enough: some people post-process
20628
  # each Makefile.in and add a new line on top of each file to say so.
20629
  # Grep'ing the whole file is not good either: AIX grep has a line
20630
  # limit of 2048, but all sed's we know have understand at least 4000.
20631
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20632
    dirpart=`$as_dirname -- "$mf" ||
20633
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20634
	 X"$mf" : 'X\(//\)[^/]' \| \
20635
	 X"$mf" : 'X\(//\)$' \| \
20636
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20637
echo X"$mf" |
20638
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20639
	    s//\1/
20640
	    q
20641
	  }
20642
	  /^X\(\/\/\)[^/].*/{
20643
	    s//\1/
20644
	    q
20645
	  }
20646
	  /^X\(\/\/\)$/{
20647
	    s//\1/
20648
	    q
20649
	  }
20650
	  /^X\(\/\).*/{
20651
	    s//\1/
20652
	    q
20653
	  }
20654
	  s/.*/./; q'`
20655
  else
20656
    continue
20657
  fi
20658
  # Extract the definition of DEPDIR, am__include, and am__quote
20659
  # from the Makefile without running `make'.
20660
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20661
  test -z "$DEPDIR" && continue
20662
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20663
  test -z "am__include" && continue
20664
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20665
  # When using ansi2knr, U may be empty or an underscore; expand it
20666
  U=`sed -n 's/^U = //p' < "$mf"`
20667
  # Find all dependency output files, they are included files with
20668
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20669
  # simplest approach to changing $(DEPDIR) to its actual value in the
20670
  # expansion.
20671
  for file in `sed -n "
20672
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20673
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20674
    # Make sure the directory exists.
20675
    test -f "$dirpart/$file" && continue
20676
    fdir=`$as_dirname -- "$file" ||
20677
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20678
	 X"$file" : 'X\(//\)[^/]' \| \
20679
	 X"$file" : 'X\(//\)$' \| \
20680
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20681
echo X"$file" |
20682
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20683
	    s//\1/
20684
	    q
20685
	  }
20686
	  /^X\(\/\/\)[^/].*/{
20687
	    s//\1/
20688
	    q
20689
	  }
20690
	  /^X\(\/\/\)$/{
20691
	    s//\1/
20692
	    q
20693
	  }
20694
	  /^X\(\/\).*/{
20695
	    s//\1/
20696
	    q
20697
	  }
20698
	  s/.*/./; q'`
20699
    { as_dir=$dirpart/$fdir
20700
  case $as_dir in #(
20701
  -*) as_dir=./$as_dir;;
20702
  esac
20703
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20704
    as_dirs=
20705
    while :; do
20706
      case $as_dir in #(
20707
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20708
      *) as_qdir=$as_dir;;
20709
      esac
20710
      as_dirs="'$as_qdir' $as_dirs"
20711
      as_dir=`$as_dirname -- "$as_dir" ||
20712
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713
	 X"$as_dir" : 'X\(//\)[^/]' \| \
20714
	 X"$as_dir" : 'X\(//\)$' \| \
20715
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20716
echo X"$as_dir" |
20717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20718
	    s//\1/
20719
	    q
20720
	  }
20721
	  /^X\(\/\/\)[^/].*/{
20722
	    s//\1/
20723
	    q
20724
	  }
20725
	  /^X\(\/\/\)$/{
20726
	    s//\1/
20727
	    q
20728
	  }
20729
	  /^X\(\/\).*/{
20730
	    s//\1/
20731
	    q
20732
	  }
20733
	  s/.*/./; q'`
20734
      test -d "$as_dir" && break
20735
    done
20736
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20737
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20738
echo "$as_me: error: cannot create directory $as_dir" >&2;}
20739
   { (exit 1); exit 1; }; }; }
20740
    # echo "creating $dirpart/$file"
20741
    echo '# dummy' > "$dirpart/$file"
20742
  done
20743
done
20744
 ;;
20745
 
20746
  esac
20747
done # for ac_tag
20748
 
20749
 
20750
{ (exit 0); exit 0; }
20751
_ACEOF
20752
chmod +x $CONFIG_STATUS
20753
ac_clean_files=$ac_clean_files_save
20754
 
20755
 
20756
# configure is writing to config.log, and then calls config.status.
20757
# config.status does its own redirection, appending to config.log.
20758
# Unfortunately, on DOS this fails, as config.log is still kept open
20759
# by configure, so config.status won't be able to write to it; its
20760
# output is simply discarded.  So we exec the FD to /dev/null,
20761
# effectively closing config.log, so it can be properly (re)opened and
20762
# appended to by config.status.  When coming back to configure, we
20763
# need to make the FD available again.
20764
if test "$no_create" != yes; then
20765
  ac_cs_success=:
20766
  ac_config_status_args=
20767
  test "$silent" = yes &&
20768
    ac_config_status_args="$ac_config_status_args --quiet"
20769
  exec 5>/dev/null
20770
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20771
  exec 5>>config.log
20772
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20773
  # would make configure fail if this is the last instruction.
20774
  $ac_cs_success || { (exit 1); exit 1; }
20775
fi
20776