~ubuntu-branches/ubuntu/quantal/libmpc/quantal

1 by Sebastian Dröge
Import upstream version 0.1~r435
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
  # Pre-4.2 versions of Zsh do 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
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
88
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""	$as_nl"
95
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
148
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
	 X"$0" : 'X\(//\)$' \| \
153
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
	    s//\1/
157
	    q
158
	  }
159
	  /^X\/\(\/\/\)$/{
160
	    s//\1/
161
	    q
162
	  }
163
	  /^X\/\(\/\).*/{
164
	    s//\1/
165
	    q
166
	  }
167
	  s/.*/./; q'`
168
169
# CDPATH.
170
$as_unset CDPATH
171
172
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
180
  if test $as_have_required = yes &&	 (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
	 /*)
247
	   for as_base in sh bash ksh sh5; do
248
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
	   done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
254
255
      for as_shell in $as_candidate_shells $SHELL; do
256
	 # Try only shells that exist, to save several forks.
257
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
271
fi
272
273
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
	       as_have_required=yes
279
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
292
fi
293
294
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352
_ASEOF
353
}; then
354
  break
355
fi
356
357
fi
358
359
      done
360
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
	done
365
	export CONFIG_SHELL
366
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
369
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
378
379
fi
380
381
fi
382
383
384
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
441
442
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
485
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
	test -d "$1/.";
555
      else
556
	case $1 in
557
	-*)set "./$1";;
558
	esac;
559
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
	???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
	   test "X$echo_testing_string" = "X$echo_test_string"; then
671
	  # Cool, printf works
672
	  :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
	     test "X$echo_testing_string" = 'X\t' &&
675
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
	     test "X$echo_testing_string" = "X$echo_test_string"; then
677
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
	  export CONFIG_SHELL
679
	  SHELL="$CONFIG_SHELL"
680
	  export SHELL
681
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
	     test "X$echo_testing_string" = 'X\t' &&
684
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
	     test "X$echo_testing_string" = "X$echo_test_string"; then
686
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
	  # maybe with a smaller string...
689
	  prev=:
690
691
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
	    then
694
	      break
695
	    fi
696
	    prev="$cmd"
697
	  done
698
699
	  if test "$prev" != 'sed 50q "$0"'; then
700
	    echo_test_string=`eval $prev`
701
	    export echo_test_string
702
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
	  else
704
	    # Oops.  We lost completely, so just stick with echo.
705
	    ECHO=echo
706
	  fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
720
721
722
723
exec 7<&0 </dev/null 6>&1
724
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
743
# Identity of this package.
744
PACKAGE_NAME=
745
PACKAGE_TARNAME=
746
PACKAGE_VERSION=
747
PACKAGE_STRING=
748
PACKAGE_BUGREPORT=
749
750
ac_unique_file="configure.in"
751
# Factoring default headers for most tests.
752
ac_includes_default="\
753
#include <stdio.h>
754
#ifdef HAVE_SYS_TYPES_H
755
# include <sys/types.h>
756
#endif
757
#ifdef HAVE_SYS_STAT_H
758
# include <sys/stat.h>
759
#endif
760
#ifdef STDC_HEADERS
761
# include <stdlib.h>
762
# include <stddef.h>
763
#else
764
# ifdef HAVE_STDLIB_H
765
#  include <stdlib.h>
766
# endif
767
#endif
768
#ifdef HAVE_STRING_H
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770
#  include <memory.h>
771
# endif
772
# include <string.h>
773
#endif
774
#ifdef HAVE_STRINGS_H
775
# include <strings.h>
776
#endif
777
#ifdef HAVE_INTTYPES_H
778
# include <inttypes.h>
779
#endif
780
#ifdef HAVE_STDINT_H
781
# include <stdint.h>
782
#endif
783
#ifdef HAVE_UNISTD_H
784
# include <unistd.h>
785
#endif"
786
787
ac_subst_vars='LTLIBOBJS
788
LIBOBJS
789
EXTRALIBS
790
CPP
791
OTOOL64
792
OTOOL
793
LIPO
794
NMEDIT
795
DSYMUTIL
796
lt_ECHO
797
RANLIB
798
AR
799
OBJDUMP
800
LN_S
801
NM
802
ac_ct_DUMPBIN
803
DUMPBIN
804
LD
805
FGREP
806
EGREP
807
GREP
808
SED
809
host_os
810
host_vendor
811
host_cpu
812
host
813
build_os
814
build_vendor
815
build_cpu
816
build
817
LIBTOOL
818
am__fastdepCC_FALSE
819
am__fastdepCC_TRUE
820
CCDEPMODE
821
AMDEPBACKSLASH
822
AMDEP_FALSE
823
AMDEP_TRUE
824
am__quote
825
am__include
826
DEPDIR
827
OBJEXT
828
EXEEXT
829
ac_ct_CC
830
CPPFLAGS
831
LDFLAGS
832
CFLAGS
833
CC
834
am__untar
835
am__tar
836
AMTAR
837
am__leading_dot
838
SET_MAKE
839
AWK
840
mkdir_p
841
MKDIR_P
842
INSTALL_STRIP_PROGRAM
843
STRIP
844
install_sh
845
MAKEINFO
846
AUTOHEADER
847
AUTOMAKE
848
AUTOCONF
849
ACLOCAL
850
VERSION
851
PACKAGE
852
CYGPATH_W
853
am__isrc
854
INSTALL_DATA
855
INSTALL_SCRIPT
856
INSTALL_PROGRAM
857
target_alias
858
host_alias
859
build_alias
860
LIBS
861
ECHO_T
862
ECHO_N
863
ECHO_C
864
DEFS
865
mandir
866
localedir
867
libdir
868
psdir
869
pdfdir
870
dvidir
871
htmldir
872
infodir
873
docdir
874
oldincludedir
875
includedir
876
localstatedir
877
sharedstatedir
878
sysconfdir
879
datadir
880
datarootdir
881
libexecdir
882
sbindir
883
bindir
884
program_transform_name
885
prefix
886
exec_prefix
887
PACKAGE_BUGREPORT
888
PACKAGE_STRING
889
PACKAGE_VERSION
890
PACKAGE_TARNAME
891
PACKAGE_NAME
892
PATH_SEPARATOR
893
SHELL'
894
ac_subst_files=''
895
ac_user_opts='
896
enable_option_checking
897
enable_dependency_tracking
898
enable_shared
899
enable_static
900
with_pic
901
enable_fast_install
902
with_gnu_ld
903
enable_libtool_lock
904
'
905
      ac_precious_vars='build_alias
906
host_alias
907
target_alias
908
CC
909
CFLAGS
910
LDFLAGS
911
LIBS
912
CPPFLAGS
913
CPP'
914
915
916
# Initialize some variables set by options.
917
ac_init_help=
918
ac_init_version=false
919
ac_unrecognized_opts=
920
ac_unrecognized_sep=
921
# The variables have the same names as the options, with
922
# dashes changed to underlines.
923
cache_file=/dev/null
924
exec_prefix=NONE
925
no_create=
926
no_recursion=
927
prefix=NONE
928
program_prefix=NONE
929
program_suffix=NONE
930
program_transform_name=s,x,x,
931
silent=
932
site=
933
srcdir=
934
verbose=
935
x_includes=NONE
936
x_libraries=NONE
937
938
# Installation directory options.
939
# These are left unexpanded so users can "make install exec_prefix=/foo"
940
# and all the variables that are supposed to be based on exec_prefix
941
# by default will actually change.
942
# Use braces instead of parens because sh, perl, etc. also accept them.
943
# (The list follows the same order as the GNU Coding Standards.)
944
bindir='${exec_prefix}/bin'
945
sbindir='${exec_prefix}/sbin'
946
libexecdir='${exec_prefix}/libexec'
947
datarootdir='${prefix}/share'
948
datadir='${datarootdir}'
949
sysconfdir='${prefix}/etc'
950
sharedstatedir='${prefix}/com'
951
localstatedir='${prefix}/var'
952
includedir='${prefix}/include'
953
oldincludedir='/usr/include'
954
docdir='${datarootdir}/doc/${PACKAGE}'
955
infodir='${datarootdir}/info'
956
htmldir='${docdir}'
957
dvidir='${docdir}'
958
pdfdir='${docdir}'
959
psdir='${docdir}'
960
libdir='${exec_prefix}/lib'
961
localedir='${datarootdir}/locale'
962
mandir='${datarootdir}/man'
963
964
ac_prev=
965
ac_dashdash=
966
for ac_option
967
do
968
  # If the previous option needs an argument, assign it.
969
  if test -n "$ac_prev"; then
970
    eval $ac_prev=\$ac_option
971
    ac_prev=
972
    continue
973
  fi
974
975
  case $ac_option in
976
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977
  *)	ac_optarg=yes ;;
978
  esac
979
980
  # Accept the important Cygnus configure options, so we can diagnose typos.
981
982
  case $ac_dashdash$ac_option in
983
  --)
984
    ac_dashdash=yes ;;
985
986
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
987
    ac_prev=bindir ;;
988
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989
    bindir=$ac_optarg ;;
990
991
  -build | --build | --buil | --bui | --bu)
992
    ac_prev=build_alias ;;
993
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994
    build_alias=$ac_optarg ;;
995
996
  -cache-file | --cache-file | --cache-fil | --cache-fi \
997
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998
    ac_prev=cache_file ;;
999
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001
    cache_file=$ac_optarg ;;
1002
1003
  --config-cache | -C)
1004
    cache_file=config.cache ;;
1005
1006
  -datadir | --datadir | --datadi | --datad)
1007
    ac_prev=datadir ;;
1008
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009
    datadir=$ac_optarg ;;
1010
1011
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012
  | --dataroo | --dataro | --datar)
1013
    ac_prev=datarootdir ;;
1014
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016
    datarootdir=$ac_optarg ;;
1017
1018
  -disable-* | --disable-*)
1019
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020
    # Reject names that are not valid shell variable names.
1021
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1023
   { (exit 1); exit 1; }; }
1024
    ac_useropt_orig=$ac_useropt
1025
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026
    case $ac_user_opts in
1027
      *"
1028
"enable_$ac_useropt"
1029
"*) ;;
1030
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031
	 ac_unrecognized_sep=', ';;
1032
    esac
1033
    eval enable_$ac_useropt=no ;;
1034
1035
  -docdir | --docdir | --docdi | --doc | --do)
1036
    ac_prev=docdir ;;
1037
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038
    docdir=$ac_optarg ;;
1039
1040
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041
    ac_prev=dvidir ;;
1042
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043
    dvidir=$ac_optarg ;;
1044
1045
  -enable-* | --enable-*)
1046
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047
    # Reject names that are not valid shell variable names.
1048
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1050
   { (exit 1); exit 1; }; }
1051
    ac_useropt_orig=$ac_useropt
1052
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053
    case $ac_user_opts in
1054
      *"
1055
"enable_$ac_useropt"
1056
"*) ;;
1057
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058
	 ac_unrecognized_sep=', ';;
1059
    esac
1060
    eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064
  | --exec | --exe | --ex)
1065
    ac_prev=exec_prefix ;;
1066
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068
  | --exec=* | --exe=* | --ex=*)
1069
    exec_prefix=$ac_optarg ;;
1070
1071
  -gas | --gas | --ga | --g)
1072
    # Obsolete; use --with-gas.
1073
    with_gas=yes ;;
1074
1075
  -help | --help | --hel | --he | -h)
1076
    ac_init_help=long ;;
1077
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078
    ac_init_help=recursive ;;
1079
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080
    ac_init_help=short ;;
1081
1082
  -host | --host | --hos | --ho)
1083
    ac_prev=host_alias ;;
1084
  -host=* | --host=* | --hos=* | --ho=*)
1085
    host_alias=$ac_optarg ;;
1086
1087
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088
    ac_prev=htmldir ;;
1089
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090
  | --ht=*)
1091
    htmldir=$ac_optarg ;;
1092
1093
  -includedir | --includedir | --includedi | --included | --include \
1094
  | --includ | --inclu | --incl | --inc)
1095
    ac_prev=includedir ;;
1096
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1098
    includedir=$ac_optarg ;;
1099
1100
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1101
    ac_prev=infodir ;;
1102
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103
    infodir=$ac_optarg ;;
1104
1105
  -libdir | --libdir | --libdi | --libd)
1106
    ac_prev=libdir ;;
1107
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108
    libdir=$ac_optarg ;;
1109
1110
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111
  | --libexe | --libex | --libe)
1112
    ac_prev=libexecdir ;;
1113
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114
  | --libexe=* | --libex=* | --libe=*)
1115
    libexecdir=$ac_optarg ;;
1116
1117
  -localedir | --localedir | --localedi | --localed | --locale)
1118
    ac_prev=localedir ;;
1119
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120
    localedir=$ac_optarg ;;
1121
1122
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1123
  | --localstate | --localstat | --localsta | --localst | --locals)
1124
    ac_prev=localstatedir ;;
1125
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127
    localstatedir=$ac_optarg ;;
1128
1129
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130
    ac_prev=mandir ;;
1131
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132
    mandir=$ac_optarg ;;
1133
1134
  -nfp | --nfp | --nf)
1135
    # Obsolete; use --without-fp.
1136
    with_fp=no ;;
1137
1138
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139
  | --no-cr | --no-c | -n)
1140
    no_create=yes ;;
1141
1142
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144
    no_recursion=yes ;;
1145
1146
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148
  | --oldin | --oldi | --old | --ol | --o)
1149
    ac_prev=oldincludedir ;;
1150
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153
    oldincludedir=$ac_optarg ;;
1154
1155
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156
    ac_prev=prefix ;;
1157
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158
    prefix=$ac_optarg ;;
1159
1160
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161
  | --program-pre | --program-pr | --program-p)
1162
    ac_prev=program_prefix ;;
1163
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165
    program_prefix=$ac_optarg ;;
1166
1167
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168
  | --program-suf | --program-su | --program-s)
1169
    ac_prev=program_suffix ;;
1170
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172
    program_suffix=$ac_optarg ;;
1173
1174
  -program-transform-name | --program-transform-name \
1175
  | --program-transform-nam | --program-transform-na \
1176
  | --program-transform-n | --program-transform- \
1177
  | --program-transform | --program-transfor \
1178
  | --program-transfo | --program-transf \
1179
  | --program-trans | --program-tran \
1180
  | --progr-tra | --program-tr | --program-t)
1181
    ac_prev=program_transform_name ;;
1182
  -program-transform-name=* | --program-transform-name=* \
1183
  | --program-transform-nam=* | --program-transform-na=* \
1184
  | --program-transform-n=* | --program-transform-=* \
1185
  | --program-transform=* | --program-transfor=* \
1186
  | --program-transfo=* | --program-transf=* \
1187
  | --program-trans=* | --program-tran=* \
1188
  | --progr-tra=* | --program-tr=* | --program-t=*)
1189
    program_transform_name=$ac_optarg ;;
1190
1191
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192
    ac_prev=pdfdir ;;
1193
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194
    pdfdir=$ac_optarg ;;
1195
1196
  -psdir | --psdir | --psdi | --psd | --ps)
1197
    ac_prev=psdir ;;
1198
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199
    psdir=$ac_optarg ;;
1200
1201
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202
  | -silent | --silent | --silen | --sile | --sil)
1203
    silent=yes ;;
1204
1205
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206
    ac_prev=sbindir ;;
1207
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208
  | --sbi=* | --sb=*)
1209
    sbindir=$ac_optarg ;;
1210
1211
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213
  | --sharedst | --shareds | --shared | --share | --shar \
1214
  | --sha | --sh)
1215
    ac_prev=sharedstatedir ;;
1216
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219
  | --sha=* | --sh=*)
1220
    sharedstatedir=$ac_optarg ;;
1221
1222
  -site | --site | --sit)
1223
    ac_prev=site ;;
1224
  -site=* | --site=* | --sit=*)
1225
    site=$ac_optarg ;;
1226
1227
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228
    ac_prev=srcdir ;;
1229
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230
    srcdir=$ac_optarg ;;
1231
1232
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233
  | --syscon | --sysco | --sysc | --sys | --sy)
1234
    ac_prev=sysconfdir ;;
1235
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237
    sysconfdir=$ac_optarg ;;
1238
1239
  -target | --target | --targe | --targ | --tar | --ta | --t)
1240
    ac_prev=target_alias ;;
1241
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242
    target_alias=$ac_optarg ;;
1243
1244
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245
    verbose=yes ;;
1246
1247
  -version | --version | --versio | --versi | --vers | -V)
1248
    ac_init_version=: ;;
1249
1250
  -with-* | --with-*)
1251
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252
    # Reject names that are not valid shell variable names.
1253
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255
   { (exit 1); exit 1; }; }
1256
    ac_useropt_orig=$ac_useropt
1257
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258
    case $ac_user_opts in
1259
      *"
1260
"with_$ac_useropt"
1261
"*) ;;
1262
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263
	 ac_unrecognized_sep=', ';;
1264
    esac
1265
    eval with_$ac_useropt=\$ac_optarg ;;
1266
1267
  -without-* | --without-*)
1268
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269
    # Reject names that are not valid shell variable names.
1270
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272
   { (exit 1); exit 1; }; }
1273
    ac_useropt_orig=$ac_useropt
1274
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275
    case $ac_user_opts in
1276
      *"
1277
"with_$ac_useropt"
1278
"*) ;;
1279
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280
	 ac_unrecognized_sep=', ';;
1281
    esac
1282
    eval with_$ac_useropt=no ;;
1283
1284
  --x)
1285
    # Obsolete; use --with-x.
1286
    with_x=yes ;;
1287
1288
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289
  | --x-incl | --x-inc | --x-in | --x-i)
1290
    ac_prev=x_includes ;;
1291
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293
    x_includes=$ac_optarg ;;
1294
1295
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297
    ac_prev=x_libraries ;;
1298
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300
    x_libraries=$ac_optarg ;;
1301
1302
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1303
Try \`$0 --help' for more information." >&2
1304
   { (exit 1); exit 1; }; }
1305
    ;;
1306
1307
  *=*)
1308
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309
    # Reject names that are not valid shell variable names.
1310
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312
   { (exit 1); exit 1; }; }
1313
    eval $ac_envvar=\$ac_optarg
1314
    export $ac_envvar ;;
1315
1316
  *)
1317
    # FIXME: should be removed in autoconf 3.0.
1318
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322
    ;;
1323
1324
  esac
1325
done
1326
1327
if test -n "$ac_prev"; then
1328
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1330
   { (exit 1); exit 1; }; }
1331
fi
1332
1333
if test -n "$ac_unrecognized_opts"; then
1334
  case $enable_option_checking in
1335
    no) ;;
1336
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1337
   { (exit 1); exit 1; }; } ;;
1338
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339
  esac
1340
fi
1341
1342
# Check all directory arguments for consistency.
1343
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344
		datadir sysconfdir sharedstatedir localstatedir includedir \
1345
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346
		libdir localedir mandir
1347
do
1348
  eval ac_val=\$$ac_var
1349
  # Remove trailing slashes.
1350
  case $ac_val in
1351
    */ )
1352
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353
      eval $ac_var=\$ac_val;;
1354
  esac
1355
  # Be sure to have absolute directory names.
1356
  case $ac_val in
1357
    [\\/$]* | ?:[\\/]* )  continue;;
1358
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359
  esac
1360
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361
   { (exit 1); exit 1; }; }
1362
done
1363
1364
# There might be people who depend on the old broken behavior: `$host'
1365
# used to hold the argument of --host etc.
1366
# FIXME: To remove some day.
1367
build=$build_alias
1368
host=$host_alias
1369
target=$target_alias
1370
1371
# FIXME: To remove some day.
1372
if test "x$host_alias" != x; then
1373
  if test "x$build_alias" = x; then
1374
    cross_compiling=maybe
1375
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376
    If a cross compiler is detected then cross compile mode will be used." >&2
1377
  elif test "x$build_alias" != "x$host_alias"; then
1378
    cross_compiling=yes
1379
  fi
1380
fi
1381
1382
ac_tool_prefix=
1383
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385
test "$silent" = yes && exec 6>/dev/null
1386
1387
1388
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389
ac_ls_di=`ls -di .` &&
1390
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1392
   { (exit 1); exit 1; }; }
1393
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1395
   { (exit 1); exit 1; }; }
1396
1397
1398
# Find the source files, if location was not specified.
1399
if test -z "$srcdir"; then
1400
  ac_srcdir_defaulted=yes
1401
  # Try the directory containing this script, then the parent directory.
1402
  ac_confdir=`$as_dirname -- "$as_myself" ||
1403
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1405
	 X"$as_myself" : 'X\(//\)$' \| \
1406
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407
$as_echo X"$as_myself" |
1408
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409
	    s//\1/
1410
	    q
1411
	  }
1412
	  /^X\(\/\/\)[^/].*/{
1413
	    s//\1/
1414
	    q
1415
	  }
1416
	  /^X\(\/\/\)$/{
1417
	    s//\1/
1418
	    q
1419
	  }
1420
	  /^X\(\/\).*/{
1421
	    s//\1/
1422
	    q
1423
	  }
1424
	  s/.*/./; q'`
1425
  srcdir=$ac_confdir
1426
  if test ! -r "$srcdir/$ac_unique_file"; then
1427
    srcdir=..
1428
  fi
1429
else
1430
  ac_srcdir_defaulted=no
1431
fi
1432
if test ! -r "$srcdir/$ac_unique_file"; then
1433
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435
   { (exit 1); exit 1; }; }
1436
fi
1437
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438
ac_abs_confdir=`(
1439
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1440
   { (exit 1); exit 1; }; }
1441
	pwd)`
1442
# When building in place, set srcdir=.
1443
if test "$ac_abs_confdir" = "$ac_pwd"; then
1444
  srcdir=.
1445
fi
1446
# Remove unnecessary trailing slashes from srcdir.
1447
# Double slashes in file names in object file debugging info
1448
# mess up M-x gdb in Emacs.
1449
case $srcdir in
1450
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451
esac
1452
for ac_var in $ac_precious_vars; do
1453
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454
  eval ac_env_${ac_var}_value=\$${ac_var}
1455
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457
done
1458
1459
#
1460
# Report the --help message.
1461
#
1462
if test "$ac_init_help" = "long"; then
1463
  # Omit some internal or obsolete options to make the list less imposing.
1464
  # This message is too long to be a string in the A/UX 3.1 sh.
1465
  cat <<_ACEOF
1466
\`configure' configures this package to adapt to many kinds of systems.
1467
1468
Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471
VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473
Defaults for the options are specified in brackets.
1474
1475
Configuration:
1476
  -h, --help              display this help and exit
1477
      --help=short        display options specific to this package
1478
      --help=recursive    display the short help of all the included packages
1479
  -V, --version           display version information and exit
1480
  -q, --quiet, --silent   do not print \`checking...' messages
1481
      --cache-file=FILE   cache test results in FILE [disabled]
1482
  -C, --config-cache      alias for \`--cache-file=config.cache'
1483
  -n, --no-create         do not create output files
1484
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486
Installation directories:
1487
  --prefix=PREFIX         install architecture-independent files in PREFIX
1488
                          [$ac_default_prefix]
1489
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490
                          [PREFIX]
1491
1492
By default, \`make install' will install all the files in
1493
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495
for instance \`--prefix=\$HOME'.
1496
1497
For better control, use the options below.
1498
1499
Fine tuning of the installation directories:
1500
  --bindir=DIR            user executables [EPREFIX/bin]
1501
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1502
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1503
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1504
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1505
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1506
  --libdir=DIR            object code libraries [EPREFIX/lib]
1507
  --includedir=DIR        C header files [PREFIX/include]
1508
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1509
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1510
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1511
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1512
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1513
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1514
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1515
  --htmldir=DIR           html documentation [DOCDIR]
1516
  --dvidir=DIR            dvi documentation [DOCDIR]
1517
  --pdfdir=DIR            pdf documentation [DOCDIR]
1518
  --psdir=DIR             ps documentation [DOCDIR]
1519
_ACEOF
1520
1521
  cat <<\_ACEOF
1522
1523
Program names:
1524
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1525
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1526
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1527
1528
System types:
1529
  --build=BUILD     configure for building on BUILD [guessed]
1530
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531
_ACEOF
1532
fi
1533
1534
if test -n "$ac_init_help"; then
1535
1536
  cat <<\_ACEOF
1537
1538
Optional Features:
1539
  --disable-option-checking  ignore unrecognized --enable/--with options
1540
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542
  --disable-dependency-tracking  speeds up one-time build
1543
  --enable-dependency-tracking   do not reject slow dependency extractors
1544
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1545
  --enable-static[=PKGS]  build static libraries [default=yes]
1546
  --enable-fast-install[=PKGS]
1547
                          optimize for fast installation [default=yes]
1548
  --disable-libtool-lock  avoid locking (might break parallel builds)
1549
1550
Optional Packages:
1551
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1552
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1553
  --with-pic              try to use only PIC/non-PIC objects [default=use
1554
                          both]
1555
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556
1557
Some influential environment variables:
1558
  CC          C compiler command
1559
  CFLAGS      C compiler flags
1560
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561
              nonstandard directory <lib dir>
1562
  LIBS        libraries to pass to the linker, e.g. -l<library>
1563
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564
              you have headers in a nonstandard directory <include dir>
1565
  CPP         C preprocessor
1566
1567
Use these variables to override the choices made by `configure' or to help
1568
it to find libraries and programs with nonstandard names/locations.
1569
1570
_ACEOF
1571
ac_status=$?
1572
fi
1573
1574
if test "$ac_init_help" = "recursive"; then
1575
  # If there are subdirs, report their specific --help.
1576
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577
    test -d "$ac_dir" ||
1578
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579
      continue
1580
    ac_builddir=.
1581
1582
case "$ac_dir" in
1583
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584
*)
1585
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586
  # A ".." for each directory in $ac_dir_suffix.
1587
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588
  case $ac_top_builddir_sub in
1589
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591
  esac ;;
1592
esac
1593
ac_abs_top_builddir=$ac_pwd
1594
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595
# for backward compatibility:
1596
ac_top_builddir=$ac_top_build_prefix
1597
1598
case $srcdir in
1599
  .)  # We are building in place.
1600
    ac_srcdir=.
1601
    ac_top_srcdir=$ac_top_builddir_sub
1602
    ac_abs_top_srcdir=$ac_pwd ;;
1603
  [\\/]* | ?:[\\/]* )  # Absolute name.
1604
    ac_srcdir=$srcdir$ac_dir_suffix;
1605
    ac_top_srcdir=$srcdir
1606
    ac_abs_top_srcdir=$srcdir ;;
1607
  *) # Relative name.
1608
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611
esac
1612
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614
    cd "$ac_dir" || { ac_status=$?; continue; }
1615
    # Check for guested configure.
1616
    if test -f "$ac_srcdir/configure.gnu"; then
1617
      echo &&
1618
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619
    elif test -f "$ac_srcdir/configure"; then
1620
      echo &&
1621
      $SHELL "$ac_srcdir/configure" --help=recursive
1622
    else
1623
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624
    fi || ac_status=$?
1625
    cd "$ac_pwd" || { ac_status=$?; break; }
1626
  done
1627
fi
1628
1629
test -n "$ac_init_help" && exit $ac_status
1630
if $ac_init_version; then
1631
  cat <<\_ACEOF
1632
configure
1633
generated by GNU Autoconf 2.63
1634
1635
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1637
This configure script is free software; the Free Software Foundation
1638
gives unlimited permission to copy, distribute and modify it.
1639
_ACEOF
1640
  exit
1641
fi
1642
cat >config.log <<_ACEOF
1643
This file contains any messages produced by compilers while
1644
running configure, to aid debugging if configure makes a mistake.
1645
1646
It was created by $as_me, which was
1647
generated by GNU Autoconf 2.63.  Invocation command line was
1648
1649
  $ $0 $@
1650
1651
_ACEOF
1652
exec 5>>config.log
1653
{
1654
cat <<_ASUNAME
1655
## --------- ##
1656
## Platform. ##
1657
## --------- ##
1658
1659
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676
_ASUNAME
1677
1678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679
for as_dir in $PATH
1680
do
1681
  IFS=$as_save_IFS
1682
  test -z "$as_dir" && as_dir=.
1683
  $as_echo "PATH: $as_dir"
1684
done
1685
IFS=$as_save_IFS
1686
1687
} >&5
1688
1689
cat >&5 <<_ACEOF
1690
1691
1692
## ----------- ##
1693
## Core tests. ##
1694
## ----------- ##
1695
1696
_ACEOF
1697
1698
1699
# Keep a trace of the command line.
1700
# Strip out --no-create and --no-recursion so they do not pile up.
1701
# Strip out --silent because we don't want to record it for future runs.
1702
# Also quote any args containing shell meta-characters.
1703
# Make two passes to allow for proper duplicate-argument suppression.
1704
ac_configure_args=
1705
ac_configure_args0=
1706
ac_configure_args1=
1707
ac_must_keep_next=false
1708
for ac_pass in 1 2
1709
do
1710
  for ac_arg
1711
  do
1712
    case $ac_arg in
1713
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715
    | -silent | --silent | --silen | --sile | --sil)
1716
      continue ;;
1717
    *\'*)
1718
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719
    esac
1720
    case $ac_pass in
1721
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722
    2)
1723
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724
      if test $ac_must_keep_next = true; then
1725
	ac_must_keep_next=false # Got value, back to normal.
1726
      else
1727
	case $ac_arg in
1728
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1729
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731
	  | -with-* | --with-* | -without-* | --without-* | --x)
1732
	    case "$ac_configure_args0 " in
1733
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734
	    esac
1735
	    ;;
1736
	  -* ) ac_must_keep_next=true ;;
1737
	esac
1738
      fi
1739
      ac_configure_args="$ac_configure_args '$ac_arg'"
1740
      ;;
1741
    esac
1742
  done
1743
done
1744
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747
# When interrupted or exit'd, cleanup temporary files, and complete
1748
# config.log.  We remove comments because anyway the quotes in there
1749
# would cause problems or look ugly.
1750
# WARNING: Use '\'' to represent an apostrophe within the trap.
1751
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752
trap 'exit_status=$?
1753
  # Save into config.log some information that might help in debugging.
1754
  {
1755
    echo
1756
1757
    cat <<\_ASBOX
1758
## ---------------- ##
1759
## Cache variables. ##
1760
## ---------------- ##
1761
_ASBOX
1762
    echo
1763
    # The following way of writing the cache mishandles newlines in values,
1764
(
1765
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766
    eval ac_val=\$$ac_var
1767
    case $ac_val in #(
1768
    *${as_nl}*)
1769
      case $ac_var in #(
1770
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772
      esac
1773
      case $ac_var in #(
1774
      _ | IFS | as_nl) ;; #(
1775
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776
      *) $as_unset $ac_var ;;
1777
      esac ;;
1778
    esac
1779
  done
1780
  (set) 2>&1 |
1781
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782
    *${as_nl}ac_space=\ *)
1783
      sed -n \
1784
	"s/'\''/'\''\\\\'\'''\''/g;
1785
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786
      ;; #(
1787
    *)
1788
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789
      ;;
1790
    esac |
1791
    sort
1792
)
1793
    echo
1794
1795
    cat <<\_ASBOX
1796
## ----------------- ##
1797
## Output variables. ##
1798
## ----------------- ##
1799
_ASBOX
1800
    echo
1801
    for ac_var in $ac_subst_vars
1802
    do
1803
      eval ac_val=\$$ac_var
1804
      case $ac_val in
1805
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806
      esac
1807
      $as_echo "$ac_var='\''$ac_val'\''"
1808
    done | sort
1809
    echo
1810
1811
    if test -n "$ac_subst_files"; then
1812
      cat <<\_ASBOX
1813
## ------------------- ##
1814
## File substitutions. ##
1815
## ------------------- ##
1816
_ASBOX
1817
      echo
1818
      for ac_var in $ac_subst_files
1819
      do
1820
	eval ac_val=\$$ac_var
1821
	case $ac_val in
1822
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823
	esac
1824
	$as_echo "$ac_var='\''$ac_val'\''"
1825
      done | sort
1826
      echo
1827
    fi
1828
1829
    if test -s confdefs.h; then
1830
      cat <<\_ASBOX
1831
## ----------- ##
1832
## confdefs.h. ##
1833
## ----------- ##
1834
_ASBOX
1835
      echo
1836
      cat confdefs.h
1837
      echo
1838
    fi
1839
    test "$ac_signal" != 0 &&
1840
      $as_echo "$as_me: caught signal $ac_signal"
1841
    $as_echo "$as_me: exit $exit_status"
1842
  } >&5
1843
  rm -f core *.core core.conftest.* &&
1844
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845
    exit $exit_status
1846
' 0
1847
for ac_signal in 1 2 13 15; do
1848
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849
done
1850
ac_signal=0
1851
1852
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1853
rm -f -r conftest* confdefs.h
1854
1855
# Predefined preprocessor variables.
1856
1857
cat >>confdefs.h <<_ACEOF
1858
#define PACKAGE_NAME "$PACKAGE_NAME"
1859
_ACEOF
1860
1861
1862
cat >>confdefs.h <<_ACEOF
1863
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864
_ACEOF
1865
1866
1867
cat >>confdefs.h <<_ACEOF
1868
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1869
_ACEOF
1870
1871
1872
cat >>confdefs.h <<_ACEOF
1873
#define PACKAGE_STRING "$PACKAGE_STRING"
1874
_ACEOF
1875
1876
1877
cat >>confdefs.h <<_ACEOF
1878
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879
_ACEOF
1880
1881
1882
# Let the site file select an alternate cache file if it wants to.
1883
# Prefer an explicitly selected file to automatically selected ones.
1884
ac_site_file1=NONE
1885
ac_site_file2=NONE
1886
if test -n "$CONFIG_SITE"; then
1887
  ac_site_file1=$CONFIG_SITE
1888
elif test "x$prefix" != xNONE; then
1889
  ac_site_file1=$prefix/share/config.site
1890
  ac_site_file2=$prefix/etc/config.site
1891
else
1892
  ac_site_file1=$ac_default_prefix/share/config.site
1893
  ac_site_file2=$ac_default_prefix/etc/config.site
1894
fi
1895
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1896
do
1897
  test "x$ac_site_file" = xNONE && continue
1898
  if test -r "$ac_site_file"; then
1899
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901
    sed 's/^/| /' "$ac_site_file" >&5
1902
    . "$ac_site_file"
1903
  fi
1904
done
1905
1906
if test -r "$cache_file"; then
1907
  # Some versions of bash will fail to source /dev/null (special
1908
  # files actually), so we avoid doing that.
1909
  if test -f "$cache_file"; then
1910
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911
$as_echo "$as_me: loading cache $cache_file" >&6;}
1912
    case $cache_file in
1913
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914
      *)                      . "./$cache_file";;
1915
    esac
1916
  fi
1917
else
1918
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919
$as_echo "$as_me: creating cache $cache_file" >&6;}
1920
  >$cache_file
1921
fi
1922
1923
# Check that the precious variables saved in the cache have kept the same
1924
# value.
1925
ac_cache_corrupted=false
1926
for ac_var in $ac_precious_vars; do
1927
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928
  eval ac_new_set=\$ac_env_${ac_var}_set
1929
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930
  eval ac_new_val=\$ac_env_${ac_var}_value
1931
  case $ac_old_set,$ac_new_set in
1932
    set,)
1933
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935
      ac_cache_corrupted=: ;;
1936
    ,set)
1937
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939
      ac_cache_corrupted=: ;;
1940
    ,);;
1941
    *)
1942
      if test "x$ac_old_val" != "x$ac_new_val"; then
1943
	# differences in whitespace do not lead to failure.
1944
	ac_old_val_w=`echo x $ac_old_val`
1945
	ac_new_val_w=`echo x $ac_new_val`
1946
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949
	  ac_cache_corrupted=:
1950
	else
1951
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953
	  eval $ac_var=\$ac_old_val
1954
	fi
1955
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1956
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1957
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1958
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1959
      fi;;
1960
  esac
1961
  # Pass precious variables to config.status.
1962
  if test "$ac_new_set" = set; then
1963
    case $ac_new_val in
1964
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965
    *) ac_arg=$ac_var=$ac_new_val ;;
1966
    esac
1967
    case " $ac_configure_args " in
1968
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1969
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970
    esac
1971
  fi
1972
done
1973
if $ac_cache_corrupted; then
1974
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980
   { (exit 1); exit 1; }; }
1981
fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
ac_ext=c
2000
ac_cpp='$CPP $CPPFLAGS'
2001
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
2005
2006
ac_aux_dir=
2007
for ac_dir in config "$srcdir"/config; do
2008
  if test -f "$ac_dir/install-sh"; then
2009
    ac_aux_dir=$ac_dir
2010
    ac_install_sh="$ac_aux_dir/install-sh -c"
2011
    break
2012
  elif test -f "$ac_dir/install.sh"; then
2013
    ac_aux_dir=$ac_dir
2014
    ac_install_sh="$ac_aux_dir/install.sh -c"
2015
    break
2016
  elif test -f "$ac_dir/shtool"; then
2017
    ac_aux_dir=$ac_dir
2018
    ac_install_sh="$ac_aux_dir/shtool install -c"
2019
    break
2020
  fi
2021
done
2022
if test -z "$ac_aux_dir"; then
2023
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2024
$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2025
   { (exit 1); exit 1; }; }
2026
fi
2027
2028
# These three variables are undocumented and unsupported,
2029
# and are intended to be withdrawn in a future Autoconf release.
2030
# They can cause serious problems if a builder's source tree is in a directory
2031
# whose full name contains unusual characters.
2032
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2033
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2034
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2035
2036
2037
2038
ac_config_headers="$ac_config_headers include/config.h"
2039
2040
am__api_version='1.10'
2041
2042
# Find a good install program.  We prefer a C program (faster),
2043
# so one script is as good as another.  But avoid the broken or
2044
# incompatible versions:
2045
# SysV /etc/install, /usr/sbin/install
2046
# SunOS /usr/etc/install
2047
# IRIX /sbin/install
2048
# AIX /bin/install
2049
# AmigaOS /C/install, which installs bootblocks on floppy discs
2050
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2051
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2052
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2053
# OS/2's system install, which has a completely different semantic
2054
# ./install, which can be erroneously created by make from ./install.sh.
2055
# Reject install programs that cannot install multiple files.
2056
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2057
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2058
if test -z "$INSTALL"; then
2059
if test "${ac_cv_path_install+set}" = set; then
2060
  $as_echo_n "(cached) " >&6
2061
else
2062
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063
for as_dir in $PATH
2064
do
2065
  IFS=$as_save_IFS
2066
  test -z "$as_dir" && as_dir=.
2067
  # Account for people who put trailing slashes in PATH elements.
2068
case $as_dir/ in
2069
  ./ | .// | /cC/* | \
2070
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2072
  /usr/ucb/* ) ;;
2073
  *)
2074
    # OSF1 and SCO ODT 3.0 have their own names for install.
2075
    # Don't use installbsd from OSF since it installs stuff as root
2076
    # by default.
2077
    for ac_prog in ginstall scoinst install; do
2078
      for ac_exec_ext in '' $ac_executable_extensions; do
2079
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2080
	  if test $ac_prog = install &&
2081
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082
	    # AIX install.  It has an incompatible calling convention.
2083
	    :
2084
	  elif test $ac_prog = install &&
2085
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086
	    # program-specific install script used by HP pwplus--don't use.
2087
	    :
2088
	  else
2089
	    rm -rf conftest.one conftest.two conftest.dir
2090
	    echo one > conftest.one
2091
	    echo two > conftest.two
2092
	    mkdir conftest.dir
2093
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2094
	      test -s conftest.one && test -s conftest.two &&
2095
	      test -s conftest.dir/conftest.one &&
2096
	      test -s conftest.dir/conftest.two
2097
	    then
2098
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2099
	      break 3
2100
	    fi
2101
	  fi
2102
	fi
2103
      done
2104
    done
2105
    ;;
2106
esac
2107
2108
done
2109
IFS=$as_save_IFS
2110
2111
rm -rf conftest.one conftest.two conftest.dir
2112
2113
fi
2114
  if test "${ac_cv_path_install+set}" = set; then
2115
    INSTALL=$ac_cv_path_install
2116
  else
2117
    # As a last resort, use the slow shell script.  Don't cache a
2118
    # value for INSTALL within a source directory, because that will
2119
    # break other packages using the cache if that directory is
2120
    # removed, or if the value is a relative name.
2121
    INSTALL=$ac_install_sh
2122
  fi
2123
fi
2124
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2125
$as_echo "$INSTALL" >&6; }
2126
2127
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2128
# It thinks the first close brace ends the variable substitution.
2129
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2130
2131
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2132
2133
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2134
2135
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2136
$as_echo_n "checking whether build environment is sane... " >&6; }
2137
# Just in case
2138
sleep 1
2139
echo timestamp > conftest.file
2140
# Do `set' in a subshell so we don't clobber the current shell's
2141
# arguments.  Must try -L first in case configure is actually a
2142
# symlink; some systems play weird games with the mod time of symlinks
2143
# (eg FreeBSD returns the mod time of the symlink's containing
2144
# directory).
2145
if (
2146
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2147
   if test "$*" = "X"; then
2148
      # -L didn't work.
2149
      set X `ls -t $srcdir/configure conftest.file`
2150
   fi
2151
   rm -f conftest.file
2152
   if test "$*" != "X $srcdir/configure conftest.file" \
2153
      && test "$*" != "X conftest.file $srcdir/configure"; then
2154
2155
      # If neither matched, then we have a broken ls.  This can happen
2156
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2157
      # broken ls alias from the environment.  This has actually
2158
      # happened.  Such a system could not be considered "sane".
2159
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2160
alias in your environment" >&5
2161
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2162
alias in your environment" >&2;}
2163
   { (exit 1); exit 1; }; }
2164
   fi
2165
2166
   test "$2" = conftest.file
2167
   )
2168
then
2169
   # Ok.
2170
   :
2171
else
2172
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2173
Check your system clock" >&5
2174
$as_echo "$as_me: error: newly created file is older than distributed files!
2175
Check your system clock" >&2;}
2176
   { (exit 1); exit 1; }; }
2177
fi
2178
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2179
$as_echo "yes" >&6; }
2180
test "$program_prefix" != NONE &&
2181
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2182
# Use a double $ so make ignores it.
2183
test "$program_suffix" != NONE &&
2184
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2185
# Double any \ or $.
2186
# By default was `s,x,x', remove it if useless.
2187
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2188
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2189
2190
# expand $ac_aux_dir to an absolute path
2191
am_aux_dir=`cd $ac_aux_dir && pwd`
2192
2193
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2194
# Use eval to expand $SHELL
2195
if eval "$MISSING --run true"; then
2196
  am_missing_run="$MISSING --run "
2197
else
2198
  am_missing_run=
2199
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2200
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2201
fi
2202
2203
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2204
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2205
if test -z "$MKDIR_P"; then
2206
  if test "${ac_cv_path_mkdir+set}" = set; then
2207
  $as_echo_n "(cached) " >&6
2208
else
2209
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2211
do
2212
  IFS=$as_save_IFS
2213
  test -z "$as_dir" && as_dir=.
2214
  for ac_prog in mkdir gmkdir; do
2215
	 for ac_exec_ext in '' $ac_executable_extensions; do
2216
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2217
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2218
	     'mkdir (GNU coreutils) '* | \
2219
	     'mkdir (coreutils) '* | \
2220
	     'mkdir (fileutils) '4.1*)
2221
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2222
	       break 3;;
2223
	   esac
2224
	 done
2225
       done
2226
done
2227
IFS=$as_save_IFS
2228
2229
fi
2230
2231
  if test "${ac_cv_path_mkdir+set}" = set; then
2232
    MKDIR_P="$ac_cv_path_mkdir -p"
2233
  else
2234
    # As a last resort, use the slow shell script.  Don't cache a
2235
    # value for MKDIR_P within a source directory, because that will
2236
    # break other packages using the cache if that directory is
2237
    # removed, or if the value is a relative name.
2238
    test -d ./--version && rmdir ./--version
2239
    MKDIR_P="$ac_install_sh -d"
2240
  fi
2241
fi
2242
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2243
$as_echo "$MKDIR_P" >&6; }
2244
2245
mkdir_p="$MKDIR_P"
2246
case $mkdir_p in
2247
  [\\/$]* | ?:[\\/]*) ;;
2248
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2249
esac
2250
2251
for ac_prog in gawk mawk nawk awk
2252
do
2253
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2254
set dummy $ac_prog; ac_word=$2
2255
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256
$as_echo_n "checking for $ac_word... " >&6; }
2257
if test "${ac_cv_prog_AWK+set}" = set; then
2258
  $as_echo_n "(cached) " >&6
2259
else
2260
  if test -n "$AWK"; then
2261
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2262
else
2263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264
for as_dir in $PATH
2265
do
2266
  IFS=$as_save_IFS
2267
  test -z "$as_dir" && as_dir=.
2268
  for ac_exec_ext in '' $ac_executable_extensions; do
2269
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270
    ac_cv_prog_AWK="$ac_prog"
2271
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272
    break 2
2273
  fi
2274
done
2275
done
2276
IFS=$as_save_IFS
2277
2278
fi
2279
fi
2280
AWK=$ac_cv_prog_AWK
2281
if test -n "$AWK"; then
2282
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2283
$as_echo "$AWK" >&6; }
2284
else
2285
  { $as_echo "$as_me:$LINENO: result: no" >&5
2286
$as_echo "no" >&6; }
2287
fi
2288
2289
2290
  test -n "$AWK" && break
2291
done
2292
2293
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2294
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2295
set x ${MAKE-make}
2296
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2297
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2298
  $as_echo_n "(cached) " >&6
2299
else
2300
  cat >conftest.make <<\_ACEOF
2301
SHELL = /bin/sh
2302
all:
2303
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2304
_ACEOF
2305
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2306
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2307
  *@@@%%%=?*=@@@%%%*)
2308
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2309
  *)
2310
    eval ac_cv_prog_make_${ac_make}_set=no;;
2311
esac
2312
rm -f conftest.make
2313
fi
2314
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2315
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2316
$as_echo "yes" >&6; }
2317
  SET_MAKE=
2318
else
2319
  { $as_echo "$as_me:$LINENO: result: no" >&5
2320
$as_echo "no" >&6; }
2321
  SET_MAKE="MAKE=${MAKE-make}"
2322
fi
2323
2324
rm -rf .tst 2>/dev/null
2325
mkdir .tst 2>/dev/null
2326
if test -d .tst; then
2327
  am__leading_dot=.
2328
else
2329
  am__leading_dot=_
2330
fi
2331
rmdir .tst 2>/dev/null
2332
2333
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2334
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2335
  # is not polluted with repeated "-I."
2336
  am__isrc=' -I$(srcdir)'
2337
  # test to see if srcdir already configured
2338
  if test -f $srcdir/config.status; then
2339
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2340
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2341
   { (exit 1); exit 1; }; }
2342
  fi
2343
fi
2344
2345
# test whether we have cygpath
2346
if test -z "$CYGPATH_W"; then
2347
  if (cygpath --version) >/dev/null 2>/dev/null; then
2348
    CYGPATH_W='cygpath -w'
2349
  else
2350
    CYGPATH_W=echo
2351
  fi
2352
fi
2353
2354
2355
# Define the identity of the package.
2356
 PACKAGE=libmpcs
2357
 VERSION=0.1
2358
2359
2360
cat >>confdefs.h <<_ACEOF
2361
#define PACKAGE "$PACKAGE"
2362
_ACEOF
2363
2364
2365
cat >>confdefs.h <<_ACEOF
2366
#define VERSION "$VERSION"
2367
_ACEOF
2368
2369
# Some tools Automake needs.
2370
2371
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2372
2373
2374
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2375
2376
2377
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2378
2379
2380
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2381
2382
2383
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2384
2385
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2386
2387
# Installed binaries are usually stripped using `strip' when the user
2388
# run `make install-strip'.  However `strip' might not be the right
2389
# tool to use in cross-compilation environments, therefore Automake
2390
# will honor the `STRIP' environment variable to overrule this program.
2391
if test "$cross_compiling" != no; then
2392
  if test -n "$ac_tool_prefix"; then
2393
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2394
set dummy ${ac_tool_prefix}strip; ac_word=$2
2395
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2396
$as_echo_n "checking for $ac_word... " >&6; }
2397
if test "${ac_cv_prog_STRIP+set}" = set; then
2398
  $as_echo_n "(cached) " >&6
2399
else
2400
  if test -n "$STRIP"; then
2401
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2402
else
2403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404
for as_dir in $PATH
2405
do
2406
  IFS=$as_save_IFS
2407
  test -z "$as_dir" && as_dir=.
2408
  for ac_exec_ext in '' $ac_executable_extensions; do
2409
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2411
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412
    break 2
2413
  fi
2414
done
2415
done
2416
IFS=$as_save_IFS
2417
2418
fi
2419
fi
2420
STRIP=$ac_cv_prog_STRIP
2421
if test -n "$STRIP"; then
2422
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2423
$as_echo "$STRIP" >&6; }
2424
else
2425
  { $as_echo "$as_me:$LINENO: result: no" >&5
2426
$as_echo "no" >&6; }
2427
fi
2428
2429
2430
fi
2431
if test -z "$ac_cv_prog_STRIP"; then
2432
  ac_ct_STRIP=$STRIP
2433
  # Extract the first word of "strip", so it can be a program name with args.
2434
set dummy strip; ac_word=$2
2435
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2436
$as_echo_n "checking for $ac_word... " >&6; }
2437
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2438
  $as_echo_n "(cached) " >&6
2439
else
2440
  if test -n "$ac_ct_STRIP"; then
2441
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2442
else
2443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444
for as_dir in $PATH
2445
do
2446
  IFS=$as_save_IFS
2447
  test -z "$as_dir" && as_dir=.
2448
  for ac_exec_ext in '' $ac_executable_extensions; do
2449
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450
    ac_cv_prog_ac_ct_STRIP="strip"
2451
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452
    break 2
2453
  fi
2454
done
2455
done
2456
IFS=$as_save_IFS
2457
2458
fi
2459
fi
2460
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2461
if test -n "$ac_ct_STRIP"; then
2462
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2463
$as_echo "$ac_ct_STRIP" >&6; }
2464
else
2465
  { $as_echo "$as_me:$LINENO: result: no" >&5
2466
$as_echo "no" >&6; }
2467
fi
2468
2469
  if test "x$ac_ct_STRIP" = x; then
2470
    STRIP=":"
2471
  else
2472
    case $cross_compiling:$ac_tool_warned in
2473
yes:)
2474
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2475
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2476
ac_tool_warned=yes ;;
2477
esac
2478
    STRIP=$ac_ct_STRIP
2479
  fi
2480
else
2481
  STRIP="$ac_cv_prog_STRIP"
2482
fi
2483
2484
fi
2485
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2486
2487
# We need awk for the "check" target.  The system "awk" is bad on
2488
# some platforms.
2489
# Always define AMTAR for backward compatibility.
2490
2491
AMTAR=${AMTAR-"${am_missing_run}tar"}
2492
2493
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2494
2495
2496
2497
2498
2499
2500
ac_ext=c
2501
ac_cpp='$CPP $CPPFLAGS'
2502
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505
2506
ac_ext=c
2507
ac_cpp='$CPP $CPPFLAGS'
2508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
if test -n "$ac_tool_prefix"; then
2512
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2515
$as_echo_n "checking for $ac_word... " >&6; }
2516
if test "${ac_cv_prog_CC+set}" = set; then
2517
  $as_echo_n "(cached) " >&6
2518
else
2519
  if test -n "$CC"; then
2520
  ac_cv_prog_CC="$CC" # Let the user override the test.
2521
else
2522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523
for as_dir in $PATH
2524
do
2525
  IFS=$as_save_IFS
2526
  test -z "$as_dir" && as_dir=.
2527
  for ac_exec_ext in '' $ac_executable_extensions; do
2528
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531
    break 2
2532
  fi
2533
done
2534
done
2535
IFS=$as_save_IFS
2536
2537
fi
2538
fi
2539
CC=$ac_cv_prog_CC
2540
if test -n "$CC"; then
2541
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2542
$as_echo "$CC" >&6; }
2543
else
2544
  { $as_echo "$as_me:$LINENO: result: no" >&5
2545
$as_echo "no" >&6; }
2546
fi
2547
2548
2549
fi
2550
if test -z "$ac_cv_prog_CC"; then
2551
  ac_ct_CC=$CC
2552
  # Extract the first word of "gcc", so it can be a program name with args.
2553
set dummy gcc; ac_word=$2
2554
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2555
$as_echo_n "checking for $ac_word... " >&6; }
2556
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557
  $as_echo_n "(cached) " >&6
2558
else
2559
  if test -n "$ac_ct_CC"; then
2560
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561
else
2562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563
for as_dir in $PATH
2564
do
2565
  IFS=$as_save_IFS
2566
  test -z "$as_dir" && as_dir=.
2567
  for ac_exec_ext in '' $ac_executable_extensions; do
2568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569
    ac_cv_prog_ac_ct_CC="gcc"
2570
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571
    break 2
2572
  fi
2573
done
2574
done
2575
IFS=$as_save_IFS
2576
2577
fi
2578
fi
2579
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580
if test -n "$ac_ct_CC"; then
2581
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582
$as_echo "$ac_ct_CC" >&6; }
2583
else
2584
  { $as_echo "$as_me:$LINENO: result: no" >&5
2585
$as_echo "no" >&6; }
2586
fi
2587
2588
  if test "x$ac_ct_CC" = x; then
2589
    CC=""
2590
  else
2591
    case $cross_compiling:$ac_tool_warned in
2592
yes:)
2593
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2594
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595
ac_tool_warned=yes ;;
2596
esac
2597
    CC=$ac_ct_CC
2598
  fi
2599
else
2600
  CC="$ac_cv_prog_CC"
2601
fi
2602
2603
if test -z "$CC"; then
2604
          if test -n "$ac_tool_prefix"; then
2605
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2606
set dummy ${ac_tool_prefix}cc; ac_word=$2
2607
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608
$as_echo_n "checking for $ac_word... " >&6; }
2609
if test "${ac_cv_prog_CC+set}" = set; then
2610
  $as_echo_n "(cached) " >&6
2611
else
2612
  if test -n "$CC"; then
2613
  ac_cv_prog_CC="$CC" # Let the user override the test.
2614
else
2615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616
for as_dir in $PATH
2617
do
2618
  IFS=$as_save_IFS
2619
  test -z "$as_dir" && as_dir=.
2620
  for ac_exec_ext in '' $ac_executable_extensions; do
2621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2623
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624
    break 2
2625
  fi
2626
done
2627
done
2628
IFS=$as_save_IFS
2629
2630
fi
2631
fi
2632
CC=$ac_cv_prog_CC
2633
if test -n "$CC"; then
2634
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2635
$as_echo "$CC" >&6; }
2636
else
2637
  { $as_echo "$as_me:$LINENO: result: no" >&5
2638
$as_echo "no" >&6; }
2639
fi
2640
2641
2642
  fi
2643
fi
2644
if test -z "$CC"; then
2645
  # Extract the first word of "cc", so it can be a program name with args.
2646
set dummy cc; ac_word=$2
2647
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2648
$as_echo_n "checking for $ac_word... " >&6; }
2649
if test "${ac_cv_prog_CC+set}" = set; then
2650
  $as_echo_n "(cached) " >&6
2651
else
2652
  if test -n "$CC"; then
2653
  ac_cv_prog_CC="$CC" # Let the user override the test.
2654
else
2655
  ac_prog_rejected=no
2656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657
for as_dir in $PATH
2658
do
2659
  IFS=$as_save_IFS
2660
  test -z "$as_dir" && as_dir=.
2661
  for ac_exec_ext in '' $ac_executable_extensions; do
2662
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2664
       ac_prog_rejected=yes
2665
       continue
2666
     fi
2667
    ac_cv_prog_CC="cc"
2668
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669
    break 2
2670
  fi
2671
done
2672
done
2673
IFS=$as_save_IFS
2674
2675
if test $ac_prog_rejected = yes; then
2676
  # We found a bogon in the path, so make sure we never use it.
2677
  set dummy $ac_cv_prog_CC
2678
  shift
2679
  if test $# != 0; then
2680
    # We chose a different compiler from the bogus one.
2681
    # However, it has the same basename, so the bogon will be chosen
2682
    # first if we set CC to just the basename; use the full file name.
2683
    shift
2684
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2685
  fi
2686
fi
2687
fi
2688
fi
2689
CC=$ac_cv_prog_CC
2690
if test -n "$CC"; then
2691
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2692
$as_echo "$CC" >&6; }
2693
else
2694
  { $as_echo "$as_me:$LINENO: result: no" >&5
2695
$as_echo "no" >&6; }
2696
fi
2697
2698
2699
fi
2700
if test -z "$CC"; then
2701
  if test -n "$ac_tool_prefix"; then
2702
  for ac_prog in cl.exe
2703
  do
2704
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2707
$as_echo_n "checking for $ac_word... " >&6; }
2708
if test "${ac_cv_prog_CC+set}" = set; then
2709
  $as_echo_n "(cached) " >&6
2710
else
2711
  if test -n "$CC"; then
2712
  ac_cv_prog_CC="$CC" # Let the user override the test.
2713
else
2714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715
for as_dir in $PATH
2716
do
2717
  IFS=$as_save_IFS
2718
  test -z "$as_dir" && as_dir=.
2719
  for ac_exec_ext in '' $ac_executable_extensions; do
2720
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2722
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723
    break 2
2724
  fi
2725
done
2726
done
2727
IFS=$as_save_IFS
2728
2729
fi
2730
fi
2731
CC=$ac_cv_prog_CC
2732
if test -n "$CC"; then
2733
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2734
$as_echo "$CC" >&6; }
2735
else
2736
  { $as_echo "$as_me:$LINENO: result: no" >&5
2737
$as_echo "no" >&6; }
2738
fi
2739
2740
2741
    test -n "$CC" && break
2742
  done
2743
fi
2744
if test -z "$CC"; then
2745
  ac_ct_CC=$CC
2746
  for ac_prog in cl.exe
2747
do
2748
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2749
set dummy $ac_prog; ac_word=$2
2750
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2751
$as_echo_n "checking for $ac_word... " >&6; }
2752
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2753
  $as_echo_n "(cached) " >&6
2754
else
2755
  if test -n "$ac_ct_CC"; then
2756
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757
else
2758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759
for as_dir in $PATH
2760
do
2761
  IFS=$as_save_IFS
2762
  test -z "$as_dir" && as_dir=.
2763
  for ac_exec_ext in '' $ac_executable_extensions; do
2764
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765
    ac_cv_prog_ac_ct_CC="$ac_prog"
2766
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767
    break 2
2768
  fi
2769
done
2770
done
2771
IFS=$as_save_IFS
2772
2773
fi
2774
fi
2775
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776
if test -n "$ac_ct_CC"; then
2777
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2778
$as_echo "$ac_ct_CC" >&6; }
2779
else
2780
  { $as_echo "$as_me:$LINENO: result: no" >&5
2781
$as_echo "no" >&6; }
2782
fi
2783
2784
2785
  test -n "$ac_ct_CC" && break
2786
done
2787
2788
  if test "x$ac_ct_CC" = x; then
2789
    CC=""
2790
  else
2791
    case $cross_compiling:$ac_tool_warned in
2792
yes:)
2793
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2794
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795
ac_tool_warned=yes ;;
2796
esac
2797
    CC=$ac_ct_CC
2798
  fi
2799
fi
2800
2801
fi
2802
2803
2804
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2805
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2807
See \`config.log' for more details." >&5
2808
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2809
See \`config.log' for more details." >&2;}
2810
   { (exit 1); exit 1; }; }; }
2811
2812
# Provide some information about the compiler.
2813
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2814
set X $ac_compile
2815
ac_compiler=$2
2816
{ (ac_try="$ac_compiler --version >&5"
2817
case "(($ac_try" in
2818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819
  *) ac_try_echo=$ac_try;;
2820
esac
2821
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2822
$as_echo "$ac_try_echo") >&5
2823
  (eval "$ac_compiler --version >&5") 2>&5
2824
  ac_status=$?
2825
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
  (exit $ac_status); }
2827
{ (ac_try="$ac_compiler -v >&5"
2828
case "(($ac_try" in
2829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830
  *) ac_try_echo=$ac_try;;
2831
esac
2832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2833
$as_echo "$ac_try_echo") >&5
2834
  (eval "$ac_compiler -v >&5") 2>&5
2835
  ac_status=$?
2836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837
  (exit $ac_status); }
2838
{ (ac_try="$ac_compiler -V >&5"
2839
case "(($ac_try" in
2840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841
  *) ac_try_echo=$ac_try;;
2842
esac
2843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2844
$as_echo "$ac_try_echo") >&5
2845
  (eval "$ac_compiler -V >&5") 2>&5
2846
  ac_status=$?
2847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
  (exit $ac_status); }
2849
2850
cat >conftest.$ac_ext <<_ACEOF
2851
/* confdefs.h.  */
2852
_ACEOF
2853
cat confdefs.h >>conftest.$ac_ext
2854
cat >>conftest.$ac_ext <<_ACEOF
2855
/* end confdefs.h.  */
2856
2857
int
2858
main ()
2859
{
2860
2861
  ;
2862
  return 0;
2863
}
2864
_ACEOF
2865
ac_clean_files_save=$ac_clean_files
2866
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2867
# Try to create an executable without -o first, disregard a.out.
2868
# It will help us diagnose broken compilers, and finding out an intuition
2869
# of exeext.
2870
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2871
$as_echo_n "checking for C compiler default output file name... " >&6; }
2872
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873
2874
# The possible output files:
2875
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2876
2877
ac_rmfiles=
2878
for ac_file in $ac_files
2879
do
2880
  case $ac_file in
2881
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2883
  esac
2884
done
2885
rm -f $ac_rmfiles
2886
2887
if { (ac_try="$ac_link_default"
2888
case "(($ac_try" in
2889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890
  *) ac_try_echo=$ac_try;;
2891
esac
2892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893
$as_echo "$ac_try_echo") >&5
2894
  (eval "$ac_link_default") 2>&5
2895
  ac_status=$?
2896
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897
  (exit $ac_status); }; then
2898
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2899
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2900
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2901
# so that the user can short-circuit this test for compilers unknown to
2902
# Autoconf.
2903
for ac_file in $ac_files ''
2904
do
2905
  test -f "$ac_file" || continue
2906
  case $ac_file in
2907
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2908
	;;
2909
    [ab].out )
2910
	# We found the default executable, but exeext='' is most
2911
	# certainly right.
2912
	break;;
2913
    *.* )
2914
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2915
	then :; else
2916
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917
	fi
2918
	# We set ac_cv_exeext here because the later test for it is not
2919
	# safe: cross compilers may not add the suffix if given an `-o'
2920
	# argument, so we may need to know it at that point already.
2921
	# Even if this section looks crufty: it has the advantage of
2922
	# actually working.
2923
	break;;
2924
    * )
2925
	break;;
2926
  esac
2927
done
2928
test "$ac_cv_exeext" = no && ac_cv_exeext=
2929
2930
else
2931
  ac_file=''
2932
fi
2933
2934
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2935
$as_echo "$ac_file" >&6; }
2936
if test -z "$ac_file"; then
2937
  $as_echo "$as_me: failed program was:" >&5
2938
sed 's/^/| /' conftest.$ac_ext >&5
2939
2940
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2943
See \`config.log' for more details." >&5
2944
$as_echo "$as_me: error: C compiler cannot create executables
2945
See \`config.log' for more details." >&2;}
2946
   { (exit 77); exit 77; }; }; }
2947
fi
2948
2949
ac_exeext=$ac_cv_exeext
2950
2951
# Check that the compiler produces executables we can run.  If not, either
2952
# the compiler is broken, or we cross compile.
2953
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2954
$as_echo_n "checking whether the C compiler works... " >&6; }
2955
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2956
# If not cross compiling, check that we can run a simple program.
2957
if test "$cross_compiling" != yes; then
2958
  if { ac_try='./$ac_file'
2959
  { (case "(($ac_try" in
2960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961
  *) ac_try_echo=$ac_try;;
2962
esac
2963
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2964
$as_echo "$ac_try_echo") >&5
2965
  (eval "$ac_try") 2>&5
2966
  ac_status=$?
2967
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968
  (exit $ac_status); }; }; then
2969
    cross_compiling=no
2970
  else
2971
    if test "$cross_compiling" = maybe; then
2972
	cross_compiling=yes
2973
    else
2974
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2975
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2977
If you meant to cross compile, use \`--host'.
2978
See \`config.log' for more details." >&5
2979
$as_echo "$as_me: error: cannot run C compiled programs.
2980
If you meant to cross compile, use \`--host'.
2981
See \`config.log' for more details." >&2;}
2982
   { (exit 1); exit 1; }; }; }
2983
    fi
2984
  fi
2985
fi
2986
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2987
$as_echo "yes" >&6; }
2988
2989
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2990
ac_clean_files=$ac_clean_files_save
2991
# Check that the compiler produces executables we can run.  If not, either
2992
# the compiler is broken, or we cross compile.
2993
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2994
$as_echo_n "checking whether we are cross compiling... " >&6; }
2995
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2996
$as_echo "$cross_compiling" >&6; }
2997
2998
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2999
$as_echo_n "checking for suffix of executables... " >&6; }
3000
if { (ac_try="$ac_link"
3001
case "(($ac_try" in
3002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003
  *) ac_try_echo=$ac_try;;
3004
esac
3005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006
$as_echo "$ac_try_echo") >&5
3007
  (eval "$ac_link") 2>&5
3008
  ac_status=$?
3009
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010
  (exit $ac_status); }; then
3011
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3013
# work properly (i.e., refer to `conftest.exe'), while it won't with
3014
# `rm'.
3015
for ac_file in conftest.exe conftest conftest.*; do
3016
  test -f "$ac_file" || continue
3017
  case $ac_file in
3018
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020
	  break;;
3021
    * ) break;;
3022
  esac
3023
done
3024
else
3025
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3026
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3028
See \`config.log' for more details." >&5
3029
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3030
See \`config.log' for more details." >&2;}
3031
   { (exit 1); exit 1; }; }; }
3032
fi
3033
3034
rm -f conftest$ac_cv_exeext
3035
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3036
$as_echo "$ac_cv_exeext" >&6; }
3037
3038
rm -f conftest.$ac_ext
3039
EXEEXT=$ac_cv_exeext
3040
ac_exeext=$EXEEXT
3041
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3042
$as_echo_n "checking for suffix of object files... " >&6; }
3043
if test "${ac_cv_objext+set}" = set; then
3044
  $as_echo_n "(cached) " >&6
3045
else
3046
  cat >conftest.$ac_ext <<_ACEOF
3047
/* confdefs.h.  */
3048
_ACEOF
3049
cat confdefs.h >>conftest.$ac_ext
3050
cat >>conftest.$ac_ext <<_ACEOF
3051
/* end confdefs.h.  */
3052
3053
int
3054
main ()
3055
{
3056
3057
  ;
3058
  return 0;
3059
}
3060
_ACEOF
3061
rm -f conftest.o conftest.obj
3062
if { (ac_try="$ac_compile"
3063
case "(($ac_try" in
3064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065
  *) ac_try_echo=$ac_try;;
3066
esac
3067
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3068
$as_echo "$ac_try_echo") >&5
3069
  (eval "$ac_compile") 2>&5
3070
  ac_status=$?
3071
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
  (exit $ac_status); }; then
3073
  for ac_file in conftest.o conftest.obj conftest.*; do
3074
  test -f "$ac_file" || continue;
3075
  case $ac_file in
3076
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3077
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3078
       break;;
3079
  esac
3080
done
3081
else
3082
  $as_echo "$as_me: failed program was:" >&5
3083
sed 's/^/| /' conftest.$ac_ext >&5
3084
3085
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3086
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088
See \`config.log' for more details." >&5
3089
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090
See \`config.log' for more details." >&2;}
3091
   { (exit 1); exit 1; }; }; }
3092
fi
3093
3094
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095
fi
3096
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3097
$as_echo "$ac_cv_objext" >&6; }
3098
OBJEXT=$ac_cv_objext
3099
ac_objext=$OBJEXT
3100
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3101
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3102
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3103
  $as_echo_n "(cached) " >&6
3104
else
3105
  cat >conftest.$ac_ext <<_ACEOF
3106
/* confdefs.h.  */
3107
_ACEOF
3108
cat confdefs.h >>conftest.$ac_ext
3109
cat >>conftest.$ac_ext <<_ACEOF
3110
/* end confdefs.h.  */
3111
3112
int
3113
main ()
3114
{
3115
#ifndef __GNUC__
3116
       choke me
3117
#endif
3118
3119
  ;
3120
  return 0;
3121
}
3122
_ACEOF
3123
rm -f conftest.$ac_objext
3124
if { (ac_try="$ac_compile"
3125
case "(($ac_try" in
3126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127
  *) ac_try_echo=$ac_try;;
3128
esac
3129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130
$as_echo "$ac_try_echo") >&5
3131
  (eval "$ac_compile") 2>conftest.er1
3132
  ac_status=$?
3133
  grep -v '^ *+' conftest.er1 >conftest.err
3134
  rm -f conftest.er1
3135
  cat conftest.err >&5
3136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137
  (exit $ac_status); } && {
3138
	 test -z "$ac_c_werror_flag" ||
3139
	 test ! -s conftest.err
3140
       } && test -s conftest.$ac_objext; then
3141
  ac_compiler_gnu=yes
3142
else
3143
  $as_echo "$as_me: failed program was:" >&5
3144
sed 's/^/| /' conftest.$ac_ext >&5
3145
3146
	ac_compiler_gnu=no
3147
fi
3148
3149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3151
3152
fi
3153
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3154
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3155
if test $ac_compiler_gnu = yes; then
3156
  GCC=yes
3157
else
3158
  GCC=
3159
fi
3160
ac_test_CFLAGS=${CFLAGS+set}
3161
ac_save_CFLAGS=$CFLAGS
3162
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3164
if test "${ac_cv_prog_cc_g+set}" = set; then
3165
  $as_echo_n "(cached) " >&6
3166
else
3167
  ac_save_c_werror_flag=$ac_c_werror_flag
3168
   ac_c_werror_flag=yes
3169
   ac_cv_prog_cc_g=no
3170
   CFLAGS="-g"
3171
   cat >conftest.$ac_ext <<_ACEOF
3172
/* confdefs.h.  */
3173
_ACEOF
3174
cat confdefs.h >>conftest.$ac_ext
3175
cat >>conftest.$ac_ext <<_ACEOF
3176
/* end confdefs.h.  */
3177
3178
int
3179
main ()
3180
{
3181
3182
  ;
3183
  return 0;
3184
}
3185
_ACEOF
3186
rm -f conftest.$ac_objext
3187
if { (ac_try="$ac_compile"
3188
case "(($ac_try" in
3189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
  *) ac_try_echo=$ac_try;;
3191
esac
3192
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193
$as_echo "$ac_try_echo") >&5
3194
  (eval "$ac_compile") 2>conftest.er1
3195
  ac_status=$?
3196
  grep -v '^ *+' conftest.er1 >conftest.err
3197
  rm -f conftest.er1
3198
  cat conftest.err >&5
3199
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200
  (exit $ac_status); } && {
3201
	 test -z "$ac_c_werror_flag" ||
3202
	 test ! -s conftest.err
3203
       } && test -s conftest.$ac_objext; then
3204
  ac_cv_prog_cc_g=yes
3205
else
3206
  $as_echo "$as_me: failed program was:" >&5
3207
sed 's/^/| /' conftest.$ac_ext >&5
3208
3209
	CFLAGS=""
3210
      cat >conftest.$ac_ext <<_ACEOF
3211
/* confdefs.h.  */
3212
_ACEOF
3213
cat confdefs.h >>conftest.$ac_ext
3214
cat >>conftest.$ac_ext <<_ACEOF
3215
/* end confdefs.h.  */
3216
3217
int
3218
main ()
3219
{
3220
3221
  ;
3222
  return 0;
3223
}
3224
_ACEOF
3225
rm -f conftest.$ac_objext
3226
if { (ac_try="$ac_compile"
3227
case "(($ac_try" in
3228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229
  *) ac_try_echo=$ac_try;;
3230
esac
3231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232
$as_echo "$ac_try_echo") >&5
3233
  (eval "$ac_compile") 2>conftest.er1
3234
  ac_status=$?
3235
  grep -v '^ *+' conftest.er1 >conftest.err
3236
  rm -f conftest.er1
3237
  cat conftest.err >&5
3238
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239
  (exit $ac_status); } && {
3240
	 test -z "$ac_c_werror_flag" ||
3241
	 test ! -s conftest.err
3242
       } && test -s conftest.$ac_objext; then
3243
  :
3244
else
3245
  $as_echo "$as_me: failed program was:" >&5
3246
sed 's/^/| /' conftest.$ac_ext >&5
3247
3248
	ac_c_werror_flag=$ac_save_c_werror_flag
3249
	 CFLAGS="-g"
3250
	 cat >conftest.$ac_ext <<_ACEOF
3251
/* confdefs.h.  */
3252
_ACEOF
3253
cat confdefs.h >>conftest.$ac_ext
3254
cat >>conftest.$ac_ext <<_ACEOF
3255
/* end confdefs.h.  */
3256
3257
int
3258
main ()
3259
{
3260
3261
  ;
3262
  return 0;
3263
}
3264
_ACEOF
3265
rm -f conftest.$ac_objext
3266
if { (ac_try="$ac_compile"
3267
case "(($ac_try" in
3268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269
  *) ac_try_echo=$ac_try;;
3270
esac
3271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272
$as_echo "$ac_try_echo") >&5
3273
  (eval "$ac_compile") 2>conftest.er1
3274
  ac_status=$?
3275
  grep -v '^ *+' conftest.er1 >conftest.err
3276
  rm -f conftest.er1
3277
  cat conftest.err >&5
3278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279
  (exit $ac_status); } && {
3280
	 test -z "$ac_c_werror_flag" ||
3281
	 test ! -s conftest.err
3282
       } && test -s conftest.$ac_objext; then
3283
  ac_cv_prog_cc_g=yes
3284
else
3285
  $as_echo "$as_me: failed program was:" >&5
3286
sed 's/^/| /' conftest.$ac_ext >&5
3287
3288
3289
fi
3290
3291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292
fi
3293
3294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295
fi
3296
3297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298
   ac_c_werror_flag=$ac_save_c_werror_flag
3299
fi
3300
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3301
$as_echo "$ac_cv_prog_cc_g" >&6; }
3302
if test "$ac_test_CFLAGS" = set; then
3303
  CFLAGS=$ac_save_CFLAGS
3304
elif test $ac_cv_prog_cc_g = yes; then
3305
  if test "$GCC" = yes; then
3306
    CFLAGS="-g -O2"
3307
  else
3308
    CFLAGS="-g"
3309
  fi
3310
else
3311
  if test "$GCC" = yes; then
3312
    CFLAGS="-O2"
3313
  else
3314
    CFLAGS=
3315
  fi
3316
fi
3317
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3318
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3319
if test "${ac_cv_prog_cc_c89+set}" = set; then
3320
  $as_echo_n "(cached) " >&6
3321
else
3322
  ac_cv_prog_cc_c89=no
3323
ac_save_CC=$CC
3324
cat >conftest.$ac_ext <<_ACEOF
3325
/* confdefs.h.  */
3326
_ACEOF
3327
cat confdefs.h >>conftest.$ac_ext
3328
cat >>conftest.$ac_ext <<_ACEOF
3329
/* end confdefs.h.  */
3330
#include <stdarg.h>
3331
#include <stdio.h>
3332
#include <sys/types.h>
3333
#include <sys/stat.h>
3334
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3335
struct buf { int x; };
3336
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337
static char *e (p, i)
3338
     char **p;
3339
     int i;
3340
{
3341
  return p[i];
3342
}
3343
static char *f (char * (*g) (char **, int), char **p, ...)
3344
{
3345
  char *s;
3346
  va_list v;
3347
  va_start (v,p);
3348
  s = g (p, va_arg (v,int));
3349
  va_end (v);
3350
  return s;
3351
}
3352
3353
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3354
   function prototypes and stuff, but not '\xHH' hex character constants.
3355
   These don't provoke an error unfortunately, instead are silently treated
3356
   as 'x'.  The following induces an error, until -std is added to get
3357
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3358
   array size at least.  It's necessary to write '\x00'==0 to get something
3359
   that's true only with -std.  */
3360
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361
3362
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363
   inside strings and character constants.  */
3364
#define FOO(x) 'x'
3365
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366
3367
int test (int i, double x);
3368
struct s1 {int (*f) (int a);};
3369
struct s2 {int (*f) (double a);};
3370
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371
int argc;
3372
char **argv;
3373
int
3374
main ()
3375
{
3376
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3377
  ;
3378
  return 0;
3379
}
3380
_ACEOF
3381
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383
do
3384
  CC="$ac_save_CC $ac_arg"
3385
  rm -f conftest.$ac_objext
3386
if { (ac_try="$ac_compile"
3387
case "(($ac_try" in
3388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389
  *) ac_try_echo=$ac_try;;
3390
esac
3391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392
$as_echo "$ac_try_echo") >&5
3393
  (eval "$ac_compile") 2>conftest.er1
3394
  ac_status=$?
3395
  grep -v '^ *+' conftest.er1 >conftest.err
3396
  rm -f conftest.er1
3397
  cat conftest.err >&5
3398
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399
  (exit $ac_status); } && {
3400
	 test -z "$ac_c_werror_flag" ||
3401
	 test ! -s conftest.err
3402
       } && test -s conftest.$ac_objext; then
3403
  ac_cv_prog_cc_c89=$ac_arg
3404
else
3405
  $as_echo "$as_me: failed program was:" >&5
3406
sed 's/^/| /' conftest.$ac_ext >&5
3407
3408
3409
fi
3410
3411
rm -f core conftest.err conftest.$ac_objext
3412
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3413
done
3414
rm -f conftest.$ac_ext
3415
CC=$ac_save_CC
3416
3417
fi
3418
# AC_CACHE_VAL
3419
case "x$ac_cv_prog_cc_c89" in
3420
  x)
3421
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3422
$as_echo "none needed" >&6; } ;;
3423
  xno)
3424
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3425
$as_echo "unsupported" >&6; } ;;
3426
  *)
3427
    CC="$CC $ac_cv_prog_cc_c89"
3428
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3429
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3430
esac
3431
3432
3433
ac_ext=c
3434
ac_cpp='$CPP $CPPFLAGS'
3435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438
DEPDIR="${am__leading_dot}deps"
3439
3440
ac_config_commands="$ac_config_commands depfiles"
3441
3442
3443
am_make=${MAKE-make}
3444
cat > confinc << 'END'
3445
am__doit:
3446
	@echo done
3447
.PHONY: am__doit
3448
END
3449
# If we don't find an include directive, just comment out the code.
3450
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3451
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3452
am__include="#"
3453
am__quote=
3454
_am_result=none
3455
# First try GNU make style include.
3456
echo "include confinc" > confmf
3457
# We grep out `Entering directory' and `Leaving directory'
3458
# messages which can occur if `w' ends up in MAKEFLAGS.
3459
# In particular we don't look at `^make:' because GNU make might
3460
# be invoked under some other name (usually "gmake"), in which
3461
# case it prints its new name instead of `make'.
3462
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3463
   am__include=include
3464
   am__quote=
3465
   _am_result=GNU
3466
fi
3467
# Now try BSD make style include.
3468
if test "$am__include" = "#"; then
3469
   echo '.include "confinc"' > confmf
3470
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3471
      am__include=.include
3472
      am__quote="\""
3473
      _am_result=BSD
3474
   fi
3475
fi
3476
3477
3478
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3479
$as_echo "$_am_result" >&6; }
3480
rm -f confinc confmf
3481
3482
# Check whether --enable-dependency-tracking was given.
3483
if test "${enable_dependency_tracking+set}" = set; then
3484
  enableval=$enable_dependency_tracking;
3485
fi
3486
3487
if test "x$enable_dependency_tracking" != xno; then
3488
  am_depcomp="$ac_aux_dir/depcomp"
3489
  AMDEPBACKSLASH='\'
3490
fi
3491
 if test "x$enable_dependency_tracking" != xno; then
3492
  AMDEP_TRUE=
3493
  AMDEP_FALSE='#'
3494
else
3495
  AMDEP_TRUE='#'
3496
  AMDEP_FALSE=
3497
fi
3498
3499
3500
3501
depcc="$CC"   am_compiler_list=
3502
3503
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3504
$as_echo_n "checking dependency style of $depcc... " >&6; }
3505
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3506
  $as_echo_n "(cached) " >&6
3507
else
3508
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3509
  # We make a subdir and do the tests there.  Otherwise we can end up
3510
  # making bogus files that we don't know about and never remove.  For
3511
  # instance it was reported that on HP-UX the gcc test will end up
3512
  # making a dummy file named `D' -- because `-MD' means `put the output
3513
  # in D'.
3514
  mkdir conftest.dir
3515
  # Copy depcomp to subdir because otherwise we won't find it if we're
3516
  # using a relative directory.
3517
  cp "$am_depcomp" conftest.dir
3518
  cd conftest.dir
3519
  # We will build objects and dependencies in a subdirectory because
3520
  # it helps to detect inapplicable dependency modes.  For instance
3521
  # both Tru64's cc and ICC support -MD to output dependencies as a
3522
  # side effect of compilation, but ICC will put the dependencies in
3523
  # the current directory while Tru64 will put them in the object
3524
  # directory.
3525
  mkdir sub
3526
3527
  am_cv_CC_dependencies_compiler_type=none
3528
  if test "$am_compiler_list" = ""; then
3529
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3530
  fi
3531
  for depmode in $am_compiler_list; do
3532
    # Setup a source with many dependencies, because some compilers
3533
    # like to wrap large dependency lists on column 80 (with \), and
3534
    # we should not choose a depcomp mode which is confused by this.
3535
    #
3536
    # We need to recreate these files for each test, as the compiler may
3537
    # overwrite some of them when testing with obscure command lines.
3538
    # This happens at least with the AIX C compiler.
3539
    : > sub/conftest.c
3540
    for i in 1 2 3 4 5 6; do
3541
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3542
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3543
      # Solaris 8's {/usr,}/bin/sh.
3544
      touch sub/conftst$i.h
3545
    done
3546
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3547
3548
    case $depmode in
3549
    nosideeffect)
3550
      # after this tag, mechanisms are not by side-effect, so they'll
3551
      # only be used when explicitly requested
3552
      if test "x$enable_dependency_tracking" = xyes; then
3553
	continue
3554
      else
3555
	break
3556
      fi
3557
      ;;
3558
    none) break ;;
3559
    esac
3560
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3561
    # mode.  It turns out that the SunPro C++ compiler does not properly
3562
    # handle `-M -o', and we need to detect this.
3563
    if depmode=$depmode \
3564
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3565
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3566
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3567
         >/dev/null 2>conftest.err &&
3568
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3569
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3570
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3571
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3572
      # icc doesn't choke on unknown options, it will just issue warnings
3573
      # or remarks (even with -Werror).  So we grep stderr for any message
3574
      # that says an option was ignored or not supported.
3575
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3576
      #   icc: Command line warning: ignoring option '-M'; no argument required
3577
      # The diagnosis changed in icc 8.0:
3578
      #   icc: Command line remark: option '-MP' not supported
3579
      if (grep 'ignoring option' conftest.err ||
3580
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3581
        am_cv_CC_dependencies_compiler_type=$depmode
3582
        break
3583
      fi
3584
    fi
3585
  done
3586
3587
  cd ..
3588
  rm -rf conftest.dir
3589
else
3590
  am_cv_CC_dependencies_compiler_type=none
3591
fi
3592
3593
fi
3594
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3595
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3596
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3597
3598
 if
3599
  test "x$enable_dependency_tracking" != xno \
3600
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3601
  am__fastdepCC_TRUE=
3602
  am__fastdepCC_FALSE='#'
3603
else
3604
  am__fastdepCC_TRUE='#'
3605
  am__fastdepCC_FALSE=
3606
fi
3607
3608
3609
case `pwd` in
3610
  *\ * | *\	*)
3611
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3612
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3613
esac
3614
3615
3616
3617
macro_version='2.2.6'
3618
macro_revision='1.3012'
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
ltmain="$ac_aux_dir/ltmain.sh"
3633
3634
# Make sure we can run config.sub.
3635
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3636
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3637
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3638
   { (exit 1); exit 1; }; }
3639
3640
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3641
$as_echo_n "checking build system type... " >&6; }
3642
if test "${ac_cv_build+set}" = set; then
3643
  $as_echo_n "(cached) " >&6
3644
else
3645
  ac_build_alias=$build_alias
3646
test "x$ac_build_alias" = x &&
3647
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3648
test "x$ac_build_alias" = x &&
3649
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3650
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3651
   { (exit 1); exit 1; }; }
3652
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3653
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3654
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3655
   { (exit 1); exit 1; }; }
3656
3657
fi
3658
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3659
$as_echo "$ac_cv_build" >&6; }
3660
case $ac_cv_build in
3661
*-*-*) ;;
3662
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3663
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3664
   { (exit 1); exit 1; }; };;
3665
esac
3666
build=$ac_cv_build
3667
ac_save_IFS=$IFS; IFS='-'
3668
set x $ac_cv_build
3669
shift
3670
build_cpu=$1
3671
build_vendor=$2
3672
shift; shift
3673
# Remember, the first character of IFS is used to create $*,
3674
# except with old shells:
3675
build_os=$*
3676
IFS=$ac_save_IFS
3677
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3678
3679
3680
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3681
$as_echo_n "checking host system type... " >&6; }
3682
if test "${ac_cv_host+set}" = set; then
3683
  $as_echo_n "(cached) " >&6
3684
else
3685
  if test "x$host_alias" = x; then
3686
  ac_cv_host=$ac_cv_build
3687
else
3688
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3689
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3690
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3691
   { (exit 1); exit 1; }; }
3692
fi
3693
3694
fi
3695
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3696
$as_echo "$ac_cv_host" >&6; }
3697
case $ac_cv_host in
3698
*-*-*) ;;
3699
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3700
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3701
   { (exit 1); exit 1; }; };;
3702
esac
3703
host=$ac_cv_host
3704
ac_save_IFS=$IFS; IFS='-'
3705
set x $ac_cv_host
3706
shift
3707
host_cpu=$1
3708
host_vendor=$2
3709
shift; shift
3710
# Remember, the first character of IFS is used to create $*,
3711
# except with old shells:
3712
host_os=$*
3713
IFS=$ac_save_IFS
3714
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3715
3716
3717
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3718
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3719
if test "${ac_cv_path_SED+set}" = set; then
3720
  $as_echo_n "(cached) " >&6
3721
else
3722
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3723
     for ac_i in 1 2 3 4 5 6 7; do
3724
       ac_script="$ac_script$as_nl$ac_script"
3725
     done
3726
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3727
     $as_unset ac_script || ac_script=
3728
     if test -z "$SED"; then
3729
  ac_path_SED_found=false
3730
  # Loop through the user's path and test for each of PROGNAME-LIST
3731
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732
for as_dir in $PATH
3733
do
3734
  IFS=$as_save_IFS
3735
  test -z "$as_dir" && as_dir=.
3736
  for ac_prog in sed gsed; do
3737
    for ac_exec_ext in '' $ac_executable_extensions; do
3738
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3739
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3740
# Check for GNU ac_path_SED and select it if it is found.
3741
  # Check for GNU $ac_path_SED
3742
case `"$ac_path_SED" --version 2>&1` in
3743
*GNU*)
3744
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3745
*)
3746
  ac_count=0
3747
  $as_echo_n 0123456789 >"conftest.in"
3748
  while :
3749
  do
3750
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3751
    mv "conftest.tmp" "conftest.in"
3752
    cp "conftest.in" "conftest.nl"
3753
    $as_echo '' >> "conftest.nl"
3754
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756
    ac_count=`expr $ac_count + 1`
3757
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3758
      # Best one so far, save it but keep looking for a better one
3759
      ac_cv_path_SED="$ac_path_SED"
3760
      ac_path_SED_max=$ac_count
3761
    fi
3762
    # 10*(2^10) chars as input seems more than enough
3763
    test $ac_count -gt 10 && break
3764
  done
3765
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766
esac
3767
3768
      $ac_path_SED_found && break 3
3769
    done
3770
  done
3771
done
3772
IFS=$as_save_IFS
3773
  if test -z "$ac_cv_path_SED"; then
3774
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3775
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3776
   { (exit 1); exit 1; }; }
3777
  fi
3778
else
3779
  ac_cv_path_SED=$SED
3780
fi
3781
3782
fi
3783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3784
$as_echo "$ac_cv_path_SED" >&6; }
3785
 SED="$ac_cv_path_SED"
3786
  rm -f conftest.sed
3787
3788
test -z "$SED" && SED=sed
3789
Xsed="$SED -e 1s/^X//"
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3802
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3803
if test "${ac_cv_path_GREP+set}" = set; then
3804
  $as_echo_n "(cached) " >&6
3805
else
3806
  if test -z "$GREP"; then
3807
  ac_path_GREP_found=false
3808
  # Loop through the user's path and test for each of PROGNAME-LIST
3809
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811
do
3812
  IFS=$as_save_IFS
3813
  test -z "$as_dir" && as_dir=.
3814
  for ac_prog in grep ggrep; do
3815
    for ac_exec_ext in '' $ac_executable_extensions; do
3816
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3817
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3818
# Check for GNU ac_path_GREP and select it if it is found.
3819
  # Check for GNU $ac_path_GREP
3820
case `"$ac_path_GREP" --version 2>&1` in
3821
*GNU*)
3822
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3823
*)
3824
  ac_count=0
3825
  $as_echo_n 0123456789 >"conftest.in"
3826
  while :
3827
  do
3828
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3829
    mv "conftest.tmp" "conftest.in"
3830
    cp "conftest.in" "conftest.nl"
3831
    $as_echo 'GREP' >> "conftest.nl"
3832
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3833
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3834
    ac_count=`expr $ac_count + 1`
3835
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3836
      # Best one so far, save it but keep looking for a better one
3837
      ac_cv_path_GREP="$ac_path_GREP"
3838
      ac_path_GREP_max=$ac_count
3839
    fi
3840
    # 10*(2^10) chars as input seems more than enough
3841
    test $ac_count -gt 10 && break
3842
  done
3843
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844
esac
3845
3846
      $ac_path_GREP_found && break 3
3847
    done
3848
  done
3849
done
3850
IFS=$as_save_IFS
3851
  if test -z "$ac_cv_path_GREP"; then
3852
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3853
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3854
   { (exit 1); exit 1; }; }
3855
  fi
3856
else
3857
  ac_cv_path_GREP=$GREP
3858
fi
3859
3860
fi
3861
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3862
$as_echo "$ac_cv_path_GREP" >&6; }
3863
 GREP="$ac_cv_path_GREP"
3864
3865
3866
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3867
$as_echo_n "checking for egrep... " >&6; }
3868
if test "${ac_cv_path_EGREP+set}" = set; then
3869
  $as_echo_n "(cached) " >&6
3870
else
3871
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872
   then ac_cv_path_EGREP="$GREP -E"
3873
   else
3874
     if test -z "$EGREP"; then
3875
  ac_path_EGREP_found=false
3876
  # Loop through the user's path and test for each of PROGNAME-LIST
3877
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879
do
3880
  IFS=$as_save_IFS
3881
  test -z "$as_dir" && as_dir=.
3882
  for ac_prog in egrep; do
3883
    for ac_exec_ext in '' $ac_executable_extensions; do
3884
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3885
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3886
# Check for GNU ac_path_EGREP and select it if it is found.
3887
  # Check for GNU $ac_path_EGREP
3888
case `"$ac_path_EGREP" --version 2>&1` in
3889
*GNU*)
3890
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3891
*)
3892
  ac_count=0
3893
  $as_echo_n 0123456789 >"conftest.in"
3894
  while :
3895
  do
3896
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3897
    mv "conftest.tmp" "conftest.in"
3898
    cp "conftest.in" "conftest.nl"
3899
    $as_echo 'EGREP' >> "conftest.nl"
3900
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902
    ac_count=`expr $ac_count + 1`
3903
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3904
      # Best one so far, save it but keep looking for a better one
3905
      ac_cv_path_EGREP="$ac_path_EGREP"
3906
      ac_path_EGREP_max=$ac_count
3907
    fi
3908
    # 10*(2^10) chars as input seems more than enough
3909
    test $ac_count -gt 10 && break
3910
  done
3911
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912
esac
3913
3914
      $ac_path_EGREP_found && break 3
3915
    done
3916
  done
3917
done
3918
IFS=$as_save_IFS
3919
  if test -z "$ac_cv_path_EGREP"; then
3920
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922
   { (exit 1); exit 1; }; }
3923
  fi
3924
else
3925
  ac_cv_path_EGREP=$EGREP
3926
fi
3927
3928
   fi
3929
fi
3930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3931
$as_echo "$ac_cv_path_EGREP" >&6; }
3932
 EGREP="$ac_cv_path_EGREP"
3933
3934
3935
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3936
$as_echo_n "checking for fgrep... " >&6; }
3937
if test "${ac_cv_path_FGREP+set}" = set; then
3938
  $as_echo_n "(cached) " >&6
3939
else
3940
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3941
   then ac_cv_path_FGREP="$GREP -F"
3942
   else
3943
     if test -z "$FGREP"; then
3944
  ac_path_FGREP_found=false
3945
  # Loop through the user's path and test for each of PROGNAME-LIST
3946
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948
do
3949
  IFS=$as_save_IFS
3950
  test -z "$as_dir" && as_dir=.
3951
  for ac_prog in fgrep; do
3952
    for ac_exec_ext in '' $ac_executable_extensions; do
3953
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3954
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3955
# Check for GNU ac_path_FGREP and select it if it is found.
3956
  # Check for GNU $ac_path_FGREP
3957
case `"$ac_path_FGREP" --version 2>&1` in
3958
*GNU*)
3959
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3960
*)
3961
  ac_count=0
3962
  $as_echo_n 0123456789 >"conftest.in"
3963
  while :
3964
  do
3965
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3966
    mv "conftest.tmp" "conftest.in"
3967
    cp "conftest.in" "conftest.nl"
3968
    $as_echo 'FGREP' >> "conftest.nl"
3969
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971
    ac_count=`expr $ac_count + 1`
3972
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3973
      # Best one so far, save it but keep looking for a better one
3974
      ac_cv_path_FGREP="$ac_path_FGREP"
3975
      ac_path_FGREP_max=$ac_count
3976
    fi
3977
    # 10*(2^10) chars as input seems more than enough
3978
    test $ac_count -gt 10 && break
3979
  done
3980
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981
esac
3982
3983
      $ac_path_FGREP_found && break 3
3984
    done
3985
  done
3986
done
3987
IFS=$as_save_IFS
3988
  if test -z "$ac_cv_path_FGREP"; then
3989
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3990
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3991
   { (exit 1); exit 1; }; }
3992
  fi
3993
else
3994
  ac_cv_path_FGREP=$FGREP
3995
fi
3996
3997
   fi
3998
fi
3999
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4000
$as_echo "$ac_cv_path_FGREP" >&6; }
4001
 FGREP="$ac_cv_path_FGREP"
4002
4003
4004
test -z "$GREP" && GREP=grep
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
# Check whether --with-gnu-ld was given.
4025
if test "${with_gnu_ld+set}" = set; then
4026
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4027
else
4028
  with_gnu_ld=no
4029
fi
4030
4031
ac_prog=ld
4032
if test "$GCC" = yes; then
4033
  # Check if gcc -print-prog-name=ld gives a path.
4034
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4035
$as_echo_n "checking for ld used by $CC... " >&6; }
4036
  case $host in
4037
  *-*-mingw*)
4038
    # gcc leaves a trailing carriage return which upsets mingw
4039
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4040
  *)
4041
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4042
  esac
4043
  case $ac_prog in
4044
    # Accept absolute paths.
4045
    [\\/]* | ?:[\\/]*)
4046
      re_direlt='/[^/][^/]*/\.\./'
4047
      # Canonicalize the pathname of ld
4048
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4049
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4050
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4051
      done
4052
      test -z "$LD" && LD="$ac_prog"
4053
      ;;
4054
  "")
4055
    # If it fails, then pretend we aren't using GCC.
4056
    ac_prog=ld
4057
    ;;
4058
  *)
4059
    # If it is relative, then search for the first ld in PATH.
4060
    with_gnu_ld=unknown
4061
    ;;
4062
  esac
4063
elif test "$with_gnu_ld" = yes; then
4064
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4065
$as_echo_n "checking for GNU ld... " >&6; }
4066
else
4067
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4068
$as_echo_n "checking for non-GNU ld... " >&6; }
4069
fi
4070
if test "${lt_cv_path_LD+set}" = set; then
4071
  $as_echo_n "(cached) " >&6
4072
else
4073
  if test -z "$LD"; then
4074
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4075
  for ac_dir in $PATH; do
4076
    IFS="$lt_save_ifs"
4077
    test -z "$ac_dir" && ac_dir=.
4078
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4079
      lt_cv_path_LD="$ac_dir/$ac_prog"
4080
      # Check to see if the program is GNU ld.  I'd rather use --version,
4081
      # but apparently some variants of GNU ld only accept -v.
4082
      # Break only if it was the GNU/non-GNU ld that we prefer.
4083
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4084
      *GNU* | *'with BFD'*)
4085
	test "$with_gnu_ld" != no && break
4086
	;;
4087
      *)
4088
	test "$with_gnu_ld" != yes && break
4089
	;;
4090
      esac
4091
    fi
4092
  done
4093
  IFS="$lt_save_ifs"
4094
else
4095
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4096
fi
4097
fi
4098
4099
LD="$lt_cv_path_LD"
4100
if test -n "$LD"; then
4101
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4102
$as_echo "$LD" >&6; }
4103
else
4104
  { $as_echo "$as_me:$LINENO: result: no" >&5
4105
$as_echo "no" >&6; }
4106
fi
4107
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4108
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4109
   { (exit 1); exit 1; }; }
4110
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4111
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4112
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4113
  $as_echo_n "(cached) " >&6
4114
else
4115
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4116
case `$LD -v 2>&1 </dev/null` in
4117
*GNU* | *'with BFD'*)
4118
  lt_cv_prog_gnu_ld=yes
4119
  ;;
4120
*)
4121
  lt_cv_prog_gnu_ld=no
4122
  ;;
4123
esac
4124
fi
4125
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4126
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4127
with_gnu_ld=$lt_cv_prog_gnu_ld
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4138
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4139
if test "${lt_cv_path_NM+set}" = set; then
4140
  $as_echo_n "(cached) " >&6
4141
else
4142
  if test -n "$NM"; then
4143
  # Let the user override the test.
4144
  lt_cv_path_NM="$NM"
4145
else
4146
  lt_nm_to_check="${ac_tool_prefix}nm"
4147
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4148
    lt_nm_to_check="$lt_nm_to_check nm"
4149
  fi
4150
  for lt_tmp_nm in $lt_nm_to_check; do
4151
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4153
      IFS="$lt_save_ifs"
4154
      test -z "$ac_dir" && ac_dir=.
4155
      tmp_nm="$ac_dir/$lt_tmp_nm"
4156
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4157
	# Check to see if the nm accepts a BSD-compat flag.
4158
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4159
	#   nm: unknown option "B" ignored
4160
	# Tru64's nm complains that /dev/null is an invalid object file
4161
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4162
	*/dev/null* | *'Invalid file or object type'*)
4163
	  lt_cv_path_NM="$tmp_nm -B"
4164
	  break
4165
	  ;;
4166
	*)
4167
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4168
	  */dev/null*)
4169
	    lt_cv_path_NM="$tmp_nm -p"
4170
	    break
4171
	    ;;
4172
	  *)
4173
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4174
	    continue # so that we can try to find one that supports BSD flags
4175
	    ;;
4176
	  esac
4177
	  ;;
4178
	esac
4179
      fi
4180
    done
4181
    IFS="$lt_save_ifs"
4182
  done
4183
  : ${lt_cv_path_NM=no}
4184
fi
4185
fi
4186
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4187
$as_echo "$lt_cv_path_NM" >&6; }
4188
if test "$lt_cv_path_NM" != "no"; then
4189
  NM="$lt_cv_path_NM"
4190
else
4191
  # Didn't find any BSD compatible name lister, look for dumpbin.
4192
  if test -n "$ac_tool_prefix"; then
4193
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4194
  do
4195
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4198
$as_echo_n "checking for $ac_word... " >&6; }
4199
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4200
  $as_echo_n "(cached) " >&6
4201
else
4202
  if test -n "$DUMPBIN"; then
4203
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4204
else
4205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206
for as_dir in $PATH
4207
do
4208
  IFS=$as_save_IFS
4209
  test -z "$as_dir" && as_dir=.
4210
  for ac_exec_ext in '' $ac_executable_extensions; do
4211
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4213
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214
    break 2
4215
  fi
4216
done
4217
done
4218
IFS=$as_save_IFS
4219
4220
fi
4221
fi
4222
DUMPBIN=$ac_cv_prog_DUMPBIN
4223
if test -n "$DUMPBIN"; then
4224
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4225
$as_echo "$DUMPBIN" >&6; }
4226
else
4227
  { $as_echo "$as_me:$LINENO: result: no" >&5
4228
$as_echo "no" >&6; }
4229
fi
4230
4231
4232
    test -n "$DUMPBIN" && break
4233
  done
4234
fi
4235
if test -z "$DUMPBIN"; then
4236
  ac_ct_DUMPBIN=$DUMPBIN
4237
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4238
do
4239
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4240
set dummy $ac_prog; ac_word=$2
4241
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4242
$as_echo_n "checking for $ac_word... " >&6; }
4243
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4244
  $as_echo_n "(cached) " >&6
4245
else
4246
  if test -n "$ac_ct_DUMPBIN"; then
4247
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4248
else
4249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250
for as_dir in $PATH
4251
do
4252
  IFS=$as_save_IFS
4253
  test -z "$as_dir" && as_dir=.
4254
  for ac_exec_ext in '' $ac_executable_extensions; do
4255
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4257
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258
    break 2
4259
  fi
4260
done
4261
done
4262
IFS=$as_save_IFS
4263
4264
fi
4265
fi
4266
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4267
if test -n "$ac_ct_DUMPBIN"; then
4268
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4269
$as_echo "$ac_ct_DUMPBIN" >&6; }
4270
else
4271
  { $as_echo "$as_me:$LINENO: result: no" >&5
4272
$as_echo "no" >&6; }
4273
fi
4274
4275
4276
  test -n "$ac_ct_DUMPBIN" && break
4277
done
4278
4279
  if test "x$ac_ct_DUMPBIN" = x; then
4280
    DUMPBIN=":"
4281
  else
4282
    case $cross_compiling:$ac_tool_warned in
4283
yes:)
4284
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4285
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286
ac_tool_warned=yes ;;
4287
esac
4288
    DUMPBIN=$ac_ct_DUMPBIN
4289
  fi
4290
fi
4291
4292
4293
  if test "$DUMPBIN" != ":"; then
4294
    NM="$DUMPBIN"
4295
  fi
4296
fi
4297
test -z "$NM" && NM=nm
4298
4299
4300
4301
4302
4303
4304
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4305
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4306
if test "${lt_cv_nm_interface+set}" = set; then
4307
  $as_echo_n "(cached) " >&6
4308
else
4309
  lt_cv_nm_interface="BSD nm"
4310
  echo "int some_variable = 0;" > conftest.$ac_ext
4311
  (eval echo "\"\$as_me:4311: $ac_compile\"" >&5)
4312
  (eval "$ac_compile" 2>conftest.err)
4313
  cat conftest.err >&5
4314
  (eval echo "\"\$as_me:4314: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4315
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4316
  cat conftest.err >&5
4317
  (eval echo "\"\$as_me:4317: output\"" >&5)
4318
  cat conftest.out >&5
4319
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4320
    lt_cv_nm_interface="MS dumpbin"
4321
  fi
4322
  rm -f conftest*
4323
fi
4324
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4325
$as_echo "$lt_cv_nm_interface" >&6; }
4326
4327
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4328
$as_echo_n "checking whether ln -s works... " >&6; }
4329
LN_S=$as_ln_s
4330
if test "$LN_S" = "ln -s"; then
4331
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4332
$as_echo "yes" >&6; }
4333
else
4334
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4335
$as_echo "no, using $LN_S" >&6; }
4336
fi
4337
4338
# find the maximum length of command line arguments
4339
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4340
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4341
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4342
  $as_echo_n "(cached) " >&6
4343
else
4344
    i=0
4345
  teststring="ABCD"
4346
4347
  case $build_os in
4348
  msdosdjgpp*)
4349
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4350
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4351
    # during glob expansion).  Even if it were fixed, the result of this
4352
    # check would be larger than it should be.
4353
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4354
    ;;
4355
4356
  gnu*)
4357
    # Under GNU Hurd, this test is not required because there is
4358
    # no limit to the length of command line arguments.
4359
    # Libtool will interpret -1 as no limit whatsoever
4360
    lt_cv_sys_max_cmd_len=-1;
4361
    ;;
4362
4363
  cygwin* | mingw* | cegcc*)
4364
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4365
    # about 5 minutes as the teststring grows exponentially.
4366
    # Worse, since 9x/ME are not pre-emptively multitasking,
4367
    # you end up with a "frozen" computer, even though with patience
4368
    # the test eventually succeeds (with a max line length of 256k).
4369
    # Instead, let's just punt: use the minimum linelength reported by
4370
    # all of the supported platforms: 8192 (on NT/2K/XP).
4371
    lt_cv_sys_max_cmd_len=8192;
4372
    ;;
4373
4374
  amigaos*)
4375
    # On AmigaOS with pdksh, this test takes hours, literally.
4376
    # So we just punt and use a minimum line length of 8192.
4377
    lt_cv_sys_max_cmd_len=8192;
4378
    ;;
4379
4380
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4381
    # This has been around since 386BSD, at least.  Likely further.
4382
    if test -x /sbin/sysctl; then
4383
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4384
    elif test -x /usr/sbin/sysctl; then
4385
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4386
    else
4387
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4388
    fi
4389
    # And add a safety zone
4390
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4391
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4392
    ;;
4393
4394
  interix*)
4395
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4396
    lt_cv_sys_max_cmd_len=196608
4397
    ;;
4398
4399
  osf*)
4400
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4401
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4402
    # nice to cause kernel panics so lets avoid the loop below.
4403
    # First set a reasonable default.
4404
    lt_cv_sys_max_cmd_len=16384
4405
    #
4406
    if test -x /sbin/sysconfig; then
4407
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4408
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4409
      esac
4410
    fi
4411
    ;;
4412
  sco3.2v5*)
4413
    lt_cv_sys_max_cmd_len=102400
4414
    ;;
4415
  sysv5* | sco5v6* | sysv4.2uw2*)
4416
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4417
    if test -n "$kargmax"; then
4418
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4419
    else
4420
      lt_cv_sys_max_cmd_len=32768
4421
    fi
4422
    ;;
4423
  *)
4424
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4425
    if test -n "$lt_cv_sys_max_cmd_len"; then
4426
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4427
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4428
    else
4429
      # Make teststring a little bigger before we do anything with it.
4430
      # a 1K string should be a reasonable start.
4431
      for i in 1 2 3 4 5 6 7 8 ; do
4432
        teststring=$teststring$teststring
4433
      done
4434
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4435
      # If test is not a shell built-in, we'll probably end up computing a
4436
      # maximum length that is only half of the actual maximum length, but
4437
      # we can't tell.
4438
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4439
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4440
	      test $i != 17 # 1/2 MB should be enough
4441
      do
4442
        i=`expr $i + 1`
4443
        teststring=$teststring$teststring
4444
      done
4445
      # Only check the string length outside the loop.
4446
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4447
      teststring=
4448
      # Add a significant safety factor because C++ compilers can tack on
4449
      # massive amounts of additional arguments before passing them to the
4450
      # linker.  It appears as though 1/2 is a usable value.
4451
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4452
    fi
4453
    ;;
4454
  esac
4455
4456
fi
4457
4458
if test -n $lt_cv_sys_max_cmd_len ; then
4459
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4460
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4461
else
4462
  { $as_echo "$as_me:$LINENO: result: none" >&5
4463
$as_echo "none" >&6; }
4464
fi
4465
max_cmd_len=$lt_cv_sys_max_cmd_len
4466
4467
4468
4469
4470
4471
4472
: ${CP="cp -f"}
4473
: ${MV="mv -f"}
4474
: ${RM="rm -f"}
4475
4476
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4477
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4478
# Try some XSI features
4479
xsi_shell=no
4480
( _lt_dummy="a/b/c"
4481
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4482
      = c,a/b,, \
4483
    && eval 'test $(( 1 + 1 )) -eq 2 \
4484
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4485
  && xsi_shell=yes
4486
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4487
$as_echo "$xsi_shell" >&6; }
4488
4489
4490
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4491
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4492
lt_shell_append=no
4493
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4494
    >/dev/null 2>&1 \
4495
  && lt_shell_append=yes
4496
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4497
$as_echo "$lt_shell_append" >&6; }
4498
4499
4500
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4501
  lt_unset=unset
4502
else
4503
  lt_unset=false
4504
fi
4505
4506
4507
4508
4509
4510
# test EBCDIC or ASCII
4511
case `echo X|tr X '\101'` in
4512
 A) # ASCII based system
4513
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4514
  lt_SP2NL='tr \040 \012'
4515
  lt_NL2SP='tr \015\012 \040\040'
4516
  ;;
4517
 *) # EBCDIC based system
4518
  lt_SP2NL='tr \100 \n'
4519
  lt_NL2SP='tr \r\n \100\100'
4520
  ;;
4521
esac
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4532
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4533
if test "${lt_cv_ld_reload_flag+set}" = set; then
4534
  $as_echo_n "(cached) " >&6
4535
else
4536
  lt_cv_ld_reload_flag='-r'
4537
fi
4538
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4539
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4540
reload_flag=$lt_cv_ld_reload_flag
4541
case $reload_flag in
4542
"" | " "*) ;;
4543
*) reload_flag=" $reload_flag" ;;
4544
esac
4545
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4546
case $host_os in
4547
  darwin*)
4548
    if test "$GCC" = yes; then
4549
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4550
    else
4551
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4552
    fi
4553
    ;;
4554
esac
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
if test -n "$ac_tool_prefix"; then
4565
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4566
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4567
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4568
$as_echo_n "checking for $ac_word... " >&6; }
4569
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4570
  $as_echo_n "(cached) " >&6
4571
else
4572
  if test -n "$OBJDUMP"; then
4573
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4574
else
4575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576
for as_dir in $PATH
4577
do
4578
  IFS=$as_save_IFS
4579
  test -z "$as_dir" && as_dir=.
4580
  for ac_exec_ext in '' $ac_executable_extensions; do
4581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4583
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584
    break 2
4585
  fi
4586
done
4587
done
4588
IFS=$as_save_IFS
4589
4590
fi
4591
fi
4592
OBJDUMP=$ac_cv_prog_OBJDUMP
4593
if test -n "$OBJDUMP"; then
4594
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4595
$as_echo "$OBJDUMP" >&6; }
4596
else
4597
  { $as_echo "$as_me:$LINENO: result: no" >&5
4598
$as_echo "no" >&6; }
4599
fi
4600
4601
4602
fi
4603
if test -z "$ac_cv_prog_OBJDUMP"; then
4604
  ac_ct_OBJDUMP=$OBJDUMP
4605
  # Extract the first word of "objdump", so it can be a program name with args.
4606
set dummy objdump; ac_word=$2
4607
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4608
$as_echo_n "checking for $ac_word... " >&6; }
4609
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4610
  $as_echo_n "(cached) " >&6
4611
else
4612
  if test -n "$ac_ct_OBJDUMP"; then
4613
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4614
else
4615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616
for as_dir in $PATH
4617
do
4618
  IFS=$as_save_IFS
4619
  test -z "$as_dir" && as_dir=.
4620
  for ac_exec_ext in '' $ac_executable_extensions; do
4621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4623
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624
    break 2
4625
  fi
4626
done
4627
done
4628
IFS=$as_save_IFS
4629
4630
fi
4631
fi
4632
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4633
if test -n "$ac_ct_OBJDUMP"; then
4634
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4635
$as_echo "$ac_ct_OBJDUMP" >&6; }
4636
else
4637
  { $as_echo "$as_me:$LINENO: result: no" >&5
4638
$as_echo "no" >&6; }
4639
fi
4640
4641
  if test "x$ac_ct_OBJDUMP" = x; then
4642
    OBJDUMP="false"
4643
  else
4644
    case $cross_compiling:$ac_tool_warned in
4645
yes:)
4646
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4647
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648
ac_tool_warned=yes ;;
4649
esac
4650
    OBJDUMP=$ac_ct_OBJDUMP
4651
  fi
4652
else
4653
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4654
fi
4655
4656
test -z "$OBJDUMP" && OBJDUMP=objdump
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4667
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4668
if test "${lt_cv_deplibs_check_method+set}" = set; then
4669
  $as_echo_n "(cached) " >&6
4670
else
4671
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4672
lt_cv_file_magic_test_file=
4673
lt_cv_deplibs_check_method='unknown'
4674
# Need to set the preceding variable on all platforms that support
4675
# interlibrary dependencies.
4676
# 'none' -- dependencies not supported.
4677
# `unknown' -- same as none, but documents that we really don't know.
4678
# 'pass_all' -- all dependencies passed with no checks.
4679
# 'test_compile' -- check by making test program.
4680
# 'file_magic [[regex]]' -- check by looking for files in library path
4681
# which responds to the $file_magic_cmd with a given extended regex.
4682
# If you have `file' or equivalent on your system and you're not sure
4683
# whether `pass_all' will *always* work, you probably want this one.
4684
4685
case $host_os in
4686
aix[4-9]*)
4687
  lt_cv_deplibs_check_method=pass_all
4688
  ;;
4689
4690
beos*)
4691
  lt_cv_deplibs_check_method=pass_all
4692
  ;;
4693
4694
bsdi[45]*)
4695
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4696
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4697
  lt_cv_file_magic_test_file=/shlib/libc.so
4698
  ;;
4699
4700
cygwin*)
4701
  # func_win32_libid is a shell function defined in ltmain.sh
4702
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4703
  lt_cv_file_magic_cmd='func_win32_libid'
4704
  ;;
4705
4706
mingw* | pw32*)
4707
  # Base MSYS/MinGW do not provide the 'file' command needed by
4708
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4709
  # unless we find 'file', for example because we are cross-compiling.
4710
  if ( file / ) >/dev/null 2>&1; then
4711
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4712
    lt_cv_file_magic_cmd='func_win32_libid'
4713
  else
4714
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4715
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4716
  fi
4717
  ;;
4718
4719
cegcc)
4720
  # use the weaker test based on 'objdump'. See mingw*.
4721
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4722
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4723
  ;;
4724
4725
darwin* | rhapsody*)
4726
  lt_cv_deplibs_check_method=pass_all
4727
  ;;
4728
4729
freebsd* | dragonfly*)
4730
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4731
    case $host_cpu in
4732
    i*86 )
4733
      # Not sure whether the presence of OpenBSD here was a mistake.
4734
      # Let's accept both of them until this is cleared up.
4735
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4736
      lt_cv_file_magic_cmd=/usr/bin/file
4737
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4738
      ;;
4739
    esac
4740
  else
4741
    lt_cv_deplibs_check_method=pass_all
4742
  fi
4743
  ;;
4744
4745
gnu*)
4746
  lt_cv_deplibs_check_method=pass_all
4747
  ;;
4748
4749
hpux10.20* | hpux11*)
4750
  lt_cv_file_magic_cmd=/usr/bin/file
4751
  case $host_cpu in
4752
  ia64*)
4753
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4754
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4755
    ;;
4756
  hppa*64*)
4757
    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]'
4758
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4759
    ;;
4760
  *)
4761
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4762
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4763
    ;;
4764
  esac
4765
  ;;
4766
4767
interix[3-9]*)
4768
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4769
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4770
  ;;
4771
4772
irix5* | irix6* | nonstopux*)
4773
  case $LD in
4774
  *-32|*"-32 ") libmagic=32-bit;;
4775
  *-n32|*"-n32 ") libmagic=N32;;
4776
  *-64|*"-64 ") libmagic=64-bit;;
4777
  *) libmagic=never-match;;
4778
  esac
4779
  lt_cv_deplibs_check_method=pass_all
4780
  ;;
4781
4782
# This must be Linux ELF.
4783
linux* | k*bsd*-gnu)
4784
  lt_cv_deplibs_check_method=pass_all
4785
  ;;
4786
4787
netbsd* | netbsdelf*-gnu)
4788
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4789
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4790
  else
4791
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4792
  fi
4793
  ;;
4794
4795
newos6*)
4796
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4797
  lt_cv_file_magic_cmd=/usr/bin/file
4798
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4799
  ;;
4800
4801
*nto* | *qnx*)
4802
  lt_cv_deplibs_check_method=pass_all
4803
  ;;
4804
4805
openbsd*)
4806
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4807
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4808
  else
4809
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4810
  fi
4811
  ;;
4812
4813
osf3* | osf4* | osf5*)
4814
  lt_cv_deplibs_check_method=pass_all
4815
  ;;
4816
4817
rdos*)
4818
  lt_cv_deplibs_check_method=pass_all
4819
  ;;
4820
4821
solaris*)
4822
  lt_cv_deplibs_check_method=pass_all
4823
  ;;
4824
4825
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4826
  lt_cv_deplibs_check_method=pass_all
4827
  ;;
4828
4829
sysv4 | sysv4.3*)
4830
  case $host_vendor in
4831
  motorola)
4832
    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]'
4833
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4834
    ;;
4835
  ncr)
4836
    lt_cv_deplibs_check_method=pass_all
4837
    ;;
4838
  sequent)
4839
    lt_cv_file_magic_cmd='/bin/file'
4840
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4841
    ;;
4842
  sni)
4843
    lt_cv_file_magic_cmd='/bin/file'
4844
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4845
    lt_cv_file_magic_test_file=/lib/libc.so
4846
    ;;
4847
  siemens)
4848
    lt_cv_deplibs_check_method=pass_all
4849
    ;;
4850
  pc)
4851
    lt_cv_deplibs_check_method=pass_all
4852
    ;;
4853
  esac
4854
  ;;
4855
4856
tpf*)
4857
  lt_cv_deplibs_check_method=pass_all
4858
  ;;
4859
esac
4860
4861
fi
4862
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4863
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4864
file_magic_cmd=$lt_cv_file_magic_cmd
4865
deplibs_check_method=$lt_cv_deplibs_check_method
4866
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
if test -n "$ac_tool_prefix"; then
4880
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4881
set dummy ${ac_tool_prefix}ar; ac_word=$2
4882
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4883
$as_echo_n "checking for $ac_word... " >&6; }
4884
if test "${ac_cv_prog_AR+set}" = set; then
4885
  $as_echo_n "(cached) " >&6
4886
else
4887
  if test -n "$AR"; then
4888
  ac_cv_prog_AR="$AR" # Let the user override the test.
4889
else
4890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891
for as_dir in $PATH
4892
do
4893
  IFS=$as_save_IFS
4894
  test -z "$as_dir" && as_dir=.
4895
  for ac_exec_ext in '' $ac_executable_extensions; do
4896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4898
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899
    break 2
4900
  fi
4901
done
4902
done
4903
IFS=$as_save_IFS
4904
4905
fi
4906
fi
4907
AR=$ac_cv_prog_AR
4908
if test -n "$AR"; then
4909
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4910
$as_echo "$AR" >&6; }
4911
else
4912
  { $as_echo "$as_me:$LINENO: result: no" >&5
4913
$as_echo "no" >&6; }
4914
fi
4915
4916
4917
fi
4918
if test -z "$ac_cv_prog_AR"; then
4919
  ac_ct_AR=$AR
4920
  # Extract the first word of "ar", so it can be a program name with args.
4921
set dummy ar; ac_word=$2
4922
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4923
$as_echo_n "checking for $ac_word... " >&6; }
4924
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4925
  $as_echo_n "(cached) " >&6
4926
else
4927
  if test -n "$ac_ct_AR"; then
4928
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4929
else
4930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931
for as_dir in $PATH
4932
do
4933
  IFS=$as_save_IFS
4934
  test -z "$as_dir" && as_dir=.
4935
  for ac_exec_ext in '' $ac_executable_extensions; do
4936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937
    ac_cv_prog_ac_ct_AR="ar"
4938
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939
    break 2
4940
  fi
4941
done
4942
done
4943
IFS=$as_save_IFS
4944
4945
fi
4946
fi
4947
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4948
if test -n "$ac_ct_AR"; then
4949
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4950
$as_echo "$ac_ct_AR" >&6; }
4951
else
4952
  { $as_echo "$as_me:$LINENO: result: no" >&5
4953
$as_echo "no" >&6; }
4954
fi
4955
4956
  if test "x$ac_ct_AR" = x; then
4957
    AR="false"
4958
  else
4959
    case $cross_compiling:$ac_tool_warned in
4960
yes:)
4961
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4962
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4963
ac_tool_warned=yes ;;
4964
esac
4965
    AR=$ac_ct_AR
4966
  fi
4967
else
4968
  AR="$ac_cv_prog_AR"
4969
fi
4970
4971
test -z "$AR" && AR=ar
4972
test -z "$AR_FLAGS" && AR_FLAGS=cru
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
if test -n "$ac_tool_prefix"; then
4985
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4986
set dummy ${ac_tool_prefix}strip; ac_word=$2
4987
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4988
$as_echo_n "checking for $ac_word... " >&6; }
4989
if test "${ac_cv_prog_STRIP+set}" = set; then
4990
  $as_echo_n "(cached) " >&6
4991
else
4992
  if test -n "$STRIP"; then
4993
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4994
else
4995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996
for as_dir in $PATH
4997
do
4998
  IFS=$as_save_IFS
4999
  test -z "$as_dir" && as_dir=.
5000
  for ac_exec_ext in '' $ac_executable_extensions; do
5001
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5003
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004
    break 2
5005
  fi
5006
done
5007
done
5008
IFS=$as_save_IFS
5009
5010
fi
5011
fi
5012
STRIP=$ac_cv_prog_STRIP
5013
if test -n "$STRIP"; then
5014
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5015
$as_echo "$STRIP" >&6; }
5016
else
5017
  { $as_echo "$as_me:$LINENO: result: no" >&5
5018
$as_echo "no" >&6; }
5019
fi
5020
5021
5022
fi
5023
if test -z "$ac_cv_prog_STRIP"; then
5024
  ac_ct_STRIP=$STRIP
5025
  # Extract the first word of "strip", so it can be a program name with args.
5026
set dummy strip; ac_word=$2
5027
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5028
$as_echo_n "checking for $ac_word... " >&6; }
5029
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5030
  $as_echo_n "(cached) " >&6
5031
else
5032
  if test -n "$ac_ct_STRIP"; then
5033
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5034
else
5035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036
for as_dir in $PATH
5037
do
5038
  IFS=$as_save_IFS
5039
  test -z "$as_dir" && as_dir=.
5040
  for ac_exec_ext in '' $ac_executable_extensions; do
5041
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042
    ac_cv_prog_ac_ct_STRIP="strip"
5043
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044
    break 2
5045
  fi
5046
done
5047
done
5048
IFS=$as_save_IFS
5049
5050
fi
5051
fi
5052
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5053
if test -n "$ac_ct_STRIP"; then
5054
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5055
$as_echo "$ac_ct_STRIP" >&6; }
5056
else
5057
  { $as_echo "$as_me:$LINENO: result: no" >&5
5058
$as_echo "no" >&6; }
5059
fi
5060
5061
  if test "x$ac_ct_STRIP" = x; then
5062
    STRIP=":"
5063
  else
5064
    case $cross_compiling:$ac_tool_warned in
5065
yes:)
5066
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5067
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068
ac_tool_warned=yes ;;
5069
esac
5070
    STRIP=$ac_ct_STRIP
5071
  fi
5072
else
5073
  STRIP="$ac_cv_prog_STRIP"
5074
fi
5075
5076
test -z "$STRIP" && STRIP=:
5077
5078
5079
5080
5081
5082
5083
if test -n "$ac_tool_prefix"; then
5084
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5087
$as_echo_n "checking for $ac_word... " >&6; }
5088
if test "${ac_cv_prog_RANLIB+set}" = set; then
5089
  $as_echo_n "(cached) " >&6
5090
else
5091
  if test -n "$RANLIB"; then
5092
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093
else
5094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095
for as_dir in $PATH
5096
do
5097
  IFS=$as_save_IFS
5098
  test -z "$as_dir" && as_dir=.
5099
  for ac_exec_ext in '' $ac_executable_extensions; do
5100
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103
    break 2
5104
  fi
5105
done
5106
done
5107
IFS=$as_save_IFS
5108
5109
fi
5110
fi
5111
RANLIB=$ac_cv_prog_RANLIB
5112
if test -n "$RANLIB"; then
5113
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5114
$as_echo "$RANLIB" >&6; }
5115
else
5116
  { $as_echo "$as_me:$LINENO: result: no" >&5
5117
$as_echo "no" >&6; }
5118
fi
5119
5120
5121
fi
5122
if test -z "$ac_cv_prog_RANLIB"; then
5123
  ac_ct_RANLIB=$RANLIB
5124
  # Extract the first word of "ranlib", so it can be a program name with args.
5125
set dummy ranlib; ac_word=$2
5126
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5127
$as_echo_n "checking for $ac_word... " >&6; }
5128
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5129
  $as_echo_n "(cached) " >&6
5130
else
5131
  if test -n "$ac_ct_RANLIB"; then
5132
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133
else
5134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135
for as_dir in $PATH
5136
do
5137
  IFS=$as_save_IFS
5138
  test -z "$as_dir" && as_dir=.
5139
  for ac_exec_ext in '' $ac_executable_extensions; do
5140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5142
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143
    break 2
5144
  fi
5145
done
5146
done
5147
IFS=$as_save_IFS
5148
5149
fi
5150
fi
5151
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152
if test -n "$ac_ct_RANLIB"; then
5153
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5154
$as_echo "$ac_ct_RANLIB" >&6; }
5155
else
5156
  { $as_echo "$as_me:$LINENO: result: no" >&5
5157
$as_echo "no" >&6; }
5158
fi
5159
5160
  if test "x$ac_ct_RANLIB" = x; then
5161
    RANLIB=":"
5162
  else
5163
    case $cross_compiling:$ac_tool_warned in
5164
yes:)
5165
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5166
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167
ac_tool_warned=yes ;;
5168
esac
5169
    RANLIB=$ac_ct_RANLIB
5170
  fi
5171
else
5172
  RANLIB="$ac_cv_prog_RANLIB"
5173
fi
5174
5175
test -z "$RANLIB" && RANLIB=:
5176
5177
5178
5179
5180
5181
5182
# Determine commands to create old-style static archives.
5183
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5184
old_postinstall_cmds='chmod 644 $oldlib'
5185
old_postuninstall_cmds=
5186
5187
if test -n "$RANLIB"; then
5188
  case $host_os in
5189
  openbsd*)
5190
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5191
    ;;
5192
  *)
5193
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5194
    ;;
5195
  esac
5196
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5197
fi
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
# If no C compiler was specified, use CC.
5233
LTCC=${LTCC-"$CC"}
5234
5235
# If no C compiler flags were specified, use CFLAGS.
5236
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5237
5238
# Allow CC to be a program name with arguments.
5239
compiler=$CC
5240
5241
5242
# Check for command to grab the raw symbol name followed by C symbol from nm.
5243
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5244
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5245
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5246
  $as_echo_n "(cached) " >&6
5247
else
5248
5249
# These are sane defaults that work on at least a few old systems.
5250
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5251
5252
# Character class describing NM global symbol codes.
5253
symcode='[BCDEGRST]'
5254
5255
# Regexp to match symbols that can be accessed directly from C.
5256
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5257
5258
# Define system-specific variables.
5259
case $host_os in
5260
aix*)
5261
  symcode='[BCDT]'
5262
  ;;
5263
cygwin* | mingw* | pw32* | cegcc*)
5264
  symcode='[ABCDGISTW]'
5265
  ;;
5266
hpux*)
5267
  if test "$host_cpu" = ia64; then
5268
    symcode='[ABCDEGRST]'
5269
  fi
5270
  ;;
5271
irix* | nonstopux*)
5272
  symcode='[BCDEGRST]'
5273
  ;;
5274
osf*)
5275
  symcode='[BCDEGQRST]'
5276
  ;;
5277
solaris*)
5278
  symcode='[BDRT]'
5279
  ;;
5280
sco3.2v5*)
5281
  symcode='[DT]'
5282
  ;;
5283
sysv4.2uw2*)
5284
  symcode='[DT]'
5285
  ;;
5286
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5287
  symcode='[ABDT]'
5288
  ;;
5289
sysv4)
5290
  symcode='[DFNSTU]'
5291
  ;;
5292
esac
5293
5294
# If we're using GNU nm, then use its standard symbol codes.
5295
case `$NM -V 2>&1` in
5296
*GNU* | *'with BFD'*)
5297
  symcode='[ABCDGIRSTW]' ;;
5298
esac
5299
5300
# Transform an extracted symbol line into a proper C declaration.
5301
# Some systems (esp. on ia64) link data and code symbols differently,
5302
# so use this general approach.
5303
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5304
5305
# Transform an extracted symbol line into symbol name and symbol address
5306
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5307
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5308
5309
# Handle CRLF in mingw tool chain
5310
opt_cr=
5311
case $build_os in
5312
mingw*)
5313
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5314
  ;;
5315
esac
5316
5317
# Try without a prefix underscore, then with it.
5318
for ac_symprfx in "" "_"; do
5319
5320
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5321
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5322
5323
  # Write the raw and C identifiers.
5324
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5325
    # Fake it for dumpbin and say T for any non-static function
5326
    # and D for any global variable.
5327
    # Also find C++ and __fastcall symbols from MSVC++,
5328
    # which start with @ or ?.
5329
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5330
"     {last_section=section; section=\$ 3};"\
5331
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5332
"     \$ 0!~/External *\|/{next};"\
5333
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5334
"     {if(hide[section]) next};"\
5335
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5336
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5337
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5338
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5339
"     ' prfx=^$ac_symprfx"
5340
  else
5341
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5342
  fi
5343
5344
  # Check to see that the pipe works correctly.
5345
  pipe_works=no
5346
5347
  rm -f conftest*
5348
  cat > conftest.$ac_ext <<_LT_EOF
5349
#ifdef __cplusplus
5350
extern "C" {
5351
#endif
5352
char nm_test_var;
5353
void nm_test_func(void);
5354
void nm_test_func(void){}
5355
#ifdef __cplusplus
5356
}
5357
#endif
5358
int main(){nm_test_var='a';nm_test_func();return(0);}
5359
_LT_EOF
5360
5361
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362
  (eval $ac_compile) 2>&5
5363
  ac_status=$?
5364
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365
  (exit $ac_status); }; then
5366
    # Now try to grab the symbols.
5367
    nlist=conftest.nm
5368
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5369
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5370
  ac_status=$?
5371
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372
  (exit $ac_status); } && test -s "$nlist"; then
5373
      # Try sorting and uniquifying the output.
5374
      if sort "$nlist" | uniq > "$nlist"T; then
5375
	mv -f "$nlist"T "$nlist"
5376
      else
5377
	rm -f "$nlist"T
5378
      fi
5379
5380
      # Make sure that we snagged all the symbols we need.
5381
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5382
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5383
	  cat <<_LT_EOF > conftest.$ac_ext
5384
#ifdef __cplusplus
5385
extern "C" {
5386
#endif
5387
5388
_LT_EOF
5389
	  # Now generate the symbol file.
5390
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5391
5392
	  cat <<_LT_EOF >> conftest.$ac_ext
5393
5394
/* The mapping between symbol names and symbols.  */
5395
const struct {
5396
  const char *name;
5397
  void       *address;
5398
}
5399
lt__PROGRAM__LTX_preloaded_symbols[] =
5400
{
5401
  { "@PROGRAM@", (void *) 0 },
5402
_LT_EOF
5403
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5404
	  cat <<\_LT_EOF >> conftest.$ac_ext
5405
  {0, (void *) 0}
5406
};
5407
5408
/* This works around a problem in FreeBSD linker */
5409
#ifdef FREEBSD_WORKAROUND
5410
static const void *lt_preloaded_setup() {
5411
  return lt__PROGRAM__LTX_preloaded_symbols;
5412
}
5413
#endif
5414
5415
#ifdef __cplusplus
5416
}
5417
#endif
5418
_LT_EOF
5419
	  # Now try linking the two files.
5420
	  mv conftest.$ac_objext conftstm.$ac_objext
5421
	  lt_save_LIBS="$LIBS"
5422
	  lt_save_CFLAGS="$CFLAGS"
5423
	  LIBS="conftstm.$ac_objext"
5424
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5425
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426
  (eval $ac_link) 2>&5
5427
  ac_status=$?
5428
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5430
	    pipe_works=yes
5431
	  fi
5432
	  LIBS="$lt_save_LIBS"
5433
	  CFLAGS="$lt_save_CFLAGS"
5434
	else
5435
	  echo "cannot find nm_test_func in $nlist" >&5
5436
	fi
5437
      else
5438
	echo "cannot find nm_test_var in $nlist" >&5
5439
      fi
5440
    else
5441
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5442
    fi
5443
  else
5444
    echo "$progname: failed program was:" >&5
5445
    cat conftest.$ac_ext >&5
5446
  fi
5447
  rm -rf conftest* conftst*
5448
5449
  # Do not use the global_symbol_pipe unless it works.
5450
  if test "$pipe_works" = yes; then
5451
    break
5452
  else
5453
    lt_cv_sys_global_symbol_pipe=
5454
  fi
5455
done
5456
5457
fi
5458
5459
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5460
  lt_cv_sys_global_symbol_to_cdecl=
5461
fi
5462
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5463
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5464
$as_echo "failed" >&6; }
5465
else
5466
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5467
$as_echo "ok" >&6; }
5468
fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
# Check whether --enable-libtool-lock was given.
5493
if test "${enable_libtool_lock+set}" = set; then
5494
  enableval=$enable_libtool_lock;
5495
fi
5496
5497
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5498
5499
# Some flags need to be propagated to the compiler or linker for good
5500
# libtool support.
5501
case $host in
5502
ia64-*-hpux*)
5503
  # Find out which ABI we are using.
5504
  echo 'int i;' > conftest.$ac_ext
5505
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506
  (eval $ac_compile) 2>&5
5507
  ac_status=$?
5508
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509
  (exit $ac_status); }; then
5510
    case `/usr/bin/file conftest.$ac_objext` in
5511
      *ELF-32*)
5512
	HPUX_IA64_MODE="32"
5513
	;;
5514
      *ELF-64*)
5515
	HPUX_IA64_MODE="64"
5516
	;;
5517
    esac
5518
  fi
5519
  rm -rf conftest*
5520
  ;;
5521
*-*-irix6*)
5522
  # Find out which ABI we are using.
5523
  echo '#line 5523 "configure"' > conftest.$ac_ext
5524
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525
  (eval $ac_compile) 2>&5
5526
  ac_status=$?
5527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528
  (exit $ac_status); }; then
5529
    if test "$lt_cv_prog_gnu_ld" = yes; then
5530
      case `/usr/bin/file conftest.$ac_objext` in
5531
	*32-bit*)
5532
	  LD="${LD-ld} -melf32bsmip"
5533
	  ;;
5534
	*N32*)
5535
	  LD="${LD-ld} -melf32bmipn32"
5536
	  ;;
5537
	*64-bit*)
5538
	  LD="${LD-ld} -melf64bmip"
5539
	;;
5540
      esac
5541
    else
5542
      case `/usr/bin/file conftest.$ac_objext` in
5543
	*32-bit*)
5544
	  LD="${LD-ld} -32"
5545
	  ;;
5546
	*N32*)
5547
	  LD="${LD-ld} -n32"
5548
	  ;;
5549
	*64-bit*)
5550
	  LD="${LD-ld} -64"
5551
	  ;;
5552
      esac
5553
    fi
5554
  fi
5555
  rm -rf conftest*
5556
  ;;
5557
5558
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5559
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5560
  # Find out which ABI we are using.
5561
  echo 'int i;' > conftest.$ac_ext
5562
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563
  (eval $ac_compile) 2>&5
5564
  ac_status=$?
5565
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566
  (exit $ac_status); }; then
5567
    case `/usr/bin/file conftest.o` in
5568
      *32-bit*)
5569
	case $host in
5570
	  x86_64-*kfreebsd*-gnu)
5571
	    LD="${LD-ld} -m elf_i386_fbsd"
5572
	    ;;
5573
	  x86_64-*linux*)
5574
	    LD="${LD-ld} -m elf_i386"
5575
	    ;;
5576
	  ppc64-*linux*|powerpc64-*linux*)
5577
	    LD="${LD-ld} -m elf32ppclinux"
5578
	    ;;
5579
	  s390x-*linux*)
5580
	    LD="${LD-ld} -m elf_s390"
5581
	    ;;
5582
	  sparc64-*linux*)
5583
	    LD="${LD-ld} -m elf32_sparc"
5584
	    ;;
5585
	esac
5586
	;;
5587
      *64-bit*)
5588
	case $host in
5589
	  x86_64-*kfreebsd*-gnu)
5590
	    LD="${LD-ld} -m elf_x86_64_fbsd"
5591
	    ;;
5592
	  x86_64-*linux*)
5593
	    LD="${LD-ld} -m elf_x86_64"
5594
	    ;;
5595
	  ppc*-*linux*|powerpc*-*linux*)
5596
	    LD="${LD-ld} -m elf64ppc"
5597
	    ;;
5598
	  s390*-*linux*|s390*-*tpf*)
5599
	    LD="${LD-ld} -m elf64_s390"
5600
	    ;;
5601
	  sparc*-*linux*)
5602
	    LD="${LD-ld} -m elf64_sparc"
5603
	    ;;
5604
	esac
5605
	;;
5606
    esac
5607
  fi
5608
  rm -rf conftest*
5609
  ;;
5610
5611
*-*-sco3.2v5*)
5612
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5613
  SAVE_CFLAGS="$CFLAGS"
5614
  CFLAGS="$CFLAGS -belf"
5615
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5616
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5617
if test "${lt_cv_cc_needs_belf+set}" = set; then
5618
  $as_echo_n "(cached) " >&6
5619
else
5620
  ac_ext=c
5621
ac_cpp='$CPP $CPPFLAGS'
5622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5625
5626
     cat >conftest.$ac_ext <<_ACEOF
5627
/* confdefs.h.  */
5628
_ACEOF
5629
cat confdefs.h >>conftest.$ac_ext
5630
cat >>conftest.$ac_ext <<_ACEOF
5631
/* end confdefs.h.  */
5632
5633
int
5634
main ()
5635
{
5636
5637
  ;
5638
  return 0;
5639
}
5640
_ACEOF
5641
rm -f conftest.$ac_objext conftest$ac_exeext
5642
if { (ac_try="$ac_link"
5643
case "(($ac_try" in
5644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645
  *) ac_try_echo=$ac_try;;
5646
esac
5647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5648
$as_echo "$ac_try_echo") >&5
5649
  (eval "$ac_link") 2>conftest.er1
5650
  ac_status=$?
5651
  grep -v '^ *+' conftest.er1 >conftest.err
5652
  rm -f conftest.er1
5653
  cat conftest.err >&5
5654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655
  (exit $ac_status); } && {
5656
	 test -z "$ac_c_werror_flag" ||
5657
	 test ! -s conftest.err
5658
       } && test -s conftest$ac_exeext && {
5659
	 test "$cross_compiling" = yes ||
5660
	 $as_test_x conftest$ac_exeext
5661
       }; then
5662
  lt_cv_cc_needs_belf=yes
5663
else
5664
  $as_echo "$as_me: failed program was:" >&5
5665
sed 's/^/| /' conftest.$ac_ext >&5
5666
5667
	lt_cv_cc_needs_belf=no
5668
fi
5669
5670
rm -rf conftest.dSYM
5671
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5672
      conftest$ac_exeext conftest.$ac_ext
5673
     ac_ext=c
5674
ac_cpp='$CPP $CPPFLAGS'
5675
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678
5679
fi
5680
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5681
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5682
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5683
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5684
    CFLAGS="$SAVE_CFLAGS"
5685
  fi
5686
  ;;
5687
sparc*-*solaris*)
5688
  # Find out which ABI we are using.
5689
  echo 'int i;' > conftest.$ac_ext
5690
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691
  (eval $ac_compile) 2>&5
5692
  ac_status=$?
5693
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694
  (exit $ac_status); }; then
5695
    case `/usr/bin/file conftest.o` in
5696
    *64-bit*)
5697
      case $lt_cv_prog_gnu_ld in
5698
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5699
      *)
5700
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5701
	  LD="${LD-ld} -64"
5702
	fi
5703
	;;
5704
      esac
5705
      ;;
5706
    esac
5707
  fi
5708
  rm -rf conftest*
5709
  ;;
5710
esac
5711
5712
need_locks="$enable_libtool_lock"
5713
5714
5715
  case $host_os in
5716
    rhapsody* | darwin*)
5717
    if test -n "$ac_tool_prefix"; then
5718
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5719
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5720
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5721
$as_echo_n "checking for $ac_word... " >&6; }
5722
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5723
  $as_echo_n "(cached) " >&6
5724
else
5725
  if test -n "$DSYMUTIL"; then
5726
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5727
else
5728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729
for as_dir in $PATH
5730
do
5731
  IFS=$as_save_IFS
5732
  test -z "$as_dir" && as_dir=.
5733
  for ac_exec_ext in '' $ac_executable_extensions; do
5734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5736
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737
    break 2
5738
  fi
5739
done
5740
done
5741
IFS=$as_save_IFS
5742
5743
fi
5744
fi
5745
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5746
if test -n "$DSYMUTIL"; then
5747
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5748
$as_echo "$DSYMUTIL" >&6; }
5749
else
5750
  { $as_echo "$as_me:$LINENO: result: no" >&5
5751
$as_echo "no" >&6; }
5752
fi
5753
5754
5755
fi
5756
if test -z "$ac_cv_prog_DSYMUTIL"; then
5757
  ac_ct_DSYMUTIL=$DSYMUTIL
5758
  # Extract the first word of "dsymutil", so it can be a program name with args.
5759
set dummy dsymutil; ac_word=$2
5760
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5761
$as_echo_n "checking for $ac_word... " >&6; }
5762
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5763
  $as_echo_n "(cached) " >&6
5764
else
5765
  if test -n "$ac_ct_DSYMUTIL"; then
5766
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5767
else
5768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769
for as_dir in $PATH
5770
do
5771
  IFS=$as_save_IFS
5772
  test -z "$as_dir" && as_dir=.
5773
  for ac_exec_ext in '' $ac_executable_extensions; do
5774
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5776
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777
    break 2
5778
  fi
5779
done
5780
done
5781
IFS=$as_save_IFS
5782
5783
fi
5784
fi
5785
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5786
if test -n "$ac_ct_DSYMUTIL"; then
5787
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5788
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5789
else
5790
  { $as_echo "$as_me:$LINENO: result: no" >&5
5791
$as_echo "no" >&6; }
5792
fi
5793
5794
  if test "x$ac_ct_DSYMUTIL" = x; then
5795
    DSYMUTIL=":"
5796
  else
5797
    case $cross_compiling:$ac_tool_warned in
5798
yes:)
5799
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5800
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801
ac_tool_warned=yes ;;
5802
esac
5803
    DSYMUTIL=$ac_ct_DSYMUTIL
5804
  fi
5805
else
5806
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5807
fi
5808
5809
    if test -n "$ac_tool_prefix"; then
5810
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5811
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5812
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5813
$as_echo_n "checking for $ac_word... " >&6; }
5814
if test "${ac_cv_prog_NMEDIT+set}" = set; then
5815
  $as_echo_n "(cached) " >&6
5816
else
5817
  if test -n "$NMEDIT"; then
5818
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5819
else
5820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821
for as_dir in $PATH
5822
do
5823
  IFS=$as_save_IFS
5824
  test -z "$as_dir" && as_dir=.
5825
  for ac_exec_ext in '' $ac_executable_extensions; do
5826
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5828
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829
    break 2
5830
  fi
5831
done
5832
done
5833
IFS=$as_save_IFS
5834
5835
fi
5836
fi
5837
NMEDIT=$ac_cv_prog_NMEDIT
5838
if test -n "$NMEDIT"; then
5839
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5840
$as_echo "$NMEDIT" >&6; }
5841
else
5842
  { $as_echo "$as_me:$LINENO: result: no" >&5
5843
$as_echo "no" >&6; }
5844
fi
5845
5846
5847
fi
5848
if test -z "$ac_cv_prog_NMEDIT"; then
5849
  ac_ct_NMEDIT=$NMEDIT
5850
  # Extract the first word of "nmedit", so it can be a program name with args.
5851
set dummy nmedit; ac_word=$2
5852
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5853
$as_echo_n "checking for $ac_word... " >&6; }
5854
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5855
  $as_echo_n "(cached) " >&6
5856
else
5857
  if test -n "$ac_ct_NMEDIT"; then
5858
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5859
else
5860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861
for as_dir in $PATH
5862
do
5863
  IFS=$as_save_IFS
5864
  test -z "$as_dir" && as_dir=.
5865
  for ac_exec_ext in '' $ac_executable_extensions; do
5866
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5868
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869
    break 2
5870
  fi
5871
done
5872
done
5873
IFS=$as_save_IFS
5874
5875
fi
5876
fi
5877
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5878
if test -n "$ac_ct_NMEDIT"; then
5879
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5880
$as_echo "$ac_ct_NMEDIT" >&6; }
5881
else
5882
  { $as_echo "$as_me:$LINENO: result: no" >&5
5883
$as_echo "no" >&6; }
5884
fi
5885
5886
  if test "x$ac_ct_NMEDIT" = x; then
5887
    NMEDIT=":"
5888
  else
5889
    case $cross_compiling:$ac_tool_warned in
5890
yes:)
5891
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5892
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893
ac_tool_warned=yes ;;
5894
esac
5895
    NMEDIT=$ac_ct_NMEDIT
5896
  fi
5897
else
5898
  NMEDIT="$ac_cv_prog_NMEDIT"
5899
fi
5900
5901
    if test -n "$ac_tool_prefix"; then
5902
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5903
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5904
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5905
$as_echo_n "checking for $ac_word... " >&6; }
5906
if test "${ac_cv_prog_LIPO+set}" = set; then
5907
  $as_echo_n "(cached) " >&6
5908
else
5909
  if test -n "$LIPO"; then
5910
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5911
else
5912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913
for as_dir in $PATH
5914
do
5915
  IFS=$as_save_IFS
5916
  test -z "$as_dir" && as_dir=.
5917
  for ac_exec_ext in '' $ac_executable_extensions; do
5918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5920
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921
    break 2
5922
  fi
5923
done
5924
done
5925
IFS=$as_save_IFS
5926
5927
fi
5928
fi
5929
LIPO=$ac_cv_prog_LIPO
5930
if test -n "$LIPO"; then
5931
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5932
$as_echo "$LIPO" >&6; }
5933
else
5934
  { $as_echo "$as_me:$LINENO: result: no" >&5
5935
$as_echo "no" >&6; }
5936
fi
5937
5938
5939
fi
5940
if test -z "$ac_cv_prog_LIPO"; then
5941
  ac_ct_LIPO=$LIPO
5942
  # Extract the first word of "lipo", so it can be a program name with args.
5943
set dummy lipo; ac_word=$2
5944
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5945
$as_echo_n "checking for $ac_word... " >&6; }
5946
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5947
  $as_echo_n "(cached) " >&6
5948
else
5949
  if test -n "$ac_ct_LIPO"; then
5950
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5951
else
5952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953
for as_dir in $PATH
5954
do
5955
  IFS=$as_save_IFS
5956
  test -z "$as_dir" && as_dir=.
5957
  for ac_exec_ext in '' $ac_executable_extensions; do
5958
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959
    ac_cv_prog_ac_ct_LIPO="lipo"
5960
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961
    break 2
5962
  fi
5963
done
5964
done
5965
IFS=$as_save_IFS
5966
5967
fi
5968
fi
5969
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5970
if test -n "$ac_ct_LIPO"; then
5971
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5972
$as_echo "$ac_ct_LIPO" >&6; }
5973
else
5974
  { $as_echo "$as_me:$LINENO: result: no" >&5
5975
$as_echo "no" >&6; }
5976
fi
5977
5978
  if test "x$ac_ct_LIPO" = x; then
5979
    LIPO=":"
5980
  else
5981
    case $cross_compiling:$ac_tool_warned in
5982
yes:)
5983
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5984
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985
ac_tool_warned=yes ;;
5986
esac
5987
    LIPO=$ac_ct_LIPO
5988
  fi
5989
else
5990
  LIPO="$ac_cv_prog_LIPO"
5991
fi
5992
5993
    if test -n "$ac_tool_prefix"; then
5994
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5995
set dummy ${ac_tool_prefix}otool; ac_word=$2
5996
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5997
$as_echo_n "checking for $ac_word... " >&6; }
5998
if test "${ac_cv_prog_OTOOL+set}" = set; then
5999
  $as_echo_n "(cached) " >&6
6000
else
6001
  if test -n "$OTOOL"; then
6002
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6003
else
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005
for as_dir in $PATH
6006
do
6007
  IFS=$as_save_IFS
6008
  test -z "$as_dir" && as_dir=.
6009
  for ac_exec_ext in '' $ac_executable_extensions; do
6010
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6012
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013
    break 2
6014
  fi
6015
done
6016
done
6017
IFS=$as_save_IFS
6018
6019
fi
6020
fi
6021
OTOOL=$ac_cv_prog_OTOOL
6022
if test -n "$OTOOL"; then
6023
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6024
$as_echo "$OTOOL" >&6; }
6025
else
6026
  { $as_echo "$as_me:$LINENO: result: no" >&5
6027
$as_echo "no" >&6; }
6028
fi
6029
6030
6031
fi
6032
if test -z "$ac_cv_prog_OTOOL"; then
6033
  ac_ct_OTOOL=$OTOOL
6034
  # Extract the first word of "otool", so it can be a program name with args.
6035
set dummy otool; ac_word=$2
6036
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6037
$as_echo_n "checking for $ac_word... " >&6; }
6038
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6039
  $as_echo_n "(cached) " >&6
6040
else
6041
  if test -n "$ac_ct_OTOOL"; then
6042
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6043
else
6044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045
for as_dir in $PATH
6046
do
6047
  IFS=$as_save_IFS
6048
  test -z "$as_dir" && as_dir=.
6049
  for ac_exec_ext in '' $ac_executable_extensions; do
6050
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051
    ac_cv_prog_ac_ct_OTOOL="otool"
6052
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053
    break 2
6054
  fi
6055
done
6056
done
6057
IFS=$as_save_IFS
6058
6059
fi
6060
fi
6061
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6062
if test -n "$ac_ct_OTOOL"; then
6063
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6064
$as_echo "$ac_ct_OTOOL" >&6; }
6065
else
6066
  { $as_echo "$as_me:$LINENO: result: no" >&5
6067
$as_echo "no" >&6; }
6068
fi
6069
6070
  if test "x$ac_ct_OTOOL" = x; then
6071
    OTOOL=":"
6072
  else
6073
    case $cross_compiling:$ac_tool_warned in
6074
yes:)
6075
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6076
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077
ac_tool_warned=yes ;;
6078
esac
6079
    OTOOL=$ac_ct_OTOOL
6080
  fi
6081
else
6082
  OTOOL="$ac_cv_prog_OTOOL"
6083
fi
6084
6085
    if test -n "$ac_tool_prefix"; then
6086
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6087
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6088
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6089
$as_echo_n "checking for $ac_word... " >&6; }
6090
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6091
  $as_echo_n "(cached) " >&6
6092
else
6093
  if test -n "$OTOOL64"; then
6094
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6095
else
6096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097
for as_dir in $PATH
6098
do
6099
  IFS=$as_save_IFS
6100
  test -z "$as_dir" && as_dir=.
6101
  for ac_exec_ext in '' $ac_executable_extensions; do
6102
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6104
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105
    break 2
6106
  fi
6107
done
6108
done
6109
IFS=$as_save_IFS
6110
6111
fi
6112
fi
6113
OTOOL64=$ac_cv_prog_OTOOL64
6114
if test -n "$OTOOL64"; then
6115
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6116
$as_echo "$OTOOL64" >&6; }
6117
else
6118
  { $as_echo "$as_me:$LINENO: result: no" >&5
6119
$as_echo "no" >&6; }
6120
fi
6121
6122
6123
fi
6124
if test -z "$ac_cv_prog_OTOOL64"; then
6125
  ac_ct_OTOOL64=$OTOOL64
6126
  # Extract the first word of "otool64", so it can be a program name with args.
6127
set dummy otool64; ac_word=$2
6128
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6129
$as_echo_n "checking for $ac_word... " >&6; }
6130
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6131
  $as_echo_n "(cached) " >&6
6132
else
6133
  if test -n "$ac_ct_OTOOL64"; then
6134
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6135
else
6136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137
for as_dir in $PATH
6138
do
6139
  IFS=$as_save_IFS
6140
  test -z "$as_dir" && as_dir=.
6141
  for ac_exec_ext in '' $ac_executable_extensions; do
6142
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6144
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145
    break 2
6146
  fi
6147
done
6148
done
6149
IFS=$as_save_IFS
6150
6151
fi
6152
fi
6153
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6154
if test -n "$ac_ct_OTOOL64"; then
6155
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6156
$as_echo "$ac_ct_OTOOL64" >&6; }
6157
else
6158
  { $as_echo "$as_me:$LINENO: result: no" >&5
6159
$as_echo "no" >&6; }
6160
fi
6161
6162
  if test "x$ac_ct_OTOOL64" = x; then
6163
    OTOOL64=":"
6164
  else
6165
    case $cross_compiling:$ac_tool_warned in
6166
yes:)
6167
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6168
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169
ac_tool_warned=yes ;;
6170
esac
6171
    OTOOL64=$ac_ct_OTOOL64
6172
  fi
6173
else
6174
  OTOOL64="$ac_cv_prog_OTOOL64"
6175
fi
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6204
$as_echo_n "checking for -single_module linker flag... " >&6; }
6205
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6206
  $as_echo_n "(cached) " >&6
6207
else
6208
  lt_cv_apple_cc_single_mod=no
6209
      if test -z "${LT_MULTI_MODULE}"; then
6210
	# By default we will add the -single_module flag. You can override
6211
	# by either setting the environment variable LT_MULTI_MODULE
6212
	# non-empty at configure time, or by adding -multi_module to the
6213
	# link flags.
6214
	rm -rf libconftest.dylib*
6215
	echo "int foo(void){return 1;}" > conftest.c
6216
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6217
-dynamiclib -Wl,-single_module conftest.c" >&5
6218
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6219
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6220
        _lt_result=$?
6221
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6222
	  lt_cv_apple_cc_single_mod=yes
6223
	else
6224
	  cat conftest.err >&5
6225
	fi
6226
	rm -rf libconftest.dylib*
6227
	rm -f conftest.*
6228
      fi
6229
fi
6230
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6231
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6232
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6233
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6234
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6235
  $as_echo_n "(cached) " >&6
6236
else
6237
  lt_cv_ld_exported_symbols_list=no
6238
      save_LDFLAGS=$LDFLAGS
6239
      echo "_main" > conftest.sym
6240
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6241
      cat >conftest.$ac_ext <<_ACEOF
6242
/* confdefs.h.  */
6243
_ACEOF
6244
cat confdefs.h >>conftest.$ac_ext
6245
cat >>conftest.$ac_ext <<_ACEOF
6246
/* end confdefs.h.  */
6247
6248
int
6249
main ()
6250
{
6251
6252
  ;
6253
  return 0;
6254
}
6255
_ACEOF
6256
rm -f conftest.$ac_objext conftest$ac_exeext
6257
if { (ac_try="$ac_link"
6258
case "(($ac_try" in
6259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260
  *) ac_try_echo=$ac_try;;
6261
esac
6262
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263
$as_echo "$ac_try_echo") >&5
6264
  (eval "$ac_link") 2>conftest.er1
6265
  ac_status=$?
6266
  grep -v '^ *+' conftest.er1 >conftest.err
6267
  rm -f conftest.er1
6268
  cat conftest.err >&5
6269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270
  (exit $ac_status); } && {
6271
	 test -z "$ac_c_werror_flag" ||
6272
	 test ! -s conftest.err
6273
       } && test -s conftest$ac_exeext && {
6274
	 test "$cross_compiling" = yes ||
6275
	 $as_test_x conftest$ac_exeext
6276
       }; then
6277
  lt_cv_ld_exported_symbols_list=yes
6278
else
6279
  $as_echo "$as_me: failed program was:" >&5
6280
sed 's/^/| /' conftest.$ac_ext >&5
6281
6282
	lt_cv_ld_exported_symbols_list=no
6283
fi
6284
6285
rm -rf conftest.dSYM
6286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6287
      conftest$ac_exeext conftest.$ac_ext
6288
	LDFLAGS="$save_LDFLAGS"
6289
6290
fi
6291
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6292
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6293
    case $host_os in
6294
    rhapsody* | darwin1.[012])
6295
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6296
    darwin1.*)
6297
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6298
    darwin*) # darwin 5.x on
6299
      # if running on 10.5 or later, the deployment target defaults
6300
      # to the OS version, if on x86, and 10.4, the deployment
6301
      # target defaults to 10.4. Don't you love it?
6302
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6303
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6304
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6305
	10.[012]*)
6306
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6307
	10.*)
6308
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6309
      esac
6310
    ;;
6311
  esac
6312
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6313
      _lt_dar_single_mod='$single_module'
6314
    fi
6315
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6316
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6317
    else
6318
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6319
    fi
6320
    if test "$DSYMUTIL" != ":"; then
6321
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6322
    else
6323
      _lt_dsymutil=
6324
    fi
6325
    ;;
6326
  esac
6327
6328
ac_ext=c
6329
ac_cpp='$CPP $CPPFLAGS'
6330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6334
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6335
# On Suns, sometimes $CPP names a directory.
6336
if test -n "$CPP" && test -d "$CPP"; then
6337
  CPP=
6338
fi
6339
if test -z "$CPP"; then
6340
  if test "${ac_cv_prog_CPP+set}" = set; then
6341
  $as_echo_n "(cached) " >&6
6342
else
6343
      # Double quotes because CPP needs to be expanded
6344
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6345
    do
6346
      ac_preproc_ok=false
6347
for ac_c_preproc_warn_flag in '' yes
6348
do
6349
  # Use a header file that comes with gcc, so configuring glibc
6350
  # with a fresh cross-compiler works.
6351
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352
  # <limits.h> exists even on freestanding compilers.
6353
  # On the NeXT, cc -E runs the code through the compiler's parser,
6354
  # not just through cpp. "Syntax error" is here to catch this case.
6355
  cat >conftest.$ac_ext <<_ACEOF
6356
/* confdefs.h.  */
6357
_ACEOF
6358
cat confdefs.h >>conftest.$ac_ext
6359
cat >>conftest.$ac_ext <<_ACEOF
6360
/* end confdefs.h.  */
6361
#ifdef __STDC__
6362
# include <limits.h>
6363
#else
6364
# include <assert.h>
6365
#endif
6366
		     Syntax error
6367
_ACEOF
6368
if { (ac_try="$ac_cpp conftest.$ac_ext"
6369
case "(($ac_try" in
6370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371
  *) ac_try_echo=$ac_try;;
6372
esac
6373
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6374
$as_echo "$ac_try_echo") >&5
6375
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6376
  ac_status=$?
6377
  grep -v '^ *+' conftest.er1 >conftest.err
6378
  rm -f conftest.er1
6379
  cat conftest.err >&5
6380
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
  (exit $ac_status); } >/dev/null && {
6382
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6383
	 test ! -s conftest.err
6384
       }; then
6385
  :
6386
else
6387
  $as_echo "$as_me: failed program was:" >&5
6388
sed 's/^/| /' conftest.$ac_ext >&5
6389
6390
  # Broken: fails on valid input.
6391
continue
6392
fi
6393
6394
rm -f conftest.err conftest.$ac_ext
6395
6396
  # OK, works on sane cases.  Now check whether nonexistent headers
6397
  # can be detected and how.
6398
  cat >conftest.$ac_ext <<_ACEOF
6399
/* confdefs.h.  */
6400
_ACEOF
6401
cat confdefs.h >>conftest.$ac_ext
6402
cat >>conftest.$ac_ext <<_ACEOF
6403
/* end confdefs.h.  */
6404
#include <ac_nonexistent.h>
6405
_ACEOF
6406
if { (ac_try="$ac_cpp conftest.$ac_ext"
6407
case "(($ac_try" in
6408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409
  *) ac_try_echo=$ac_try;;
6410
esac
6411
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412
$as_echo "$ac_try_echo") >&5
6413
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6414
  ac_status=$?
6415
  grep -v '^ *+' conftest.er1 >conftest.err
6416
  rm -f conftest.er1
6417
  cat conftest.err >&5
6418
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
  (exit $ac_status); } >/dev/null && {
6420
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6421
	 test ! -s conftest.err
6422
       }; then
6423
  # Broken: success on invalid input.
6424
continue
6425
else
6426
  $as_echo "$as_me: failed program was:" >&5
6427
sed 's/^/| /' conftest.$ac_ext >&5
6428
6429
  # Passes both tests.
6430
ac_preproc_ok=:
6431
break
6432
fi
6433
6434
rm -f conftest.err conftest.$ac_ext
6435
6436
done
6437
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438
rm -f conftest.err conftest.$ac_ext
6439
if $ac_preproc_ok; then
6440
  break
6441
fi
6442
6443
    done
6444
    ac_cv_prog_CPP=$CPP
6445
6446
fi
6447
  CPP=$ac_cv_prog_CPP
6448
else
6449
  ac_cv_prog_CPP=$CPP
6450
fi
6451
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6452
$as_echo "$CPP" >&6; }
6453
ac_preproc_ok=false
6454
for ac_c_preproc_warn_flag in '' yes
6455
do
6456
  # Use a header file that comes with gcc, so configuring glibc
6457
  # with a fresh cross-compiler works.
6458
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459
  # <limits.h> exists even on freestanding compilers.
6460
  # On the NeXT, cc -E runs the code through the compiler's parser,
6461
  # not just through cpp. "Syntax error" is here to catch this case.
6462
  cat >conftest.$ac_ext <<_ACEOF
6463
/* confdefs.h.  */
6464
_ACEOF
6465
cat confdefs.h >>conftest.$ac_ext
6466
cat >>conftest.$ac_ext <<_ACEOF
6467
/* end confdefs.h.  */
6468
#ifdef __STDC__
6469
# include <limits.h>
6470
#else
6471
# include <assert.h>
6472
#endif
6473
		     Syntax error
6474
_ACEOF
6475
if { (ac_try="$ac_cpp conftest.$ac_ext"
6476
case "(($ac_try" in
6477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478
  *) ac_try_echo=$ac_try;;
6479
esac
6480
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6481
$as_echo "$ac_try_echo") >&5
6482
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6483
  ac_status=$?
6484
  grep -v '^ *+' conftest.er1 >conftest.err
6485
  rm -f conftest.er1
6486
  cat conftest.err >&5
6487
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488
  (exit $ac_status); } >/dev/null && {
6489
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6490
	 test ! -s conftest.err
6491
       }; then
6492
  :
6493
else
6494
  $as_echo "$as_me: failed program was:" >&5
6495
sed 's/^/| /' conftest.$ac_ext >&5
6496
6497
  # Broken: fails on valid input.
6498
continue
6499
fi
6500
6501
rm -f conftest.err conftest.$ac_ext
6502
6503
  # OK, works on sane cases.  Now check whether nonexistent headers
6504
  # can be detected and how.
6505
  cat >conftest.$ac_ext <<_ACEOF
6506
/* confdefs.h.  */
6507
_ACEOF
6508
cat confdefs.h >>conftest.$ac_ext
6509
cat >>conftest.$ac_ext <<_ACEOF
6510
/* end confdefs.h.  */
6511
#include <ac_nonexistent.h>
6512
_ACEOF
6513
if { (ac_try="$ac_cpp conftest.$ac_ext"
6514
case "(($ac_try" in
6515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516
  *) ac_try_echo=$ac_try;;
6517
esac
6518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6519
$as_echo "$ac_try_echo") >&5
6520
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6521
  ac_status=$?
6522
  grep -v '^ *+' conftest.er1 >conftest.err
6523
  rm -f conftest.er1
6524
  cat conftest.err >&5
6525
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526
  (exit $ac_status); } >/dev/null && {
6527
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6528
	 test ! -s conftest.err
6529
       }; then
6530
  # Broken: success on invalid input.
6531
continue
6532
else
6533
  $as_echo "$as_me: failed program was:" >&5
6534
sed 's/^/| /' conftest.$ac_ext >&5
6535
6536
  # Passes both tests.
6537
ac_preproc_ok=:
6538
break
6539
fi
6540
6541
rm -f conftest.err conftest.$ac_ext
6542
6543
done
6544
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6545
rm -f conftest.err conftest.$ac_ext
6546
if $ac_preproc_ok; then
6547
  :
6548
else
6549
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6550
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6551
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6552
See \`config.log' for more details." >&5
6553
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6554
See \`config.log' for more details." >&2;}
6555
   { (exit 1); exit 1; }; }; }
6556
fi
6557
6558
ac_ext=c
6559
ac_cpp='$CPP $CPPFLAGS'
6560
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563
6564
6565
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6566
$as_echo_n "checking for ANSI C header files... " >&6; }
6567
if test "${ac_cv_header_stdc+set}" = set; then
6568
  $as_echo_n "(cached) " >&6
6569
else
6570
  cat >conftest.$ac_ext <<_ACEOF
6571
/* confdefs.h.  */
6572
_ACEOF
6573
cat confdefs.h >>conftest.$ac_ext
6574
cat >>conftest.$ac_ext <<_ACEOF
6575
/* end confdefs.h.  */
6576
#include <stdlib.h>
6577
#include <stdarg.h>
6578
#include <string.h>
6579
#include <float.h>
6580
6581
int
6582
main ()
6583
{
6584
6585
  ;
6586
  return 0;
6587
}
6588
_ACEOF
6589
rm -f conftest.$ac_objext
6590
if { (ac_try="$ac_compile"
6591
case "(($ac_try" in
6592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593
  *) ac_try_echo=$ac_try;;
6594
esac
6595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596
$as_echo "$ac_try_echo") >&5
6597
  (eval "$ac_compile") 2>conftest.er1
6598
  ac_status=$?
6599
  grep -v '^ *+' conftest.er1 >conftest.err
6600
  rm -f conftest.er1
6601
  cat conftest.err >&5
6602
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603
  (exit $ac_status); } && {
6604
	 test -z "$ac_c_werror_flag" ||
6605
	 test ! -s conftest.err
6606
       } && test -s conftest.$ac_objext; then
6607
  ac_cv_header_stdc=yes
6608
else
6609
  $as_echo "$as_me: failed program was:" >&5
6610
sed 's/^/| /' conftest.$ac_ext >&5
6611
6612
	ac_cv_header_stdc=no
6613
fi
6614
6615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616
6617
if test $ac_cv_header_stdc = yes; then
6618
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6619
  cat >conftest.$ac_ext <<_ACEOF
6620
/* confdefs.h.  */
6621
_ACEOF
6622
cat confdefs.h >>conftest.$ac_ext
6623
cat >>conftest.$ac_ext <<_ACEOF
6624
/* end confdefs.h.  */
6625
#include <string.h>
6626
6627
_ACEOF
6628
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6629
  $EGREP "memchr" >/dev/null 2>&1; then
6630
  :
6631
else
6632
  ac_cv_header_stdc=no
6633
fi
6634
rm -f conftest*
6635
6636
fi
6637
6638
if test $ac_cv_header_stdc = yes; then
6639
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6640
  cat >conftest.$ac_ext <<_ACEOF
6641
/* confdefs.h.  */
6642
_ACEOF
6643
cat confdefs.h >>conftest.$ac_ext
6644
cat >>conftest.$ac_ext <<_ACEOF
6645
/* end confdefs.h.  */
6646
#include <stdlib.h>
6647
6648
_ACEOF
6649
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650
  $EGREP "free" >/dev/null 2>&1; then
6651
  :
6652
else
6653
  ac_cv_header_stdc=no
6654
fi
6655
rm -f conftest*
6656
6657
fi
6658
6659
if test $ac_cv_header_stdc = yes; then
6660
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6661
  if test "$cross_compiling" = yes; then
6662
  :
6663
else
6664
  cat >conftest.$ac_ext <<_ACEOF
6665
/* confdefs.h.  */
6666
_ACEOF
6667
cat confdefs.h >>conftest.$ac_ext
6668
cat >>conftest.$ac_ext <<_ACEOF
6669
/* end confdefs.h.  */
6670
#include <ctype.h>
6671
#include <stdlib.h>
6672
#if ((' ' & 0x0FF) == 0x020)
6673
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6674
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6675
#else
6676
# define ISLOWER(c) \
6677
		   (('a' <= (c) && (c) <= 'i') \
6678
		     || ('j' <= (c) && (c) <= 'r') \
6679
		     || ('s' <= (c) && (c) <= 'z'))
6680
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6681
#endif
6682
6683
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6684
int
6685
main ()
6686
{
6687
  int i;
6688
  for (i = 0; i < 256; i++)
6689
    if (XOR (islower (i), ISLOWER (i))
6690
	|| toupper (i) != TOUPPER (i))
6691
      return 2;
6692
  return 0;
6693
}
6694
_ACEOF
6695
rm -f conftest$ac_exeext
6696
if { (ac_try="$ac_link"
6697
case "(($ac_try" in
6698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699
  *) ac_try_echo=$ac_try;;
6700
esac
6701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702
$as_echo "$ac_try_echo") >&5
6703
  (eval "$ac_link") 2>&5
6704
  ac_status=$?
6705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6707
  { (case "(($ac_try" in
6708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709
  *) ac_try_echo=$ac_try;;
6710
esac
6711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6712
$as_echo "$ac_try_echo") >&5
6713
  (eval "$ac_try") 2>&5
6714
  ac_status=$?
6715
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716
  (exit $ac_status); }; }; then
6717
  :
6718
else
6719
  $as_echo "$as_me: program exited with status $ac_status" >&5
6720
$as_echo "$as_me: failed program was:" >&5
6721
sed 's/^/| /' conftest.$ac_ext >&5
6722
6723
( exit $ac_status )
6724
ac_cv_header_stdc=no
6725
fi
6726
rm -rf conftest.dSYM
6727
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6728
fi
6729
6730
6731
fi
6732
fi
6733
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6734
$as_echo "$ac_cv_header_stdc" >&6; }
6735
if test $ac_cv_header_stdc = yes; then
6736
6737
cat >>confdefs.h <<\_ACEOF
6738
#define STDC_HEADERS 1
6739
_ACEOF
6740
6741
fi
6742
6743
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6754
		  inttypes.h stdint.h unistd.h
6755
do
6756
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6757
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6758
$as_echo_n "checking for $ac_header... " >&6; }
6759
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760
  $as_echo_n "(cached) " >&6
6761
else
6762
  cat >conftest.$ac_ext <<_ACEOF
6763
/* confdefs.h.  */
6764
_ACEOF
6765
cat confdefs.h >>conftest.$ac_ext
6766
cat >>conftest.$ac_ext <<_ACEOF
6767
/* end confdefs.h.  */
6768
$ac_includes_default
6769
6770
#include <$ac_header>
6771
_ACEOF
6772
rm -f conftest.$ac_objext
6773
if { (ac_try="$ac_compile"
6774
case "(($ac_try" in
6775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776
  *) ac_try_echo=$ac_try;;
6777
esac
6778
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779
$as_echo "$ac_try_echo") >&5
6780
  (eval "$ac_compile") 2>conftest.er1
6781
  ac_status=$?
6782
  grep -v '^ *+' conftest.er1 >conftest.err
6783
  rm -f conftest.er1
6784
  cat conftest.err >&5
6785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786
  (exit $ac_status); } && {
6787
	 test -z "$ac_c_werror_flag" ||
6788
	 test ! -s conftest.err
6789
       } && test -s conftest.$ac_objext; then
6790
  eval "$as_ac_Header=yes"
6791
else
6792
  $as_echo "$as_me: failed program was:" >&5
6793
sed 's/^/| /' conftest.$ac_ext >&5
6794
6795
	eval "$as_ac_Header=no"
6796
fi
6797
6798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799
fi
6800
ac_res=`eval 'as_val=${'$as_ac_Header'}
6801
		 $as_echo "$as_val"'`
6802
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803
$as_echo "$ac_res" >&6; }
6804
as_val=`eval 'as_val=${'$as_ac_Header'}
6805
		 $as_echo "$as_val"'`
6806
   if test "x$as_val" = x""yes; then
6807
  cat >>confdefs.h <<_ACEOF
6808
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809
_ACEOF
6810
6811
fi
6812
6813
done
6814
6815
6816
6817
for ac_header in dlfcn.h
6818
do
6819
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6820
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6821
$as_echo_n "checking for $ac_header... " >&6; }
6822
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823
  $as_echo_n "(cached) " >&6
6824
else
6825
  cat >conftest.$ac_ext <<_ACEOF
6826
/* confdefs.h.  */
6827
_ACEOF
6828
cat confdefs.h >>conftest.$ac_ext
6829
cat >>conftest.$ac_ext <<_ACEOF
6830
/* end confdefs.h.  */
6831
$ac_includes_default
6832
6833
#include <$ac_header>
6834
_ACEOF
6835
rm -f conftest.$ac_objext
6836
if { (ac_try="$ac_compile"
6837
case "(($ac_try" in
6838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839
  *) ac_try_echo=$ac_try;;
6840
esac
6841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842
$as_echo "$ac_try_echo") >&5
6843
  (eval "$ac_compile") 2>conftest.er1
6844
  ac_status=$?
6845
  grep -v '^ *+' conftest.er1 >conftest.err
6846
  rm -f conftest.er1
6847
  cat conftest.err >&5
6848
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849
  (exit $ac_status); } && {
6850
	 test -z "$ac_c_werror_flag" ||
6851
	 test ! -s conftest.err
6852
       } && test -s conftest.$ac_objext; then
6853
  eval "$as_ac_Header=yes"
6854
else
6855
  $as_echo "$as_me: failed program was:" >&5
6856
sed 's/^/| /' conftest.$ac_ext >&5
6857
6858
	eval "$as_ac_Header=no"
6859
fi
6860
6861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862
fi
6863
ac_res=`eval 'as_val=${'$as_ac_Header'}
6864
		 $as_echo "$as_val"'`
6865
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6866
$as_echo "$ac_res" >&6; }
6867
as_val=`eval 'as_val=${'$as_ac_Header'}
6868
		 $as_echo "$as_val"'`
6869
   if test "x$as_val" = x""yes; then
6870
  cat >>confdefs.h <<_ACEOF
6871
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6872
_ACEOF
6873
6874
fi
6875
6876
done
6877
6878
6879
6880
# Set options
6881
6882
6883
6884
        enable_dlopen=no
6885
6886
6887
  enable_win32_dll=no
6888
6889
6890
            # Check whether --enable-shared was given.
6891
if test "${enable_shared+set}" = set; then
6892
  enableval=$enable_shared; p=${PACKAGE-default}
6893
    case $enableval in
6894
    yes) enable_shared=yes ;;
6895
    no) enable_shared=no ;;
6896
    *)
6897
      enable_shared=no
6898
      # Look at the argument we got.  We use all the common list separators.
6899
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6900
      for pkg in $enableval; do
6901
	IFS="$lt_save_ifs"
6902
	if test "X$pkg" = "X$p"; then
6903
	  enable_shared=yes
6904
	fi
6905
      done
6906
      IFS="$lt_save_ifs"
6907
      ;;
6908
    esac
6909
else
6910
  enable_shared=yes
6911
fi
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
  # Check whether --enable-static was given.
6922
if test "${enable_static+set}" = set; then
6923
  enableval=$enable_static; p=${PACKAGE-default}
6924
    case $enableval in
6925
    yes) enable_static=yes ;;
6926
    no) enable_static=no ;;
6927
    *)
6928
     enable_static=no
6929
      # Look at the argument we got.  We use all the common list separators.
6930
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931
      for pkg in $enableval; do
6932
	IFS="$lt_save_ifs"
6933
	if test "X$pkg" = "X$p"; then
6934
	  enable_static=yes
6935
	fi
6936
      done
6937
      IFS="$lt_save_ifs"
6938
      ;;
6939
    esac
6940
else
6941
  enable_static=yes
6942
fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
# Check whether --with-pic was given.
6954
if test "${with_pic+set}" = set; then
6955
  withval=$with_pic; pic_mode="$withval"
6956
else
6957
  pic_mode=default
6958
fi
6959
6960
6961
test -z "$pic_mode" && pic_mode=default
6962
6963
6964
6965
6966
6967
6968
6969
  # Check whether --enable-fast-install was given.
6970
if test "${enable_fast_install+set}" = set; then
6971
  enableval=$enable_fast_install; p=${PACKAGE-default}
6972
    case $enableval in
6973
    yes) enable_fast_install=yes ;;
6974
    no) enable_fast_install=no ;;
6975
    *)
6976
      enable_fast_install=no
6977
      # Look at the argument we got.  We use all the common list separators.
6978
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6979
      for pkg in $enableval; do
6980
	IFS="$lt_save_ifs"
6981
	if test "X$pkg" = "X$p"; then
6982
	  enable_fast_install=yes
6983
	fi
6984
      done
6985
      IFS="$lt_save_ifs"
6986
      ;;
6987
    esac
6988
else
6989
  enable_fast_install=yes
6990
fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
# This can be used to rebuild libtool when needed
7003
LIBTOOL_DEPS="$ltmain"
7004
7005
# Always use our own libtool.
7006
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
test -z "$LN_S" && LN_S="ln -s"
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
if test -n "${ZSH_VERSION+set}" ; then
7048
   setopt NO_GLOB_SUBST
7049
fi
7050
7051
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7052
$as_echo_n "checking for objdir... " >&6; }
7053
if test "${lt_cv_objdir+set}" = set; then
7054
  $as_echo_n "(cached) " >&6
7055
else
7056
  rm -f .libs 2>/dev/null
7057
mkdir .libs 2>/dev/null
7058
if test -d .libs; then
7059
  lt_cv_objdir=.libs
7060
else
7061
  # MS-DOS does not allow filenames that begin with a dot.
7062
  lt_cv_objdir=_libs
7063
fi
7064
rmdir .libs 2>/dev/null
7065
fi
7066
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7067
$as_echo "$lt_cv_objdir" >&6; }
7068
objdir=$lt_cv_objdir
7069
7070
7071
7072
7073
7074
cat >>confdefs.h <<_ACEOF
7075
#define LT_OBJDIR "$lt_cv_objdir/"
7076
_ACEOF
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
case $host_os in
7095
aix3*)
7096
  # AIX sometimes has problems with the GCC collect2 program.  For some
7097
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7098
  # vanish in a puff of smoke.
7099
  if test "X${COLLECT_NAMES+set}" != Xset; then
7100
    COLLECT_NAMES=
7101
    export COLLECT_NAMES
7102
  fi
7103
  ;;
7104
esac
7105
7106
# Sed substitution that helps us do robust quoting.  It backslashifies
7107
# metacharacters that are still active within double-quoted strings.
7108
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7109
7110
# Same as above, but do not quote variable references.
7111
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7112
7113
# Sed substitution to delay expansion of an escaped shell variable in a
7114
# double_quote_subst'ed string.
7115
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7116
7117
# Sed substitution to delay expansion of an escaped single quote.
7118
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7119
7120
# Sed substitution to avoid accidental globbing in evaled expressions
7121
no_glob_subst='s/\*/\\\*/g'
7122
7123
# Global variables:
7124
ofile=libtool
7125
can_build_shared=yes
7126
7127
# All known linkers require a `.a' archive for static linking (except MSVC,
7128
# which needs '.lib').
7129
libext=a
7130
7131
with_gnu_ld="$lt_cv_prog_gnu_ld"
7132
7133
old_CC="$CC"
7134
old_CFLAGS="$CFLAGS"
7135
7136
# Set sane defaults for various variables
7137
test -z "$CC" && CC=cc
7138
test -z "$LTCC" && LTCC=$CC
7139
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7140
test -z "$LD" && LD=ld
7141
test -z "$ac_objext" && ac_objext=o
7142
7143
for cc_temp in $compiler""; do
7144
  case $cc_temp in
7145
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7146
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7147
    \-*) ;;
7148
    *) break;;
7149
  esac
7150
done
7151
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7152
7153
7154
# Only perform the check for file, if the check method requires it
7155
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7156
case $deplibs_check_method in
7157
file_magic*)
7158
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7159
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7160
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7161
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7162
  $as_echo_n "(cached) " >&6
7163
else
7164
  case $MAGIC_CMD in
7165
[\\/*] |  ?:[\\/]*)
7166
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7167
  ;;
7168
*)
7169
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7170
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7171
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7172
  for ac_dir in $ac_dummy; do
7173
    IFS="$lt_save_ifs"
7174
    test -z "$ac_dir" && ac_dir=.
7175
    if test -f $ac_dir/${ac_tool_prefix}file; then
7176
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7177
      if test -n "$file_magic_test_file"; then
7178
	case $deplibs_check_method in
7179
	"file_magic "*)
7180
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7181
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7182
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7183
	    $EGREP "$file_magic_regex" > /dev/null; then
7184
	    :
7185
	  else
7186
	    cat <<_LT_EOF 1>&2
7187
7188
*** Warning: the command libtool uses to detect shared libraries,
7189
*** $file_magic_cmd, produces output that libtool cannot recognize.
7190
*** The result is that libtool may fail to recognize shared libraries
7191
*** as such.  This will affect the creation of libtool libraries that
7192
*** depend on shared libraries, but programs linked with such libtool
7193
*** libraries will work regardless of this problem.  Nevertheless, you
7194
*** may want to report the problem to your system manager and/or to
7195
*** bug-libtool@gnu.org
7196
7197
_LT_EOF
7198
	  fi ;;
7199
	esac
7200
      fi
7201
      break
7202
    fi
7203
  done
7204
  IFS="$lt_save_ifs"
7205
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7206
  ;;
7207
esac
7208
fi
7209
7210
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211
if test -n "$MAGIC_CMD"; then
7212
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7213
$as_echo "$MAGIC_CMD" >&6; }
7214
else
7215
  { $as_echo "$as_me:$LINENO: result: no" >&5
7216
$as_echo "no" >&6; }
7217
fi
7218
7219
7220
7221
7222
7223
if test -z "$lt_cv_path_MAGIC_CMD"; then
7224
  if test -n "$ac_tool_prefix"; then
7225
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7226
$as_echo_n "checking for file... " >&6; }
7227
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7228
  $as_echo_n "(cached) " >&6
7229
else
7230
  case $MAGIC_CMD in
7231
[\\/*] |  ?:[\\/]*)
7232
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7233
  ;;
7234
*)
7235
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7236
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7237
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7238
  for ac_dir in $ac_dummy; do
7239
    IFS="$lt_save_ifs"
7240
    test -z "$ac_dir" && ac_dir=.
7241
    if test -f $ac_dir/file; then
7242
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7243
      if test -n "$file_magic_test_file"; then
7244
	case $deplibs_check_method in
7245
	"file_magic "*)
7246
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7247
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7248
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7249
	    $EGREP "$file_magic_regex" > /dev/null; then
7250
	    :
7251
	  else
7252
	    cat <<_LT_EOF 1>&2
7253
7254
*** Warning: the command libtool uses to detect shared libraries,
7255
*** $file_magic_cmd, produces output that libtool cannot recognize.
7256
*** The result is that libtool may fail to recognize shared libraries
7257
*** as such.  This will affect the creation of libtool libraries that
7258
*** depend on shared libraries, but programs linked with such libtool
7259
*** libraries will work regardless of this problem.  Nevertheless, you
7260
*** may want to report the problem to your system manager and/or to
7261
*** bug-libtool@gnu.org
7262
7263
_LT_EOF
7264
	  fi ;;
7265
	esac
7266
      fi
7267
      break
7268
    fi
7269
  done
7270
  IFS="$lt_save_ifs"
7271
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7272
  ;;
7273
esac
7274
fi
7275
7276
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7277
if test -n "$MAGIC_CMD"; then
7278
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7279
$as_echo "$MAGIC_CMD" >&6; }
7280
else
7281
  { $as_echo "$as_me:$LINENO: result: no" >&5
7282
$as_echo "no" >&6; }
7283
fi
7284
7285
7286
  else
7287
    MAGIC_CMD=:
7288
  fi
7289
fi
7290
7291
  fi
7292
  ;;
7293
esac
7294
7295
# Use C for the default configuration in the libtool script
7296
7297
lt_save_CC="$CC"
7298
ac_ext=c
7299
ac_cpp='$CPP $CPPFLAGS'
7300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303
7304
7305
# Source file extension for C test sources.
7306
ac_ext=c
7307
7308
# Object file extension for compiled C test sources.
7309
objext=o
7310
objext=$objext
7311
7312
# Code to be used in simple compile tests
7313
lt_simple_compile_test_code="int some_variable = 0;"
7314
7315
# Code to be used in simple link tests
7316
lt_simple_link_test_code='int main(){return(0);}'
7317
7318
7319
7320
7321
7322
7323
7324
# If no C compiler was specified, use CC.
7325
LTCC=${LTCC-"$CC"}
7326
7327
# If no C compiler flags were specified, use CFLAGS.
7328
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7329
7330
# Allow CC to be a program name with arguments.
7331
compiler=$CC
7332
7333
# Save the default compiler, since it gets overwritten when the other
7334
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7335
compiler_DEFAULT=$CC
7336
7337
# save warnings/boilerplate of simple test code
7338
ac_outfile=conftest.$ac_objext
7339
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7340
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7341
_lt_compiler_boilerplate=`cat conftest.err`
7342
$RM conftest*
7343
7344
ac_outfile=conftest.$ac_objext
7345
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7346
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7347
_lt_linker_boilerplate=`cat conftest.err`
7348
$RM -r conftest*
7349
7350
7351
if test -n "$compiler"; then
7352
7353
lt_prog_compiler_no_builtin_flag=
7354
7355
if test "$GCC" = yes; then
7356
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7357
7358
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7359
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7360
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7361
  $as_echo_n "(cached) " >&6
7362
else
7363
  lt_cv_prog_compiler_rtti_exceptions=no
7364
   ac_outfile=conftest.$ac_objext
7365
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7366
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7367
   # Insert the option either (1) after the last *FLAGS variable, or
7368
   # (2) before a word containing "conftest.", or (3) at the end.
7369
   # Note that $ac_compile itself does not contain backslashes and begins
7370
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7371
   # The option is referenced via a variable to avoid confusing sed.
7372
   lt_compile=`echo "$ac_compile" | $SED \
7373
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7374
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7375
   -e 's:$: $lt_compiler_flag:'`
7376
   (eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
7377
   (eval "$lt_compile" 2>conftest.err)
7378
   ac_status=$?
7379
   cat conftest.err >&5
7380
   echo "$as_me:7380: \$? = $ac_status" >&5
7381
   if (exit $ac_status) && test -s "$ac_outfile"; then
7382
     # The compiler can only warn and ignore the option if not recognized
7383
     # So say no if there are warnings other than the usual output.
7384
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7385
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7386
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7387
       lt_cv_prog_compiler_rtti_exceptions=yes
7388
     fi
7389
   fi
7390
   $RM conftest*
7391
7392
fi
7393
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7394
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7395
7396
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7397
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7398
else
7399
    :
7400
fi
7401
7402
fi
7403
7404
7405
7406
7407
7408
7409
  lt_prog_compiler_wl=
7410
lt_prog_compiler_pic=
7411
lt_prog_compiler_static=
7412
7413
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7414
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7415
7416
  if test "$GCC" = yes; then
7417
    lt_prog_compiler_wl='-Wl,'
7418
    lt_prog_compiler_static='-static'
7419
7420
    case $host_os in
7421
      aix*)
7422
      # All AIX code is PIC.
7423
      if test "$host_cpu" = ia64; then
7424
	# AIX 5 now supports IA64 processor
7425
	lt_prog_compiler_static='-Bstatic'
7426
      fi
7427
      ;;
7428
7429
    amigaos*)
7430
      case $host_cpu in
7431
      powerpc)
7432
            # see comment about AmigaOS4 .so support
7433
            lt_prog_compiler_pic='-fPIC'
7434
        ;;
7435
      m68k)
7436
            # FIXME: we need at least 68020 code to build shared libraries, but
7437
            # adding the `-m68020' flag to GCC prevents building anything better,
7438
            # like `-m68040'.
7439
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7440
        ;;
7441
      esac
7442
      ;;
7443
7444
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7445
      # PIC is the default for these OSes.
7446
      ;;
7447
7448
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7449
      # This hack is so that the source file can tell whether it is being
7450
      # built for inclusion in a dll (and should export symbols for example).
7451
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7452
      # (--disable-auto-import) libraries
7453
      lt_prog_compiler_pic='-DDLL_EXPORT'
7454
      ;;
7455
7456
    darwin* | rhapsody*)
7457
      # PIC is the default on this platform
7458
      # Common symbols not allowed in MH_DYLIB files
7459
      lt_prog_compiler_pic='-fno-common'
7460
      ;;
7461
7462
    hpux*)
7463
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7464
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7465
      # sets the default TLS model and affects inlining.
7466
      case $host_cpu in
7467
      hppa*64*)
7468
	# +Z the default
7469
	;;
7470
      *)
7471
	lt_prog_compiler_pic='-fPIC'
7472
	;;
7473
      esac
7474
      ;;
7475
7476
    interix[3-9]*)
7477
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7478
      # Instead, we relocate shared libraries at runtime.
7479
      ;;
7480
7481
    msdosdjgpp*)
7482
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7483
      # on systems that don't support them.
7484
      lt_prog_compiler_can_build_shared=no
7485
      enable_shared=no
7486
      ;;
7487
7488
    *nto* | *qnx*)
7489
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7490
      # it will coredump.
7491
      lt_prog_compiler_pic='-fPIC -shared'
7492
      ;;
7493
7494
    sysv4*MP*)
7495
      if test -d /usr/nec; then
7496
	lt_prog_compiler_pic=-Kconform_pic
7497
      fi
7498
      ;;
7499
7500
    *)
7501
      lt_prog_compiler_pic='-fPIC'
7502
      ;;
7503
    esac
7504
  else
7505
    # PORTME Check for flag to pass linker flags through the system compiler.
7506
    case $host_os in
7507
    aix*)
7508
      lt_prog_compiler_wl='-Wl,'
7509
      if test "$host_cpu" = ia64; then
7510
	# AIX 5 now supports IA64 processor
7511
	lt_prog_compiler_static='-Bstatic'
7512
      else
7513
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7514
      fi
7515
      ;;
7516
7517
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7518
      # This hack is so that the source file can tell whether it is being
7519
      # built for inclusion in a dll (and should export symbols for example).
7520
      lt_prog_compiler_pic='-DDLL_EXPORT'
7521
      ;;
7522
7523
    hpux9* | hpux10* | hpux11*)
7524
      lt_prog_compiler_wl='-Wl,'
7525
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7526
      # not for PA HP-UX.
7527
      case $host_cpu in
7528
      hppa*64*|ia64*)
7529
	# +Z the default
7530
	;;
7531
      *)
7532
	lt_prog_compiler_pic='+Z'
7533
	;;
7534
      esac
7535
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7536
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7537
      ;;
7538
7539
    irix5* | irix6* | nonstopux*)
7540
      lt_prog_compiler_wl='-Wl,'
7541
      # PIC (with -KPIC) is the default.
7542
      lt_prog_compiler_static='-non_shared'
7543
      ;;
7544
7545
    linux* | k*bsd*-gnu)
7546
      case $cc_basename in
7547
      # old Intel for x86_64 which still supported -KPIC.
7548
      ecc*)
7549
	lt_prog_compiler_wl='-Wl,'
7550
	lt_prog_compiler_pic='-KPIC'
7551
	lt_prog_compiler_static='-static'
7552
        ;;
7553
      # icc used to be incompatible with GCC.
7554
      # ICC 10 doesn't accept -KPIC any more.
7555
      icc* | ifort*)
7556
	lt_prog_compiler_wl='-Wl,'
7557
	lt_prog_compiler_pic='-fPIC'
7558
	lt_prog_compiler_static='-static'
7559
        ;;
7560
      # Lahey Fortran 8.1.
7561
      lf95*)
7562
	lt_prog_compiler_wl='-Wl,'
7563
	lt_prog_compiler_pic='--shared'
7564
	lt_prog_compiler_static='--static'
7565
	;;
7566
      pgcc* | pgf77* | pgf90* | pgf95*)
7567
        # Portland Group compilers (*not* the Pentium gcc compiler,
7568
	# which looks to be a dead project)
7569
	lt_prog_compiler_wl='-Wl,'
7570
	lt_prog_compiler_pic='-fpic'
7571
	lt_prog_compiler_static='-Bstatic'
7572
        ;;
7573
      ccc*)
7574
        lt_prog_compiler_wl='-Wl,'
7575
        # All Alpha code is PIC.
7576
        lt_prog_compiler_static='-non_shared'
7577
        ;;
7578
      xl*)
7579
	# IBM XL C 8.0/Fortran 10.1 on PPC
7580
	lt_prog_compiler_wl='-Wl,'
7581
	lt_prog_compiler_pic='-qpic'
7582
	lt_prog_compiler_static='-qstaticlink'
7583
	;;
7584
      *)
7585
	case `$CC -V 2>&1 | sed 5q` in
7586
	*Sun\ C*)
7587
	  # Sun C 5.9
7588
	  lt_prog_compiler_pic='-KPIC'
7589
	  lt_prog_compiler_static='-Bstatic'
7590
	  lt_prog_compiler_wl='-Wl,'
7591
	  ;;
7592
	*Sun\ F*)
7593
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7594
	  lt_prog_compiler_pic='-KPIC'
7595
	  lt_prog_compiler_static='-Bstatic'
7596
	  lt_prog_compiler_wl=''
7597
	  ;;
7598
	esac
7599
	;;
7600
      esac
7601
      ;;
7602
7603
    newsos6)
7604
      lt_prog_compiler_pic='-KPIC'
7605
      lt_prog_compiler_static='-Bstatic'
7606
      ;;
7607
7608
    *nto* | *qnx*)
7609
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7610
      # it will coredump.
7611
      lt_prog_compiler_pic='-fPIC -shared'
7612
      ;;
7613
7614
    osf3* | osf4* | osf5*)
7615
      lt_prog_compiler_wl='-Wl,'
7616
      # All OSF/1 code is PIC.
7617
      lt_prog_compiler_static='-non_shared'
7618
      ;;
7619
7620
    rdos*)
7621
      lt_prog_compiler_static='-non_shared'
7622
      ;;
7623
7624
    solaris*)
7625
      lt_prog_compiler_pic='-KPIC'
7626
      lt_prog_compiler_static='-Bstatic'
7627
      case $cc_basename in
7628
      f77* | f90* | f95*)
7629
	lt_prog_compiler_wl='-Qoption ld ';;
7630
      *)
7631
	lt_prog_compiler_wl='-Wl,';;
7632
      esac
7633
      ;;
7634
7635
    sunos4*)
7636
      lt_prog_compiler_wl='-Qoption ld '
7637
      lt_prog_compiler_pic='-PIC'
7638
      lt_prog_compiler_static='-Bstatic'
7639
      ;;
7640
7641
    sysv4 | sysv4.2uw2* | sysv4.3*)
7642
      lt_prog_compiler_wl='-Wl,'
7643
      lt_prog_compiler_pic='-KPIC'
7644
      lt_prog_compiler_static='-Bstatic'
7645
      ;;
7646
7647
    sysv4*MP*)
7648
      if test -d /usr/nec ;then
7649
	lt_prog_compiler_pic='-Kconform_pic'
7650
	lt_prog_compiler_static='-Bstatic'
7651
      fi
7652
      ;;
7653
7654
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7655
      lt_prog_compiler_wl='-Wl,'
7656
      lt_prog_compiler_pic='-KPIC'
7657
      lt_prog_compiler_static='-Bstatic'
7658
      ;;
7659
7660
    unicos*)
7661
      lt_prog_compiler_wl='-Wl,'
7662
      lt_prog_compiler_can_build_shared=no
7663
      ;;
7664
7665
    uts4*)
7666
      lt_prog_compiler_pic='-pic'
7667
      lt_prog_compiler_static='-Bstatic'
7668
      ;;
7669
7670
    *)
7671
      lt_prog_compiler_can_build_shared=no
7672
      ;;
7673
    esac
7674
  fi
7675
7676
case $host_os in
7677
  # For platforms which do not support PIC, -DPIC is meaningless:
7678
  *djgpp*)
7679
    lt_prog_compiler_pic=
7680
    ;;
7681
  *)
7682
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7683
    ;;
7684
esac
7685
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7686
$as_echo "$lt_prog_compiler_pic" >&6; }
7687
7688
7689
7690
7691
7692
7693
#
7694
# Check to make sure the PIC flag actually works.
7695
#
7696
if test -n "$lt_prog_compiler_pic"; then
7697
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7698
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7699
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7700
  $as_echo_n "(cached) " >&6
7701
else
7702
  lt_cv_prog_compiler_pic_works=no
7703
   ac_outfile=conftest.$ac_objext
7704
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7705
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7706
   # Insert the option either (1) after the last *FLAGS variable, or
7707
   # (2) before a word containing "conftest.", or (3) at the end.
7708
   # Note that $ac_compile itself does not contain backslashes and begins
7709
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7710
   # The option is referenced via a variable to avoid confusing sed.
7711
   lt_compile=`echo "$ac_compile" | $SED \
7712
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714
   -e 's:$: $lt_compiler_flag:'`
7715
   (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716
   (eval "$lt_compile" 2>conftest.err)
7717
   ac_status=$?
7718
   cat conftest.err >&5
7719
   echo "$as_me:7719: \$? = $ac_status" >&5
7720
   if (exit $ac_status) && test -s "$ac_outfile"; then
7721
     # The compiler can only warn and ignore the option if not recognized
7722
     # So say no if there are warnings other than the usual output.
7723
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7724
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7725
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7726
       lt_cv_prog_compiler_pic_works=yes
7727
     fi
7728
   fi
7729
   $RM conftest*
7730
7731
fi
7732
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7733
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7734
7735
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7736
    case $lt_prog_compiler_pic in
7737
     "" | " "*) ;;
7738
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7739
     esac
7740
else
7741
    lt_prog_compiler_pic=
7742
     lt_prog_compiler_can_build_shared=no
7743
fi
7744
7745
fi
7746
7747
7748
7749
7750
7751
7752
#
7753
# Check to make sure the static flag actually works.
7754
#
7755
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7756
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7757
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7758
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7759
  $as_echo_n "(cached) " >&6
7760
else
7761
  lt_cv_prog_compiler_static_works=no
7762
   save_LDFLAGS="$LDFLAGS"
7763
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7764
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7765
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7766
     # The linker can only warn and ignore the option if not recognized
7767
     # So say no if there are warnings
7768
     if test -s conftest.err; then
7769
       # Append any errors to the config.log.
7770
       cat conftest.err 1>&5
7771
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7772
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773
       if diff conftest.exp conftest.er2 >/dev/null; then
7774
         lt_cv_prog_compiler_static_works=yes
7775
       fi
7776
     else
7777
       lt_cv_prog_compiler_static_works=yes
7778
     fi
7779
   fi
7780
   $RM -r conftest*
7781
   LDFLAGS="$save_LDFLAGS"
7782
7783
fi
7784
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7785
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7786
7787
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7788
    :
7789
else
7790
    lt_prog_compiler_static=
7791
fi
7792
7793
7794
7795
7796
7797
7798
7799
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7800
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7801
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7802
  $as_echo_n "(cached) " >&6
7803
else
7804
  lt_cv_prog_compiler_c_o=no
7805
   $RM -r conftest 2>/dev/null
7806
   mkdir conftest
7807
   cd conftest
7808
   mkdir out
7809
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7810
7811
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7812
   # Insert the option either (1) after the last *FLAGS variable, or
7813
   # (2) before a word containing "conftest.", or (3) at the end.
7814
   # Note that $ac_compile itself does not contain backslashes and begins
7815
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7816
   lt_compile=`echo "$ac_compile" | $SED \
7817
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819
   -e 's:$: $lt_compiler_flag:'`
7820
   (eval echo "\"\$as_me:7820: $lt_compile\"" >&5)
7821
   (eval "$lt_compile" 2>out/conftest.err)
7822
   ac_status=$?
7823
   cat out/conftest.err >&5
7824
   echo "$as_me:7824: \$? = $ac_status" >&5
7825
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7826
   then
7827
     # The compiler can only warn and ignore the option if not recognized
7828
     # So say no if there are warnings
7829
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7830
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7831
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7832
       lt_cv_prog_compiler_c_o=yes
7833
     fi
7834
   fi
7835
   chmod u+w . 2>&5
7836
   $RM conftest*
7837
   # SGI C++ compiler will create directory out/ii_files/ for
7838
   # template instantiation
7839
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7840
   $RM out/* && rmdir out
7841
   cd ..
7842
   $RM -r conftest
7843
   $RM conftest*
7844
7845
fi
7846
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7847
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7848
7849
7850
7851
7852
7853
7854
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7855
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7856
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7857
  $as_echo_n "(cached) " >&6
7858
else
7859
  lt_cv_prog_compiler_c_o=no
7860
   $RM -r conftest 2>/dev/null
7861
   mkdir conftest
7862
   cd conftest
7863
   mkdir out
7864
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7865
7866
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7867
   # Insert the option either (1) after the last *FLAGS variable, or
7868
   # (2) before a word containing "conftest.", or (3) at the end.
7869
   # Note that $ac_compile itself does not contain backslashes and begins
7870
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7871
   lt_compile=`echo "$ac_compile" | $SED \
7872
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7873
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7874
   -e 's:$: $lt_compiler_flag:'`
7875
   (eval echo "\"\$as_me:7875: $lt_compile\"" >&5)
7876
   (eval "$lt_compile" 2>out/conftest.err)
7877
   ac_status=$?
7878
   cat out/conftest.err >&5
7879
   echo "$as_me:7879: \$? = $ac_status" >&5
7880
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7881
   then
7882
     # The compiler can only warn and ignore the option if not recognized
7883
     # So say no if there are warnings
7884
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7885
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7886
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7887
       lt_cv_prog_compiler_c_o=yes
7888
     fi
7889
   fi
7890
   chmod u+w . 2>&5
7891
   $RM conftest*
7892
   # SGI C++ compiler will create directory out/ii_files/ for
7893
   # template instantiation
7894
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7895
   $RM out/* && rmdir out
7896
   cd ..
7897
   $RM -r conftest
7898
   $RM conftest*
7899
7900
fi
7901
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7902
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7903
7904
7905
7906
7907
hard_links="nottested"
7908
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7909
  # do not overwrite the value of need_locks provided by the user
7910
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7911
$as_echo_n "checking if we can lock with hard links... " >&6; }
7912
  hard_links=yes
7913
  $RM conftest*
7914
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7915
  touch conftest.a
7916
  ln conftest.a conftest.b 2>&5 || hard_links=no
7917
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7918
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7919
$as_echo "$hard_links" >&6; }
7920
  if test "$hard_links" = no; then
7921
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7922
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7923
    need_locks=warn
7924
  fi
7925
else
7926
  need_locks=no
7927
fi
7928
7929
7930
7931
7932
7933
7934
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7935
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7936
7937
  runpath_var=
7938
  allow_undefined_flag=
7939
  always_export_symbols=no
7940
  archive_cmds=
7941
  archive_expsym_cmds=
7942
  compiler_needs_object=no
7943
  enable_shared_with_static_runtimes=no
7944
  export_dynamic_flag_spec=
7945
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7946
  hardcode_automatic=no
7947
  hardcode_direct=no
7948
  hardcode_direct_absolute=no
7949
  hardcode_libdir_flag_spec=
7950
  hardcode_libdir_flag_spec_ld=
7951
  hardcode_libdir_separator=
7952
  hardcode_minus_L=no
7953
  hardcode_shlibpath_var=unsupported
7954
  inherit_rpath=no
7955
  link_all_deplibs=unknown
7956
  module_cmds=
7957
  module_expsym_cmds=
7958
  old_archive_from_new_cmds=
7959
  old_archive_from_expsyms_cmds=
7960
  thread_safe_flag_spec=
7961
  whole_archive_flag_spec=
7962
  # include_expsyms should be a list of space-separated symbols to be *always*
7963
  # included in the symbol list
7964
  include_expsyms=
7965
  # exclude_expsyms can be an extended regexp of symbols to exclude
7966
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7967
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7968
  # as well as any symbol that contains `d'.
7969
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7970
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7971
  # platforms (ab)use it in PIC code, but their linkers get confused if
7972
  # the symbol is explicitly referenced.  Since portable code cannot
7973
  # rely on this symbol name, it's probably fine to never include it in
7974
  # preloaded symbol tables.
7975
  # Exclude shared library initialization/finalization symbols.
7976
  extract_expsyms_cmds=
7977
7978
  case $host_os in
7979
  cygwin* | mingw* | pw32* | cegcc*)
7980
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7981
    # When not using gcc, we currently assume that we are using
7982
    # Microsoft Visual C++.
7983
    if test "$GCC" != yes; then
7984
      with_gnu_ld=no
7985
    fi
7986
    ;;
7987
  interix*)
7988
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7989
    with_gnu_ld=yes
7990
    ;;
7991
  openbsd*)
7992
    with_gnu_ld=no
7993
    ;;
7994
  esac
7995
7996
  ld_shlibs=yes
7997
  if test "$with_gnu_ld" = yes; then
7998
    # If archive_cmds runs LD, not CC, wlarc should be empty
7999
    wlarc='${wl}'
8000
8001
    # Set some defaults for GNU ld with shared library support. These
8002
    # are reset later if shared libraries are not supported. Putting them
8003
    # here allows them to be overridden if necessary.
8004
    runpath_var=LD_RUN_PATH
8005
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8006
    export_dynamic_flag_spec='${wl}--export-dynamic'
8007
    # ancient GNU ld didn't support --whole-archive et. al.
8008
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8009
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8010
    else
8011
      whole_archive_flag_spec=
8012
    fi
8013
    supports_anon_versioning=no
8014
    case `$LD -v 2>&1` in
8015
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8016
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8017
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8018
      *\ 2.11.*) ;; # other 2.11 versions
8019
      *) supports_anon_versioning=yes ;;
8020
    esac
8021
8022
    # See if GNU ld supports shared libraries.
8023
    case $host_os in
8024
    aix[3-9]*)
8025
      # On AIX/PPC, the GNU linker is very broken
8026
      if test "$host_cpu" != ia64; then
8027
	ld_shlibs=no
8028
	cat <<_LT_EOF 1>&2
8029
8030
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8031
*** to be unable to reliably create shared libraries on AIX.
8032
*** Therefore, libtool is disabling shared libraries support.  If you
8033
*** really care for shared libraries, you may want to modify your PATH
8034
*** so that a non-GNU linker is found, and then restart.
8035
8036
_LT_EOF
8037
      fi
8038
      ;;
8039
8040
    amigaos*)
8041
      case $host_cpu in
8042
      powerpc)
8043
            # see comment about AmigaOS4 .so support
8044
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045
            archive_expsym_cmds=''
8046
        ;;
8047
      m68k)
8048
            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)'
8049
            hardcode_libdir_flag_spec='-L$libdir'
8050
            hardcode_minus_L=yes
8051
        ;;
8052
      esac
8053
      ;;
8054
8055
    beos*)
8056
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8057
	allow_undefined_flag=unsupported
8058
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8059
	# support --undefined.  This deserves some investigation.  FIXME
8060
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8061
      else
8062
	ld_shlibs=no
8063
      fi
8064
      ;;
8065
8066
    cygwin* | mingw* | pw32* | cegcc*)
8067
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8068
      # as there is no search path for DLLs.
8069
      hardcode_libdir_flag_spec='-L$libdir'
8070
      allow_undefined_flag=unsupported
8071
      always_export_symbols=no
8072
      enable_shared_with_static_runtimes=yes
8073
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8074
8075
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8076
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8077
	# If the export-symbols file already is a .def file (1st line
8078
	# is EXPORTS), use it as is; otherwise, prepend...
8079
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8080
	  cp $export_symbols $output_objdir/$soname.def;
8081
	else
8082
	  echo EXPORTS > $output_objdir/$soname.def;
8083
	  cat $export_symbols >> $output_objdir/$soname.def;
8084
	fi~
8085
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8086
      else
8087
	ld_shlibs=no
8088
      fi
8089
      ;;
8090
8091
    interix[3-9]*)
8092
      hardcode_direct=no
8093
      hardcode_shlibpath_var=no
8094
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8095
      export_dynamic_flag_spec='${wl}-E'
8096
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8097
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8098
      # default) and relocated if they conflict, which is a slow very memory
8099
      # consuming and fragmenting process.  To avoid this, we pick a random,
8100
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8101
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8102
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8103
      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'
8104
      ;;
8105
8106
    gnu* | linux* | tpf* | k*bsd*-gnu)
8107
      tmp_diet=no
8108
      if test "$host_os" = linux-dietlibc; then
8109
	case $cc_basename in
8110
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8111
	esac
8112
      fi
8113
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8114
	 && test "$tmp_diet" = no
8115
      then
8116
	tmp_addflag=
8117
	tmp_sharedflag='-shared'
8118
	case $cc_basename,$host_cpu in
8119
        pgcc*)				# Portland Group C compiler
8120
	  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'
8121
	  tmp_addflag=' $pic_flag'
8122
	  ;;
8123
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8124
	  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'
8125
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8126
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8127
	  tmp_addflag=' -i_dynamic' ;;
8128
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8129
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8130
	ifc* | ifort*)			# Intel Fortran compiler
8131
	  tmp_addflag=' -nofor_main' ;;
8132
	lf95*)				# Lahey Fortran 8.1
8133
	  whole_archive_flag_spec=
8134
	  tmp_sharedflag='--shared' ;;
8135
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8136
	  tmp_sharedflag='-qmkshrobj'
8137
	  tmp_addflag= ;;
8138
	esac
8139
	case `$CC -V 2>&1 | sed 5q` in
8140
	*Sun\ C*)			# Sun C 5.9
8141
	  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'
8142
	  compiler_needs_object=yes
8143
	  tmp_sharedflag='-G' ;;
8144
	*Sun\ F*)			# Sun Fortran 8.3
8145
	  tmp_sharedflag='-G' ;;
8146
	esac
8147
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148
8149
        if test "x$supports_anon_versioning" = xyes; then
8150
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8151
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8152
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8153
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8154
        fi
8155
8156
	case $cc_basename in
8157
	xlf*)
8158
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8159
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8160
	  hardcode_libdir_flag_spec=
8161
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8162
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8163
	  if test "x$supports_anon_versioning" = xyes; then
8164
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8165
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8166
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8167
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8168
	  fi
8169
	  ;;
8170
	esac
8171
      else
8172
        ld_shlibs=no
8173
      fi
8174
      ;;
8175
8176
    netbsd* | netbsdelf*-gnu)
8177
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8178
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8179
	wlarc=
8180
      else
8181
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8183
      fi
8184
      ;;
8185
8186
    solaris*)
8187
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8188
	ld_shlibs=no
8189
	cat <<_LT_EOF 1>&2
8190
8191
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8192
*** create shared libraries on Solaris systems.  Therefore, libtool
8193
*** is disabling shared libraries support.  We urge you to upgrade GNU
8194
*** binutils to release 2.9.1 or newer.  Another option is to modify
8195
*** your PATH or compiler configuration so that the native linker is
8196
*** used, and then restart.
8197
8198
_LT_EOF
8199
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8200
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202
      else
8203
	ld_shlibs=no
8204
      fi
8205
      ;;
8206
8207
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8208
      case `$LD -v 2>&1` in
8209
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8210
	ld_shlibs=no
8211
	cat <<_LT_EOF 1>&2
8212
8213
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8214
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8215
*** is disabling shared libraries support.  We urge you to upgrade GNU
8216
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8217
*** your PATH or compiler configuration so that the native linker is
8218
*** used, and then restart.
8219
8220
_LT_EOF
8221
	;;
8222
	*)
8223
	  # For security reasons, it is highly recommended that you always
8224
	  # use absolute paths for naming shared libraries, and exclude the
8225
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8226
	  # requires that you compile everything twice, which is a pain.
8227
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8228
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8229
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231
	  else
8232
	    ld_shlibs=no
8233
	  fi
8234
	;;
8235
      esac
8236
      ;;
8237
8238
    sunos4*)
8239
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8240
      wlarc=
8241
      hardcode_direct=yes
8242
      hardcode_shlibpath_var=no
8243
      ;;
8244
8245
    *)
8246
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8247
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8249
      else
8250
	ld_shlibs=no
8251
      fi
8252
      ;;
8253
    esac
8254
8255
    if test "$ld_shlibs" = no; then
8256
      runpath_var=
8257
      hardcode_libdir_flag_spec=
8258
      export_dynamic_flag_spec=
8259
      whole_archive_flag_spec=
8260
    fi
8261
  else
8262
    # PORTME fill in a description of your system's linker (not GNU ld)
8263
    case $host_os in
8264
    aix3*)
8265
      allow_undefined_flag=unsupported
8266
      always_export_symbols=yes
8267
      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'
8268
      # Note: this linker hardcodes the directories in LIBPATH if there
8269
      # are no directories specified by -L.
8270
      hardcode_minus_L=yes
8271
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8272
	# Neither direct hardcoding nor static linking is supported with a
8273
	# broken collect2.
8274
	hardcode_direct=unsupported
8275
      fi
8276
      ;;
8277
8278
    aix[4-9]*)
8279
      if test "$host_cpu" = ia64; then
8280
	# On IA64, the linker does run time linking by default, so we don't
8281
	# have to do anything special.
8282
	aix_use_runtimelinking=no
8283
	exp_sym_flag='-Bexport'
8284
	no_entry_flag=""
8285
      else
8286
	# If we're using GNU nm, then we don't want the "-C" option.
8287
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8288
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8289
	  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'
8290
	else
8291
	  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'
8292
	fi
8293
	aix_use_runtimelinking=no
8294
8295
	# Test if we are trying to use run time linking or normal
8296
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8297
	# need to do runtime linking.
8298
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8299
	  for ld_flag in $LDFLAGS; do
8300
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8301
	    aix_use_runtimelinking=yes
8302
	    break
8303
	  fi
8304
	  done
8305
	  ;;
8306
	esac
8307
8308
	exp_sym_flag='-bexport'
8309
	no_entry_flag='-bnoentry'
8310
      fi
8311
8312
      # When large executables or shared objects are built, AIX ld can
8313
      # have problems creating the table of contents.  If linking a library
8314
      # or program results in "error TOC overflow" add -mminimal-toc to
8315
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8316
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8317
8318
      archive_cmds=''
8319
      hardcode_direct=yes
8320
      hardcode_direct_absolute=yes
8321
      hardcode_libdir_separator=':'
8322
      link_all_deplibs=yes
8323
      file_list_spec='${wl}-f,'
8324
8325
      if test "$GCC" = yes; then
8326
	case $host_os in aix4.[012]|aix4.[012].*)
8327
	# We only want to do this on AIX 4.2 and lower, the check
8328
	# below for broken collect2 doesn't work under 4.3+
8329
	  collect2name=`${CC} -print-prog-name=collect2`
8330
	  if test -f "$collect2name" &&
8331
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8332
	  then
8333
	  # We have reworked collect2
8334
	  :
8335
	  else
8336
	  # We have old collect2
8337
	  hardcode_direct=unsupported
8338
	  # It fails to find uninstalled libraries when the uninstalled
8339
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8340
	  # to unsupported forces relinking
8341
	  hardcode_minus_L=yes
8342
	  hardcode_libdir_flag_spec='-L$libdir'
8343
	  hardcode_libdir_separator=
8344
	  fi
8345
	  ;;
8346
	esac
8347
	shared_flag='-shared'
8348
	if test "$aix_use_runtimelinking" = yes; then
8349
	  shared_flag="$shared_flag "'${wl}-G'
8350
	fi
8351
	link_all_deplibs=no
8352
      else
8353
	# not using gcc
8354
	if test "$host_cpu" = ia64; then
8355
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8356
	# chokes on -Wl,-G. The following line is correct:
8357
	  shared_flag='-G'
8358
	else
8359
	  if test "$aix_use_runtimelinking" = yes; then
8360
	    shared_flag='${wl}-G'
8361
	  else
8362
	    shared_flag='${wl}-bM:SRE'
8363
	  fi
8364
	fi
8365
      fi
8366
8367
      export_dynamic_flag_spec='${wl}-bexpall'
8368
      # It seems that -bexpall does not export symbols beginning with
8369
      # underscore (_), so it is better to generate a list of symbols to export.
8370
      always_export_symbols=yes
8371
      if test "$aix_use_runtimelinking" = yes; then
8372
	# Warning - without using the other runtime loading flags (-brtl),
8373
	# -berok will link without error, but may produce a broken library.
8374
	allow_undefined_flag='-berok'
8375
        # Determine the default libpath from the value encoded in an
8376
        # empty executable.
8377
        cat >conftest.$ac_ext <<_ACEOF
8378
/* confdefs.h.  */
8379
_ACEOF
8380
cat confdefs.h >>conftest.$ac_ext
8381
cat >>conftest.$ac_ext <<_ACEOF
8382
/* end confdefs.h.  */
8383
8384
int
8385
main ()
8386
{
8387
8388
  ;
8389
  return 0;
8390
}
8391
_ACEOF
8392
rm -f conftest.$ac_objext conftest$ac_exeext
8393
if { (ac_try="$ac_link"
8394
case "(($ac_try" in
8395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396
  *) ac_try_echo=$ac_try;;
8397
esac
8398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399
$as_echo "$ac_try_echo") >&5
8400
  (eval "$ac_link") 2>conftest.er1
8401
  ac_status=$?
8402
  grep -v '^ *+' conftest.er1 >conftest.err
8403
  rm -f conftest.er1
8404
  cat conftest.err >&5
8405
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406
  (exit $ac_status); } && {
8407
	 test -z "$ac_c_werror_flag" ||
8408
	 test ! -s conftest.err
8409
       } && test -s conftest$ac_exeext && {
8410
	 test "$cross_compiling" = yes ||
8411
	 $as_test_x conftest$ac_exeext
8412
       }; then
8413
8414
lt_aix_libpath_sed='
8415
    /Import File Strings/,/^$/ {
8416
	/^0/ {
8417
	    s/^0  *\(.*\)$/\1/
8418
	    p
8419
	}
8420
    }'
8421
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8422
# Check for a 64-bit object if we didn't find anything.
8423
if test -z "$aix_libpath"; then
8424
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8425
fi
8426
else
8427
  $as_echo "$as_me: failed program was:" >&5
8428
sed 's/^/| /' conftest.$ac_ext >&5
8429
8430
8431
fi
8432
8433
rm -rf conftest.dSYM
8434
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8435
      conftest$ac_exeext conftest.$ac_ext
8436
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437
8438
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8440
      else
8441
	if test "$host_cpu" = ia64; then
8442
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8443
	  allow_undefined_flag="-z nodefs"
8444
	  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"
8445
	else
8446
	 # Determine the default libpath from the value encoded in an
8447
	 # empty executable.
8448
	 cat >conftest.$ac_ext <<_ACEOF
8449
/* confdefs.h.  */
8450
_ACEOF
8451
cat confdefs.h >>conftest.$ac_ext
8452
cat >>conftest.$ac_ext <<_ACEOF
8453
/* end confdefs.h.  */
8454
8455
int
8456
main ()
8457
{
8458
8459
  ;
8460
  return 0;
8461
}
8462
_ACEOF
8463
rm -f conftest.$ac_objext conftest$ac_exeext
8464
if { (ac_try="$ac_link"
8465
case "(($ac_try" in
8466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467
  *) ac_try_echo=$ac_try;;
8468
esac
8469
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8470
$as_echo "$ac_try_echo") >&5
8471
  (eval "$ac_link") 2>conftest.er1
8472
  ac_status=$?
8473
  grep -v '^ *+' conftest.er1 >conftest.err
8474
  rm -f conftest.er1
8475
  cat conftest.err >&5
8476
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477
  (exit $ac_status); } && {
8478
	 test -z "$ac_c_werror_flag" ||
8479
	 test ! -s conftest.err
8480
       } && test -s conftest$ac_exeext && {
8481
	 test "$cross_compiling" = yes ||
8482
	 $as_test_x conftest$ac_exeext
8483
       }; then
8484
8485
lt_aix_libpath_sed='
8486
    /Import File Strings/,/^$/ {
8487
	/^0/ {
8488
	    s/^0  *\(.*\)$/\1/
8489
	    p
8490
	}
8491
    }'
8492
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8493
# Check for a 64-bit object if we didn't find anything.
8494
if test -z "$aix_libpath"; then
8495
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8496
fi
8497
else
8498
  $as_echo "$as_me: failed program was:" >&5
8499
sed 's/^/| /' conftest.$ac_ext >&5
8500
8501
8502
fi
8503
8504
rm -rf conftest.dSYM
8505
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8506
      conftest$ac_exeext conftest.$ac_ext
8507
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8508
8509
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8510
	  # Warning - without using the other run time loading flags,
8511
	  # -berok will link without error, but may produce a broken library.
8512
	  no_undefined_flag=' ${wl}-bernotok'
8513
	  allow_undefined_flag=' ${wl}-berok'
8514
	  # Exported symbols can be pulled into shared objects from archives
8515
	  whole_archive_flag_spec='$convenience'
8516
	  archive_cmds_need_lc=yes
8517
	  # This is similar to how AIX traditionally builds its shared libraries.
8518
	  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'
8519
	fi
8520
      fi
8521
      ;;
8522
8523
    amigaos*)
8524
      case $host_cpu in
8525
      powerpc)
8526
            # see comment about AmigaOS4 .so support
8527
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528
            archive_expsym_cmds=''
8529
        ;;
8530
      m68k)
8531
            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)'
8532
            hardcode_libdir_flag_spec='-L$libdir'
8533
            hardcode_minus_L=yes
8534
        ;;
8535
      esac
8536
      ;;
8537
8538
    bsdi[45]*)
8539
      export_dynamic_flag_spec=-rdynamic
8540
      ;;
8541
8542
    cygwin* | mingw* | pw32* | cegcc*)
8543
      # When not using gcc, we currently assume that we are using
8544
      # Microsoft Visual C++.
8545
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8546
      # no search path for DLLs.
8547
      hardcode_libdir_flag_spec=' '
8548
      allow_undefined_flag=unsupported
8549
      # Tell ltmain to make .lib files, not .a files.
8550
      libext=lib
8551
      # Tell ltmain to make .dll files, not .so files.
8552
      shrext_cmds=".dll"
8553
      # FIXME: Setting linknames here is a bad hack.
8554
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8555
      # The linker will automatically build a .lib file if we build a DLL.
8556
      old_archive_from_new_cmds='true'
8557
      # FIXME: Should let the user specify the lib program.
8558
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8559
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8560
      enable_shared_with_static_runtimes=yes
8561
      ;;
8562
8563
    darwin* | rhapsody*)
8564
8565
8566
  archive_cmds_need_lc=no
8567
  hardcode_direct=no
8568
  hardcode_automatic=yes
8569
  hardcode_shlibpath_var=unsupported
8570
  whole_archive_flag_spec=''
8571
  link_all_deplibs=yes
8572
  allow_undefined_flag="$_lt_dar_allow_undefined"
8573
  case $cc_basename in
8574
     ifort*) _lt_dar_can_shared=yes ;;
8575
     *) _lt_dar_can_shared=$GCC ;;
8576
  esac
8577
  if test "$_lt_dar_can_shared" = "yes"; then
8578
    output_verbose_link_cmd=echo
8579
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8580
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8581
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8582
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8583
8584
  else
8585
  ld_shlibs=no
8586
  fi
8587
8588
      ;;
8589
8590
    dgux*)
8591
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592
      hardcode_libdir_flag_spec='-L$libdir'
8593
      hardcode_shlibpath_var=no
8594
      ;;
8595
8596
    freebsd1*)
8597
      ld_shlibs=no
8598
      ;;
8599
8600
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8601
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8602
    # does not break anything, and helps significantly (at the cost of a little
8603
    # extra space).
8604
    freebsd2.2*)
8605
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8606
      hardcode_libdir_flag_spec='-R$libdir'
8607
      hardcode_direct=yes
8608
      hardcode_shlibpath_var=no
8609
      ;;
8610
8611
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8612
    freebsd2*)
8613
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8614
      hardcode_direct=yes
8615
      hardcode_minus_L=yes
8616
      hardcode_shlibpath_var=no
8617
      ;;
8618
8619
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8620
    freebsd* | dragonfly*)
8621
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8622
      hardcode_libdir_flag_spec='-R$libdir'
8623
      hardcode_direct=yes
8624
      hardcode_shlibpath_var=no
8625
      ;;
8626
8627
    hpux9*)
8628
      if test "$GCC" = yes; then
8629
	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'
8630
      else
8631
	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'
8632
      fi
8633
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8634
      hardcode_libdir_separator=:
8635
      hardcode_direct=yes
8636
8637
      # hardcode_minus_L: Not really in the search PATH,
8638
      # but as the default location of the library.
8639
      hardcode_minus_L=yes
8640
      export_dynamic_flag_spec='${wl}-E'
8641
      ;;
8642
8643
    hpux10*)
8644
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8645
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8646
      else
8647
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8648
      fi
8649
      if test "$with_gnu_ld" = no; then
8650
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8651
	hardcode_libdir_flag_spec_ld='+b $libdir'
8652
	hardcode_libdir_separator=:
8653
	hardcode_direct=yes
8654
	hardcode_direct_absolute=yes
8655
	export_dynamic_flag_spec='${wl}-E'
8656
	# hardcode_minus_L: Not really in the search PATH,
8657
	# but as the default location of the library.
8658
	hardcode_minus_L=yes
8659
      fi
8660
      ;;
8661
8662
    hpux11*)
8663
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664
	case $host_cpu in
8665
	hppa*64*)
8666
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667
	  ;;
8668
	ia64*)
8669
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8670
	  ;;
8671
	*)
8672
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8673
	  ;;
8674
	esac
8675
      else
8676
	case $host_cpu in
8677
	hppa*64*)
8678
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8679
	  ;;
8680
	ia64*)
8681
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8682
	  ;;
8683
	*)
8684
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8685
	  ;;
8686
	esac
8687
      fi
8688
      if test "$with_gnu_ld" = no; then
8689
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8690
	hardcode_libdir_separator=:
8691
8692
	case $host_cpu in
8693
	hppa*64*|ia64*)
8694
	  hardcode_direct=no
8695
	  hardcode_shlibpath_var=no
8696
	  ;;
8697
	*)
8698
	  hardcode_direct=yes
8699
	  hardcode_direct_absolute=yes
8700
	  export_dynamic_flag_spec='${wl}-E'
8701
8702
	  # hardcode_minus_L: Not really in the search PATH,
8703
	  # but as the default location of the library.
8704
	  hardcode_minus_L=yes
8705
	  ;;
8706
	esac
8707
      fi
8708
      ;;
8709
8710
    irix5* | irix6* | nonstopux*)
8711
      if test "$GCC" = yes; then
8712
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8713
	# Try to use the -exported_symbol ld option, if it does not
8714
	# work, assume that -exports_file does not work either and
8715
	# implicitly export all symbols.
8716
        save_LDFLAGS="$LDFLAGS"
8717
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8718
        cat >conftest.$ac_ext <<_ACEOF
8719
int foo(void) {}
8720
_ACEOF
8721
rm -f conftest.$ac_objext conftest$ac_exeext
8722
if { (ac_try="$ac_link"
8723
case "(($ac_try" in
8724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725
  *) ac_try_echo=$ac_try;;
8726
esac
8727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8728
$as_echo "$ac_try_echo") >&5
8729
  (eval "$ac_link") 2>conftest.er1
8730
  ac_status=$?
8731
  grep -v '^ *+' conftest.er1 >conftest.err
8732
  rm -f conftest.er1
8733
  cat conftest.err >&5
8734
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735
  (exit $ac_status); } && {
8736
	 test -z "$ac_c_werror_flag" ||
8737
	 test ! -s conftest.err
8738
       } && test -s conftest$ac_exeext && {
8739
	 test "$cross_compiling" = yes ||
8740
	 $as_test_x conftest$ac_exeext
8741
       }; then
8742
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8743
8744
else
8745
  $as_echo "$as_me: failed program was:" >&5
8746
sed 's/^/| /' conftest.$ac_ext >&5
8747
8748
8749
fi
8750
8751
rm -rf conftest.dSYM
8752
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8753
      conftest$ac_exeext conftest.$ac_ext
8754
        LDFLAGS="$save_LDFLAGS"
8755
      else
8756
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8757
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8758
      fi
8759
      archive_cmds_need_lc='no'
8760
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761
      hardcode_libdir_separator=:
8762
      inherit_rpath=yes
8763
      link_all_deplibs=yes
8764
      ;;
8765
8766
    netbsd* | netbsdelf*-gnu)
8767
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8768
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8769
      else
8770
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8771
      fi
8772
      hardcode_libdir_flag_spec='-R$libdir'
8773
      hardcode_direct=yes
8774
      hardcode_shlibpath_var=no
8775
      ;;
8776
8777
    newsos6)
8778
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779
      hardcode_direct=yes
8780
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781
      hardcode_libdir_separator=:
8782
      hardcode_shlibpath_var=no
8783
      ;;
8784
8785
    *nto* | *qnx*)
8786
      ;;
8787
8788
    openbsd*)
8789
      if test -f /usr/libexec/ld.so; then
8790
	hardcode_direct=yes
8791
	hardcode_shlibpath_var=no
8792
	hardcode_direct_absolute=yes
8793
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8794
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8795
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8796
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8797
	  export_dynamic_flag_spec='${wl}-E'
8798
	else
8799
	  case $host_os in
8800
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8801
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8802
	     hardcode_libdir_flag_spec='-R$libdir'
8803
	     ;;
8804
	   *)
8805
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8806
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8807
	     ;;
8808
	  esac
8809
	fi
8810
      else
8811
	ld_shlibs=no
8812
      fi
8813
      ;;
8814
8815
    os2*)
8816
      hardcode_libdir_flag_spec='-L$libdir'
8817
      hardcode_minus_L=yes
8818
      allow_undefined_flag=unsupported
8819
      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'
8820
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8821
      ;;
8822
8823
    osf3*)
8824
      if test "$GCC" = yes; then
8825
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8826
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8827
      else
8828
	allow_undefined_flag=' -expect_unresolved \*'
8829
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8830
      fi
8831
      archive_cmds_need_lc='no'
8832
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833
      hardcode_libdir_separator=:
8834
      ;;
8835
8836
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8837
      if test "$GCC" = yes; then
8838
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8839
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8840
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841
      else
8842
	allow_undefined_flag=' -expect_unresolved \*'
8843
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8844
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8845
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8846
8847
	# Both c and cxx compiler support -rpath directly
8848
	hardcode_libdir_flag_spec='-rpath $libdir'
8849
      fi
8850
      archive_cmds_need_lc='no'
8851
      hardcode_libdir_separator=:
8852
      ;;
8853
8854
    solaris*)
8855
      no_undefined_flag=' -z defs'
8856
      if test "$GCC" = yes; then
8857
	wlarc='${wl}'
8858
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8859
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8860
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8861
      else
8862
	case `$CC -V 2>&1` in
8863
	*"Compilers 5.0"*)
8864
	  wlarc=''
8865
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8867
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8868
	  ;;
8869
	*)
8870
	  wlarc='${wl}'
8871
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8872
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8873
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8874
	  ;;
8875
	esac
8876
      fi
8877
      hardcode_libdir_flag_spec='-R$libdir'
8878
      hardcode_shlibpath_var=no
8879
      case $host_os in
8880
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8881
      *)
8882
	# The compiler driver will combine and reorder linker options,
8883
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8884
	# but is careful enough not to reorder.
8885
	# Supported since Solaris 2.6 (maybe 2.5.1?)
8886
	if test "$GCC" = yes; then
8887
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8888
	else
8889
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8890
	fi
8891
	;;
8892
      esac
8893
      link_all_deplibs=yes
8894
      ;;
8895
8896
    sunos4*)
8897
      if test "x$host_vendor" = xsequent; then
8898
	# Use $CC to link under sequent, because it throws in some extra .o
8899
	# files that make .init and .fini sections work.
8900
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8901
      else
8902
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8903
      fi
8904
      hardcode_libdir_flag_spec='-L$libdir'
8905
      hardcode_direct=yes
8906
      hardcode_minus_L=yes
8907
      hardcode_shlibpath_var=no
8908
      ;;
8909
8910
    sysv4)
8911
      case $host_vendor in
8912
	sni)
8913
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914
	  hardcode_direct=yes # is this really true???
8915
	;;
8916
	siemens)
8917
	  ## LD is ld it makes a PLAMLIB
8918
	  ## CC just makes a GrossModule.
8919
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8920
	  reload_cmds='$CC -r -o $output$reload_objs'
8921
	  hardcode_direct=no
8922
        ;;
8923
	motorola)
8924
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8926
	;;
8927
      esac
8928
      runpath_var='LD_RUN_PATH'
8929
      hardcode_shlibpath_var=no
8930
      ;;
8931
8932
    sysv4.3*)
8933
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934
      hardcode_shlibpath_var=no
8935
      export_dynamic_flag_spec='-Bexport'
8936
      ;;
8937
8938
    sysv4*MP*)
8939
      if test -d /usr/nec; then
8940
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941
	hardcode_shlibpath_var=no
8942
	runpath_var=LD_RUN_PATH
8943
	hardcode_runpath_var=yes
8944
	ld_shlibs=yes
8945
      fi
8946
      ;;
8947
8948
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8949
      no_undefined_flag='${wl}-z,text'
8950
      archive_cmds_need_lc=no
8951
      hardcode_shlibpath_var=no
8952
      runpath_var='LD_RUN_PATH'
8953
8954
      if test "$GCC" = yes; then
8955
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8957
      else
8958
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8959
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8960
      fi
8961
      ;;
8962
8963
    sysv5* | sco3.2v5* | sco5v6*)
8964
      # Note: We can NOT use -z defs as we might desire, because we do not
8965
      # link with -lc, and that would cause any symbols used from libc to
8966
      # always be unresolved, which means just about no library would
8967
      # ever link correctly.  If we're not using GNU ld we use -z text
8968
      # though, which does catch some bad symbols but isn't as heavy-handed
8969
      # as -z defs.
8970
      no_undefined_flag='${wl}-z,text'
8971
      allow_undefined_flag='${wl}-z,nodefs'
8972
      archive_cmds_need_lc=no
8973
      hardcode_shlibpath_var=no
8974
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8975
      hardcode_libdir_separator=':'
8976
      link_all_deplibs=yes
8977
      export_dynamic_flag_spec='${wl}-Bexport'
8978
      runpath_var='LD_RUN_PATH'
8979
8980
      if test "$GCC" = yes; then
8981
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983
      else
8984
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8986
      fi
8987
      ;;
8988
8989
    uts4*)
8990
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991
      hardcode_libdir_flag_spec='-L$libdir'
8992
      hardcode_shlibpath_var=no
8993
      ;;
8994
8995
    *)
8996
      ld_shlibs=no
8997
      ;;
8998
    esac
8999
9000
    if test x$host_vendor = xsni; then
9001
      case $host in
9002
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9003
	export_dynamic_flag_spec='${wl}-Blargedynsym'
9004
	;;
9005
      esac
9006
    fi
9007
  fi
9008
9009
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9010
$as_echo "$ld_shlibs" >&6; }
9011
test "$ld_shlibs" = no && can_build_shared=no
9012
9013
with_gnu_ld=$with_gnu_ld
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
#
9030
# Do we need to explicitly link libc?
9031
#
9032
case "x$archive_cmds_need_lc" in
9033
x|xyes)
9034
  # Assume -lc should be added
9035
  archive_cmds_need_lc=yes
9036
9037
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9038
    case $archive_cmds in
9039
    *'~'*)
9040
      # FIXME: we may have to deal with multi-command sequences.
9041
      ;;
9042
    '$CC '*)
9043
      # Test whether the compiler implicitly links with -lc since on some
9044
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9045
      # to ld, don't add -lc before -lgcc.
9046
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9047
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9048
      $RM conftest*
9049
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9050
9051
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9052
  (eval $ac_compile) 2>&5
9053
  ac_status=$?
9054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055
  (exit $ac_status); } 2>conftest.err; then
9056
        soname=conftest
9057
        lib=conftest
9058
        libobjs=conftest.$ac_objext
9059
        deplibs=
9060
        wl=$lt_prog_compiler_wl
9061
	pic_flag=$lt_prog_compiler_pic
9062
        compiler_flags=-v
9063
        linker_flags=-v
9064
        verstring=
9065
        output_objdir=.
9066
        libname=conftest
9067
        lt_save_allow_undefined_flag=$allow_undefined_flag
9068
        allow_undefined_flag=
9069
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9070
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9071
  ac_status=$?
9072
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073
  (exit $ac_status); }
9074
        then
9075
	  archive_cmds_need_lc=no
9076
        else
9077
	  archive_cmds_need_lc=yes
9078
        fi
9079
        allow_undefined_flag=$lt_save_allow_undefined_flag
9080
      else
9081
        cat conftest.err 1>&5
9082
      fi
9083
      $RM conftest*
9084
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9085
$as_echo "$archive_cmds_need_lc" >&6; }
9086
      ;;
9087
    esac
9088
  fi
9089
  ;;
9090
esac
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9249
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9250
9251
if test "$GCC" = yes; then
9252
  case $host_os in
9253
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9254
    *) lt_awk_arg="/^libraries:/" ;;
9255
  esac
9256
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9257
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9258
    # if the path contains ";" then we assume it to be the separator
9259
    # otherwise default to the standard path separator (i.e. ":") - it is
9260
    # assumed that no part of a normal pathname contains ";" but that should
9261
    # okay in the real world where ";" in dirpaths is itself problematic.
9262
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9263
  else
9264
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9265
  fi
9266
  # Ok, now we have the path, separated by spaces, we can step through it
9267
  # and add multilib dir if necessary.
9268
  lt_tmp_lt_search_path_spec=
9269
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9270
  for lt_sys_path in $lt_search_path_spec; do
9271
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9272
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9273
    else
9274
      test -d "$lt_sys_path" && \
9275
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9276
    fi
9277
  done
9278
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9279
BEGIN {RS=" "; FS="/|\n";} {
9280
  lt_foo="";
9281
  lt_count=0;
9282
  for (lt_i = NF; lt_i > 0; lt_i--) {
9283
    if ($lt_i != "" && $lt_i != ".") {
9284
      if ($lt_i == "..") {
9285
        lt_count++;
9286
      } else {
9287
        if (lt_count == 0) {
9288
          lt_foo="/" $lt_i lt_foo;
9289
        } else {
9290
          lt_count--;
9291
        }
9292
      }
9293
    }
9294
  }
9295
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9296
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9297
}'`
9298
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9299
else
9300
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9301
fi
9302
library_names_spec=
9303
libname_spec='lib$name'
9304
soname_spec=
9305
shrext_cmds=".so"
9306
postinstall_cmds=
9307
postuninstall_cmds=
9308
finish_cmds=
9309
finish_eval=
9310
shlibpath_var=
9311
shlibpath_overrides_runpath=unknown
9312
version_type=none
9313
dynamic_linker="$host_os ld.so"
9314
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9315
need_lib_prefix=unknown
9316
hardcode_into_libs=no
9317
9318
# when you set need_version to no, make sure it does not cause -set_version
9319
# flags to be left without arguments
9320
need_version=unknown
9321
9322
case $host_os in
9323
aix3*)
9324
  version_type=linux
9325
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9326
  shlibpath_var=LIBPATH
9327
9328
  # AIX 3 has no versioning support, so we append a major version to the name.
9329
  soname_spec='${libname}${release}${shared_ext}$major'
9330
  ;;
9331
9332
aix[4-9]*)
9333
  version_type=linux
9334
  need_lib_prefix=no
9335
  need_version=no
9336
  hardcode_into_libs=yes
9337
  if test "$host_cpu" = ia64; then
9338
    # AIX 5 supports IA64
9339
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9340
    shlibpath_var=LD_LIBRARY_PATH
9341
  else
9342
    # With GCC up to 2.95.x, collect2 would create an import file
9343
    # for dependence libraries.  The import file would start with
9344
    # the line `#! .'.  This would cause the generated library to
9345
    # depend on `.', always an invalid library.  This was fixed in
9346
    # development snapshots of GCC prior to 3.0.
9347
    case $host_os in
9348
      aix4 | aix4.[01] | aix4.[01].*)
9349
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9350
	   echo ' yes '
9351
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9352
	:
9353
      else
9354
	can_build_shared=no
9355
      fi
9356
      ;;
9357
    esac
9358
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9359
    # soname into executable. Probably we can add versioning support to
9360
    # collect2, so additional links can be useful in future.
9361
    if test "$aix_use_runtimelinking" = yes; then
9362
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9363
      # instead of lib<name>.a to let people know that these are not
9364
      # typical AIX shared libraries.
9365
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366
    else
9367
      # We preserve .a as extension for shared libraries through AIX4.2
9368
      # and later when we are not doing run time linking.
9369
      library_names_spec='${libname}${release}.a $libname.a'
9370
      soname_spec='${libname}${release}${shared_ext}$major'
9371
    fi
9372
    shlibpath_var=LIBPATH
9373
  fi
9374
  ;;
9375
9376
amigaos*)
9377
  case $host_cpu in
9378
  powerpc)
9379
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9380
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9381
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382
    ;;
9383
  m68k)
9384
    library_names_spec='$libname.ixlibrary $libname.a'
9385
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9386
    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'
9387
    ;;
9388
  esac
9389
  ;;
9390
9391
beos*)
9392
  library_names_spec='${libname}${shared_ext}'
9393
  dynamic_linker="$host_os ld.so"
9394
  shlibpath_var=LIBRARY_PATH
9395
  ;;
9396
9397
bsdi[45]*)
9398
  version_type=linux
9399
  need_version=no
9400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401
  soname_spec='${libname}${release}${shared_ext}$major'
9402
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9403
  shlibpath_var=LD_LIBRARY_PATH
9404
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9405
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9406
  # the default ld.so.conf also contains /usr/contrib/lib and
9407
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9408
  # libtool to hard-code these into programs
9409
  ;;
9410
9411
cygwin* | mingw* | pw32* | cegcc*)
9412
  version_type=windows
9413
  shrext_cmds=".dll"
9414
  need_version=no
9415
  need_lib_prefix=no
9416
9417
  case $GCC,$host_os in
9418
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9419
    library_names_spec='$libname.dll.a'
9420
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9421
    postinstall_cmds='base_file=`basename \${file}`~
9422
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9423
      dldir=$destdir/`dirname \$dlpath`~
9424
      test -d \$dldir || mkdir -p \$dldir~
9425
      $install_prog $dir/$dlname \$dldir/$dlname~
9426
      chmod a+x \$dldir/$dlname~
9427
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9428
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9429
      fi'
9430
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9431
      dlpath=$dir/\$dldll~
9432
       $RM \$dlpath'
9433
    shlibpath_overrides_runpath=yes
9434
9435
    case $host_os in
9436
    cygwin*)
9437
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9438
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9439
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9440
      ;;
9441
    mingw* | cegcc*)
9442
      # MinGW DLLs use traditional 'lib' prefix
9443
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9444
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9445
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9446
        # It is most probably a Windows format PATH printed by
9447
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9448
        # path with ; separators, and with drive letters. We can handle the
9449
        # drive letters (cygwin fileutils understands them), so leave them,
9450
        # especially as we might pass files found there to a mingw objdump,
9451
        # which wouldn't understand a cygwinified path. Ahh.
9452
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9453
      else
9454
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9455
      fi
9456
      ;;
9457
    pw32*)
9458
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9459
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9460
      ;;
9461
    esac
9462
    ;;
9463
9464
  *)
9465
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9466
    ;;
9467
  esac
9468
  dynamic_linker='Win32 ld.exe'
9469
  # FIXME: first we should search . and the directory the executable is in
9470
  shlibpath_var=PATH
9471
  ;;
9472
9473
darwin* | rhapsody*)
9474
  dynamic_linker="$host_os dyld"
9475
  version_type=darwin
9476
  need_lib_prefix=no
9477
  need_version=no
9478
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9479
  soname_spec='${libname}${release}${major}$shared_ext'
9480
  shlibpath_overrides_runpath=yes
9481
  shlibpath_var=DYLD_LIBRARY_PATH
9482
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9483
9484
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9485
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9486
  ;;
9487
9488
dgux*)
9489
  version_type=linux
9490
  need_lib_prefix=no
9491
  need_version=no
9492
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9493
  soname_spec='${libname}${release}${shared_ext}$major'
9494
  shlibpath_var=LD_LIBRARY_PATH
9495
  ;;
9496
9497
freebsd1*)
9498
  dynamic_linker=no
9499
  ;;
9500
9501
freebsd* | dragonfly*)
9502
  # DragonFly does not have aout.  When/if they implement a new
9503
  # versioning mechanism, adjust this.
9504
  if test -x /usr/bin/objformat; then
9505
    objformat=`/usr/bin/objformat`
9506
  else
9507
    case $host_os in
9508
    freebsd[123]*) objformat=aout ;;
9509
    *) objformat=elf ;;
9510
    esac
9511
  fi
9512
  version_type=freebsd-$objformat
9513
  case $version_type in
9514
    freebsd-elf*)
9515
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9516
      need_version=no
9517
      need_lib_prefix=no
9518
      ;;
9519
    freebsd-*)
9520
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9521
      need_version=yes
9522
      ;;
9523
  esac
9524
  shlibpath_var=LD_LIBRARY_PATH
9525
  case $host_os in
9526
  freebsd2*)
9527
    shlibpath_overrides_runpath=yes
9528
    ;;
9529
  freebsd3.[01]* | freebsdelf3.[01]*)
9530
    shlibpath_overrides_runpath=yes
9531
    hardcode_into_libs=yes
9532
    ;;
9533
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9534
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9535
    shlibpath_overrides_runpath=no
9536
    hardcode_into_libs=yes
9537
    ;;
9538
  *) # from 4.6 on, and DragonFly
9539
    shlibpath_overrides_runpath=yes
9540
    hardcode_into_libs=yes
9541
    ;;
9542
  esac
9543
  ;;
9544
9545
gnu*)
9546
  version_type=linux
9547
  need_lib_prefix=no
9548
  need_version=no
9549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9550
  soname_spec='${libname}${release}${shared_ext}$major'
9551
  shlibpath_var=LD_LIBRARY_PATH
9552
  hardcode_into_libs=yes
9553
  ;;
9554
9555
hpux9* | hpux10* | hpux11*)
9556
  # Give a soname corresponding to the major version so that dld.sl refuses to
9557
  # link against other versions.
9558
  version_type=sunos
9559
  need_lib_prefix=no
9560
  need_version=no
9561
  case $host_cpu in
9562
  ia64*)
9563
    shrext_cmds='.so'
9564
    hardcode_into_libs=yes
9565
    dynamic_linker="$host_os dld.so"
9566
    shlibpath_var=LD_LIBRARY_PATH
9567
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9568
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569
    soname_spec='${libname}${release}${shared_ext}$major'
9570
    if test "X$HPUX_IA64_MODE" = X32; then
9571
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9572
    else
9573
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9574
    fi
9575
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9576
    ;;
9577
  hppa*64*)
9578
    shrext_cmds='.sl'
9579
    hardcode_into_libs=yes
9580
    dynamic_linker="$host_os dld.sl"
9581
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9582
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9583
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584
    soname_spec='${libname}${release}${shared_ext}$major'
9585
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9586
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9587
    ;;
9588
  *)
9589
    shrext_cmds='.sl'
9590
    dynamic_linker="$host_os dld.sl"
9591
    shlibpath_var=SHLIB_PATH
9592
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9593
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594
    soname_spec='${libname}${release}${shared_ext}$major'
9595
    ;;
9596
  esac
9597
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9598
  postinstall_cmds='chmod 555 $lib'
9599
  ;;
9600
9601
interix[3-9]*)
9602
  version_type=linux
9603
  need_lib_prefix=no
9604
  need_version=no
9605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9606
  soname_spec='${libname}${release}${shared_ext}$major'
9607
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9608
  shlibpath_var=LD_LIBRARY_PATH
9609
  shlibpath_overrides_runpath=no
9610
  hardcode_into_libs=yes
9611
  ;;
9612
9613
irix5* | irix6* | nonstopux*)
9614
  case $host_os in
9615
    nonstopux*) version_type=nonstopux ;;
9616
    *)
9617
	if test "$lt_cv_prog_gnu_ld" = yes; then
9618
		version_type=linux
9619
	else
9620
		version_type=irix
9621
	fi ;;
9622
  esac
9623
  need_lib_prefix=no
9624
  need_version=no
9625
  soname_spec='${libname}${release}${shared_ext}$major'
9626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9627
  case $host_os in
9628
  irix5* | nonstopux*)
9629
    libsuff= shlibsuff=
9630
    ;;
9631
  *)
9632
    case $LD in # libtool.m4 will add one of these switches to LD
9633
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9634
      libsuff= shlibsuff= libmagic=32-bit;;
9635
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9636
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9637
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9638
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9639
    *) libsuff= shlibsuff= libmagic=never-match;;
9640
    esac
9641
    ;;
9642
  esac
9643
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9644
  shlibpath_overrides_runpath=no
9645
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9646
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9647
  hardcode_into_libs=yes
9648
  ;;
9649
9650
# No shared lib support for Linux oldld, aout, or coff.
9651
linux*oldld* | linux*aout* | linux*coff*)
9652
  dynamic_linker=no
9653
  ;;
9654
9655
# This must be Linux ELF.
9656
linux* | k*bsd*-gnu)
9657
  version_type=linux
9658
  need_lib_prefix=no
9659
  need_version=no
9660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661
  soname_spec='${libname}${release}${shared_ext}$major'
9662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9663
  shlibpath_var=LD_LIBRARY_PATH
9664
  shlibpath_overrides_runpath=no
9665
  # Some binutils ld are patched to set DT_RUNPATH
9666
  save_LDFLAGS=$LDFLAGS
9667
  save_libdir=$libdir
9668
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9669
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9670
  cat >conftest.$ac_ext <<_ACEOF
9671
/* confdefs.h.  */
9672
_ACEOF
9673
cat confdefs.h >>conftest.$ac_ext
9674
cat >>conftest.$ac_ext <<_ACEOF
9675
/* end confdefs.h.  */
9676
9677
int
9678
main ()
9679
{
9680
9681
  ;
9682
  return 0;
9683
}
9684
_ACEOF
9685
rm -f conftest.$ac_objext conftest$ac_exeext
9686
if { (ac_try="$ac_link"
9687
case "(($ac_try" in
9688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689
  *) ac_try_echo=$ac_try;;
9690
esac
9691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9692
$as_echo "$ac_try_echo") >&5
9693
  (eval "$ac_link") 2>conftest.er1
9694
  ac_status=$?
9695
  grep -v '^ *+' conftest.er1 >conftest.err
9696
  rm -f conftest.er1
9697
  cat conftest.err >&5
9698
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699
  (exit $ac_status); } && {
9700
	 test -z "$ac_c_werror_flag" ||
9701
	 test ! -s conftest.err
9702
       } && test -s conftest$ac_exeext && {
9703
	 test "$cross_compiling" = yes ||
9704
	 $as_test_x conftest$ac_exeext
9705
       }; then
9706
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9707
  shlibpath_overrides_runpath=yes
9708
fi
9709
9710
else
9711
  $as_echo "$as_me: failed program was:" >&5
9712
sed 's/^/| /' conftest.$ac_ext >&5
9713
9714
9715
fi
9716
9717
rm -rf conftest.dSYM
9718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719
      conftest$ac_exeext conftest.$ac_ext
9720
  LDFLAGS=$save_LDFLAGS
9721
  libdir=$save_libdir
9722
9723
  # This implies no fast_install, which is unacceptable.
9724
  # Some rework will be needed to allow for fast_install
9725
  # before this can be enabled.
9726
  hardcode_into_libs=yes
9727
9728
  # Append ld.so.conf contents to the search path
9729
  if test -f /etc/ld.so.conf; then
9730
    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' ' '`
9731
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9732
  fi
9733
9734
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9735
  # powerpc, because MkLinux only supported shared libraries with the
9736
  # GNU dynamic linker.  Since this was broken with cross compilers,
9737
  # most powerpc-linux boxes support dynamic linking these days and
9738
  # people can always --disable-shared, the test was removed, and we
9739
  # assume the GNU/Linux dynamic linker is in use.
9740
  dynamic_linker='GNU/Linux ld.so'
9741
  ;;
9742
9743
netbsdelf*-gnu)
9744
  version_type=linux
9745
  need_lib_prefix=no
9746
  need_version=no
9747
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9748
  soname_spec='${libname}${release}${shared_ext}$major'
9749
  shlibpath_var=LD_LIBRARY_PATH
9750
  shlibpath_overrides_runpath=no
9751
  hardcode_into_libs=yes
9752
  dynamic_linker='NetBSD ld.elf_so'
9753
  ;;
9754
9755
netbsd*)
9756
  version_type=sunos
9757
  need_lib_prefix=no
9758
  need_version=no
9759
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9760
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9761
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9762
    dynamic_linker='NetBSD (a.out) ld.so'
9763
  else
9764
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9765
    soname_spec='${libname}${release}${shared_ext}$major'
9766
    dynamic_linker='NetBSD ld.elf_so'
9767
  fi
9768
  shlibpath_var=LD_LIBRARY_PATH
9769
  shlibpath_overrides_runpath=yes
9770
  hardcode_into_libs=yes
9771
  ;;
9772
9773
newsos6)
9774
  version_type=linux
9775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776
  shlibpath_var=LD_LIBRARY_PATH
9777
  shlibpath_overrides_runpath=yes
9778
  ;;
9779
9780
*nto* | *qnx*)
9781
  version_type=qnx
9782
  need_lib_prefix=no
9783
  need_version=no
9784
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785
  soname_spec='${libname}${release}${shared_ext}$major'
9786
  shlibpath_var=LD_LIBRARY_PATH
9787
  shlibpath_overrides_runpath=no
9788
  hardcode_into_libs=yes
9789
  dynamic_linker='ldqnx.so'
9790
  ;;
9791
9792
openbsd*)
9793
  version_type=sunos
9794
  sys_lib_dlsearch_path_spec="/usr/lib"
9795
  need_lib_prefix=no
9796
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9797
  case $host_os in
9798
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9799
    *)				need_version=no  ;;
9800
  esac
9801
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9802
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9803
  shlibpath_var=LD_LIBRARY_PATH
9804
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9805
    case $host_os in
9806
      openbsd2.[89] | openbsd2.[89].*)
9807
	shlibpath_overrides_runpath=no
9808
	;;
9809
      *)
9810
	shlibpath_overrides_runpath=yes
9811
	;;
9812
      esac
9813
  else
9814
    shlibpath_overrides_runpath=yes
9815
  fi
9816
  ;;
9817
9818
os2*)
9819
  libname_spec='$name'
9820
  shrext_cmds=".dll"
9821
  need_lib_prefix=no
9822
  library_names_spec='$libname${shared_ext} $libname.a'
9823
  dynamic_linker='OS/2 ld.exe'
9824
  shlibpath_var=LIBPATH
9825
  ;;
9826
9827
osf3* | osf4* | osf5*)
9828
  version_type=osf
9829
  need_lib_prefix=no
9830
  need_version=no
9831
  soname_spec='${libname}${release}${shared_ext}$major'
9832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833
  shlibpath_var=LD_LIBRARY_PATH
9834
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9835
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9836
  ;;
9837
9838
rdos*)
9839
  dynamic_linker=no
9840
  ;;
9841
9842
solaris*)
9843
  version_type=linux
9844
  need_lib_prefix=no
9845
  need_version=no
9846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847
  soname_spec='${libname}${release}${shared_ext}$major'
9848
  shlibpath_var=LD_LIBRARY_PATH
9849
  shlibpath_overrides_runpath=yes
9850
  hardcode_into_libs=yes
9851
  # ldd complains unless libraries are executable
9852
  postinstall_cmds='chmod +x $lib'
9853
  ;;
9854
9855
sunos4*)
9856
  version_type=sunos
9857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9858
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9859
  shlibpath_var=LD_LIBRARY_PATH
9860
  shlibpath_overrides_runpath=yes
9861
  if test "$with_gnu_ld" = yes; then
9862
    need_lib_prefix=no
9863
  fi
9864
  need_version=yes
9865
  ;;
9866
9867
sysv4 | sysv4.3*)
9868
  version_type=linux
9869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870
  soname_spec='${libname}${release}${shared_ext}$major'
9871
  shlibpath_var=LD_LIBRARY_PATH
9872
  case $host_vendor in
9873
    sni)
9874
      shlibpath_overrides_runpath=no
9875
      need_lib_prefix=no
9876
      runpath_var=LD_RUN_PATH
9877
      ;;
9878
    siemens)
9879
      need_lib_prefix=no
9880
      ;;
9881
    motorola)
9882
      need_lib_prefix=no
9883
      need_version=no
9884
      shlibpath_overrides_runpath=no
9885
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9886
      ;;
9887
  esac
9888
  ;;
9889
9890
sysv4*MP*)
9891
  if test -d /usr/nec ;then
9892
    version_type=linux
9893
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9894
    soname_spec='$libname${shared_ext}.$major'
9895
    shlibpath_var=LD_LIBRARY_PATH
9896
  fi
9897
  ;;
9898
9899
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9900
  version_type=freebsd-elf
9901
  need_lib_prefix=no
9902
  need_version=no
9903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9904
  soname_spec='${libname}${release}${shared_ext}$major'
9905
  shlibpath_var=LD_LIBRARY_PATH
9906
  shlibpath_overrides_runpath=yes
9907
  hardcode_into_libs=yes
9908
  if test "$with_gnu_ld" = yes; then
9909
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9910
  else
9911
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9912
    case $host_os in
9913
      sco3.2v5*)
9914
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9915
	;;
9916
    esac
9917
  fi
9918
  sys_lib_dlsearch_path_spec='/usr/lib'
9919
  ;;
9920
9921
tpf*)
9922
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9923
  version_type=linux
9924
  need_lib_prefix=no
9925
  need_version=no
9926
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927
  shlibpath_var=LD_LIBRARY_PATH
9928
  shlibpath_overrides_runpath=no
9929
  hardcode_into_libs=yes
9930
  ;;
9931
9932
uts4*)
9933
  version_type=linux
9934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935
  soname_spec='${libname}${release}${shared_ext}$major'
9936
  shlibpath_var=LD_LIBRARY_PATH
9937
  ;;
9938
9939
*)
9940
  dynamic_linker=no
9941
  ;;
9942
esac
9943
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9944
$as_echo "$dynamic_linker" >&6; }
9945
test "$dynamic_linker" = no && can_build_shared=no
9946
9947
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9948
if test "$GCC" = yes; then
9949
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9950
fi
9951
9952
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9953
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9954
fi
9955
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9956
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9957
fi
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10046
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10047
hardcode_action=
10048
if test -n "$hardcode_libdir_flag_spec" ||
10049
   test -n "$runpath_var" ||
10050
   test "X$hardcode_automatic" = "Xyes" ; then
10051
10052
  # We can hardcode non-existent directories.
10053
  if test "$hardcode_direct" != no &&
10054
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10055
     # have to relink, otherwise we might link with an installed library
10056
     # when we should be linking with a yet-to-be-installed one
10057
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10058
     test "$hardcode_minus_L" != no; then
10059
    # Linking always hardcodes the temporary library directory.
10060
    hardcode_action=relink
10061
  else
10062
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10063
    hardcode_action=immediate
10064
  fi
10065
else
10066
  # We cannot hardcode anything, or else we can only hardcode existing
10067
  # directories.
10068
  hardcode_action=unsupported
10069
fi
10070
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10071
$as_echo "$hardcode_action" >&6; }
10072
10073
if test "$hardcode_action" = relink ||
10074
   test "$inherit_rpath" = yes; then
10075
  # Fast installation is not supported
10076
  enable_fast_install=no
10077
elif test "$shlibpath_overrides_runpath" = yes ||
10078
     test "$enable_shared" = no; then
10079
  # Fast installation is not necessary
10080
  enable_fast_install=needless
10081
fi
10082
10083
10084
10085
10086
10087
10088
  if test "x$enable_dlopen" != xyes; then
10089
  enable_dlopen=unknown
10090
  enable_dlopen_self=unknown
10091
  enable_dlopen_self_static=unknown
10092
else
10093
  lt_cv_dlopen=no
10094
  lt_cv_dlopen_libs=
10095
10096
  case $host_os in
10097
  beos*)
10098
    lt_cv_dlopen="load_add_on"
10099
    lt_cv_dlopen_libs=
10100
    lt_cv_dlopen_self=yes
10101
    ;;
10102
10103
  mingw* | pw32* | cegcc*)
10104
    lt_cv_dlopen="LoadLibrary"
10105
    lt_cv_dlopen_libs=
10106
    ;;
10107
10108
  cygwin*)
10109
    lt_cv_dlopen="dlopen"
10110
    lt_cv_dlopen_libs=
10111
    ;;
10112
10113
  darwin*)
10114
  # if libdl is installed we need to link against it
10115
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10116
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10117
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10118
  $as_echo_n "(cached) " >&6
10119
else
10120
  ac_check_lib_save_LIBS=$LIBS
10121
LIBS="-ldl  $LIBS"
10122
cat >conftest.$ac_ext <<_ACEOF
10123
/* confdefs.h.  */
10124
_ACEOF
10125
cat confdefs.h >>conftest.$ac_ext
10126
cat >>conftest.$ac_ext <<_ACEOF
10127
/* end confdefs.h.  */
10128
10129
/* Override any GCC internal prototype to avoid an error.
10130
   Use char because int might match the return type of a GCC
10131
   builtin and then its argument prototype would still apply.  */
10132
#ifdef __cplusplus
10133
extern "C"
10134
#endif
10135
char dlopen ();
10136
int
10137
main ()
10138
{
10139
return dlopen ();
10140
  ;
10141
  return 0;
10142
}
10143
_ACEOF
10144
rm -f conftest.$ac_objext conftest$ac_exeext
10145
if { (ac_try="$ac_link"
10146
case "(($ac_try" in
10147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148
  *) ac_try_echo=$ac_try;;
10149
esac
10150
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10151
$as_echo "$ac_try_echo") >&5
10152
  (eval "$ac_link") 2>conftest.er1
10153
  ac_status=$?
10154
  grep -v '^ *+' conftest.er1 >conftest.err
10155
  rm -f conftest.er1
10156
  cat conftest.err >&5
10157
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158
  (exit $ac_status); } && {
10159
	 test -z "$ac_c_werror_flag" ||
10160
	 test ! -s conftest.err
10161
       } && test -s conftest$ac_exeext && {
10162
	 test "$cross_compiling" = yes ||
10163
	 $as_test_x conftest$ac_exeext
10164
       }; then
10165
  ac_cv_lib_dl_dlopen=yes
10166
else
10167
  $as_echo "$as_me: failed program was:" >&5
10168
sed 's/^/| /' conftest.$ac_ext >&5
10169
10170
	ac_cv_lib_dl_dlopen=no
10171
fi
10172
10173
rm -rf conftest.dSYM
10174
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10175
      conftest$ac_exeext conftest.$ac_ext
10176
LIBS=$ac_check_lib_save_LIBS
10177
fi
10178
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10179
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10180
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10181
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10182
else
10183
10184
    lt_cv_dlopen="dyld"
10185
    lt_cv_dlopen_libs=
10186
    lt_cv_dlopen_self=yes
10187
10188
fi
10189
10190
    ;;
10191
10192
  *)
10193
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10194
$as_echo_n "checking for shl_load... " >&6; }
10195
if test "${ac_cv_func_shl_load+set}" = set; then
10196
  $as_echo_n "(cached) " >&6
10197
else
10198
  cat >conftest.$ac_ext <<_ACEOF
10199
/* confdefs.h.  */
10200
_ACEOF
10201
cat confdefs.h >>conftest.$ac_ext
10202
cat >>conftest.$ac_ext <<_ACEOF
10203
/* end confdefs.h.  */
10204
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10205
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10206
#define shl_load innocuous_shl_load
10207
10208
/* System header to define __stub macros and hopefully few prototypes,
10209
    which can conflict with char shl_load (); below.
10210
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211
    <limits.h> exists even on freestanding compilers.  */
10212
10213
#ifdef __STDC__
10214
# include <limits.h>
10215
#else
10216
# include <assert.h>
10217
#endif
10218
10219
#undef shl_load
10220
10221
/* Override any GCC internal prototype to avoid an error.
10222
   Use char because int might match the return type of a GCC
10223
   builtin and then its argument prototype would still apply.  */
10224
#ifdef __cplusplus
10225
extern "C"
10226
#endif
10227
char shl_load ();
10228
/* The GNU C library defines this for functions which it implements
10229
    to always fail with ENOSYS.  Some functions are actually named
10230
    something starting with __ and the normal name is an alias.  */
10231
#if defined __stub_shl_load || defined __stub___shl_load
10232
choke me
10233
#endif
10234
10235
int
10236
main ()
10237
{
10238
return shl_load ();
10239
  ;
10240
  return 0;
10241
}
10242
_ACEOF
10243
rm -f conftest.$ac_objext conftest$ac_exeext
10244
if { (ac_try="$ac_link"
10245
case "(($ac_try" in
10246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247
  *) ac_try_echo=$ac_try;;
10248
esac
10249
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250
$as_echo "$ac_try_echo") >&5
10251
  (eval "$ac_link") 2>conftest.er1
10252
  ac_status=$?
10253
  grep -v '^ *+' conftest.er1 >conftest.err
10254
  rm -f conftest.er1
10255
  cat conftest.err >&5
10256
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257
  (exit $ac_status); } && {
10258
	 test -z "$ac_c_werror_flag" ||
10259
	 test ! -s conftest.err
10260
       } && test -s conftest$ac_exeext && {
10261
	 test "$cross_compiling" = yes ||
10262
	 $as_test_x conftest$ac_exeext
10263
       }; then
10264
  ac_cv_func_shl_load=yes
10265
else
10266
  $as_echo "$as_me: failed program was:" >&5
10267
sed 's/^/| /' conftest.$ac_ext >&5
10268
10269
	ac_cv_func_shl_load=no
10270
fi
10271
10272
rm -rf conftest.dSYM
10273
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10274
      conftest$ac_exeext conftest.$ac_ext
10275
fi
10276
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10277
$as_echo "$ac_cv_func_shl_load" >&6; }
10278
if test "x$ac_cv_func_shl_load" = x""yes; then
10279
  lt_cv_dlopen="shl_load"
10280
else
10281
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10282
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10283
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10284
  $as_echo_n "(cached) " >&6
10285
else
10286
  ac_check_lib_save_LIBS=$LIBS
10287
LIBS="-ldld  $LIBS"
10288
cat >conftest.$ac_ext <<_ACEOF
10289
/* confdefs.h.  */
10290
_ACEOF
10291
cat confdefs.h >>conftest.$ac_ext
10292
cat >>conftest.$ac_ext <<_ACEOF
10293
/* end confdefs.h.  */
10294
10295
/* Override any GCC internal prototype to avoid an error.
10296
   Use char because int might match the return type of a GCC
10297
   builtin and then its argument prototype would still apply.  */
10298
#ifdef __cplusplus
10299
extern "C"
10300
#endif
10301
char shl_load ();
10302
int
10303
main ()
10304
{
10305
return shl_load ();
10306
  ;
10307
  return 0;
10308
}
10309
_ACEOF
10310
rm -f conftest.$ac_objext conftest$ac_exeext
10311
if { (ac_try="$ac_link"
10312
case "(($ac_try" in
10313
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314
  *) ac_try_echo=$ac_try;;
10315
esac
10316
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10317
$as_echo "$ac_try_echo") >&5
10318
  (eval "$ac_link") 2>conftest.er1
10319
  ac_status=$?
10320
  grep -v '^ *+' conftest.er1 >conftest.err
10321
  rm -f conftest.er1
10322
  cat conftest.err >&5
10323
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324
  (exit $ac_status); } && {
10325
	 test -z "$ac_c_werror_flag" ||
10326
	 test ! -s conftest.err
10327
       } && test -s conftest$ac_exeext && {
10328
	 test "$cross_compiling" = yes ||
10329
	 $as_test_x conftest$ac_exeext
10330
       }; then
10331
  ac_cv_lib_dld_shl_load=yes
10332
else
10333
  $as_echo "$as_me: failed program was:" >&5
10334
sed 's/^/| /' conftest.$ac_ext >&5
10335
10336
	ac_cv_lib_dld_shl_load=no
10337
fi
10338
10339
rm -rf conftest.dSYM
10340
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10341
      conftest$ac_exeext conftest.$ac_ext
10342
LIBS=$ac_check_lib_save_LIBS
10343
fi
10344
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10345
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10346
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10347
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10348
else
10349
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10350
$as_echo_n "checking for dlopen... " >&6; }
10351
if test "${ac_cv_func_dlopen+set}" = set; then
10352
  $as_echo_n "(cached) " >&6
10353
else
10354
  cat >conftest.$ac_ext <<_ACEOF
10355
/* confdefs.h.  */
10356
_ACEOF
10357
cat confdefs.h >>conftest.$ac_ext
10358
cat >>conftest.$ac_ext <<_ACEOF
10359
/* end confdefs.h.  */
10360
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10361
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10362
#define dlopen innocuous_dlopen
10363
10364
/* System header to define __stub macros and hopefully few prototypes,
10365
    which can conflict with char dlopen (); below.
10366
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10367
    <limits.h> exists even on freestanding compilers.  */
10368
10369
#ifdef __STDC__
10370
# include <limits.h>
10371
#else
10372
# include <assert.h>
10373
#endif
10374
10375
#undef dlopen
10376
10377
/* Override any GCC internal prototype to avoid an error.
10378
   Use char because int might match the return type of a GCC
10379
   builtin and then its argument prototype would still apply.  */
10380
#ifdef __cplusplus
10381
extern "C"
10382
#endif
10383
char dlopen ();
10384
/* The GNU C library defines this for functions which it implements
10385
    to always fail with ENOSYS.  Some functions are actually named
10386
    something starting with __ and the normal name is an alias.  */
10387
#if defined __stub_dlopen || defined __stub___dlopen
10388
choke me
10389
#endif
10390
10391
int
10392
main ()
10393
{
10394
return dlopen ();
10395
  ;
10396
  return 0;
10397
}
10398
_ACEOF
10399
rm -f conftest.$ac_objext conftest$ac_exeext
10400
if { (ac_try="$ac_link"
10401
case "(($ac_try" in
10402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403
  *) ac_try_echo=$ac_try;;
10404
esac
10405
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10406
$as_echo "$ac_try_echo") >&5
10407
  (eval "$ac_link") 2>conftest.er1
10408
  ac_status=$?
10409
  grep -v '^ *+' conftest.er1 >conftest.err
10410
  rm -f conftest.er1
10411
  cat conftest.err >&5
10412
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413
  (exit $ac_status); } && {
10414
	 test -z "$ac_c_werror_flag" ||
10415
	 test ! -s conftest.err
10416
       } && test -s conftest$ac_exeext && {
10417
	 test "$cross_compiling" = yes ||
10418
	 $as_test_x conftest$ac_exeext
10419
       }; then
10420
  ac_cv_func_dlopen=yes
10421
else
10422
  $as_echo "$as_me: failed program was:" >&5
10423
sed 's/^/| /' conftest.$ac_ext >&5
10424
10425
	ac_cv_func_dlopen=no
10426
fi
10427
10428
rm -rf conftest.dSYM
10429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430
      conftest$ac_exeext conftest.$ac_ext
10431
fi
10432
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10433
$as_echo "$ac_cv_func_dlopen" >&6; }
10434
if test "x$ac_cv_func_dlopen" = x""yes; then
10435
  lt_cv_dlopen="dlopen"
10436
else
10437
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10438
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10439
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10440
  $as_echo_n "(cached) " >&6
10441
else
10442
  ac_check_lib_save_LIBS=$LIBS
10443
LIBS="-ldl  $LIBS"
10444
cat >conftest.$ac_ext <<_ACEOF
10445
/* confdefs.h.  */
10446
_ACEOF
10447
cat confdefs.h >>conftest.$ac_ext
10448
cat >>conftest.$ac_ext <<_ACEOF
10449
/* end confdefs.h.  */
10450
10451
/* Override any GCC internal prototype to avoid an error.
10452
   Use char because int might match the return type of a GCC
10453
   builtin and then its argument prototype would still apply.  */
10454
#ifdef __cplusplus
10455
extern "C"
10456
#endif
10457
char dlopen ();
10458
int
10459
main ()
10460
{
10461
return dlopen ();
10462
  ;
10463
  return 0;
10464
}
10465
_ACEOF
10466
rm -f conftest.$ac_objext conftest$ac_exeext
10467
if { (ac_try="$ac_link"
10468
case "(($ac_try" in
10469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470
  *) ac_try_echo=$ac_try;;
10471
esac
10472
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473
$as_echo "$ac_try_echo") >&5
10474
  (eval "$ac_link") 2>conftest.er1
10475
  ac_status=$?
10476
  grep -v '^ *+' conftest.er1 >conftest.err
10477
  rm -f conftest.er1
10478
  cat conftest.err >&5
10479
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480
  (exit $ac_status); } && {
10481
	 test -z "$ac_c_werror_flag" ||
10482
	 test ! -s conftest.err
10483
       } && test -s conftest$ac_exeext && {
10484
	 test "$cross_compiling" = yes ||
10485
	 $as_test_x conftest$ac_exeext
10486
       }; then
10487
  ac_cv_lib_dl_dlopen=yes
10488
else
10489
  $as_echo "$as_me: failed program was:" >&5
10490
sed 's/^/| /' conftest.$ac_ext >&5
10491
10492
	ac_cv_lib_dl_dlopen=no
10493
fi
10494
10495
rm -rf conftest.dSYM
10496
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497
      conftest$ac_exeext conftest.$ac_ext
10498
LIBS=$ac_check_lib_save_LIBS
10499
fi
10500
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10501
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10502
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10503
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10504
else
10505
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10506
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10507
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10508
  $as_echo_n "(cached) " >&6
10509
else
10510
  ac_check_lib_save_LIBS=$LIBS
10511
LIBS="-lsvld  $LIBS"
10512
cat >conftest.$ac_ext <<_ACEOF
10513
/* confdefs.h.  */
10514
_ACEOF
10515
cat confdefs.h >>conftest.$ac_ext
10516
cat >>conftest.$ac_ext <<_ACEOF
10517
/* end confdefs.h.  */
10518
10519
/* Override any GCC internal prototype to avoid an error.
10520
   Use char because int might match the return type of a GCC
10521
   builtin and then its argument prototype would still apply.  */
10522
#ifdef __cplusplus
10523
extern "C"
10524
#endif
10525
char dlopen ();
10526
int
10527
main ()
10528
{
10529
return dlopen ();
10530
  ;
10531
  return 0;
10532
}
10533
_ACEOF
10534
rm -f conftest.$ac_objext conftest$ac_exeext
10535
if { (ac_try="$ac_link"
10536
case "(($ac_try" in
10537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538
  *) ac_try_echo=$ac_try;;
10539
esac
10540
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10541
$as_echo "$ac_try_echo") >&5
10542
  (eval "$ac_link") 2>conftest.er1
10543
  ac_status=$?
10544
  grep -v '^ *+' conftest.er1 >conftest.err
10545
  rm -f conftest.er1
10546
  cat conftest.err >&5
10547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548
  (exit $ac_status); } && {
10549
	 test -z "$ac_c_werror_flag" ||
10550
	 test ! -s conftest.err
10551
       } && test -s conftest$ac_exeext && {
10552
	 test "$cross_compiling" = yes ||
10553
	 $as_test_x conftest$ac_exeext
10554
       }; then
10555
  ac_cv_lib_svld_dlopen=yes
10556
else
10557
  $as_echo "$as_me: failed program was:" >&5
10558
sed 's/^/| /' conftest.$ac_ext >&5
10559
10560
	ac_cv_lib_svld_dlopen=no
10561
fi
10562
10563
rm -rf conftest.dSYM
10564
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10565
      conftest$ac_exeext conftest.$ac_ext
10566
LIBS=$ac_check_lib_save_LIBS
10567
fi
10568
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10569
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10570
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10571
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10572
else
10573
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10574
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10575
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10576
  $as_echo_n "(cached) " >&6
10577
else
10578
  ac_check_lib_save_LIBS=$LIBS
10579
LIBS="-ldld  $LIBS"
10580
cat >conftest.$ac_ext <<_ACEOF
10581
/* confdefs.h.  */
10582
_ACEOF
10583
cat confdefs.h >>conftest.$ac_ext
10584
cat >>conftest.$ac_ext <<_ACEOF
10585
/* end confdefs.h.  */
10586
10587
/* Override any GCC internal prototype to avoid an error.
10588
   Use char because int might match the return type of a GCC
10589
   builtin and then its argument prototype would still apply.  */
10590
#ifdef __cplusplus
10591
extern "C"
10592
#endif
10593
char dld_link ();
10594
int
10595
main ()
10596
{
10597
return dld_link ();
10598
  ;
10599
  return 0;
10600
}
10601
_ACEOF
10602
rm -f conftest.$ac_objext conftest$ac_exeext
10603
if { (ac_try="$ac_link"
10604
case "(($ac_try" in
10605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606
  *) ac_try_echo=$ac_try;;
10607
esac
10608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609
$as_echo "$ac_try_echo") >&5
10610
  (eval "$ac_link") 2>conftest.er1
10611
  ac_status=$?
10612
  grep -v '^ *+' conftest.er1 >conftest.err
10613
  rm -f conftest.er1
10614
  cat conftest.err >&5
10615
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616
  (exit $ac_status); } && {
10617
	 test -z "$ac_c_werror_flag" ||
10618
	 test ! -s conftest.err
10619
       } && test -s conftest$ac_exeext && {
10620
	 test "$cross_compiling" = yes ||
10621
	 $as_test_x conftest$ac_exeext
10622
       }; then
10623
  ac_cv_lib_dld_dld_link=yes
10624
else
10625
  $as_echo "$as_me: failed program was:" >&5
10626
sed 's/^/| /' conftest.$ac_ext >&5
10627
10628
	ac_cv_lib_dld_dld_link=no
10629
fi
10630
10631
rm -rf conftest.dSYM
10632
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633
      conftest$ac_exeext conftest.$ac_ext
10634
LIBS=$ac_check_lib_save_LIBS
10635
fi
10636
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10637
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10638
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10639
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10640
fi
10641
10642
10643
fi
10644
10645
10646
fi
10647
10648
10649
fi
10650
10651
10652
fi
10653
10654
10655
fi
10656
10657
    ;;
10658
  esac
10659
10660
  if test "x$lt_cv_dlopen" != xno; then
10661
    enable_dlopen=yes
10662
  else
10663
    enable_dlopen=no
10664
  fi
10665
10666
  case $lt_cv_dlopen in
10667
  dlopen)
10668
    save_CPPFLAGS="$CPPFLAGS"
10669
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10670
10671
    save_LDFLAGS="$LDFLAGS"
10672
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10673
10674
    save_LIBS="$LIBS"
10675
    LIBS="$lt_cv_dlopen_libs $LIBS"
10676
10677
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10678
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10679
if test "${lt_cv_dlopen_self+set}" = set; then
10680
  $as_echo_n "(cached) " >&6
10681
else
10682
  	  if test "$cross_compiling" = yes; then :
10683
  lt_cv_dlopen_self=cross
10684
else
10685
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10686
  lt_status=$lt_dlunknown
10687
  cat > conftest.$ac_ext <<_LT_EOF
10688
#line 10688 "configure"
10689
#include "confdefs.h"
10690
10691
#if HAVE_DLFCN_H
10692
#include <dlfcn.h>
10693
#endif
10694
10695
#include <stdio.h>
10696
10697
#ifdef RTLD_GLOBAL
10698
#  define LT_DLGLOBAL		RTLD_GLOBAL
10699
#else
10700
#  ifdef DL_GLOBAL
10701
#    define LT_DLGLOBAL		DL_GLOBAL
10702
#  else
10703
#    define LT_DLGLOBAL		0
10704
#  endif
10705
#endif
10706
10707
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10708
   find out it does not work in some platform. */
10709
#ifndef LT_DLLAZY_OR_NOW
10710
#  ifdef RTLD_LAZY
10711
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10712
#  else
10713
#    ifdef DL_LAZY
10714
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10715
#    else
10716
#      ifdef RTLD_NOW
10717
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10718
#      else
10719
#        ifdef DL_NOW
10720
#          define LT_DLLAZY_OR_NOW	DL_NOW
10721
#        else
10722
#          define LT_DLLAZY_OR_NOW	0
10723
#        endif
10724
#      endif
10725
#    endif
10726
#  endif
10727
#endif
10728
10729
void fnord() { int i=42;}
10730
int main ()
10731
{
10732
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10733
  int status = $lt_dlunknown;
10734
10735
  if (self)
10736
    {
10737
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10738
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10739
      /* dlclose (self); */
10740
    }
10741
  else
10742
    puts (dlerror ());
10743
10744
  return status;
10745
}
10746
_LT_EOF
10747
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748
  (eval $ac_link) 2>&5
10749
  ac_status=$?
10750
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10752
    (./conftest; exit; ) >&5 2>/dev/null
10753
    lt_status=$?
10754
    case x$lt_status in
10755
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10756
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10757
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10758
    esac
10759
  else :
10760
    # compilation failed
10761
    lt_cv_dlopen_self=no
10762
  fi
10763
fi
10764
rm -fr conftest*
10765
10766
10767
fi
10768
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10769
$as_echo "$lt_cv_dlopen_self" >&6; }
10770
10771
    if test "x$lt_cv_dlopen_self" = xyes; then
10772
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10773
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10774
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10775
if test "${lt_cv_dlopen_self_static+set}" = set; then
10776
  $as_echo_n "(cached) " >&6
10777
else
10778
  	  if test "$cross_compiling" = yes; then :
10779
  lt_cv_dlopen_self_static=cross
10780
else
10781
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10782
  lt_status=$lt_dlunknown
10783
  cat > conftest.$ac_ext <<_LT_EOF
10784
#line 10784 "configure"
10785
#include "confdefs.h"
10786
10787
#if HAVE_DLFCN_H
10788
#include <dlfcn.h>
10789
#endif
10790
10791
#include <stdio.h>
10792
10793
#ifdef RTLD_GLOBAL
10794
#  define LT_DLGLOBAL		RTLD_GLOBAL
10795
#else
10796
#  ifdef DL_GLOBAL
10797
#    define LT_DLGLOBAL		DL_GLOBAL
10798
#  else
10799
#    define LT_DLGLOBAL		0
10800
#  endif
10801
#endif
10802
10803
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10804
   find out it does not work in some platform. */
10805
#ifndef LT_DLLAZY_OR_NOW
10806
#  ifdef RTLD_LAZY
10807
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10808
#  else
10809
#    ifdef DL_LAZY
10810
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10811
#    else
10812
#      ifdef RTLD_NOW
10813
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10814
#      else
10815
#        ifdef DL_NOW
10816
#          define LT_DLLAZY_OR_NOW	DL_NOW
10817
#        else
10818
#          define LT_DLLAZY_OR_NOW	0
10819
#        endif
10820
#      endif
10821
#    endif
10822
#  endif
10823
#endif
10824
10825
void fnord() { int i=42;}
10826
int main ()
10827
{
10828
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10829
  int status = $lt_dlunknown;
10830
10831
  if (self)
10832
    {
10833
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10834
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10835
      /* dlclose (self); */
10836
    }
10837
  else
10838
    puts (dlerror ());
10839
10840
  return status;
10841
}
10842
_LT_EOF
10843
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844
  (eval $ac_link) 2>&5
10845
  ac_status=$?
10846
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10848
    (./conftest; exit; ) >&5 2>/dev/null
10849
    lt_status=$?
10850
    case x$lt_status in
10851
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10852
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10853
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10854
    esac
10855
  else :
10856
    # compilation failed
10857
    lt_cv_dlopen_self_static=no
10858
  fi
10859
fi
10860
rm -fr conftest*
10861
10862
10863
fi
10864
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10865
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10866
    fi
10867
10868
    CPPFLAGS="$save_CPPFLAGS"
10869
    LDFLAGS="$save_LDFLAGS"
10870
    LIBS="$save_LIBS"
10871
    ;;
10872
  esac
10873
10874
  case $lt_cv_dlopen_self in
10875
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10876
  *) enable_dlopen_self=unknown ;;
10877
  esac
10878
10879
  case $lt_cv_dlopen_self_static in
10880
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10881
  *) enable_dlopen_self_static=unknown ;;
10882
  esac
10883
fi
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
striplib=
10902
old_striplib=
10903
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10904
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10905
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10906
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10907
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10908
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10909
$as_echo "yes" >&6; }
10910
else
10911
# FIXME - insert some real tests, host_os isn't really good enough
10912
  case $host_os in
10913
  darwin*)
10914
    if test -n "$STRIP" ; then
10915
      striplib="$STRIP -x"
10916
      old_striplib="$STRIP -S"
10917
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10918
$as_echo "yes" >&6; }
10919
    else
10920
      { $as_echo "$as_me:$LINENO: result: no" >&5
10921
$as_echo "no" >&6; }
10922
    fi
10923
    ;;
10924
  *)
10925
    { $as_echo "$as_me:$LINENO: result: no" >&5
10926
$as_echo "no" >&6; }
10927
    ;;
10928
  esac
10929
fi
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
  # Report which library types will actually be built
10943
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10944
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10945
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10946
$as_echo "$can_build_shared" >&6; }
10947
10948
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10949
$as_echo_n "checking whether to build shared libraries... " >&6; }
10950
  test "$can_build_shared" = "no" && enable_shared=no
10951
10952
  # On AIX, shared libraries and static libraries use the same namespace, and
10953
  # are all built from PIC.
10954
  case $host_os in
10955
  aix3*)
10956
    test "$enable_shared" = yes && enable_static=no
10957
    if test -n "$RANLIB"; then
10958
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10959
      postinstall_cmds='$RANLIB $lib'
10960
    fi
10961
    ;;
10962
10963
  aix[4-9]*)
10964
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10965
      test "$enable_shared" = yes && enable_static=no
10966
    fi
10967
    ;;
10968
  esac
10969
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10970
$as_echo "$enable_shared" >&6; }
10971
10972
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10973
$as_echo_n "checking whether to build static libraries... " >&6; }
10974
  # Make sure either enable_shared or enable_static is yes.
10975
  test "$enable_shared" = yes || enable_static=yes
10976
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10977
$as_echo "$enable_static" >&6; }
10978
10979
10980
10981
10982
fi
10983
ac_ext=c
10984
ac_cpp='$CPP $CPPFLAGS'
10985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988
10989
CC="$lt_save_CC"
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
        ac_config_commands="$ac_config_commands libtool"
11004
11005
11006
11007
11008
# Only expand once:
11009
11010
11011
11012
11013
for ac_header in replaygain/gain_analysis.h
11014
do
11015
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11016
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11017
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11018
$as_echo_n "checking for $ac_header... " >&6; }
11019
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11020
  $as_echo_n "(cached) " >&6
11021
fi
11022
ac_res=`eval 'as_val=${'$as_ac_Header'}
11023
		 $as_echo "$as_val"'`
11024
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11025
$as_echo "$ac_res" >&6; }
11026
else
11027
  # Is the header compilable?
11028
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11029
$as_echo_n "checking $ac_header usability... " >&6; }
11030
cat >conftest.$ac_ext <<_ACEOF
11031
/* confdefs.h.  */
11032
_ACEOF
11033
cat confdefs.h >>conftest.$ac_ext
11034
cat >>conftest.$ac_ext <<_ACEOF
11035
/* end confdefs.h.  */
11036
$ac_includes_default
11037
#include <$ac_header>
11038
_ACEOF
11039
rm -f conftest.$ac_objext
11040
if { (ac_try="$ac_compile"
11041
case "(($ac_try" in
11042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043
  *) ac_try_echo=$ac_try;;
11044
esac
11045
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11046
$as_echo "$ac_try_echo") >&5
11047
  (eval "$ac_compile") 2>conftest.er1
11048
  ac_status=$?
11049
  grep -v '^ *+' conftest.er1 >conftest.err
11050
  rm -f conftest.er1
11051
  cat conftest.err >&5
11052
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053
  (exit $ac_status); } && {
11054
	 test -z "$ac_c_werror_flag" ||
11055
	 test ! -s conftest.err
11056
       } && test -s conftest.$ac_objext; then
11057
  ac_header_compiler=yes
11058
else
11059
  $as_echo "$as_me: failed program was:" >&5
11060
sed 's/^/| /' conftest.$ac_ext >&5
11061
11062
	ac_header_compiler=no
11063
fi
11064
11065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11067
$as_echo "$ac_header_compiler" >&6; }
11068
11069
# Is the header present?
11070
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11071
$as_echo_n "checking $ac_header presence... " >&6; }
11072
cat >conftest.$ac_ext <<_ACEOF
11073
/* confdefs.h.  */
11074
_ACEOF
11075
cat confdefs.h >>conftest.$ac_ext
11076
cat >>conftest.$ac_ext <<_ACEOF
11077
/* end confdefs.h.  */
11078
#include <$ac_header>
11079
_ACEOF
11080
if { (ac_try="$ac_cpp conftest.$ac_ext"
11081
case "(($ac_try" in
11082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083
  *) ac_try_echo=$ac_try;;
11084
esac
11085
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086
$as_echo "$ac_try_echo") >&5
11087
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11088
  ac_status=$?
11089
  grep -v '^ *+' conftest.er1 >conftest.err
11090
  rm -f conftest.er1
11091
  cat conftest.err >&5
11092
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093
  (exit $ac_status); } >/dev/null && {
11094
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11095
	 test ! -s conftest.err
11096
       }; then
11097
  ac_header_preproc=yes
11098
else
11099
  $as_echo "$as_me: failed program was:" >&5
11100
sed 's/^/| /' conftest.$ac_ext >&5
11101
11102
  ac_header_preproc=no
11103
fi
11104
11105
rm -f conftest.err conftest.$ac_ext
11106
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11107
$as_echo "$ac_header_preproc" >&6; }
11108
11109
# So?  What about this header?
11110
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11111
  yes:no: )
11112
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11113
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11114
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11115
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11116
    ac_header_preproc=yes
11117
    ;;
11118
  no:yes:* )
11119
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11120
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11121
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11122
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11123
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11124
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11125
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11126
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11127
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11128
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11129
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11130
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11131
11132
    ;;
11133
esac
11134
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11135
$as_echo_n "checking for $ac_header... " >&6; }
11136
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137
  $as_echo_n "(cached) " >&6
11138
else
11139
  eval "$as_ac_Header=\$ac_header_preproc"
11140
fi
11141
ac_res=`eval 'as_val=${'$as_ac_Header'}
11142
		 $as_echo "$as_val"'`
11143
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11144
$as_echo "$ac_res" >&6; }
11145
11146
fi
11147
as_val=`eval 'as_val=${'$as_ac_Header'}
11148
		 $as_echo "$as_val"'`
11149
   if test "x$as_val" = x""yes; then
11150
  cat >>confdefs.h <<_ACEOF
11151
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11152
_ACEOF
11153
11154
fi
11155
11156
done
11157
11158
11159
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
11160
$as_echo_n "checking host system type... " >&6; }
11161
if test "${ac_cv_host+set}" = set; then
11162
  $as_echo_n "(cached) " >&6
11163
else
11164
  if test "x$host_alias" = x; then
11165
  ac_cv_host=$ac_cv_build
11166
else
11167
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11168
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11169
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11170
   { (exit 1); exit 1; }; }
11171
fi
11172
11173
fi
11174
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11175
$as_echo "$ac_cv_host" >&6; }
11176
case $ac_cv_host in
11177
*-*-*) ;;
11178
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11179
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
11180
   { (exit 1); exit 1; }; };;
11181
esac
11182
host=$ac_cv_host
11183
ac_save_IFS=$IFS; IFS='-'
11184
set x $ac_cv_host
11185
shift
11186
host_cpu=$1
11187
host_vendor=$2
11188
shift; shift
11189
# Remember, the first character of IFS is used to create $*,
11190
# except with old shells:
11191
host_os=$*
11192
IFS=$ac_save_IFS
11193
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11194
11195
11196
case $host_os in
11197
	*mingw32* )
11198
		LDFLAGS="${LDFLAGS} -mwindows"
11199
		EXTRALIBS="-lwinmm"
11200
		;;
11201
	* )
11202
		EXTRALIBS=""
11203
		;;
11204
esac
11205
11206
11207
11208
ac_config_files="$ac_config_files Makefile include/Makefile libmpcdec/Makefile libmpcenc/Makefile libmpcpsy/Makefile libwavformat/Makefile mpc2sv8/Makefile mpcchap/Makefile mpccut/Makefile mpcdec/Makefile mpcenc/Makefile mpcgain/Makefile wavcmp/Makefile"
11209
11210
cat >confcache <<\_ACEOF
11211
# This file is a shell script that caches the results of configure
11212
# tests run on this system so they can be shared between configure
11213
# scripts and configure runs, see configure's option --config-cache.
11214
# It is not useful on other systems.  If it contains results you don't
11215
# want to keep, you may remove or edit it.
11216
#
11217
# config.status only pays attention to the cache file if you give it
11218
# the --recheck option to rerun configure.
11219
#
11220
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11221
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11222
# following values.
11223
11224
_ACEOF
11225
11226
# The following way of writing the cache mishandles newlines in values,
11227
# but we know of no workaround that is simple, portable, and efficient.
11228
# So, we kill variables containing newlines.
11229
# Ultrix sh set writes to stderr and can't be redirected directly,
11230
# and sets the high bit in the cache file unless we assign to the vars.
11231
(
11232
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11233
    eval ac_val=\$$ac_var
11234
    case $ac_val in #(
11235
    *${as_nl}*)
11236
      case $ac_var in #(
11237
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11238
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11239
      esac
11240
      case $ac_var in #(
11241
      _ | IFS | as_nl) ;; #(
11242
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11243
      *) $as_unset $ac_var ;;
11244
      esac ;;
11245
    esac
11246
  done
11247
11248
  (set) 2>&1 |
11249
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11250
    *${as_nl}ac_space=\ *)
11251
      # `set' does not quote correctly, so add quotes (double-quote
11252
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11253
      sed -n \
11254
	"s/'/'\\\\''/g;
11255
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11256
      ;; #(
11257
    *)
11258
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11259
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11260
      ;;
11261
    esac |
11262
    sort
11263
) |
11264
  sed '
11265
     /^ac_cv_env_/b end
11266
     t clear
11267
     :clear
11268
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11269
     t end
11270
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11271
     :end' >>confcache
11272
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11273
  if test -w "$cache_file"; then
11274
    test "x$cache_file" != "x/dev/null" &&
11275
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11276
$as_echo "$as_me: updating cache $cache_file" >&6;}
11277
    cat confcache >$cache_file
11278
  else
11279
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11280
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11281
  fi
11282
fi
11283
rm -f confcache
11284
11285
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11286
# Let make expand exec_prefix.
11287
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11288
11289
DEFS=-DHAVE_CONFIG_H
11290
11291
ac_libobjs=
11292
ac_ltlibobjs=
11293
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11294
  # 1. Remove the extension, and $U if already installed.
11295
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11296
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11297
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11298
  #    will be set to the directory where LIBOBJS objects are built.
11299
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11300
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11301
done
11302
LIBOBJS=$ac_libobjs
11303
11304
LTLIBOBJS=$ac_ltlibobjs
11305
11306
11307
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11308
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11309
Usually this means the macro was only invoked conditionally." >&5
11310
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11311
Usually this means the macro was only invoked conditionally." >&2;}
11312
   { (exit 1); exit 1; }; }
11313
fi
11314
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11315
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11316
Usually this means the macro was only invoked conditionally." >&5
11317
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11318
Usually this means the macro was only invoked conditionally." >&2;}
11319
   { (exit 1); exit 1; }; }
11320
fi
11321
11322
: ${CONFIG_STATUS=./config.status}
11323
ac_write_fail=0
11324
ac_clean_files_save=$ac_clean_files
11325
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11326
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11327
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11328
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11329
#! $SHELL
11330
# Generated by $as_me.
11331
# Run this file to recreate the current configuration.
11332
# Compiler output produced by configure, useful for debugging
11333
# configure, is in config.log if it exists.
11334
11335
debug=false
11336
ac_cs_recheck=false
11337
ac_cs_silent=false
11338
SHELL=\${CONFIG_SHELL-$SHELL}
11339
_ACEOF
11340
11341
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11342
## --------------------- ##
11343
## M4sh Initialization.  ##
11344
## --------------------- ##
11345
11346
# Be more Bourne compatible
11347
DUALCASE=1; export DUALCASE # for MKS sh
11348
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11349
  emulate sh
11350
  NULLCMD=:
11351
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11352
  # is contrary to our usage.  Disable this feature.
11353
  alias -g '${1+"$@"}'='"$@"'
11354
  setopt NO_GLOB_SUBST
11355
else
11356
  case `(set -o) 2>/dev/null` in
11357
  *posix*) set -o posix ;;
11358
esac
11359
11360
fi
11361
11362
11363
11364
11365
# PATH needs CR
11366
# Avoid depending upon Character Ranges.
11367
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11368
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11369
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11370
as_cr_digits='0123456789'
11371
as_cr_alnum=$as_cr_Letters$as_cr_digits
11372
11373
as_nl='
11374
'
11375
export as_nl
11376
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11377
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11378
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11379
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11380
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11381
  as_echo='printf %s\n'
11382
  as_echo_n='printf %s'
11383
else
11384
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11385
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11386
    as_echo_n='/usr/ucb/echo -n'
11387
  else
11388
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11389
    as_echo_n_body='eval
11390
      arg=$1;
11391
      case $arg in
11392
      *"$as_nl"*)
11393
	expr "X$arg" : "X\\(.*\\)$as_nl";
11394
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11395
      esac;
11396
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11397
    '
11398
    export as_echo_n_body
11399
    as_echo_n='sh -c $as_echo_n_body as_echo'
11400
  fi
11401
  export as_echo_body
11402
  as_echo='sh -c $as_echo_body as_echo'
11403
fi
11404
11405
# The user is always right.
11406
if test "${PATH_SEPARATOR+set}" != set; then
11407
  PATH_SEPARATOR=:
11408
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11409
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11410
      PATH_SEPARATOR=';'
11411
  }
11412
fi
11413
11414
# Support unset when possible.
11415
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11416
  as_unset=unset
11417
else
11418
  as_unset=false
11419
fi
11420
11421
11422
# IFS
11423
# We need space, tab and new line, in precisely that order.  Quoting is
11424
# there to prevent editors from complaining about space-tab.
11425
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11426
# splitting by setting IFS to empty value.)
11427
IFS=" ""	$as_nl"
11428
11429
# Find who we are.  Look in the path if we contain no directory separator.
11430
case $0 in
11431
  *[\\/]* ) as_myself=$0 ;;
11432
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433
for as_dir in $PATH
11434
do
11435
  IFS=$as_save_IFS
11436
  test -z "$as_dir" && as_dir=.
11437
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11438
done
11439
IFS=$as_save_IFS
11440
11441
     ;;
11442
esac
11443
# We did not find ourselves, most probably we were run as `sh COMMAND'
11444
# in which case we are not to be found in the path.
11445
if test "x$as_myself" = x; then
11446
  as_myself=$0
11447
fi
11448
if test ! -f "$as_myself"; then
11449
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11450
  { (exit 1); exit 1; }
11451
fi
11452
11453
# Work around bugs in pre-3.0 UWIN ksh.
11454
for as_var in ENV MAIL MAILPATH
11455
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11456
done
11457
PS1='$ '
11458
PS2='> '
11459
PS4='+ '
11460
11461
# NLS nuisances.
11462
LC_ALL=C
11463
export LC_ALL
11464
LANGUAGE=C
11465
export LANGUAGE
11466
11467
# Required to use basename.
11468
if expr a : '\(a\)' >/dev/null 2>&1 &&
11469
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11470
  as_expr=expr
11471
else
11472
  as_expr=false
11473
fi
11474
11475
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11476
  as_basename=basename
11477
else
11478
  as_basename=false
11479
fi
11480
11481
11482
# Name of the executable.
11483
as_me=`$as_basename -- "$0" ||
11484
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11485
	 X"$0" : 'X\(//\)$' \| \
11486
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11487
$as_echo X/"$0" |
11488
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11489
	    s//\1/
11490
	    q
11491
	  }
11492
	  /^X\/\(\/\/\)$/{
11493
	    s//\1/
11494
	    q
11495
	  }
11496
	  /^X\/\(\/\).*/{
11497
	    s//\1/
11498
	    q
11499
	  }
11500
	  s/.*/./; q'`
11501
11502
# CDPATH.
11503
$as_unset CDPATH
11504
11505
11506
11507
  as_lineno_1=$LINENO
11508
  as_lineno_2=$LINENO
11509
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11510
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11511
11512
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11513
  # uniformly replaced by the line number.  The first 'sed' inserts a
11514
  # line-number line after each line using $LINENO; the second 'sed'
11515
  # does the real work.  The second script uses 'N' to pair each
11516
  # line-number line with the line containing $LINENO, and appends
11517
  # trailing '-' during substitution so that $LINENO is not a special
11518
  # case at line end.
11519
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11520
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11521
  # E. McMahon (1931-1989) for sed's syntax.  :-)
11522
  sed -n '
11523
    p
11524
    /[$]LINENO/=
11525
  ' <$as_myself |
11526
    sed '
11527
      s/[$]LINENO.*/&-/
11528
      t lineno
11529
      b
11530
      :lineno
11531
      N
11532
      :loop
11533
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11534
      t loop
11535
      s/-\n.*//
11536
    ' >$as_me.lineno &&
11537
  chmod +x "$as_me.lineno" ||
11538
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11539
   { (exit 1); exit 1; }; }
11540
11541
  # Don't try to exec as it changes $[0], causing all sort of problems
11542
  # (the dirname of $[0] is not the place where we might find the
11543
  # original and so on.  Autoconf is especially sensitive to this).
11544
  . "./$as_me.lineno"
11545
  # Exit status is that of the last command.
11546
  exit
11547
}
11548
11549
11550
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11551
  as_dirname=dirname
11552
else
11553
  as_dirname=false
11554
fi
11555
11556
ECHO_C= ECHO_N= ECHO_T=
11557
case `echo -n x` in
11558
-n*)
11559
  case `echo 'x\c'` in
11560
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11561
  *)   ECHO_C='\c';;
11562
  esac;;
11563
*)
11564
  ECHO_N='-n';;
11565
esac
11566
if expr a : '\(a\)' >/dev/null 2>&1 &&
11567
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11568
  as_expr=expr
11569
else
11570
  as_expr=false
11571
fi
11572
11573
rm -f conf$$ conf$$.exe conf$$.file
11574
if test -d conf$$.dir; then
11575
  rm -f conf$$.dir/conf$$.file
11576
else
11577
  rm -f conf$$.dir
11578
  mkdir conf$$.dir 2>/dev/null
11579
fi
11580
if (echo >conf$$.file) 2>/dev/null; then
11581
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11582
    as_ln_s='ln -s'
11583
    # ... but there are two gotchas:
11584
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11585
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11586
    # In both cases, we have to default to `cp -p'.
11587
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11588
      as_ln_s='cp -p'
11589
  elif ln conf$$.file conf$$ 2>/dev/null; then
11590
    as_ln_s=ln
11591
  else
11592
    as_ln_s='cp -p'
11593
  fi
11594
else
11595
  as_ln_s='cp -p'
11596
fi
11597
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11598
rmdir conf$$.dir 2>/dev/null
11599
11600
if mkdir -p . 2>/dev/null; then
11601
  as_mkdir_p=:
11602
else
11603
  test -d ./-p && rmdir ./-p
11604
  as_mkdir_p=false
11605
fi
11606
11607
if test -x / >/dev/null 2>&1; then
11608
  as_test_x='test -x'
11609
else
11610
  if ls -dL / >/dev/null 2>&1; then
11611
    as_ls_L_option=L
11612
  else
11613
    as_ls_L_option=
11614
  fi
11615
  as_test_x='
11616
    eval sh -c '\''
11617
      if test -d "$1"; then
11618
	test -d "$1/.";
11619
      else
11620
	case $1 in
11621
	-*)set "./$1";;
11622
	esac;
11623
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11624
	???[sx]*):;;*)false;;esac;fi
11625
    '\'' sh
11626
  '
11627
fi
11628
as_executable_p=$as_test_x
11629
11630
# Sed expression to map a string onto a valid CPP name.
11631
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11632
11633
# Sed expression to map a string onto a valid variable name.
11634
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11635
11636
11637
exec 6>&1
11638
11639
# Save the log message, to keep $[0] and so on meaningful, and to
11640
# report actual input values of CONFIG_FILES etc. instead of their
11641
# values after options handling.
11642
ac_log="
11643
This file was extended by $as_me, which was
11644
generated by GNU Autoconf 2.63.  Invocation command line was
11645
11646
  CONFIG_FILES    = $CONFIG_FILES
11647
  CONFIG_HEADERS  = $CONFIG_HEADERS
11648
  CONFIG_LINKS    = $CONFIG_LINKS
11649
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11650
  $ $0 $@
11651
11652
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11653
"
11654
11655
_ACEOF
11656
11657
case $ac_config_files in *"
11658
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11659
esac
11660
11661
case $ac_config_headers in *"
11662
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11663
esac
11664
11665
11666
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11667
# Files that config.status was made for.
11668
config_files="$ac_config_files"
11669
config_headers="$ac_config_headers"
11670
config_commands="$ac_config_commands"
11671
11672
_ACEOF
11673
11674
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11675
ac_cs_usage="\
11676
\`$as_me' instantiates files from templates according to the
11677
current configuration.
11678
11679
Usage: $0 [OPTION]... [FILE]...
11680
11681
  -h, --help       print this help, then exit
11682
  -V, --version    print version number and configuration settings, then exit
11683
  -q, --quiet, --silent
11684
                   do not print progress messages
11685
  -d, --debug      don't remove temporary files
11686
      --recheck    update $as_me by reconfiguring in the same conditions
11687
      --file=FILE[:TEMPLATE]
11688
                   instantiate the configuration file FILE
11689
      --header=FILE[:TEMPLATE]
11690
                   instantiate the configuration header FILE
11691
11692
Configuration files:
11693
$config_files
11694
11695
Configuration headers:
11696
$config_headers
11697
11698
Configuration commands:
11699
$config_commands
11700
11701
Report bugs to <bug-autoconf@gnu.org>."
11702
11703
_ACEOF
11704
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11705
ac_cs_version="\\
11706
config.status
11707
configured by $0, generated by GNU Autoconf 2.63,
11708
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11709
11710
Copyright (C) 2008 Free Software Foundation, Inc.
11711
This config.status script is free software; the Free Software Foundation
11712
gives unlimited permission to copy, distribute and modify it."
11713
11714
ac_pwd='$ac_pwd'
11715
srcdir='$srcdir'
11716
INSTALL='$INSTALL'
11717
MKDIR_P='$MKDIR_P'
11718
AWK='$AWK'
11719
test -n "\$AWK" || AWK=awk
11720
_ACEOF
11721
11722
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723
# The default lists apply if the user does not specify any file.
11724
ac_need_defaults=:
11725
while test $# != 0
11726
do
11727
  case $1 in
11728
  --*=*)
11729
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11730
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11731
    ac_shift=:
11732
    ;;
11733
  *)
11734
    ac_option=$1
11735
    ac_optarg=$2
11736
    ac_shift=shift
11737
    ;;
11738
  esac
11739
11740
  case $ac_option in
11741
  # Handling of the options.
11742
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11743
    ac_cs_recheck=: ;;
11744
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11745
    $as_echo "$ac_cs_version"; exit ;;
11746
  --debug | --debu | --deb | --de | --d | -d )
11747
    debug=: ;;
11748
  --file | --fil | --fi | --f )
11749
    $ac_shift
11750
    case $ac_optarg in
11751
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11752
    esac
11753
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11754
    ac_need_defaults=false;;
11755
  --header | --heade | --head | --hea )
11756
    $ac_shift
11757
    case $ac_optarg in
11758
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11759
    esac
11760
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11761
    ac_need_defaults=false;;
11762
  --he | --h)
11763
    # Conflict between --help and --header
11764
    { $as_echo "$as_me: error: ambiguous option: $1
11765
Try \`$0 --help' for more information." >&2
11766
   { (exit 1); exit 1; }; };;
11767
  --help | --hel | -h )
11768
    $as_echo "$ac_cs_usage"; exit ;;
11769
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11770
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11771
    ac_cs_silent=: ;;
11772
11773
  # This is an error.
11774
  -*) { $as_echo "$as_me: error: unrecognized option: $1
11775
Try \`$0 --help' for more information." >&2
11776
   { (exit 1); exit 1; }; } ;;
11777
11778
  *) ac_config_targets="$ac_config_targets $1"
11779
     ac_need_defaults=false ;;
11780
11781
  esac
11782
  shift
11783
done
11784
11785
ac_configure_extra_args=
11786
11787
if $ac_cs_silent; then
11788
  exec 6>/dev/null
11789
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11790
fi
11791
11792
_ACEOF
11793
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11794
if \$ac_cs_recheck; then
11795
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11796
  shift
11797
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11798
  CONFIG_SHELL='$SHELL'
11799
  export CONFIG_SHELL
11800
  exec "\$@"
11801
fi
11802
11803
_ACEOF
11804
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11805
exec 5>>config.log
11806
{
11807
  echo
11808
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11809
## Running $as_me. ##
11810
_ASBOX
11811
  $as_echo "$ac_log"
11812
} >&5
11813
11814
_ACEOF
11815
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11816
#
11817
# INIT-COMMANDS
11818
#
11819
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11820
11821
11822
# The HP-UX ksh and POSIX shell print the target directory to stdout
11823
# if CDPATH is set.
11824
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11825
11826
sed_quote_subst='$sed_quote_subst'
11827
double_quote_subst='$double_quote_subst'
11828
delay_variable_subst='$delay_variable_subst'
11829
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11830
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11831
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11832
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11833
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11834
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11835
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11836
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11837
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11838
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11839
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11840
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11841
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11842
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11843
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11844
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11845
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11846
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11847
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11848
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11849
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11850
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11851
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11852
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11853
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11854
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11855
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11856
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11857
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11858
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11859
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11860
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11861
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11862
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11863
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11864
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11865
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11866
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11867
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11868
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11869
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11870
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11871
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11872
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11873
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11874
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11875
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11876
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11877
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11878
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11879
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11880
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11881
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11882
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11883
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11884
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11885
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11886
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11887
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11888
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11889
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11890
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11891
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11892
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11893
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11894
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11895
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11896
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11897
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11898
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11899
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11900
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11901
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11902
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11903
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11904
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11905
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11906
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11907
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11908
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11909
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11910
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11911
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11912
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11913
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11914
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11915
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11916
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11917
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11918
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11919
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11920
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11921
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11922
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11923
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11924
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11925
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11926
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11927
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11928
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11929
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11930
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11931
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11932
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11933
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11934
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11935
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11936
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11937
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11938
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11939
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11940
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11941
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11942
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11943
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11944
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11945
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11946
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11947
11948
LTCC='$LTCC'
11949
LTCFLAGS='$LTCFLAGS'
11950
compiler='$compiler_DEFAULT'
11951
11952
# Quote evaled strings.
11953
for var in SED \
11954
GREP \
11955
EGREP \
11956
FGREP \
11957
LD \
11958
NM \
11959
LN_S \
11960
lt_SP2NL \
11961
lt_NL2SP \
11962
reload_flag \
11963
OBJDUMP \
11964
deplibs_check_method \
11965
file_magic_cmd \
11966
AR \
11967
AR_FLAGS \
11968
STRIP \
11969
RANLIB \
11970
CC \
11971
CFLAGS \
11972
compiler \
11973
lt_cv_sys_global_symbol_pipe \
11974
lt_cv_sys_global_symbol_to_cdecl \
11975
lt_cv_sys_global_symbol_to_c_name_address \
11976
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11977
SHELL \
11978
ECHO \
11979
lt_prog_compiler_no_builtin_flag \
11980
lt_prog_compiler_wl \
11981
lt_prog_compiler_pic \
11982
lt_prog_compiler_static \
11983
lt_cv_prog_compiler_c_o \
11984
need_locks \
11985
DSYMUTIL \
11986
NMEDIT \
11987
LIPO \
11988
OTOOL \
11989
OTOOL64 \
11990
shrext_cmds \
11991
export_dynamic_flag_spec \
11992
whole_archive_flag_spec \
11993
compiler_needs_object \
11994
with_gnu_ld \
11995
allow_undefined_flag \
11996
no_undefined_flag \
11997
hardcode_libdir_flag_spec \
11998
hardcode_libdir_flag_spec_ld \
11999
hardcode_libdir_separator \
12000
fix_srcfile_path \
12001
exclude_expsyms \
12002
include_expsyms \
12003
file_list_spec \
12004
variables_saved_for_relink \
12005
libname_spec \
12006
library_names_spec \
12007
soname_spec \
12008
finish_eval \
12009
old_striplib \
12010
striplib; do
12011
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12012
    *[\\\\\\\`\\"\\\$]*)
12013
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12014
      ;;
12015
    *)
12016
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12017
      ;;
12018
    esac
12019
done
12020
12021
# Double-quote double-evaled strings.
12022
for var in reload_cmds \
12023
old_postinstall_cmds \
12024
old_postuninstall_cmds \
12025
old_archive_cmds \
12026
extract_expsyms_cmds \
12027
old_archive_from_new_cmds \
12028
old_archive_from_expsyms_cmds \
12029
archive_cmds \
12030
archive_expsym_cmds \
12031
module_cmds \
12032
module_expsym_cmds \
12033
export_symbols_cmds \
12034
prelink_cmds \
12035
postinstall_cmds \
12036
postuninstall_cmds \
12037
finish_cmds \
12038
sys_lib_search_path_spec \
12039
sys_lib_dlsearch_path_spec; do
12040
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12041
    *[\\\\\\\`\\"\\\$]*)
12042
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12043
      ;;
12044
    *)
12045
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12046
      ;;
12047
    esac
12048
done
12049
12050
# Fix-up fallback echo if it was mangled by the above quoting rules.
12051
case \$lt_ECHO in
12052
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12053
  ;;
12054
esac
12055
12056
ac_aux_dir='$ac_aux_dir'
12057
xsi_shell='$xsi_shell'
12058
lt_shell_append='$lt_shell_append'
12059
12060
# See if we are running on zsh, and set the options which allow our
12061
# commands through without removal of \ escapes INIT.
12062
if test -n "\${ZSH_VERSION+set}" ; then
12063
   setopt NO_GLOB_SUBST
12064
fi
12065
12066
12067
    PACKAGE='$PACKAGE'
12068
    VERSION='$VERSION'
12069
    TIMESTAMP='$TIMESTAMP'
12070
    RM='$RM'
12071
    ofile='$ofile'
12072
12073
12074
12075
12076
_ACEOF
12077
12078
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12079
12080
# Handling of arguments.
12081
for ac_config_target in $ac_config_targets
12082
do
12083
  case $ac_config_target in
12084
    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
12085
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12086
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12087
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12088
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12089
    "libmpcdec/Makefile") CONFIG_FILES="$CONFIG_FILES libmpcdec/Makefile" ;;
12090
    "libmpcenc/Makefile") CONFIG_FILES="$CONFIG_FILES libmpcenc/Makefile" ;;
12091
    "libmpcpsy/Makefile") CONFIG_FILES="$CONFIG_FILES libmpcpsy/Makefile" ;;
12092
    "libwavformat/Makefile") CONFIG_FILES="$CONFIG_FILES libwavformat/Makefile" ;;
12093
    "mpc2sv8/Makefile") CONFIG_FILES="$CONFIG_FILES mpc2sv8/Makefile" ;;
12094
    "mpcchap/Makefile") CONFIG_FILES="$CONFIG_FILES mpcchap/Makefile" ;;
12095
    "mpccut/Makefile") CONFIG_FILES="$CONFIG_FILES mpccut/Makefile" ;;
12096
    "mpcdec/Makefile") CONFIG_FILES="$CONFIG_FILES mpcdec/Makefile" ;;
12097
    "mpcenc/Makefile") CONFIG_FILES="$CONFIG_FILES mpcenc/Makefile" ;;
12098
    "mpcgain/Makefile") CONFIG_FILES="$CONFIG_FILES mpcgain/Makefile" ;;
12099
    "wavcmp/Makefile") CONFIG_FILES="$CONFIG_FILES wavcmp/Makefile" ;;
12100
12101
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12102
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12103
   { (exit 1); exit 1; }; };;
12104
  esac
12105
done
12106
12107
12108
# If the user did not use the arguments to specify the items to instantiate,
12109
# then the envvar interface is used.  Set only those that are not.
12110
# We use the long form for the default assignment because of an extremely
12111
# bizarre bug on SunOS 4.1.3.
12112
if $ac_need_defaults; then
12113
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12114
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12115
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12116
fi
12117
12118
# Have a temporary directory for convenience.  Make it in the build tree
12119
# simply because there is no reason against having it here, and in addition,
12120
# creating and moving files from /tmp can sometimes cause problems.
12121
# Hook for its removal unless debugging.
12122
# Note that there is a small window in which the directory will not be cleaned:
12123
# after its creation but before its name has been assigned to `$tmp'.
12124
$debug ||
12125
{
12126
  tmp=
12127
  trap 'exit_status=$?
12128
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12129
' 0
12130
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12131
}
12132
# Create a (secure) tmp directory for tmp files.
12133
12134
{
12135
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12136
  test -n "$tmp" && test -d "$tmp"
12137
}  ||
12138
{
12139
  tmp=./conf$$-$RANDOM
12140
  (umask 077 && mkdir "$tmp")
12141
} ||
12142
{
12143
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
12144
   { (exit 1); exit 1; }
12145
}
12146
12147
# Set up the scripts for CONFIG_FILES section.
12148
# No need to generate them if there are no CONFIG_FILES.
12149
# This happens for instance with `./config.status config.h'.
12150
if test -n "$CONFIG_FILES"; then
12151
12152
12153
ac_cr='
12154
'
12155
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12156
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12157
  ac_cs_awk_cr='\\r'
12158
else
12159
  ac_cs_awk_cr=$ac_cr
12160
fi
12161
12162
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12163
_ACEOF
12164
12165
12166
{
12167
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12168
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12169
  echo "_ACEOF"
12170
} >conf$$subs.sh ||
12171
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12172
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12173
   { (exit 1); exit 1; }; }
12174
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12175
ac_delim='%!_!# '
12176
for ac_last_try in false false false false false :; do
12177
  . ./conf$$subs.sh ||
12178
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12179
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12180
   { (exit 1); exit 1; }; }
12181
12182
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12183
  if test $ac_delim_n = $ac_delim_num; then
12184
    break
12185
  elif $ac_last_try; then
12186
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12187
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12188
   { (exit 1); exit 1; }; }
12189
  else
12190
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12191
  fi
12192
done
12193
rm -f conf$$subs.sh
12194
12195
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12196
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12197
_ACEOF
12198
sed -n '
12199
h
12200
s/^/S["/; s/!.*/"]=/
12201
p
12202
g
12203
s/^[^!]*!//
12204
:repl
12205
t repl
12206
s/'"$ac_delim"'$//
12207
t delim
12208
:nl
12209
h
12210
s/\(.\{148\}\).*/\1/
12211
t more1
12212
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12213
p
12214
n
12215
b repl
12216
:more1
12217
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12218
p
12219
g
12220
s/.\{148\}//
12221
t nl
12222
:delim
12223
h
12224
s/\(.\{148\}\).*/\1/
12225
t more2
12226
s/["\\]/\\&/g; s/^/"/; s/$/"/
12227
p
12228
b
12229
:more2
12230
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12231
p
12232
g
12233
s/.\{148\}//
12234
t delim
12235
' <conf$$subs.awk | sed '
12236
/^[^""]/{
12237
  N
12238
  s/\n//
12239
}
12240
' >>$CONFIG_STATUS || ac_write_fail=1
12241
rm -f conf$$subs.awk
12242
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12243
_ACAWK
12244
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12245
  for (key in S) S_is_set[key] = 1
12246
  FS = ""
12247
12248
}
12249
{
12250
  line = $ 0
12251
  nfields = split(line, field, "@")
12252
  substed = 0
12253
  len = length(field[1])
12254
  for (i = 2; i < nfields; i++) {
12255
    key = field[i]
12256
    keylen = length(key)
12257
    if (S_is_set[key]) {
12258
      value = S[key]
12259
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12260
      len += length(value) + length(field[++i])
12261
      substed = 1
12262
    } else
12263
      len += 1 + keylen
12264
  }
12265
12266
  print line
12267
}
12268
12269
_ACAWK
12270
_ACEOF
12271
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12272
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12273
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12274
else
12275
  cat
12276
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12277
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12278
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12279
   { (exit 1); exit 1; }; }
12280
_ACEOF
12281
12282
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12283
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12284
# trailing colons and then remove the whole line if VPATH becomes empty
12285
# (actually we leave an empty line to preserve line numbers).
12286
if test "x$srcdir" = x.; then
12287
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12288
s/:*\$(srcdir):*/:/
12289
s/:*\${srcdir}:*/:/
12290
s/:*@srcdir@:*/:/
12291
s/^\([^=]*=[	 ]*\):*/\1/
12292
s/:*$//
12293
s/^[^=]*=[	 ]*$//
12294
}'
12295
fi
12296
12297
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298
fi # test -n "$CONFIG_FILES"
12299
12300
# Set up the scripts for CONFIG_HEADERS section.
12301
# No need to generate them if there are no CONFIG_HEADERS.
12302
# This happens for instance with `./config.status Makefile'.
12303
if test -n "$CONFIG_HEADERS"; then
12304
cat >"$tmp/defines.awk" <<\_ACAWK ||
12305
BEGIN {
12306
_ACEOF
12307
12308
# Transform confdefs.h into an awk script `defines.awk', embedded as
12309
# here-document in config.status, that substitutes the proper values into
12310
# config.h.in to produce config.h.
12311
12312
# Create a delimiter string that does not exist in confdefs.h, to ease
12313
# handling of long lines.
12314
ac_delim='%!_!# '
12315
for ac_last_try in false false :; do
12316
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12317
  if test -z "$ac_t"; then
12318
    break
12319
  elif $ac_last_try; then
12320
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12321
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12322
   { (exit 1); exit 1; }; }
12323
  else
12324
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12325
  fi
12326
done
12327
12328
# For the awk script, D is an array of macro values keyed by name,
12329
# likewise P contains macro parameters if any.  Preserve backslash
12330
# newline sequences.
12331
12332
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12333
sed -n '
12334
s/.\{148\}/&'"$ac_delim"'/g
12335
t rset
12336
:rset
12337
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12338
t def
12339
d
12340
:def
12341
s/\\$//
12342
t bsnl
12343
s/["\\]/\\&/g
12344
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12345
D["\1"]=" \3"/p
12346
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12347
d
12348
:bsnl
12349
s/["\\]/\\&/g
12350
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12351
D["\1"]=" \3\\\\\\n"\\/p
12352
t cont
12353
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12354
t cont
12355
d
12356
:cont
12357
n
12358
s/.\{148\}/&'"$ac_delim"'/g
12359
t clear
12360
:clear
12361
s/\\$//
12362
t bsnlc
12363
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12364
d
12365
:bsnlc
12366
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12367
b cont
12368
' <confdefs.h | sed '
12369
s/'"$ac_delim"'/"\\\
12370
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12371
12372
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373
  for (key in D) D_is_set[key] = 1
12374
  FS = ""
12375
}
12376
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12377
  line = \$ 0
12378
  split(line, arg, " ")
12379
  if (arg[1] == "#") {
12380
    defundef = arg[2]
12381
    mac1 = arg[3]
12382
  } else {
12383
    defundef = substr(arg[1], 2)
12384
    mac1 = arg[2]
12385
  }
12386
  split(mac1, mac2, "(") #)
12387
  macro = mac2[1]
12388
  prefix = substr(line, 1, index(line, defundef) - 1)
12389
  if (D_is_set[macro]) {
12390
    # Preserve the white space surrounding the "#".
12391
    print prefix "define", macro P[macro] D[macro]
12392
    next
12393
  } else {
12394
    # Replace #undef with comments.  This is necessary, for example,
12395
    # in the case of _POSIX_SOURCE, which is predefined and required
12396
    # on some systems where configure will not decide to define it.
12397
    if (defundef == "undef") {
12398
      print "/*", prefix defundef, macro, "*/"
12399
      next
12400
    }
12401
  }
12402
}
12403
{ print }
12404
_ACAWK
12405
_ACEOF
12406
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12407
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12408
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12409
   { (exit 1); exit 1; }; }
12410
fi # test -n "$CONFIG_HEADERS"
12411
12412
12413
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12414
shift
12415
for ac_tag
12416
do
12417
  case $ac_tag in
12418
  :[FHLC]) ac_mode=$ac_tag; continue;;
12419
  esac
12420
  case $ac_mode$ac_tag in
12421
  :[FHL]*:*);;
12422
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12423
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12424
   { (exit 1); exit 1; }; };;
12425
  :[FH]-) ac_tag=-:-;;
12426
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12427
  esac
12428
  ac_save_IFS=$IFS
12429
  IFS=:
12430
  set x $ac_tag
12431
  IFS=$ac_save_IFS
12432
  shift
12433
  ac_file=$1
12434
  shift
12435
12436
  case $ac_mode in
12437
  :L) ac_source=$1;;
12438
  :[FH])
12439
    ac_file_inputs=
12440
    for ac_f
12441
    do
12442
      case $ac_f in
12443
      -) ac_f="$tmp/stdin";;
12444
      *) # Look for the file first in the build tree, then in the source tree
12445
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12446
	 # because $ac_f cannot contain `:'.
12447
	 test -f "$ac_f" ||
12448
	   case $ac_f in
12449
	   [\\/$]*) false;;
12450
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12451
	   esac ||
12452
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12453
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12454
   { (exit 1); exit 1; }; };;
12455
      esac
12456
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12457
      ac_file_inputs="$ac_file_inputs '$ac_f'"
12458
    done
12459
12460
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12461
    # use $as_me), people would be surprised to read:
12462
    #    /* config.h.  Generated by config.status.  */
12463
    configure_input='Generated from '`
12464
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12465
	`' by configure.'
12466
    if test x"$ac_file" != x-; then
12467
      configure_input="$ac_file.  $configure_input"
12468
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12469
$as_echo "$as_me: creating $ac_file" >&6;}
12470
    fi
12471
    # Neutralize special characters interpreted by sed in replacement strings.
12472
    case $configure_input in #(
12473
    *\&* | *\|* | *\\* )
12474
       ac_sed_conf_input=`$as_echo "$configure_input" |
12475
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12476
    *) ac_sed_conf_input=$configure_input;;
12477
    esac
12478
12479
    case $ac_tag in
12480
    *:-:* | *:-) cat >"$tmp/stdin" \
12481
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12482
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12483
   { (exit 1); exit 1; }; } ;;
12484
    esac
12485
    ;;
12486
  esac
12487
12488
  ac_dir=`$as_dirname -- "$ac_file" ||
12489
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12490
	 X"$ac_file" : 'X\(//\)[^/]' \| \
12491
	 X"$ac_file" : 'X\(//\)$' \| \
12492
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12493
$as_echo X"$ac_file" |
12494
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12495
	    s//\1/
12496
	    q
12497
	  }
12498
	  /^X\(\/\/\)[^/].*/{
12499
	    s//\1/
12500
	    q
12501
	  }
12502
	  /^X\(\/\/\)$/{
12503
	    s//\1/
12504
	    q
12505
	  }
12506
	  /^X\(\/\).*/{
12507
	    s//\1/
12508
	    q
12509
	  }
12510
	  s/.*/./; q'`
12511
  { as_dir="$ac_dir"
12512
  case $as_dir in #(
12513
  -*) as_dir=./$as_dir;;
12514
  esac
12515
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12516
    as_dirs=
12517
    while :; do
12518
      case $as_dir in #(
12519
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12520
      *) as_qdir=$as_dir;;
12521
      esac
12522
      as_dirs="'$as_qdir' $as_dirs"
12523
      as_dir=`$as_dirname -- "$as_dir" ||
12524
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12525
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12526
	 X"$as_dir" : 'X\(//\)$' \| \
12527
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12528
$as_echo X"$as_dir" |
12529
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12530
	    s//\1/
12531
	    q
12532
	  }
12533
	  /^X\(\/\/\)[^/].*/{
12534
	    s//\1/
12535
	    q
12536
	  }
12537
	  /^X\(\/\/\)$/{
12538
	    s//\1/
12539
	    q
12540
	  }
12541
	  /^X\(\/\).*/{
12542
	    s//\1/
12543
	    q
12544
	  }
12545
	  s/.*/./; q'`
12546
      test -d "$as_dir" && break
12547
    done
12548
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12549
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12550
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12551
   { (exit 1); exit 1; }; }; }
12552
  ac_builddir=.
12553
12554
case "$ac_dir" in
12555
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12556
*)
12557
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12558
  # A ".." for each directory in $ac_dir_suffix.
12559
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12560
  case $ac_top_builddir_sub in
12561
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12562
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12563
  esac ;;
12564
esac
12565
ac_abs_top_builddir=$ac_pwd
12566
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12567
# for backward compatibility:
12568
ac_top_builddir=$ac_top_build_prefix
12569
12570
case $srcdir in
12571
  .)  # We are building in place.
12572
    ac_srcdir=.
12573
    ac_top_srcdir=$ac_top_builddir_sub
12574
    ac_abs_top_srcdir=$ac_pwd ;;
12575
  [\\/]* | ?:[\\/]* )  # Absolute name.
12576
    ac_srcdir=$srcdir$ac_dir_suffix;
12577
    ac_top_srcdir=$srcdir
12578
    ac_abs_top_srcdir=$srcdir ;;
12579
  *) # Relative name.
12580
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12581
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12582
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12583
esac
12584
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12585
12586
12587
  case $ac_mode in
12588
  :F)
12589
  #
12590
  # CONFIG_FILE
12591
  #
12592
12593
  case $INSTALL in
12594
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12595
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12596
  esac
12597
  ac_MKDIR_P=$MKDIR_P
12598
  case $MKDIR_P in
12599
  [\\/$]* | ?:[\\/]* ) ;;
12600
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12601
  esac
12602
_ACEOF
12603
12604
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605
# If the template does not know about datarootdir, expand it.
12606
# FIXME: This hack should be removed a few years after 2.60.
12607
ac_datarootdir_hack=; ac_datarootdir_seen=
12608
12609
ac_sed_dataroot='
12610
/datarootdir/ {
12611
  p
12612
  q
12613
}
12614
/@datadir@/p
12615
/@docdir@/p
12616
/@infodir@/p
12617
/@localedir@/p
12618
/@mandir@/p
12619
'
12620
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12621
*datarootdir*) ac_datarootdir_seen=yes;;
12622
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12623
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12624
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12625
_ACEOF
12626
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12627
  ac_datarootdir_hack='
12628
  s&@datadir@&$datadir&g
12629
  s&@docdir@&$docdir&g
12630
  s&@infodir@&$infodir&g
12631
  s&@localedir@&$localedir&g
12632
  s&@mandir@&$mandir&g
12633
    s&\\\${datarootdir}&$datarootdir&g' ;;
12634
esac
12635
_ACEOF
12636
12637
# Neutralize VPATH when `$srcdir' = `.'.
12638
# Shell code in configure.ac might set extrasub.
12639
# FIXME: do we really want to maintain this feature?
12640
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12641
ac_sed_extra="$ac_vpsub
12642
$extrasub
12643
_ACEOF
12644
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12645
:t
12646
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12647
s|@configure_input@|$ac_sed_conf_input|;t t
12648
s&@top_builddir@&$ac_top_builddir_sub&;t t
12649
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12650
s&@srcdir@&$ac_srcdir&;t t
12651
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12652
s&@top_srcdir@&$ac_top_srcdir&;t t
12653
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12654
s&@builddir@&$ac_builddir&;t t
12655
s&@abs_builddir@&$ac_abs_builddir&;t t
12656
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12657
s&@INSTALL@&$ac_INSTALL&;t t
12658
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12659
$ac_datarootdir_hack
12660
"
12661
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12662
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12663
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12664
   { (exit 1); exit 1; }; }
12665
12666
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12667
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12668
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12669
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12670
which seems to be undefined.  Please make sure it is defined." >&5
12671
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12672
which seems to be undefined.  Please make sure it is defined." >&2;}
12673
12674
  rm -f "$tmp/stdin"
12675
  case $ac_file in
12676
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12677
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12678
  esac \
12679
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12680
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12681
   { (exit 1); exit 1; }; }
12682
 ;;
12683
  :H)
12684
  #
12685
  # CONFIG_HEADER
12686
  #
12687
  if test x"$ac_file" != x-; then
12688
    {
12689
      $as_echo "/* $configure_input  */" \
12690
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12691
    } >"$tmp/config.h" \
12692
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12693
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12694
   { (exit 1); exit 1; }; }
12695
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12696
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12697
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12698
    else
12699
      rm -f "$ac_file"
12700
      mv "$tmp/config.h" "$ac_file" \
12701
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12702
$as_echo "$as_me: error: could not create $ac_file" >&2;}
12703
   { (exit 1); exit 1; }; }
12704
    fi
12705
  else
12706
    $as_echo "/* $configure_input  */" \
12707
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12708
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12709
$as_echo "$as_me: error: could not create -" >&2;}
12710
   { (exit 1); exit 1; }; }
12711
  fi
12712
# Compute "$ac_file"'s index in $config_headers.
12713
_am_arg="$ac_file"
12714
_am_stamp_count=1
12715
for _am_header in $config_headers :; do
12716
  case $_am_header in
12717
    $_am_arg | $_am_arg:* )
12718
      break ;;
12719
    * )
12720
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12721
  esac
12722
done
12723
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12724
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12725
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12726
	 X"$_am_arg" : 'X\(//\)$' \| \
12727
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12728
$as_echo X"$_am_arg" |
12729
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12730
	    s//\1/
12731
	    q
12732
	  }
12733
	  /^X\(\/\/\)[^/].*/{
12734
	    s//\1/
12735
	    q
12736
	  }
12737
	  /^X\(\/\/\)$/{
12738
	    s//\1/
12739
	    q
12740
	  }
12741
	  /^X\(\/\).*/{
12742
	    s//\1/
12743
	    q
12744
	  }
12745
	  s/.*/./; q'`/stamp-h$_am_stamp_count
12746
 ;;
12747
12748
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12749
$as_echo "$as_me: executing $ac_file commands" >&6;}
12750
 ;;
12751
  esac
12752
12753
12754
  case $ac_file$ac_mode in
12755
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12756
  # Strip MF so we end up with the name of the file.
12757
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12758
  # Check whether this is an Automake generated Makefile or not.
12759
  # We used to match only the files named `Makefile.in', but
12760
  # some people rename them; so instead we look at the file content.
12761
  # Grep'ing the first line is not enough: some people post-process
12762
  # each Makefile.in and add a new line on top of each file to say so.
12763
  # Grep'ing the whole file is not good either: AIX grep has a line
12764
  # limit of 2048, but all sed's we know have understand at least 4000.
12765
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12766
    dirpart=`$as_dirname -- "$mf" ||
12767
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12768
	 X"$mf" : 'X\(//\)[^/]' \| \
12769
	 X"$mf" : 'X\(//\)$' \| \
12770
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12771
$as_echo X"$mf" |
12772
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12773
	    s//\1/
12774
	    q
12775
	  }
12776
	  /^X\(\/\/\)[^/].*/{
12777
	    s//\1/
12778
	    q
12779
	  }
12780
	  /^X\(\/\/\)$/{
12781
	    s//\1/
12782
	    q
12783
	  }
12784
	  /^X\(\/\).*/{
12785
	    s//\1/
12786
	    q
12787
	  }
12788
	  s/.*/./; q'`
12789
  else
12790
    continue
12791
  fi
12792
  # Extract the definition of DEPDIR, am__include, and am__quote
12793
  # from the Makefile without running `make'.
12794
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12795
  test -z "$DEPDIR" && continue
12796
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12797
  test -z "am__include" && continue
12798
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12799
  # When using ansi2knr, U may be empty or an underscore; expand it
12800
  U=`sed -n 's/^U = //p' < "$mf"`
12801
  # Find all dependency output files, they are included files with
12802
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12803
  # simplest approach to changing $(DEPDIR) to its actual value in the
12804
  # expansion.
12805
  for file in `sed -n "
12806
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12807
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12808
    # Make sure the directory exists.
12809
    test -f "$dirpart/$file" && continue
12810
    fdir=`$as_dirname -- "$file" ||
12811
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12812
	 X"$file" : 'X\(//\)[^/]' \| \
12813
	 X"$file" : 'X\(//\)$' \| \
12814
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12815
$as_echo X"$file" |
12816
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12817
	    s//\1/
12818
	    q
12819
	  }
12820
	  /^X\(\/\/\)[^/].*/{
12821
	    s//\1/
12822
	    q
12823
	  }
12824
	  /^X\(\/\/\)$/{
12825
	    s//\1/
12826
	    q
12827
	  }
12828
	  /^X\(\/\).*/{
12829
	    s//\1/
12830
	    q
12831
	  }
12832
	  s/.*/./; q'`
12833
    { as_dir=$dirpart/$fdir
12834
  case $as_dir in #(
12835
  -*) as_dir=./$as_dir;;
12836
  esac
12837
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12838
    as_dirs=
12839
    while :; do
12840
      case $as_dir in #(
12841
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12842
      *) as_qdir=$as_dir;;
12843
      esac
12844
      as_dirs="'$as_qdir' $as_dirs"
12845
      as_dir=`$as_dirname -- "$as_dir" ||
12846
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12847
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12848
	 X"$as_dir" : 'X\(//\)$' \| \
12849
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12850
$as_echo X"$as_dir" |
12851
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12852
	    s//\1/
12853
	    q
12854
	  }
12855
	  /^X\(\/\/\)[^/].*/{
12856
	    s//\1/
12857
	    q
12858
	  }
12859
	  /^X\(\/\/\)$/{
12860
	    s//\1/
12861
	    q
12862
	  }
12863
	  /^X\(\/\).*/{
12864
	    s//\1/
12865
	    q
12866
	  }
12867
	  s/.*/./; q'`
12868
      test -d "$as_dir" && break
12869
    done
12870
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12871
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12872
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12873
   { (exit 1); exit 1; }; }; }
12874
    # echo "creating $dirpart/$file"
12875
    echo '# dummy' > "$dirpart/$file"
12876
  done
12877
done
12878
 ;;
12879
    "libtool":C)
12880
12881
    # See if we are running on zsh, and set the options which allow our
12882
    # commands through without removal of \ escapes.
12883
    if test -n "${ZSH_VERSION+set}" ; then
12884
      setopt NO_GLOB_SUBST
12885
    fi
12886
12887
    cfgfile="${ofile}T"
12888
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12889
    $RM "$cfgfile"
12890
12891
    cat <<_LT_EOF >> "$cfgfile"
12892
#! $SHELL
12893
12894
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12895
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12896
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12897
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12898
#
12899
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12900
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12901
#   Written by Gordon Matzigkeit, 1996
12902
#
12903
#   This file is part of GNU Libtool.
12904
#
12905
# GNU Libtool is free software; you can redistribute it and/or
12906
# modify it under the terms of the GNU General Public License as
12907
# published by the Free Software Foundation; either version 2 of
12908
# the License, or (at your option) any later version.
12909
#
12910
# As a special exception to the GNU General Public License,
12911
# if you distribute this file as part of a program or library that
12912
# is built using GNU Libtool, you may include this file under the
12913
# same distribution terms that you use for the rest of that program.
12914
#
12915
# GNU Libtool is distributed in the hope that it will be useful,
12916
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12917
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12918
# GNU General Public License for more details.
12919
#
12920
# You should have received a copy of the GNU General Public License
12921
# along with GNU Libtool; see the file COPYING.  If not, a copy
12922
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12923
# obtained by writing to the Free Software Foundation, Inc.,
12924
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12925
12926
12927
# The names of the tagged configurations supported by this script.
12928
available_tags=""
12929
12930
# ### BEGIN LIBTOOL CONFIG
12931
12932
# Which release of libtool.m4 was used?
12933
macro_version=$macro_version
12934
macro_revision=$macro_revision
12935
12936
# Whether or not to build shared libraries.
12937
build_libtool_libs=$enable_shared
12938
12939
# Whether or not to build static libraries.
12940
build_old_libs=$enable_static
12941
12942
# What type of objects to build.
12943
pic_mode=$pic_mode
12944
12945
# Whether or not to optimize for fast installation.
12946
fast_install=$enable_fast_install
12947
12948
# The host system.
12949
host_alias=$host_alias
12950
host=$host
12951
host_os=$host_os
12952
12953
# The build system.
12954
build_alias=$build_alias
12955
build=$build
12956
build_os=$build_os
12957
12958
# A sed program that does not truncate output.
12959
SED=$lt_SED
12960
12961
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12962
Xsed="\$SED -e 1s/^X//"
12963
12964
# A grep program that handles long lines.
12965
GREP=$lt_GREP
12966
12967
# An ERE matcher.
12968
EGREP=$lt_EGREP
12969
12970
# A literal string matcher.
12971
FGREP=$lt_FGREP
12972
12973
# A BSD- or MS-compatible name lister.
12974
NM=$lt_NM
12975
12976
# Whether we need soft or hard links.
12977
LN_S=$lt_LN_S
12978
12979
# What is the maximum length of a command?
12980
max_cmd_len=$max_cmd_len
12981
12982
# Object file suffix (normally "o").
12983
objext=$ac_objext
12984
12985
# Executable file suffix (normally "").
12986
exeext=$exeext
12987
12988
# whether the shell understands "unset".
12989
lt_unset=$lt_unset
12990
12991
# turn spaces into newlines.
12992
SP2NL=$lt_lt_SP2NL
12993
12994
# turn newlines into spaces.
12995
NL2SP=$lt_lt_NL2SP
12996
12997
# How to create reloadable object files.
12998
reload_flag=$lt_reload_flag
12999
reload_cmds=$lt_reload_cmds
13000
13001
# An object symbol dumper.
13002
OBJDUMP=$lt_OBJDUMP
13003
13004
# Method to check whether dependent libraries are shared objects.
13005
deplibs_check_method=$lt_deplibs_check_method
13006
13007
# Command to use when deplibs_check_method == "file_magic".
13008
file_magic_cmd=$lt_file_magic_cmd
13009
13010
# The archiver.
13011
AR=$lt_AR
13012
AR_FLAGS=$lt_AR_FLAGS
13013
13014
# A symbol stripping program.
13015
STRIP=$lt_STRIP
13016
13017
# Commands used to install an old-style archive.
13018
RANLIB=$lt_RANLIB
13019
old_postinstall_cmds=$lt_old_postinstall_cmds
13020
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13021
13022
# A C compiler.
13023
LTCC=$lt_CC
13024
13025
# LTCC compiler flags.
13026
LTCFLAGS=$lt_CFLAGS
13027
13028
# Take the output of nm and produce a listing of raw symbols and C names.
13029
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13030
13031
# Transform the output of nm in a proper C declaration.
13032
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13033
13034
# Transform the output of nm in a C name address pair.
13035
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13036
13037
# Transform the output of nm in a C name address pair when lib prefix is needed.
13038
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13039
13040
# The name of the directory that contains temporary libtool files.
13041
objdir=$objdir
13042
13043
# Shell to use when invoking shell scripts.
13044
SHELL=$lt_SHELL
13045
13046
# An echo program that does not interpret backslashes.
13047
ECHO=$lt_ECHO
13048
13049
# Used to examine libraries when file_magic_cmd begins with "file".
13050
MAGIC_CMD=$MAGIC_CMD
13051
13052
# Must we lock files when doing compilation?
13053
need_locks=$lt_need_locks
13054
13055
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13056
DSYMUTIL=$lt_DSYMUTIL
13057
13058
# Tool to change global to local symbols on Mac OS X.
13059
NMEDIT=$lt_NMEDIT
13060
13061
# Tool to manipulate fat objects and archives on Mac OS X.
13062
LIPO=$lt_LIPO
13063
13064
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13065
OTOOL=$lt_OTOOL
13066
13067
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13068
OTOOL64=$lt_OTOOL64
13069
13070
# Old archive suffix (normally "a").
13071
libext=$libext
13072
13073
# Shared library suffix (normally ".so").
13074
shrext_cmds=$lt_shrext_cmds
13075
13076
# The commands to extract the exported symbol list from a shared archive.
13077
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13078
13079
# Variables whose values should be saved in libtool wrapper scripts and
13080
# restored at link time.
13081
variables_saved_for_relink=$lt_variables_saved_for_relink
13082
13083
# Do we need the "lib" prefix for modules?
13084
need_lib_prefix=$need_lib_prefix
13085
13086
# Do we need a version for libraries?
13087
need_version=$need_version
13088
13089
# Library versioning type.
13090
version_type=$version_type
13091
13092
# Shared library runtime path variable.
13093
runpath_var=$runpath_var
13094
13095
# Shared library path variable.
13096
shlibpath_var=$shlibpath_var
13097
13098
# Is shlibpath searched before the hard-coded library search path?
13099
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13100
13101
# Format of library name prefix.
13102
libname_spec=$lt_libname_spec
13103
13104
# List of archive names.  First name is the real one, the rest are links.
13105
# The last name is the one that the linker finds with -lNAME
13106
library_names_spec=$lt_library_names_spec
13107
13108
# The coded name of the library, if different from the real name.
13109
soname_spec=$lt_soname_spec
13110
13111
# Command to use after installation of a shared archive.
13112
postinstall_cmds=$lt_postinstall_cmds
13113
13114
# Command to use after uninstallation of a shared archive.
13115
postuninstall_cmds=$lt_postuninstall_cmds
13116
13117
# Commands used to finish a libtool library installation in a directory.
13118
finish_cmds=$lt_finish_cmds
13119
13120
# As "finish_cmds", except a single script fragment to be evaled but
13121
# not shown.
13122
finish_eval=$lt_finish_eval
13123
13124
# Whether we should hardcode library paths into libraries.
13125
hardcode_into_libs=$hardcode_into_libs
13126
13127
# Compile-time system search path for libraries.
13128
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13129
13130
# Run-time system search path for libraries.
13131
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13132
13133
# Whether dlopen is supported.
13134
dlopen_support=$enable_dlopen
13135
13136
# Whether dlopen of programs is supported.
13137
dlopen_self=$enable_dlopen_self
13138
13139
# Whether dlopen of statically linked programs is supported.
13140
dlopen_self_static=$enable_dlopen_self_static
13141
13142
# Commands to strip libraries.
13143
old_striplib=$lt_old_striplib
13144
striplib=$lt_striplib
13145
13146
13147
# The linker used to build libraries.
13148
LD=$lt_LD
13149
13150
# Commands used to build an old-style archive.
13151
old_archive_cmds=$lt_old_archive_cmds
13152
13153
# A language specific compiler.
13154
CC=$lt_compiler
13155
13156
# Is the compiler the GNU compiler?
13157
with_gcc=$GCC
13158
13159
# Compiler flag to turn off builtin functions.
13160
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13161
13162
# How to pass a linker flag through the compiler.
13163
wl=$lt_lt_prog_compiler_wl
13164
13165
# Additional compiler flags for building library objects.
13166
pic_flag=$lt_lt_prog_compiler_pic
13167
13168
# Compiler flag to prevent dynamic linking.
13169
link_static_flag=$lt_lt_prog_compiler_static
13170
13171
# Does compiler simultaneously support -c and -o options?
13172
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13173
13174
# Whether or not to add -lc for building shared libraries.
13175
build_libtool_need_lc=$archive_cmds_need_lc
13176
13177
# Whether or not to disallow shared libs when runtime libs are static.
13178
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13179
13180
# Compiler flag to allow reflexive dlopens.
13181
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13182
13183
# Compiler flag to generate shared objects directly from archives.
13184
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13185
13186
# Whether the compiler copes with passing no objects directly.
13187
compiler_needs_object=$lt_compiler_needs_object
13188
13189
# Create an old-style archive from a shared archive.
13190
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13191
13192
# Create a temporary old-style archive to link instead of a shared archive.
13193
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13194
13195
# Commands used to build a shared archive.
13196
archive_cmds=$lt_archive_cmds
13197
archive_expsym_cmds=$lt_archive_expsym_cmds
13198
13199
# Commands used to build a loadable module if different from building
13200
# a shared archive.
13201
module_cmds=$lt_module_cmds
13202
module_expsym_cmds=$lt_module_expsym_cmds
13203
13204
# Whether we are building with GNU ld or not.
13205
with_gnu_ld=$lt_with_gnu_ld
13206
13207
# Flag that allows shared libraries with undefined symbols to be built.
13208
allow_undefined_flag=$lt_allow_undefined_flag
13209
13210
# Flag that enforces no undefined symbols.
13211
no_undefined_flag=$lt_no_undefined_flag
13212
13213
# Flag to hardcode \$libdir into a binary during linking.
13214
# This must work even if \$libdir does not exist
13215
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13216
13217
# If ld is used when linking, flag to hardcode \$libdir into a binary
13218
# during linking.  This must work even if \$libdir does not exist.
13219
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13220
13221
# Whether we need a single "-rpath" flag with a separated argument.
13222
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13223
13224
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13225
# DIR into the resulting binary.
13226
hardcode_direct=$hardcode_direct
13227
13228
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13229
# DIR into the resulting binary and the resulting library dependency is
13230
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13231
# library is relocated.
13232
hardcode_direct_absolute=$hardcode_direct_absolute
13233
13234
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13235
# into the resulting binary.
13236
hardcode_minus_L=$hardcode_minus_L
13237
13238
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13239
# into the resulting binary.
13240
hardcode_shlibpath_var=$hardcode_shlibpath_var
13241
13242
# Set to "yes" if building a shared library automatically hardcodes DIR
13243
# into the library and all subsequent libraries and executables linked
13244
# against it.
13245
hardcode_automatic=$hardcode_automatic
13246
13247
# Set to yes if linker adds runtime paths of dependent libraries
13248
# to runtime path list.
13249
inherit_rpath=$inherit_rpath
13250
13251
# Whether libtool must link a program against all its dependency libraries.
13252
link_all_deplibs=$link_all_deplibs
13253
13254
# Fix the shell variable \$srcfile for the compiler.
13255
fix_srcfile_path=$lt_fix_srcfile_path
13256
13257
# Set to "yes" if exported symbols are required.
13258
always_export_symbols=$always_export_symbols
13259
13260
# The commands to list exported symbols.
13261
export_symbols_cmds=$lt_export_symbols_cmds
13262
13263
# Symbols that should not be listed in the preloaded symbols.
13264
exclude_expsyms=$lt_exclude_expsyms
13265
13266
# Symbols that must always be exported.
13267
include_expsyms=$lt_include_expsyms
13268
13269
# Commands necessary for linking programs (against libraries) with templates.
13270
prelink_cmds=$lt_prelink_cmds
13271
13272
# Specify filename containing input files.
13273
file_list_spec=$lt_file_list_spec
13274
13275
# How to hardcode a shared library path into an executable.
13276
hardcode_action=$hardcode_action
13277
13278
# ### END LIBTOOL CONFIG
13279
13280
_LT_EOF
13281
13282
  case $host_os in
13283
  aix3*)
13284
    cat <<\_LT_EOF >> "$cfgfile"
13285
# AIX sometimes has problems with the GCC collect2 program.  For some
13286
# reason, if we set the COLLECT_NAMES environment variable, the problems
13287
# vanish in a puff of smoke.
13288
if test "X${COLLECT_NAMES+set}" != Xset; then
13289
  COLLECT_NAMES=
13290
  export COLLECT_NAMES
13291
fi
13292
_LT_EOF
13293
    ;;
13294
  esac
13295
13296
13297
ltmain="$ac_aux_dir/ltmain.sh"
13298
13299
13300
  # We use sed instead of cat because bash on DJGPP gets confused if
13301
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13302
  # text mode, it properly converts lines to CR/LF.  This bash problem
13303
  # is reportedly fixed, but why not run on old versions too?
13304
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13305
    || (rm -f "$cfgfile"; exit 1)
13306
13307
  case $xsi_shell in
13308
  yes)
13309
    cat << \_LT_EOF >> "$cfgfile"
13310
13311
# func_dirname file append nondir_replacement
13312
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13313
# otherwise set result to NONDIR_REPLACEMENT.
13314
func_dirname ()
13315
{
13316
  case ${1} in
13317
    */*) func_dirname_result="${1%/*}${2}" ;;
13318
    *  ) func_dirname_result="${3}" ;;
13319
  esac
13320
}
13321
13322
# func_basename file
13323
func_basename ()
13324
{
13325
  func_basename_result="${1##*/}"
13326
}
13327
13328
# func_dirname_and_basename file append nondir_replacement
13329
# perform func_basename and func_dirname in a single function
13330
# call:
13331
#   dirname:  Compute the dirname of FILE.  If nonempty,
13332
#             add APPEND to the result, otherwise set result
13333
#             to NONDIR_REPLACEMENT.
13334
#             value returned in "$func_dirname_result"
13335
#   basename: Compute filename of FILE.
13336
#             value retuned in "$func_basename_result"
13337
# Implementation must be kept synchronized with func_dirname
13338
# and func_basename. For efficiency, we do not delegate to
13339
# those functions but instead duplicate the functionality here.
13340
func_dirname_and_basename ()
13341
{
13342
  case ${1} in
13343
    */*) func_dirname_result="${1%/*}${2}" ;;
13344
    *  ) func_dirname_result="${3}" ;;
13345
  esac
13346
  func_basename_result="${1##*/}"
13347
}
13348
13349
# func_stripname prefix suffix name
13350
# strip PREFIX and SUFFIX off of NAME.
13351
# PREFIX and SUFFIX must not contain globbing or regex special
13352
# characters, hashes, percent signs, but SUFFIX may contain a leading
13353
# dot (in which case that matches only a dot).
13354
func_stripname ()
13355
{
13356
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13357
  # positional parameters, so assign one to ordinary parameter first.
13358
  func_stripname_result=${3}
13359
  func_stripname_result=${func_stripname_result#"${1}"}
13360
  func_stripname_result=${func_stripname_result%"${2}"}
13361
}
13362
13363
# func_opt_split
13364
func_opt_split ()
13365
{
13366
  func_opt_split_opt=${1%%=*}
13367
  func_opt_split_arg=${1#*=}
13368
}
13369
13370
# func_lo2o object
13371
func_lo2o ()
13372
{
13373
  case ${1} in
13374
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13375
    *)    func_lo2o_result=${1} ;;
13376
  esac
13377
}
13378
13379
# func_xform libobj-or-source
13380
func_xform ()
13381
{
13382
  func_xform_result=${1%.*}.lo
13383
}
13384
13385
# func_arith arithmetic-term...
13386
func_arith ()
13387
{
13388
  func_arith_result=$(( $* ))
13389
}
13390
13391
# func_len string
13392
# STRING may not start with a hyphen.
13393
func_len ()
13394
{
13395
  func_len_result=${#1}
13396
}
13397
13398
_LT_EOF
13399
    ;;
13400
  *) # Bourne compatible functions.
13401
    cat << \_LT_EOF >> "$cfgfile"
13402
13403
# func_dirname file append nondir_replacement
13404
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13405
# otherwise set result to NONDIR_REPLACEMENT.
13406
func_dirname ()
13407
{
13408
  # Extract subdirectory from the argument.
13409
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13410
  if test "X$func_dirname_result" = "X${1}"; then
13411
    func_dirname_result="${3}"
13412
  else
13413
    func_dirname_result="$func_dirname_result${2}"
13414
  fi
13415
}
13416
13417
# func_basename file
13418
func_basename ()
13419
{
13420
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13421
}
13422
13423
13424
# func_stripname prefix suffix name
13425
# strip PREFIX and SUFFIX off of NAME.
13426
# PREFIX and SUFFIX must not contain globbing or regex special
13427
# characters, hashes, percent signs, but SUFFIX may contain a leading
13428
# dot (in which case that matches only a dot).
13429
# func_strip_suffix prefix name
13430
func_stripname ()
13431
{
13432
  case ${2} in
13433
    .*) func_stripname_result=`$ECHO "X${3}" \
13434
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13435
    *)  func_stripname_result=`$ECHO "X${3}" \
13436
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13437
  esac
13438
}
13439
13440
# sed scripts:
13441
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13442
my_sed_long_arg='1s/^-[^=]*=//'
13443
13444
# func_opt_split
13445
func_opt_split ()
13446
{
13447
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13448
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13449
}
13450
13451
# func_lo2o object
13452
func_lo2o ()
13453
{
13454
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13455
}
13456
13457
# func_xform libobj-or-source
13458
func_xform ()
13459
{
13460
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13461
}
13462
13463
# func_arith arithmetic-term...
13464
func_arith ()
13465
{
13466
  func_arith_result=`expr "$@"`
13467
}
13468
13469
# func_len string
13470
# STRING may not start with a hyphen.
13471
func_len ()
13472
{
13473
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13474
}
13475
13476
_LT_EOF
13477
esac
13478
13479
case $lt_shell_append in
13480
  yes)
13481
    cat << \_LT_EOF >> "$cfgfile"
13482
13483
# func_append var value
13484
# Append VALUE to the end of shell variable VAR.
13485
func_append ()
13486
{
13487
  eval "$1+=\$2"
13488
}
13489
_LT_EOF
13490
    ;;
13491
  *)
13492
    cat << \_LT_EOF >> "$cfgfile"
13493
13494
# func_append var value
13495
# Append VALUE to the end of shell variable VAR.
13496
func_append ()
13497
{
13498
  eval "$1=\$$1\$2"
13499
}
13500
13501
_LT_EOF
13502
    ;;
13503
  esac
13504
13505
13506
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13507
    || (rm -f "$cfgfile"; exit 1)
13508
13509
  mv -f "$cfgfile" "$ofile" ||
13510
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13511
  chmod +x "$ofile"
13512
13513
 ;;
13514
13515
  esac
13516
done # for ac_tag
13517
13518
13519
{ (exit 0); exit 0; }
13520
_ACEOF
13521
chmod +x $CONFIG_STATUS
13522
ac_clean_files=$ac_clean_files_save
13523
13524
test $ac_write_fail = 0 ||
13525
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13526
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13527
   { (exit 1); exit 1; }; }
13528
13529
13530
# configure is writing to config.log, and then calls config.status.
13531
# config.status does its own redirection, appending to config.log.
13532
# Unfortunately, on DOS this fails, as config.log is still kept open
13533
# by configure, so config.status won't be able to write to it; its
13534
# output is simply discarded.  So we exec the FD to /dev/null,
13535
# effectively closing config.log, so it can be properly (re)opened and
13536
# appended to by config.status.  When coming back to configure, we
13537
# need to make the FD available again.
13538
if test "$no_create" != yes; then
13539
  ac_cs_success=:
13540
  ac_config_status_args=
13541
  test "$silent" = yes &&
13542
    ac_config_status_args="$ac_config_status_args --quiet"
13543
  exec 5>/dev/null
13544
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13545
  exec 5>>config.log
13546
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13547
  # would make configure fail if this is the last instruction.
13548
  $ac_cs_success || { (exit 1); exit 1; }
13549
fi
13550
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13551
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13552
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13553
fi