Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 magnus 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for libtar 1.2.11.
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
#
11
# Copyright (c) 1998-2003 University of Illinois Board of Trustees
12
# Copyright (c) 1998-2003 Mark D. Roth
13
# All rights reserved.
14
#
15
## --------------------- ##
16
## M4sh Initialization.  ##
17
## --------------------- ##
18
 
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22
  emulate sh
23
  NULLCMD=:
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
  # is contrary to our usage.  Disable this feature.
26
  alias -g '${1+"$@"}'='"$@"'
27
  setopt NO_GLOB_SUBST
28
else
29
  case `(set -o) 2>/dev/null` in
30
  *posix*) set -o posix ;;
31
esac
32
 
33
fi
34
 
35
 
36
 
37
 
38
# PATH needs CR
39
# Avoid depending upon Character Ranges.
40
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43
as_cr_digits='0123456789'
44
as_cr_alnum=$as_cr_Letters$as_cr_digits
45
 
46
as_nl='
47
'
48
export as_nl
49
# Printing a long string crashes Solaris 7 /usr/bin/printf.
50
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
52
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
53
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54
  as_echo='printf %s\n'
55
  as_echo_n='printf %s'
56
else
57
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59
    as_echo_n='/usr/ucb/echo -n'
60
  else
61
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
    as_echo_n_body='eval
63
      arg=$1;
64
      case $arg in
65
      *"$as_nl"*)
66
	expr "X$arg" : "X\\(.*\\)$as_nl";
67
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68
      esac;
69
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
    '
71
    export as_echo_n_body
72
    as_echo_n='sh -c $as_echo_n_body as_echo'
73
  fi
74
  export as_echo_body
75
  as_echo='sh -c $as_echo_body as_echo'
76
fi
77
 
78
# The user is always right.
79
if test "${PATH_SEPARATOR+set}" != set; then
80
  PATH_SEPARATOR=:
81
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
      PATH_SEPARATOR=';'
84
  }
85
fi
86
 
87
# Support unset when possible.
88
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
89
  as_unset=unset
90
else
91
  as_unset=false
92
fi
93
 
94
 
95
# IFS
96
# We need space, tab and new line, in precisely that order.  Quoting is
97
# there to prevent editors from complaining about space-tab.
98
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
99
# splitting by setting IFS to empty value.)
100
IFS=" ""	$as_nl"
101
 
102
# Find who we are.  Look in the path if we contain no directory separator.
103
case $0 in
104
  *[\\/]* ) as_myself=$0 ;;
105
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106
for as_dir in $PATH
107
do
108
  IFS=$as_save_IFS
109
  test -z "$as_dir" && as_dir=.
110
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111
done
112
IFS=$as_save_IFS
113
 
114
     ;;
115
esac
116
# We did not find ourselves, most probably we were run as `sh COMMAND'
117
# in which case we are not to be found in the path.
118
if test "x$as_myself" = x; then
119
  as_myself=$0
120
fi
121
if test ! -f "$as_myself"; then
122
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
123
  { (exit 1); exit 1; }
124
fi
125
 
126
# Work around bugs in pre-3.0 UWIN ksh.
127
for as_var in ENV MAIL MAILPATH
128
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
129
done
130
PS1='$ '
131
PS2='> '
132
PS4='+ '
133
 
134
# NLS nuisances.
135
LC_ALL=C
136
export LC_ALL
137
LANGUAGE=C
138
export LANGUAGE
139
 
140
# Required to use basename.
141
if expr a : '\(a\)' >/dev/null 2>&1 &&
142
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
143
  as_expr=expr
144
else
145
  as_expr=false
146
fi
147
 
148
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
  as_basename=basename
150
else
151
  as_basename=false
152
fi
153
 
154
 
155
# Name of the executable.
156
as_me=`$as_basename -- "$0" ||
157
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
158
	 X"$0" : 'X\(//\)$' \| \
159
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
160
$as_echo X/"$0" |
161
    sed '/^.*\/\([^/][^/]*\)\/*$/{
162
	    s//\1/
163
	    q
164
	  }
165
	  /^X\/\(\/\/\)$/{
166
	    s//\1/
167
	    q
168
	  }
169
	  /^X\/\(\/\).*/{
170
	    s//\1/
171
	    q
172
	  }
173
	  s/.*/./; q'`
174
 
175
# CDPATH.
176
$as_unset CDPATH
177
 
178
 
179
if test "x$CONFIG_SHELL" = x; then
180
  if (eval ":") 2>/dev/null; then
181
  as_have_required=yes
182
else
183
  as_have_required=no
184
fi
185
 
186
  if test $as_have_required = yes &&	 (eval ":
187
(as_func_return () {
188
  (exit \$1)
189
}
190
as_func_success () {
191
  as_func_return 0
192
}
193
as_func_failure () {
194
  as_func_return 1
195
}
196
as_func_ret_success () {
197
  return 0
198
}
199
as_func_ret_failure () {
200
  return 1
201
}
202
 
203
exitcode=0
204
if as_func_success; then
205
  :
206
else
207
  exitcode=1
208
  echo as_func_success failed.
209
fi
210
 
211
if as_func_failure; then
212
  exitcode=1
213
  echo as_func_failure succeeded.
214
fi
215
 
216
if as_func_ret_success; then
217
  :
218
else
219
  exitcode=1
220
  echo as_func_ret_success failed.
221
fi
222
 
223
if as_func_ret_failure; then
224
  exitcode=1
225
  echo as_func_ret_failure succeeded.
226
fi
227
 
228
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229
  :
230
else
231
  exitcode=1
232
  echo positional parameters were not saved.
233
fi
234
 
235
test \$exitcode = 0) || { (exit 1); exit 1; }
236
 
237
(
238
  as_lineno_1=\$LINENO
239
  as_lineno_2=\$LINENO
240
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
241
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
242
") 2> /dev/null; then
243
  :
244
else
245
  as_candidate_shells=
246
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
247
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248
do
249
  IFS=$as_save_IFS
250
  test -z "$as_dir" && as_dir=.
251
  case $as_dir in
252
	 /*)
253
	   for as_base in sh bash ksh sh5; do
254
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255
	   done;;
256
       esac
257
done
258
IFS=$as_save_IFS
259
 
260
 
261
      for as_shell in $as_candidate_shells $SHELL; do
262
	 # Try only shells that exist, to save several forks.
263
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
264
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
265
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
  emulate sh
267
  NULLCMD=:
268
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269
  # is contrary to our usage.  Disable this feature.
270
  alias -g '${1+"$@"}'='"$@"'
271
  setopt NO_GLOB_SUBST
272
else
273
  case `(set -o) 2>/dev/null` in
274
  *posix*) set -o posix ;;
275
esac
276
 
277
fi
278
 
279
 
280
:
281
_ASEOF
282
}; then
283
  CONFIG_SHELL=$as_shell
284
	       as_have_required=yes
285
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
286
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287
  emulate sh
288
  NULLCMD=:
289
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
290
  # is contrary to our usage.  Disable this feature.
291
  alias -g '${1+"$@"}'='"$@"'
292
  setopt NO_GLOB_SUBST
293
else
294
  case `(set -o) 2>/dev/null` in
295
  *posix*) set -o posix ;;
296
esac
297
 
298
fi
299
 
300
 
301
:
302
(as_func_return () {
303
  (exit $1)
304
}
305
as_func_success () {
306
  as_func_return 0
307
}
308
as_func_failure () {
309
  as_func_return 1
310
}
311
as_func_ret_success () {
312
  return 0
313
}
314
as_func_ret_failure () {
315
  return 1
316
}
317
 
318
exitcode=0
319
if as_func_success; then
320
  :
321
else
322
  exitcode=1
323
  echo as_func_success failed.
324
fi
325
 
326
if as_func_failure; then
327
  exitcode=1
328
  echo as_func_failure succeeded.
329
fi
330
 
331
if as_func_ret_success; then
332
  :
333
else
334
  exitcode=1
335
  echo as_func_ret_success failed.
336
fi
337
 
338
if as_func_ret_failure; then
339
  exitcode=1
340
  echo as_func_ret_failure succeeded.
341
fi
342
 
343
if ( set x; as_func_ret_success y && test x = "$1" ); then
344
  :
345
else
346
  exitcode=1
347
  echo positional parameters were not saved.
348
fi
349
 
350
test $exitcode = 0) || { (exit 1); exit 1; }
351
 
352
(
353
  as_lineno_1=$LINENO
354
  as_lineno_2=$LINENO
355
  test "x$as_lineno_1" != "x$as_lineno_2" &&
356
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
357
 
358
_ASEOF
359
}; then
360
  break
361
fi
362
 
363
fi
364
 
365
      done
366
 
367
      if test "x$CONFIG_SHELL" != x; then
368
  for as_var in BASH_ENV ENV
369
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370
	done
371
	export CONFIG_SHELL
372
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373
fi
374
 
375
 
376
    if test $as_have_required = no; then
377
  echo This script requires a shell more modern than all the
378
      echo shells that I found on your system.  Please install a
379
      echo modern shell, or manually run the script under such a
380
      echo shell if you do have one.
381
      { (exit 1); exit 1; }
382
fi
383
 
384
 
385
fi
386
 
387
fi
388
 
389
 
390
 
391
(eval "as_func_return () {
392
  (exit \$1)
393
}
394
as_func_success () {
395
  as_func_return 0
396
}
397
as_func_failure () {
398
  as_func_return 1
399
}
400
as_func_ret_success () {
401
  return 0
402
}
403
as_func_ret_failure () {
404
  return 1
405
}
406
 
407
exitcode=0
408
if as_func_success; then
409
  :
410
else
411
  exitcode=1
412
  echo as_func_success failed.
413
fi
414
 
415
if as_func_failure; then
416
  exitcode=1
417
  echo as_func_failure succeeded.
418
fi
419
 
420
if as_func_ret_success; then
421
  :
422
else
423
  exitcode=1
424
  echo as_func_ret_success failed.
425
fi
426
 
427
if as_func_ret_failure; then
428
  exitcode=1
429
  echo as_func_ret_failure succeeded.
430
fi
431
 
432
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
433
  :
434
else
435
  exitcode=1
436
  echo positional parameters were not saved.
437
fi
438
 
439
test \$exitcode = 0") || {
440
  echo No shell found that supports shell functions.
441
  echo Please tell bug-autoconf@gnu.org about your system,
442
  echo including any error possibly output before this message.
443
  echo This can help us improve future autoconf versions.
444
  echo Configuration will now proceed without shell functions.
445
}
446
 
447
 
448
 
449
  as_lineno_1=$LINENO
450
  as_lineno_2=$LINENO
451
  test "x$as_lineno_1" != "x$as_lineno_2" &&
452
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
453
 
454
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
455
  # uniformly replaced by the line number.  The first 'sed' inserts a
456
  # line-number line after each line using $LINENO; the second 'sed'
457
  # does the real work.  The second script uses 'N' to pair each
458
  # line-number line with the line containing $LINENO, and appends
459
  # trailing '-' during substitution so that $LINENO is not a special
460
  # case at line end.
461
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
462
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
463
  # E. McMahon (1931-1989) for sed's syntax.  :-)
464
  sed -n '
465
    p
466
    /[$]LINENO/=
467
  ' <$as_myself |
468
    sed '
469
      s/[$]LINENO.*/&-/
470
      t lineno
471
      b
472
      :lineno
473
      N
474
      :loop
475
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
476
      t loop
477
      s/-\n.*//
478
    ' >$as_me.lineno &&
479
  chmod +x "$as_me.lineno" ||
480
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
481
   { (exit 1); exit 1; }; }
482
 
483
  # Don't try to exec as it changes $[0], causing all sort of problems
484
  # (the dirname of $[0] is not the place where we might find the
485
  # original and so on.  Autoconf is especially sensitive to this).
486
  . "./$as_me.lineno"
487
  # Exit status is that of the last command.
488
  exit
489
}
490
 
491
 
492
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
493
  as_dirname=dirname
494
else
495
  as_dirname=false
496
fi
497
 
498
ECHO_C= ECHO_N= ECHO_T=
499
case `echo -n x` in
500
-n*)
501
  case `echo 'x\c'` in
502
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
503
  *)   ECHO_C='\c';;
504
  esac;;
505
*)
506
  ECHO_N='-n';;
507
esac
508
if expr a : '\(a\)' >/dev/null 2>&1 &&
509
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
510
  as_expr=expr
511
else
512
  as_expr=false
513
fi
514
 
515
rm -f conf$$ conf$$.exe conf$$.file
516
if test -d conf$$.dir; then
517
  rm -f conf$$.dir/conf$$.file
518
else
519
  rm -f conf$$.dir
520
  mkdir conf$$.dir 2>/dev/null
521
fi
522
if (echo >conf$$.file) 2>/dev/null; then
523
  if ln -s conf$$.file conf$$ 2>/dev/null; then
524
    as_ln_s='ln -s'
525
    # ... but there are two gotchas:
526
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528
    # In both cases, we have to default to `cp -p'.
529
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530
      as_ln_s='cp -p'
531
  elif ln conf$$.file conf$$ 2>/dev/null; then
532
    as_ln_s=ln
533
  else
534
    as_ln_s='cp -p'
535
  fi
536
else
537
  as_ln_s='cp -p'
538
fi
539
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540
rmdir conf$$.dir 2>/dev/null
541
 
542
if mkdir -p . 2>/dev/null; then
543
  as_mkdir_p=:
544
else
545
  test -d ./-p && rmdir ./-p
546
  as_mkdir_p=false
547
fi
548
 
549
if test -x / >/dev/null 2>&1; then
550
  as_test_x='test -x'
551
else
552
  if ls -dL / >/dev/null 2>&1; then
553
    as_ls_L_option=L
554
  else
555
    as_ls_L_option=
556
  fi
557
  as_test_x='
558
    eval sh -c '\''
559
      if test -d "$1"; then
560
	test -d "$1/.";
561
      else
562
	case $1 in
563
	-*)set "./$1";;
564
	esac;
565
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
566
	???[sx]*):;;*)false;;esac;fi
567
    '\'' sh
568
  '
569
fi
570
as_executable_p=$as_test_x
571
 
572
# Sed expression to map a string onto a valid CPP name.
573
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
574
 
575
# Sed expression to map a string onto a valid variable name.
576
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577
 
578
 
579
 
580
 
581
# Check that we are running under the correct shell.
582
SHELL=${CONFIG_SHELL-/bin/sh}
583
 
584
case X$lt_ECHO in
585
X*--fallback-echo)
586
  # Remove one level of quotation (which was required for Make).
587
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588
  ;;
589
esac
590
 
591
ECHO=${lt_ECHO-echo}
592
if test "X$1" = X--no-reexec; then
593
  # Discard the --no-reexec flag, and continue.
594
  shift
595
elif test "X$1" = X--fallback-echo; then
596
  # Avoid inline document here, it may be left over
597
  :
598
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
599
  # Yippee, $ECHO works!
600
  :
601
else
602
  # Restart under the correct shell.
603
  exec $SHELL "$0" --no-reexec ${1+"$@"}
604
fi
605
 
606
if test "X$1" = X--fallback-echo; then
607
  # used as fallback echo
608
  shift
609
  cat <<_LT_EOF
610
$*
611
_LT_EOF
612
  exit 0
613
fi
614
 
615
# The HP-UX ksh and POSIX shell print the target directory to stdout
616
# if CDPATH is set.
617
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
618
 
619
if test -z "$lt_ECHO"; then
620
  if test "X${echo_test_string+set}" != Xset; then
621
    # find a string as large as possible, as long as the shell can cope with it
622
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
623
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
624
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
625
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626
      then
627
        break
628
      fi
629
    done
630
  fi
631
 
632
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
633
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
634
     test "X$echo_testing_string" = "X$echo_test_string"; then
635
    :
636
  else
637
    # The Solaris, AIX, and Digital Unix default echo programs unquote
638
    # backslashes.  This makes it impossible to quote backslashes using
639
    #   echo "$something" | sed 's/\\/\\\\/g'
640
    #
641
    # So, first we look for a working echo in the user's PATH.
642
 
643
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
644
    for dir in $PATH /usr/ucb; do
645
      IFS="$lt_save_ifs"
646
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
647
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
648
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
650
        ECHO="$dir/echo"
651
        break
652
      fi
653
    done
654
    IFS="$lt_save_ifs"
655
 
656
    if test "X$ECHO" = Xecho; then
657
      # We didn't find a better echo, so look for alternatives.
658
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
659
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
660
         test "X$echo_testing_string" = "X$echo_test_string"; then
661
        # This shell has a builtin print -r that does the trick.
662
        ECHO='print -r'
663
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
664
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
665
        # If we have ksh, try running configure again with it.
666
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
667
        export ORIGINAL_CONFIG_SHELL
668
        CONFIG_SHELL=/bin/ksh
669
        export CONFIG_SHELL
670
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671
      else
672
        # Try using printf.
673
        ECHO='printf %s\n'
674
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
675
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
676
	   test "X$echo_testing_string" = "X$echo_test_string"; then
677
	  # Cool, printf works
678
	  :
679
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
680
	     test "X$echo_testing_string" = 'X\t' &&
681
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
682
	     test "X$echo_testing_string" = "X$echo_test_string"; then
683
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
684
	  export CONFIG_SHELL
685
	  SHELL="$CONFIG_SHELL"
686
	  export SHELL
687
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
688
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
689
	     test "X$echo_testing_string" = 'X\t' &&
690
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
691
	     test "X$echo_testing_string" = "X$echo_test_string"; then
692
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
693
        else
694
	  # maybe with a smaller string...
695
	  prev=:
696
 
697
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
698
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699
	    then
700
	      break
701
	    fi
702
	    prev="$cmd"
703
	  done
704
 
705
	  if test "$prev" != 'sed 50q "$0"'; then
706
	    echo_test_string=`eval $prev`
707
	    export echo_test_string
708
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
709
	  else
710
	    # Oops.  We lost completely, so just stick with echo.
711
	    ECHO=echo
712
	  fi
713
        fi
714
      fi
715
    fi
716
  fi
717
fi
718
 
719
# Copy echo and quote the copy suitably for passing to libtool from
720
# the Makefile, instead of quoting the original, which is used later.
721
lt_ECHO=$ECHO
722
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
723
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724
fi
725
 
726
 
727
 
728
 
729
exec 7<&0 </dev/null 6>&1
730
 
731
# Name of the host.
732
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733
# so uname gets run too.
734
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
 
736
#
737
# Initializations.
738
#
739
ac_default_prefix=/usr/local
740
ac_clean_files=
741
ac_config_libobj_dir=.
742
LIBOBJS=
743
cross_compiling=no
744
subdirs=
745
MFLAGS=
746
MAKEFLAGS=
747
SHELL=${CONFIG_SHELL-/bin/sh}
748
 
749
# Identity of this package.
750
PACKAGE_NAME='libtar'
751
PACKAGE_TARNAME='libtar'
752
PACKAGE_VERSION='1.2.11'
753
PACKAGE_STRING='libtar 1.2.11'
754
PACKAGE_BUGREPORT=''
755
 
756
ac_unique_file="lib/libtar.h"
757
# Factoring default headers for most tests.
758
ac_includes_default="\
759
#include <stdio.h>
760
#ifdef HAVE_SYS_TYPES_H
761
# include <sys/types.h>
762
#endif
763
#ifdef HAVE_SYS_STAT_H
764
# include <sys/stat.h>
765
#endif
766
#ifdef STDC_HEADERS
767
# include <stdlib.h>
768
# include <stddef.h>
769
#else
770
# ifdef HAVE_STDLIB_H
771
#  include <stdlib.h>
772
# endif
773
#endif
774
#ifdef HAVE_STRING_H
775
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776
#  include <memory.h>
777
# endif
778
# include <string.h>
779
#endif
780
#ifdef HAVE_STRINGS_H
781
# include <strings.h>
782
#endif
783
#ifdef HAVE_INTTYPES_H
784
# include <inttypes.h>
785
#endif
786
#ifdef HAVE_STDINT_H
787
# include <stdint.h>
788
#endif
789
#ifdef HAVE_UNISTD_H
790
# include <unistd.h>
791
#endif"
792
 
793
ac_subst_vars='LTLIBOBJS
794
SET_MAKE
795
INSTALL_DATA
796
INSTALL_SCRIPT
797
INSTALL_PROGRAM
798
OTOOL64
799
OTOOL
800
LIPO
801
NMEDIT
802
DSYMUTIL
803
lt_ECHO
804
RANLIB
805
STRIP
806
AR
807
OBJDUMP
808
LN_S
809
NM
810
ac_ct_DUMPBIN
811
DUMPBIN
812
LD
813
FGREP
814
SED
815
host_os
816
host_vendor
817
host_cpu
818
host
819
build_os
820
build_vendor
821
build_cpu
822
build
823
LIBTOOL
824
EGREP
825
GREP
826
CPP
827
MKDIR
828
LISTHASH_DIR
829
LISTHASH_PREFIX
830
LIBOBJS
831
OBJEXT
832
EXEEXT
833
ac_ct_CC
834
CPPFLAGS
835
LDFLAGS
836
CFLAGS
837
CC
838
ENCAP_INSTALL_TARGET
839
ENCAP_INSTALL_RULES
840
ENCAP_DEFS
841
MKENCAP
842
EPKG
843
target_alias
844
host_alias
845
build_alias
846
LIBS
847
ECHO_T
848
ECHO_N
849
ECHO_C
850
DEFS
851
mandir
852
localedir
853
libdir
854
psdir
855
pdfdir
856
dvidir
857
htmldir
858
infodir
859
docdir
860
oldincludedir
861
includedir
862
localstatedir
863
sharedstatedir
864
sysconfdir
865
datadir
866
datarootdir
867
libexecdir
868
sbindir
869
bindir
870
program_transform_name
871
prefix
872
exec_prefix
873
PACKAGE_BUGREPORT
874
PACKAGE_STRING
875
PACKAGE_VERSION
876
PACKAGE_TARNAME
877
PACKAGE_NAME
878
PATH_SEPARATOR
879
SHELL'
880
ac_subst_files=''
881
ac_user_opts='
882
enable_option_checking
883
enable_encap
884
enable_epkg_install
885
enable_shared
886
enable_static
887
with_pic
888
enable_fast_install
889
with_gnu_ld
890
enable_libtool_lock
891
with_zlib
892
'
893
      ac_precious_vars='build_alias
894
host_alias
895
target_alias
896
CC
897
CFLAGS
898
LDFLAGS
899
LIBS
900
CPPFLAGS
901
CPP'
902
 
903
 
904
# Initialize some variables set by options.
905
ac_init_help=
906
ac_init_version=false
907
ac_unrecognized_opts=
908
ac_unrecognized_sep=
909
# The variables have the same names as the options, with
910
# dashes changed to underlines.
911
cache_file=/dev/null
912
exec_prefix=NONE
913
no_create=
914
no_recursion=
915
prefix=NONE
916
program_prefix=NONE
917
program_suffix=NONE
918
program_transform_name=s,x,x,
919
silent=
920
site=
921
srcdir=
922
verbose=
923
x_includes=NONE
924
x_libraries=NONE
925
 
926
# Installation directory options.
927
# These are left unexpanded so users can "make install exec_prefix=/foo"
928
# and all the variables that are supposed to be based on exec_prefix
929
# by default will actually change.
930
# Use braces instead of parens because sh, perl, etc. also accept them.
931
# (The list follows the same order as the GNU Coding Standards.)
932
bindir='${exec_prefix}/bin'
933
sbindir='${exec_prefix}/sbin'
934
libexecdir='${exec_prefix}/libexec'
935
datarootdir='${prefix}/share'
936
datadir='${datarootdir}'
937
sysconfdir='${prefix}/etc'
938
sharedstatedir='${prefix}/com'
939
localstatedir='${prefix}/var'
940
includedir='${prefix}/include'
941
oldincludedir='/usr/include'
942
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943
infodir='${datarootdir}/info'
944
htmldir='${docdir}'
945
dvidir='${docdir}'
946
pdfdir='${docdir}'
947
psdir='${docdir}'
948
libdir='${exec_prefix}/lib'
949
localedir='${datarootdir}/locale'
950
mandir='${datarootdir}/man'
951
 
952
ac_prev=
953
ac_dashdash=
954
for ac_option
955
do
956
  # If the previous option needs an argument, assign it.
957
  if test -n "$ac_prev"; then
958
    eval $ac_prev=\$ac_option
959
    ac_prev=
960
    continue
961
  fi
962
 
963
  case $ac_option in
964
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965
  *)	ac_optarg=yes ;;
966
  esac
967
 
968
  # Accept the important Cygnus configure options, so we can diagnose typos.
969
 
970
  case $ac_dashdash$ac_option in
971
  --)
972
    ac_dashdash=yes ;;
973
 
974
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
975
    ac_prev=bindir ;;
976
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977
    bindir=$ac_optarg ;;
978
 
979
  -build | --build | --buil | --bui | --bu)
980
    ac_prev=build_alias ;;
981
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982
    build_alias=$ac_optarg ;;
983
 
984
  -cache-file | --cache-file | --cache-fil | --cache-fi \
985
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986
    ac_prev=cache_file ;;
987
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989
    cache_file=$ac_optarg ;;
990
 
991
  --config-cache | -C)
992
    cache_file=config.cache ;;
993
 
994
  -datadir | --datadir | --datadi | --datad)
995
    ac_prev=datadir ;;
996
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
997
    datadir=$ac_optarg ;;
998
 
999
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000
  | --dataroo | --dataro | --datar)
1001
    ac_prev=datarootdir ;;
1002
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004
    datarootdir=$ac_optarg ;;
1005
 
1006
  -disable-* | --disable-*)
1007
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008
    # Reject names that are not valid shell variable names.
1009
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1011
   { (exit 1); exit 1; }; }
1012
    ac_useropt_orig=$ac_useropt
1013
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014
    case $ac_user_opts in
1015
      *"
1016
"enable_$ac_useropt"
1017
"*) ;;
1018
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019
	 ac_unrecognized_sep=', ';;
1020
    esac
1021
    eval enable_$ac_useropt=no ;;
1022
 
1023
  -docdir | --docdir | --docdi | --doc | --do)
1024
    ac_prev=docdir ;;
1025
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026
    docdir=$ac_optarg ;;
1027
 
1028
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029
    ac_prev=dvidir ;;
1030
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031
    dvidir=$ac_optarg ;;
1032
 
1033
  -enable-* | --enable-*)
1034
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035
    # Reject names that are not valid shell variable names.
1036
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1038
   { (exit 1); exit 1; }; }
1039
    ac_useropt_orig=$ac_useropt
1040
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041
    case $ac_user_opts in
1042
      *"
1043
"enable_$ac_useropt"
1044
"*) ;;
1045
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046
	 ac_unrecognized_sep=', ';;
1047
    esac
1048
    eval enable_$ac_useropt=\$ac_optarg ;;
1049
 
1050
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052
  | --exec | --exe | --ex)
1053
    ac_prev=exec_prefix ;;
1054
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056
  | --exec=* | --exe=* | --ex=*)
1057
    exec_prefix=$ac_optarg ;;
1058
 
1059
  -gas | --gas | --ga | --g)
1060
    # Obsolete; use --with-gas.
1061
    with_gas=yes ;;
1062
 
1063
  -help | --help | --hel | --he | -h)
1064
    ac_init_help=long ;;
1065
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066
    ac_init_help=recursive ;;
1067
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068
    ac_init_help=short ;;
1069
 
1070
  -host | --host | --hos | --ho)
1071
    ac_prev=host_alias ;;
1072
  -host=* | --host=* | --hos=* | --ho=*)
1073
    host_alias=$ac_optarg ;;
1074
 
1075
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076
    ac_prev=htmldir ;;
1077
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078
  | --ht=*)
1079
    htmldir=$ac_optarg ;;
1080
 
1081
  -includedir | --includedir | --includedi | --included | --include \
1082
  | --includ | --inclu | --incl | --inc)
1083
    ac_prev=includedir ;;
1084
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086
    includedir=$ac_optarg ;;
1087
 
1088
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089
    ac_prev=infodir ;;
1090
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091
    infodir=$ac_optarg ;;
1092
 
1093
  -libdir | --libdir | --libdi | --libd)
1094
    ac_prev=libdir ;;
1095
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096
    libdir=$ac_optarg ;;
1097
 
1098
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099
  | --libexe | --libex | --libe)
1100
    ac_prev=libexecdir ;;
1101
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102
  | --libexe=* | --libex=* | --libe=*)
1103
    libexecdir=$ac_optarg ;;
1104
 
1105
  -localedir | --localedir | --localedi | --localed | --locale)
1106
    ac_prev=localedir ;;
1107
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108
    localedir=$ac_optarg ;;
1109
 
1110
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111
  | --localstate | --localstat | --localsta | --localst | --locals)
1112
    ac_prev=localstatedir ;;
1113
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115
    localstatedir=$ac_optarg ;;
1116
 
1117
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118
    ac_prev=mandir ;;
1119
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120
    mandir=$ac_optarg ;;
1121
 
1122
  -nfp | --nfp | --nf)
1123
    # Obsolete; use --without-fp.
1124
    with_fp=no ;;
1125
 
1126
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127
  | --no-cr | --no-c | -n)
1128
    no_create=yes ;;
1129
 
1130
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132
    no_recursion=yes ;;
1133
 
1134
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136
  | --oldin | --oldi | --old | --ol | --o)
1137
    ac_prev=oldincludedir ;;
1138
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141
    oldincludedir=$ac_optarg ;;
1142
 
1143
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144
    ac_prev=prefix ;;
1145
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146
    prefix=$ac_optarg ;;
1147
 
1148
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149
  | --program-pre | --program-pr | --program-p)
1150
    ac_prev=program_prefix ;;
1151
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153
    program_prefix=$ac_optarg ;;
1154
 
1155
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156
  | --program-suf | --program-su | --program-s)
1157
    ac_prev=program_suffix ;;
1158
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160
    program_suffix=$ac_optarg ;;
1161
 
1162
  -program-transform-name | --program-transform-name \
1163
  | --program-transform-nam | --program-transform-na \
1164
  | --program-transform-n | --program-transform- \
1165
  | --program-transform | --program-transfor \
1166
  | --program-transfo | --program-transf \
1167
  | --program-trans | --program-tran \
1168
  | --progr-tra | --program-tr | --program-t)
1169
    ac_prev=program_transform_name ;;
1170
  -program-transform-name=* | --program-transform-name=* \
1171
  | --program-transform-nam=* | --program-transform-na=* \
1172
  | --program-transform-n=* | --program-transform-=* \
1173
  | --program-transform=* | --program-transfor=* \
1174
  | --program-transfo=* | --program-transf=* \
1175
  | --program-trans=* | --program-tran=* \
1176
  | --progr-tra=* | --program-tr=* | --program-t=*)
1177
    program_transform_name=$ac_optarg ;;
1178
 
1179
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180
    ac_prev=pdfdir ;;
1181
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182
    pdfdir=$ac_optarg ;;
1183
 
1184
  -psdir | --psdir | --psdi | --psd | --ps)
1185
    ac_prev=psdir ;;
1186
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187
    psdir=$ac_optarg ;;
1188
 
1189
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190
  | -silent | --silent | --silen | --sile | --sil)
1191
    silent=yes ;;
1192
 
1193
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194
    ac_prev=sbindir ;;
1195
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196
  | --sbi=* | --sb=*)
1197
    sbindir=$ac_optarg ;;
1198
 
1199
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201
  | --sharedst | --shareds | --shared | --share | --shar \
1202
  | --sha | --sh)
1203
    ac_prev=sharedstatedir ;;
1204
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207
  | --sha=* | --sh=*)
1208
    sharedstatedir=$ac_optarg ;;
1209
 
1210
  -site | --site | --sit)
1211
    ac_prev=site ;;
1212
  -site=* | --site=* | --sit=*)
1213
    site=$ac_optarg ;;
1214
 
1215
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216
    ac_prev=srcdir ;;
1217
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218
    srcdir=$ac_optarg ;;
1219
 
1220
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221
  | --syscon | --sysco | --sysc | --sys | --sy)
1222
    ac_prev=sysconfdir ;;
1223
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225
    sysconfdir=$ac_optarg ;;
1226
 
1227
  -target | --target | --targe | --targ | --tar | --ta | --t)
1228
    ac_prev=target_alias ;;
1229
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230
    target_alias=$ac_optarg ;;
1231
 
1232
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233
    verbose=yes ;;
1234
 
1235
  -version | --version | --versio | --versi | --vers | -V)
1236
    ac_init_version=: ;;
1237
 
1238
  -with-* | --with-*)
1239
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240
    # Reject names that are not valid shell variable names.
1241
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1243
   { (exit 1); exit 1; }; }
1244
    ac_useropt_orig=$ac_useropt
1245
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246
    case $ac_user_opts in
1247
      *"
1248
"with_$ac_useropt"
1249
"*) ;;
1250
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251
	 ac_unrecognized_sep=', ';;
1252
    esac
1253
    eval with_$ac_useropt=\$ac_optarg ;;
1254
 
1255
  -without-* | --without-*)
1256
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257
    # Reject names that are not valid shell variable names.
1258
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1260
   { (exit 1); exit 1; }; }
1261
    ac_useropt_orig=$ac_useropt
1262
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263
    case $ac_user_opts in
1264
      *"
1265
"with_$ac_useropt"
1266
"*) ;;
1267
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268
	 ac_unrecognized_sep=', ';;
1269
    esac
1270
    eval with_$ac_useropt=no ;;
1271
 
1272
  --x)
1273
    # Obsolete; use --with-x.
1274
    with_x=yes ;;
1275
 
1276
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277
  | --x-incl | --x-inc | --x-in | --x-i)
1278
    ac_prev=x_includes ;;
1279
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281
    x_includes=$ac_optarg ;;
1282
 
1283
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285
    ac_prev=x_libraries ;;
1286
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288
    x_libraries=$ac_optarg ;;
1289
 
1290
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1291
Try \`$0 --help' for more information." >&2
1292
   { (exit 1); exit 1; }; }
1293
    ;;
1294
 
1295
  *=*)
1296
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297
    # Reject names that are not valid shell variable names.
1298
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1299
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1300
   { (exit 1); exit 1; }; }
1301
    eval $ac_envvar=\$ac_optarg
1302
    export $ac_envvar ;;
1303
 
1304
  *)
1305
    # FIXME: should be removed in autoconf 3.0.
1306
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310
    ;;
1311
 
1312
  esac
1313
done
1314
 
1315
if test -n "$ac_prev"; then
1316
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1318
   { (exit 1); exit 1; }; }
1319
fi
1320
 
1321
if test -n "$ac_unrecognized_opts"; then
1322
  case $enable_option_checking in
1323
    no) ;;
1324
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1325
   { (exit 1); exit 1; }; } ;;
1326
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327
  esac
1328
fi
1329
 
1330
# Check all directory arguments for consistency.
1331
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332
		datadir sysconfdir sharedstatedir localstatedir includedir \
1333
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334
		libdir localedir mandir
1335
do
1336
  eval ac_val=\$$ac_var
1337
  # Remove trailing slashes.
1338
  case $ac_val in
1339
    */ )
1340
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341
      eval $ac_var=\$ac_val;;
1342
  esac
1343
  # Be sure to have absolute directory names.
1344
  case $ac_val in
1345
    [\\/$]* | ?:[\\/]* )  continue;;
1346
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347
  esac
1348
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1349
   { (exit 1); exit 1; }; }
1350
done
1351
 
1352
# There might be people who depend on the old broken behavior: `$host'
1353
# used to hold the argument of --host etc.
1354
# FIXME: To remove some day.
1355
build=$build_alias
1356
host=$host_alias
1357
target=$target_alias
1358
 
1359
# FIXME: To remove some day.
1360
if test "x$host_alias" != x; then
1361
  if test "x$build_alias" = x; then
1362
    cross_compiling=maybe
1363
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1364
    If a cross compiler is detected then cross compile mode will be used." >&2
1365
  elif test "x$build_alias" != "x$host_alias"; then
1366
    cross_compiling=yes
1367
  fi
1368
fi
1369
 
1370
ac_tool_prefix=
1371
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
 
1373
test "$silent" = yes && exec 6>/dev/null
1374
 
1375
 
1376
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377
ac_ls_di=`ls -di .` &&
1378
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1380
   { (exit 1); exit 1; }; }
1381
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1383
   { (exit 1); exit 1; }; }
1384
 
1385
 
1386
# Find the source files, if location was not specified.
1387
if test -z "$srcdir"; then
1388
  ac_srcdir_defaulted=yes
1389
  # Try the directory containing this script, then the parent directory.
1390
  ac_confdir=`$as_dirname -- "$as_myself" ||
1391
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1393
	 X"$as_myself" : 'X\(//\)$' \| \
1394
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395
$as_echo X"$as_myself" |
1396
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397
	    s//\1/
1398
	    q
1399
	  }
1400
	  /^X\(\/\/\)[^/].*/{
1401
	    s//\1/
1402
	    q
1403
	  }
1404
	  /^X\(\/\/\)$/{
1405
	    s//\1/
1406
	    q
1407
	  }
1408
	  /^X\(\/\).*/{
1409
	    s//\1/
1410
	    q
1411
	  }
1412
	  s/.*/./; q'`
1413
  srcdir=$ac_confdir
1414
  if test ! -r "$srcdir/$ac_unique_file"; then
1415
    srcdir=..
1416
  fi
1417
else
1418
  ac_srcdir_defaulted=no
1419
fi
1420
if test ! -r "$srcdir/$ac_unique_file"; then
1421
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1423
   { (exit 1); exit 1; }; }
1424
fi
1425
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426
ac_abs_confdir=`(
1427
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1428
   { (exit 1); exit 1; }; }
1429
	pwd)`
1430
# When building in place, set srcdir=.
1431
if test "$ac_abs_confdir" = "$ac_pwd"; then
1432
  srcdir=.
1433
fi
1434
# Remove unnecessary trailing slashes from srcdir.
1435
# Double slashes in file names in object file debugging info
1436
# mess up M-x gdb in Emacs.
1437
case $srcdir in
1438
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439
esac
1440
for ac_var in $ac_precious_vars; do
1441
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442
  eval ac_env_${ac_var}_value=\$${ac_var}
1443
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445
done
1446
 
1447
#
1448
# Report the --help message.
1449
#
1450
if test "$ac_init_help" = "long"; then
1451
  # Omit some internal or obsolete options to make the list less imposing.
1452
  # This message is too long to be a string in the A/UX 3.1 sh.
1453
  cat <<_ACEOF
1454
\`configure' configures libtar 1.2.11 to adapt to many kinds of systems.
1455
 
1456
Usage: $0 [OPTION]... [VAR=VALUE]...
1457
 
1458
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459
VAR=VALUE.  See below for descriptions of some of the useful variables.
1460
 
1461
Defaults for the options are specified in brackets.
1462
 
1463
Configuration:
1464
  -h, --help              display this help and exit
1465
      --help=short        display options specific to this package
1466
      --help=recursive    display the short help of all the included packages
1467
  -V, --version           display version information and exit
1468
  -q, --quiet, --silent   do not print \`checking...' messages
1469
      --cache-file=FILE   cache test results in FILE [disabled]
1470
  -C, --config-cache      alias for \`--cache-file=config.cache'
1471
  -n, --no-create         do not create output files
1472
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1473
 
1474
Installation directories:
1475
  --prefix=PREFIX         install architecture-independent files in PREFIX
1476
                          [$ac_default_prefix]
1477
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1478
                          [PREFIX]
1479
 
1480
By default, \`make install' will install all the files in
1481
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1482
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483
for instance \`--prefix=\$HOME'.
1484
 
1485
For better control, use the options below.
1486
 
1487
Fine tuning of the installation directories:
1488
  --bindir=DIR            user executables [EPREFIX/bin]
1489
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1490
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1491
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1492
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1493
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1494
  --libdir=DIR            object code libraries [EPREFIX/lib]
1495
  --includedir=DIR        C header files [PREFIX/include]
1496
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1497
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1498
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1499
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1500
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1501
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1502
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libtar]
1503
  --htmldir=DIR           html documentation [DOCDIR]
1504
  --dvidir=DIR            dvi documentation [DOCDIR]
1505
  --pdfdir=DIR            pdf documentation [DOCDIR]
1506
  --psdir=DIR             ps documentation [DOCDIR]
1507
_ACEOF
1508
 
1509
  cat <<\_ACEOF
1510
 
1511
System types:
1512
  --build=BUILD     configure for building on BUILD [guessed]
1513
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1514
_ACEOF
1515
fi
1516
 
1517
if test -n "$ac_init_help"; then
1518
  case $ac_init_help in
1519
     short | recursive ) echo "Configuration of libtar 1.2.11:";;
1520
   esac
1521
  cat <<\_ACEOF
1522
 
1523
Optional Features:
1524
  --disable-option-checking  ignore unrecognized --enable/--with options
1525
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1526
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1527
  --disable-encap         Do not configure as an Encap package
1528
  --disable-epkg-install  Do not run epkg during make install
1529
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1530
  --enable-static[=PKGS]  build static libraries [default=yes]
1531
  --enable-fast-install[=PKGS]
1532
                          optimize for fast installation [default=yes]
1533
  --disable-libtool-lock  avoid locking (might break parallel builds)
1534
 
1535
Optional Packages:
1536
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1537
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1538
  --with-pic              try to use only PIC/non-PIC objects [default=use
1539
                          both]
1540
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1541
  --without-zlib          Use external gzip binary instead of zlib
1542
 
1543
Some influential environment variables:
1544
  CC          C compiler command
1545
  CFLAGS      C compiler flags
1546
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1547
              nonstandard directory <lib dir>
1548
  LIBS        libraries to pass to the linker, e.g. -l<library>
1549
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550
              you have headers in a nonstandard directory <include dir>
1551
  CPP         C preprocessor
1552
 
1553
Use these variables to override the choices made by `configure' or to help
1554
it to find libraries and programs with nonstandard names/locations.
1555
 
1556
_ACEOF
1557
ac_status=$?
1558
fi
1559
 
1560
if test "$ac_init_help" = "recursive"; then
1561
  # If there are subdirs, report their specific --help.
1562
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563
    test -d "$ac_dir" ||
1564
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565
      continue
1566
    ac_builddir=.
1567
 
1568
case "$ac_dir" in
1569
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570
*)
1571
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572
  # A ".." for each directory in $ac_dir_suffix.
1573
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574
  case $ac_top_builddir_sub in
1575
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577
  esac ;;
1578
esac
1579
ac_abs_top_builddir=$ac_pwd
1580
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581
# for backward compatibility:
1582
ac_top_builddir=$ac_top_build_prefix
1583
 
1584
case $srcdir in
1585
  .)  # We are building in place.
1586
    ac_srcdir=.
1587
    ac_top_srcdir=$ac_top_builddir_sub
1588
    ac_abs_top_srcdir=$ac_pwd ;;
1589
  [\\/]* | ?:[\\/]* )  # Absolute name.
1590
    ac_srcdir=$srcdir$ac_dir_suffix;
1591
    ac_top_srcdir=$srcdir
1592
    ac_abs_top_srcdir=$srcdir ;;
1593
  *) # Relative name.
1594
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1596
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597
esac
1598
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
 
1600
    cd "$ac_dir" || { ac_status=$?; continue; }
1601
    # Check for guested configure.
1602
    if test -f "$ac_srcdir/configure.gnu"; then
1603
      echo &&
1604
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605
    elif test -f "$ac_srcdir/configure"; then
1606
      echo &&
1607
      $SHELL "$ac_srcdir/configure" --help=recursive
1608
    else
1609
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610
    fi || ac_status=$?
1611
    cd "$ac_pwd" || { ac_status=$?; break; }
1612
  done
1613
fi
1614
 
1615
test -n "$ac_init_help" && exit $ac_status
1616
if $ac_init_version; then
1617
  cat <<\_ACEOF
1618
libtar configure 1.2.11
1619
generated by GNU Autoconf 2.63
1620
 
1621
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1622
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1623
This configure script is free software; the Free Software Foundation
1624
gives unlimited permission to copy, distribute and modify it.
1625
 
1626
 
1627
Copyright (c) 1998-2003 University of Illinois Board of Trustees
1628
Copyright (c) 1998-2003 Mark D. Roth
1629
All rights reserved.
1630
 
1631
_ACEOF
1632
  exit
1633
fi
1634
cat >config.log <<_ACEOF
1635
This file contains any messages produced by compilers while
1636
running configure, to aid debugging if configure makes a mistake.
1637
 
1638
It was created by libtar $as_me 1.2.11, which was
1639
generated by GNU Autoconf 2.63.  Invocation command line was
1640
 
1641
  $ $0 $@
1642
 
1643
_ACEOF
1644
exec 5>>config.log
1645
{
1646
cat <<_ASUNAME
1647
## --------- ##
1648
## Platform. ##
1649
## --------- ##
1650
 
1651
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
 
1657
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1659
 
1660
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1661
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1662
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1664
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1665
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1666
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1667
 
1668
_ASUNAME
1669
 
1670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671
for as_dir in $PATH
1672
do
1673
  IFS=$as_save_IFS
1674
  test -z "$as_dir" && as_dir=.
1675
  $as_echo "PATH: $as_dir"
1676
done
1677
IFS=$as_save_IFS
1678
 
1679
} >&5
1680
 
1681
cat >&5 <<_ACEOF
1682
 
1683
 
1684
## ----------- ##
1685
## Core tests. ##
1686
## ----------- ##
1687
 
1688
_ACEOF
1689
 
1690
 
1691
# Keep a trace of the command line.
1692
# Strip out --no-create and --no-recursion so they do not pile up.
1693
# Strip out --silent because we don't want to record it for future runs.
1694
# Also quote any args containing shell meta-characters.
1695
# Make two passes to allow for proper duplicate-argument suppression.
1696
ac_configure_args=
1697
ac_configure_args0=
1698
ac_configure_args1=
1699
ac_must_keep_next=false
1700
for ac_pass in 1 2
1701
do
1702
  for ac_arg
1703
  do
1704
    case $ac_arg in
1705
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707
    | -silent | --silent | --silen | --sile | --sil)
1708
      continue ;;
1709
    *\'*)
1710
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711
    esac
1712
    case $ac_pass in
1713
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714
    2)
1715
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716
      if test $ac_must_keep_next = true; then
1717
	ac_must_keep_next=false # Got value, back to normal.
1718
      else
1719
	case $ac_arg in
1720
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1721
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723
	  | -with-* | --with-* | -without-* | --without-* | --x)
1724
	    case "$ac_configure_args0 " in
1725
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726
	    esac
1727
	    ;;
1728
	  -* ) ac_must_keep_next=true ;;
1729
	esac
1730
      fi
1731
      ac_configure_args="$ac_configure_args '$ac_arg'"
1732
      ;;
1733
    esac
1734
  done
1735
done
1736
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
 
1739
# When interrupted or exit'd, cleanup temporary files, and complete
1740
# config.log.  We remove comments because anyway the quotes in there
1741
# would cause problems or look ugly.
1742
# WARNING: Use '\'' to represent an apostrophe within the trap.
1743
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744
trap 'exit_status=$?
1745
  # Save into config.log some information that might help in debugging.
1746
  {
1747
    echo
1748
 
1749
    cat <<\_ASBOX
1750
## ---------------- ##
1751
## Cache variables. ##
1752
## ---------------- ##
1753
_ASBOX
1754
    echo
1755
    # The following way of writing the cache mishandles newlines in values,
1756
(
1757
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758
    eval ac_val=\$$ac_var
1759
    case $ac_val in #(
1760
    *${as_nl}*)
1761
      case $ac_var in #(
1762
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1763
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1764
      esac
1765
      case $ac_var in #(
1766
      _ | IFS | as_nl) ;; #(
1767
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1768
      *) $as_unset $ac_var ;;
1769
      esac ;;
1770
    esac
1771
  done
1772
  (set) 2>&1 |
1773
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1774
    *${as_nl}ac_space=\ *)
1775
      sed -n \
1776
	"s/'\''/'\''\\\\'\'''\''/g;
1777
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1778
      ;; #(
1779
    *)
1780
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1781
      ;;
1782
    esac |
1783
    sort
1784
)
1785
    echo
1786
 
1787
    cat <<\_ASBOX
1788
## ----------------- ##
1789
## Output variables. ##
1790
## ----------------- ##
1791
_ASBOX
1792
    echo
1793
    for ac_var in $ac_subst_vars
1794
    do
1795
      eval ac_val=\$$ac_var
1796
      case $ac_val in
1797
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798
      esac
1799
      $as_echo "$ac_var='\''$ac_val'\''"
1800
    done | sort
1801
    echo
1802
 
1803
    if test -n "$ac_subst_files"; then
1804
      cat <<\_ASBOX
1805
## ------------------- ##
1806
## File substitutions. ##
1807
## ------------------- ##
1808
_ASBOX
1809
      echo
1810
      for ac_var in $ac_subst_files
1811
      do
1812
	eval ac_val=\$$ac_var
1813
	case $ac_val in
1814
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815
	esac
1816
	$as_echo "$ac_var='\''$ac_val'\''"
1817
      done | sort
1818
      echo
1819
    fi
1820
 
1821
    if test -s confdefs.h; then
1822
      cat <<\_ASBOX
1823
## ----------- ##
1824
## confdefs.h. ##
1825
## ----------- ##
1826
_ASBOX
1827
      echo
1828
      cat confdefs.h
1829
      echo
1830
    fi
1831
    test "$ac_signal" != 0 &&
1832
      $as_echo "$as_me: caught signal $ac_signal"
1833
    $as_echo "$as_me: exit $exit_status"
1834
  } >&5
1835
  rm -f core *.core core.conftest.* &&
1836
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1837
    exit $exit_status
1838
' 0
1839
for ac_signal in 1 2 13 15; do
1840
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1841
done
1842
ac_signal=0
1843
 
1844
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1845
rm -f -r conftest* confdefs.h
1846
 
1847
# Predefined preprocessor variables.
1848
 
1849
cat >>confdefs.h <<_ACEOF
1850
#define PACKAGE_NAME "$PACKAGE_NAME"
1851
_ACEOF
1852
 
1853
 
1854
cat >>confdefs.h <<_ACEOF
1855
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1856
_ACEOF
1857
 
1858
 
1859
cat >>confdefs.h <<_ACEOF
1860
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1861
_ACEOF
1862
 
1863
 
1864
cat >>confdefs.h <<_ACEOF
1865
#define PACKAGE_STRING "$PACKAGE_STRING"
1866
_ACEOF
1867
 
1868
 
1869
cat >>confdefs.h <<_ACEOF
1870
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871
_ACEOF
1872
 
1873
 
1874
# Let the site file select an alternate cache file if it wants to.
1875
# Prefer an explicitly selected file to automatically selected ones.
1876
ac_site_file1=NONE
1877
ac_site_file2=NONE
1878
if test -n "$CONFIG_SITE"; then
1879
  ac_site_file1=$CONFIG_SITE
1880
elif test "x$prefix" != xNONE; then
1881
  ac_site_file1=$prefix/share/config.site
1882
  ac_site_file2=$prefix/etc/config.site
1883
else
1884
  ac_site_file1=$ac_default_prefix/share/config.site
1885
  ac_site_file2=$ac_default_prefix/etc/config.site
1886
fi
1887
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1888
do
1889
  test "x$ac_site_file" = xNONE && continue
1890
  if test -r "$ac_site_file"; then
1891
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1892
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1893
    sed 's/^/| /' "$ac_site_file" >&5
1894
    . "$ac_site_file"
1895
  fi
1896
done
1897
 
1898
if test -r "$cache_file"; then
1899
  # Some versions of bash will fail to source /dev/null (special
1900
  # files actually), so we avoid doing that.
1901
  if test -f "$cache_file"; then
1902
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1903
$as_echo "$as_me: loading cache $cache_file" >&6;}
1904
    case $cache_file in
1905
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1906
      *)                      . "./$cache_file";;
1907
    esac
1908
  fi
1909
else
1910
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1911
$as_echo "$as_me: creating cache $cache_file" >&6;}
1912
  >$cache_file
1913
fi
1914
 
1915
# Check that the precious variables saved in the cache have kept the same
1916
# value.
1917
ac_cache_corrupted=false
1918
for ac_var in $ac_precious_vars; do
1919
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1920
  eval ac_new_set=\$ac_env_${ac_var}_set
1921
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1922
  eval ac_new_val=\$ac_env_${ac_var}_value
1923
  case $ac_old_set,$ac_new_set in
1924
    set,)
1925
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1926
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1927
      ac_cache_corrupted=: ;;
1928
    ,set)
1929
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1930
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1931
      ac_cache_corrupted=: ;;
1932
    ,);;
1933
    *)
1934
      if test "x$ac_old_val" != "x$ac_new_val"; then
1935
	# differences in whitespace do not lead to failure.
1936
	ac_old_val_w=`echo x $ac_old_val`
1937
	ac_new_val_w=`echo x $ac_new_val`
1938
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1939
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941
	  ac_cache_corrupted=:
1942
	else
1943
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1944
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1945
	  eval $ac_var=\$ac_old_val
1946
	fi
1947
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1948
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1949
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1950
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1951
      fi;;
1952
  esac
1953
  # Pass precious variables to config.status.
1954
  if test "$ac_new_set" = set; then
1955
    case $ac_new_val in
1956
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1957
    *) ac_arg=$ac_var=$ac_new_val ;;
1958
    esac
1959
    case " $ac_configure_args " in
1960
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1961
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962
    esac
1963
  fi
1964
done
1965
if $ac_cache_corrupted; then
1966
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1967
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1968
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972
   { (exit 1); exit 1; }; }
1973
fi
1974
 
1975
 
1976
 
1977
 
1978
 
1979
 
1980
 
1981
 
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
 
2007
ac_aux_dir=
2008
for ac_dir in autoconf "$srcdir"/autoconf; do
2009
  if test -f "$ac_dir/install-sh"; then
2010
    ac_aux_dir=$ac_dir
2011
    ac_install_sh="$ac_aux_dir/install-sh -c"
2012
    break
2013
  elif test -f "$ac_dir/install.sh"; then
2014
    ac_aux_dir=$ac_dir
2015
    ac_install_sh="$ac_aux_dir/install.sh -c"
2016
    break
2017
  elif test -f "$ac_dir/shtool"; then
2018
    ac_aux_dir=$ac_dir
2019
    ac_install_sh="$ac_aux_dir/shtool install -c"
2020
    break
2021
  fi
2022
done
2023
if test -z "$ac_aux_dir"; then
2024
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2025
$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2026
   { (exit 1); exit 1; }; }
2027
fi
2028
 
2029
# These three variables are undocumented and unsupported,
2030
# and are intended to be withdrawn in a future Autoconf release.
2031
# They can cause serious problems if a builder's source tree is in a directory
2032
# whose full name contains unusual characters.
2033
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036
 
2037
 
2038
ac_config_headers="$ac_config_headers config.h"
2039
 
2040
 
2041
 
2042
 
2043
 
2044
  MKENCAP_OPTS=;
2045
 
2046
  # allow user to disable Encap support
2047
  # Check whether --enable-encap was given.
2048
if test "${enable_encap+set}" = set; then
2049
  enableval=$enable_encap;
2050
else
2051
  enable_encap=default
2052
fi
2053
 
2054
 
2055
  if test "$enable_encap" != "no"; then
2056
    # look for epkg and mkencap
2057
    # Extract the first word of "epkg", so it can be a program name with args.
2058
set dummy epkg; ac_word=$2
2059
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2060
$as_echo_n "checking for $ac_word... " >&6; }
2061
if test "${ac_cv_path_EPKG+set}" = set; then
2062
  $as_echo_n "(cached) " >&6
2063
else
2064
  case $EPKG in
2065
  [\\/]* | ?:[\\/]*)
2066
  ac_cv_path_EPKG="$EPKG" # Let the user override the test with a path.
2067
  ;;
2068
  *)
2069
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
for as_dir in $PATH
2071
do
2072
  IFS=$as_save_IFS
2073
  test -z "$as_dir" && as_dir=.
2074
  for ac_exec_ext in '' $ac_executable_extensions; do
2075
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2076
    ac_cv_path_EPKG="$as_dir/$ac_word$ac_exec_ext"
2077
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078
    break 2
2079
  fi
2080
done
2081
done
2082
IFS=$as_save_IFS
2083
 
2084
  ;;
2085
esac
2086
fi
2087
EPKG=$ac_cv_path_EPKG
2088
if test -n "$EPKG"; then
2089
  { $as_echo "$as_me:$LINENO: result: $EPKG" >&5
2090
$as_echo "$EPKG" >&6; }
2091
else
2092
  { $as_echo "$as_me:$LINENO: result: no" >&5
2093
$as_echo "no" >&6; }
2094
fi
2095
 
2096
 
2097
    # Extract the first word of "mkencap", so it can be a program name with args.
2098
set dummy mkencap; ac_word=$2
2099
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2100
$as_echo_n "checking for $ac_word... " >&6; }
2101
if test "${ac_cv_path_MKENCAP+set}" = set; then
2102
  $as_echo_n "(cached) " >&6
2103
else
2104
  case $MKENCAP in
2105
  [\\/]* | ?:[\\/]*)
2106
  ac_cv_path_MKENCAP="$MKENCAP" # Let the user override the test with a path.
2107
  ;;
2108
  *)
2109
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110
for as_dir in $PATH
2111
do
2112
  IFS=$as_save_IFS
2113
  test -z "$as_dir" && as_dir=.
2114
  for ac_exec_ext in '' $ac_executable_extensions; do
2115
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116
    ac_cv_path_MKENCAP="$as_dir/$ac_word$ac_exec_ext"
2117
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118
    break 2
2119
  fi
2120
done
2121
done
2122
IFS=$as_save_IFS
2123
 
2124
  ;;
2125
esac
2126
fi
2127
MKENCAP=$ac_cv_path_MKENCAP
2128
if test -n "$MKENCAP"; then
2129
  { $as_echo "$as_me:$LINENO: result: $MKENCAP" >&5
2130
$as_echo "$MKENCAP" >&6; }
2131
else
2132
  { $as_echo "$as_me:$LINENO: result: no" >&5
2133
$as_echo "no" >&6; }
2134
fi
2135
 
2136
 
2137
 
2138
    # enable by default if epkg or mkencap are found
2139
    if test "${EPKG:+set}" = "set" || test "${MKENCAP:+set}" = "set" && test "$enable_encap" = "default"; then
2140
      enable_encap=yes;
2141
    fi
2142
  fi
2143
 
2144
  if test "$enable_encap" = "yes"; then
2145
    # generate fallback values for ${ENCAP_SOURCE} and ${ENCAP_TARGET}
2146
    # from the environment or the default prefix
2147
    if test -z "${ENCAP_SOURCE}" && test -z "${ENCAP_TARGET}"; then
2148
      ENCAP_SOURCE="${ac_default_prefix}/encap";
2149
      ENCAP_TARGET="${ac_default_prefix}";
2150
    elif test -z "${ENCAP_TARGET}"; then
2151
      ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
2152
    elif test -z "${ENCAP_SOURCE}"; then
2153
      ENCAP_SOURCE="${ENCAP_TARGET}/encap";
2154
    fi
2155
 
2156
    # if --prefix is specified:
2157
    #   1) if its next-to-last component is "encap", assume that it
2158
    #      points to the package directory
2159
    #   2) otherwise, assume it points to the target directory
2160
    if test "${prefix}" != "NONE"; then
2161
      prefixdir="`dirname ${prefix}`";
2162
      prefixbase="`basename ${prefix}`";
2163
      if test "`basename ${prefixdir}`" = "encap"; then
2164
        ENCAP_SOURCE="${prefixdir}";
2165
        ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
2166
      elif test "${prefixdir}" != "${ENCAP_SOURCE}"; then
2167
        ENCAP_SOURCE="${prefix}/encap";
2168
        ENCAP_TARGET="${prefix}";
2169
      fi
2170
      if ( test "`basename ${prefixdir}`" = "encap" || \
2171
           test "${prefixdir}" = "${ENCAP_SOURCE}" ) && \
2172
         test "${prefixbase}" != "${PACKAGE_NAME}-${PACKAGE_VERSION}"; then
2173
        ENCAP_PKGSPEC="${prefixbase}";
2174
      fi
2175
    fi
2176
 
2177
    # display results
2178
    { $as_echo "$as_me:$LINENO: checking for Encap source directory" >&5
2179
$as_echo_n "checking for Encap source directory... " >&6; }
2180
    { $as_echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}" >&5
2181
$as_echo "${ENCAP_SOURCE}" >&6; }
2182
    { $as_echo "$as_me:$LINENO: checking for Encap target directory" >&5
2183
$as_echo_n "checking for Encap target directory... " >&6; }
2184
    { $as_echo "$as_me:$LINENO: result: ${ENCAP_TARGET}" >&5
2185
$as_echo "${ENCAP_TARGET}" >&6; }
2186
    { $as_echo "$as_me:$LINENO: checking for Encap package directory" >&5
2187
$as_echo_n "checking for Encap package directory... " >&6; }
2188
    if test "${ENCAP_PKGSPEC:-unset}" = "unset"; then
2189
      ENCAP_PKGSPEC='${PACKAGE_NAME}-${PACKAGE_VERSION}';
2190
      { $as_echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&5
2191
$as_echo "${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&6; }
2192
    else
2193
      { $as_echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&5
2194
$as_echo "${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&6; }
2195
    fi
2196
    prefix='${ENCAP_SOURCE}/${ENCAP_PKGSPEC}';
2197
 
2198
    # override default sysconfdir and localstatedir
2199
    if test "$sysconfdir" = '${prefix}/etc'; then
2200
      sysconfdir='${ENCAP_TARGET}/etc';
2201
    fi
2202
    if test "$localstatedir" = '${prefix}/var'; then
2203
      localstatedir='/var/lib/${PACKAGE_NAME}';
2204
    fi
2205
 
2206
    # check for --disable-epkg-install
2207
    # Check whether --enable-epkg-install was given.
2208
if test "${enable_epkg_install+set}" = set; then
2209
  enableval=$enable_epkg_install;
2210
else
2211
  enable_epkg_install=yes
2212
fi
2213
 
2214
    if test "$enable_epkg_install" = "no"; then
2215
      EPKG=":";
2216
    fi
2217
 
2218
    # generate Makefile variables
2219
 
2220
    ENCAP_DEFS="ENCAP_SOURCE = ${ENCAP_SOURCE}\\
2221
ENCAP_TARGET = ${ENCAP_TARGET}\\
2222
ENCAP_PKGSPEC = ${ENCAP_PKGSPEC}\\
2223
EPKG = ${EPKG:-:}\\
2224
MKENCAP = ${MKENCAP:-:}\\
2225
MKENCAP_OPTS = ${MKENCAP_OPTS}";
2226
 
2227
 
2228
        ENCAP_INSTALL_RULES='if test -f ${top_srcdir}/COPYRIGHT; then \\\
2229
		${INSTALL_DATA} ${top_srcdir}/COPYRIGHT ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}; \\\
2230
	fi\
2231
	${MKENCAP} ${MKENCAP_OPTS} -s ${DESTDIR}${ENCAP_SOURCE} -e ${ENCAP_PKGSPEC};\
2232
	if test -z \"${DESTDIR}\"; then \\\
2233
		${EPKG} -s ${ENCAP_SOURCE} -t ${ENCAP_TARGET} ${ENCAP_PKGSPEC}; \\\
2234
	fi';
2235
 
2236
 
2237
    ENCAP_INSTALL_TARGET=postinstall-encap
2238
  else
2239
    ENCAP_INSTALL_TARGET=
2240
  fi
2241
 
2242
 
2243
 
2244
 
2245
 
2246
 
2247
    # COMPAT_VAR___PROGNAME
2248
# ---------------------
2249
# Check if libc defines the __progname variable.
2250
 
2251
 
2252
 
2253
# COMPAT_FUNC_BASENAME
2254
# --------------------
2255
# Check for working basename() function.
2256
 
2257
 
2258
 
2259
# COMPAT_FUNC_DIRNAME
2260
# -------------------
2261
# Check for working dirname() function.
2262
 
2263
 
2264
 
2265
# COMPAT_FUNC_FNMATCH
2266
# -------------------
2267
# Check for working fnmatch() function.
2268
 
2269
 
2270
 
2271
# COMPAT_FUNC_GLOB
2272
# ----------------
2273
# Check for working glob() function.
2274
 
2275
 
2276
 
2277
# COMPAT_FUNC_MAKEDEV
2278
# -------------------
2279
# Check for number of arguments expected by makedev().
2280
 
2281
 
2282
 
2283
# COMPAT_FUNC_SNPRINTF
2284
# --------------------
2285
# Check for working snprintf() function.
2286
 
2287
 
2288
 
2289
# COMPAT_PROTO_MACRO(FUNCTION, HEADER, MACRO-LIST, [BODY])
2290
# --------------------------------------------------------
2291
# Determine which C preprocessor macro is needed to expose prototype of
2292
# FUNCTION in HEADER.  First, we try with nothing special defined; then we
2293
# try with each macro from MACRO-LIST.  We stop as soon as it's found
2294
# and adjust $CFLAGS appropriately.
2295
 
2296
 
2297
 
2298
# COMPAT_FUNC_STRTOK_R
2299
# --------------------
2300
# Check for working strtok_r().
2301
 
2302
 
2303
 
2304
# COMPAT_FUNC_GETPWUID_R
2305
# ----------------------
2306
# Check for POSIX-compliant getpwuid_r().
2307
 
2308
 
2309
 
2310
# COMPAT_FUNC_GETHOSTBYNAME_R
2311
# ---------------------------
2312
# Check for gethostbyname_r().
2313
 
2314
 
2315
 
2316
# COMPAT_FUNC_GETSERVBYNAME_R
2317
# ---------------------------
2318
# Check for getservbyname_r().
2319
 
2320
 
2321
 
2322
# COMPAT_REPLACE_FUNC(function)
2323
# -----------------------------
2324
# Replacement for AC_REPLACE_FUNCS.
2325
 
2326
 
2327
 
2328
# COMPAT_FUNC_GETHOSTNAME
2329
# -----------------------
2330
# Check for gethostname().
2331
 
2332
 
2333
 
2334
# COMPAT_FUNC_INET_ATON
2335
# ---------------------
2336
# Check for inet_aton().
2337
 
2338
 
2339
 
2340
# COMPAT_FUNC_STRDUP
2341
# ------------------
2342
# Check for strdup().
2343
 
2344
 
2345
 
2346
# COMPAT_FUNC_STRLCAT
2347
# -------------------
2348
# Check for strlcat().
2349
 
2350
 
2351
 
2352
# COMPAT_FUNC_STRLCPY
2353
# -------------------
2354
# Check for strlcpy().
2355
 
2356
 
2357
 
2358
# COMPAT_FUNC_STRMODE
2359
# -------------------
2360
# Check for strmode().
2361
 
2362
 
2363
 
2364
# COMPAT_FUNC_STRRSTR
2365
# -------------------
2366
# Check for strrstr().
2367
 
2368
 
2369
 
2370
# COMPAT_FUNC_STRSEP
2371
# ------------------
2372
# Check for strsep().
2373
 
2374
 
2375
 
2376
 
2377
ac_ext=c
2378
ac_cpp='$CPP $CPPFLAGS'
2379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
if test -n "$ac_tool_prefix"; then
2383
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2384
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2385
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2386
$as_echo_n "checking for $ac_word... " >&6; }
2387
if test "${ac_cv_prog_CC+set}" = set; then
2388
  $as_echo_n "(cached) " >&6
2389
else
2390
  if test -n "$CC"; then
2391
  ac_cv_prog_CC="$CC" # Let the user override the test.
2392
else
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394
for as_dir in $PATH
2395
do
2396
  IFS=$as_save_IFS
2397
  test -z "$as_dir" && as_dir=.
2398
  for ac_exec_ext in '' $ac_executable_extensions; do
2399
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2401
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402
    break 2
2403
  fi
2404
done
2405
done
2406
IFS=$as_save_IFS
2407
 
2408
fi
2409
fi
2410
CC=$ac_cv_prog_CC
2411
if test -n "$CC"; then
2412
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2413
$as_echo "$CC" >&6; }
2414
else
2415
  { $as_echo "$as_me:$LINENO: result: no" >&5
2416
$as_echo "no" >&6; }
2417
fi
2418
 
2419
 
2420
fi
2421
if test -z "$ac_cv_prog_CC"; then
2422
  ac_ct_CC=$CC
2423
  # Extract the first word of "gcc", so it can be a program name with args.
2424
set dummy gcc; ac_word=$2
2425
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426
$as_echo_n "checking for $ac_word... " >&6; }
2427
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2428
  $as_echo_n "(cached) " >&6
2429
else
2430
  if test -n "$ac_ct_CC"; then
2431
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2432
else
2433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434
for as_dir in $PATH
2435
do
2436
  IFS=$as_save_IFS
2437
  test -z "$as_dir" && as_dir=.
2438
  for ac_exec_ext in '' $ac_executable_extensions; do
2439
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440
    ac_cv_prog_ac_ct_CC="gcc"
2441
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442
    break 2
2443
  fi
2444
done
2445
done
2446
IFS=$as_save_IFS
2447
 
2448
fi
2449
fi
2450
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451
if test -n "$ac_ct_CC"; then
2452
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453
$as_echo "$ac_ct_CC" >&6; }
2454
else
2455
  { $as_echo "$as_me:$LINENO: result: no" >&5
2456
$as_echo "no" >&6; }
2457
fi
2458
 
2459
  if test "x$ac_ct_CC" = x; then
2460
    CC=""
2461
  else
2462
    case $cross_compiling:$ac_tool_warned in
2463
yes:)
2464
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2465
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2466
ac_tool_warned=yes ;;
2467
esac
2468
    CC=$ac_ct_CC
2469
  fi
2470
else
2471
  CC="$ac_cv_prog_CC"
2472
fi
2473
 
2474
if test -z "$CC"; then
2475
          if test -n "$ac_tool_prefix"; then
2476
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2477
set dummy ${ac_tool_prefix}cc; ac_word=$2
2478
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479
$as_echo_n "checking for $ac_word... " >&6; }
2480
if test "${ac_cv_prog_CC+set}" = set; then
2481
  $as_echo_n "(cached) " >&6
2482
else
2483
  if test -n "$CC"; then
2484
  ac_cv_prog_CC="$CC" # Let the user override the test.
2485
else
2486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487
for as_dir in $PATH
2488
do
2489
  IFS=$as_save_IFS
2490
  test -z "$as_dir" && as_dir=.
2491
  for ac_exec_ext in '' $ac_executable_extensions; do
2492
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2494
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495
    break 2
2496
  fi
2497
done
2498
done
2499
IFS=$as_save_IFS
2500
 
2501
fi
2502
fi
2503
CC=$ac_cv_prog_CC
2504
if test -n "$CC"; then
2505
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2506
$as_echo "$CC" >&6; }
2507
else
2508
  { $as_echo "$as_me:$LINENO: result: no" >&5
2509
$as_echo "no" >&6; }
2510
fi
2511
 
2512
 
2513
  fi
2514
fi
2515
if test -z "$CC"; then
2516
  # Extract the first word of "cc", so it can be a program name with args.
2517
set dummy cc; ac_word=$2
2518
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2519
$as_echo_n "checking for $ac_word... " >&6; }
2520
if test "${ac_cv_prog_CC+set}" = set; then
2521
  $as_echo_n "(cached) " >&6
2522
else
2523
  if test -n "$CC"; then
2524
  ac_cv_prog_CC="$CC" # Let the user override the test.
2525
else
2526
  ac_prog_rejected=no
2527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528
for as_dir in $PATH
2529
do
2530
  IFS=$as_save_IFS
2531
  test -z "$as_dir" && as_dir=.
2532
  for ac_exec_ext in '' $ac_executable_extensions; do
2533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2535
       ac_prog_rejected=yes
2536
       continue
2537
     fi
2538
    ac_cv_prog_CC="cc"
2539
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540
    break 2
2541
  fi
2542
done
2543
done
2544
IFS=$as_save_IFS
2545
 
2546
if test $ac_prog_rejected = yes; then
2547
  # We found a bogon in the path, so make sure we never use it.
2548
  set dummy $ac_cv_prog_CC
2549
  shift
2550
  if test $# != 0; then
2551
    # We chose a different compiler from the bogus one.
2552
    # However, it has the same basename, so the bogon will be chosen
2553
    # first if we set CC to just the basename; use the full file name.
2554
    shift
2555
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2556
  fi
2557
fi
2558
fi
2559
fi
2560
CC=$ac_cv_prog_CC
2561
if test -n "$CC"; then
2562
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2563
$as_echo "$CC" >&6; }
2564
else
2565
  { $as_echo "$as_me:$LINENO: result: no" >&5
2566
$as_echo "no" >&6; }
2567
fi
2568
 
2569
 
2570
fi
2571
if test -z "$CC"; then
2572
  if test -n "$ac_tool_prefix"; then
2573
  for ac_prog in cl.exe
2574
  do
2575
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2576
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2577
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2578
$as_echo_n "checking for $ac_word... " >&6; }
2579
if test "${ac_cv_prog_CC+set}" = set; then
2580
  $as_echo_n "(cached) " >&6
2581
else
2582
  if test -n "$CC"; then
2583
  ac_cv_prog_CC="$CC" # Let the user override the test.
2584
else
2585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586
for as_dir in $PATH
2587
do
2588
  IFS=$as_save_IFS
2589
  test -z "$as_dir" && as_dir=.
2590
  for ac_exec_ext in '' $ac_executable_extensions; do
2591
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2593
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594
    break 2
2595
  fi
2596
done
2597
done
2598
IFS=$as_save_IFS
2599
 
2600
fi
2601
fi
2602
CC=$ac_cv_prog_CC
2603
if test -n "$CC"; then
2604
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2605
$as_echo "$CC" >&6; }
2606
else
2607
  { $as_echo "$as_me:$LINENO: result: no" >&5
2608
$as_echo "no" >&6; }
2609
fi
2610
 
2611
 
2612
    test -n "$CC" && break
2613
  done
2614
fi
2615
if test -z "$CC"; then
2616
  ac_ct_CC=$CC
2617
  for ac_prog in cl.exe
2618
do
2619
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2620
set dummy $ac_prog; ac_word=$2
2621
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622
$as_echo_n "checking for $ac_word... " >&6; }
2623
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624
  $as_echo_n "(cached) " >&6
2625
else
2626
  if test -n "$ac_ct_CC"; then
2627
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628
else
2629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630
for as_dir in $PATH
2631
do
2632
  IFS=$as_save_IFS
2633
  test -z "$as_dir" && as_dir=.
2634
  for ac_exec_ext in '' $ac_executable_extensions; do
2635
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636
    ac_cv_prog_ac_ct_CC="$ac_prog"
2637
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638
    break 2
2639
  fi
2640
done
2641
done
2642
IFS=$as_save_IFS
2643
 
2644
fi
2645
fi
2646
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647
if test -n "$ac_ct_CC"; then
2648
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2649
$as_echo "$ac_ct_CC" >&6; }
2650
else
2651
  { $as_echo "$as_me:$LINENO: result: no" >&5
2652
$as_echo "no" >&6; }
2653
fi
2654
 
2655
 
2656
  test -n "$ac_ct_CC" && break
2657
done
2658
 
2659
  if test "x$ac_ct_CC" = x; then
2660
    CC=""
2661
  else
2662
    case $cross_compiling:$ac_tool_warned in
2663
yes:)
2664
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2665
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666
ac_tool_warned=yes ;;
2667
esac
2668
    CC=$ac_ct_CC
2669
  fi
2670
fi
2671
 
2672
fi
2673
 
2674
 
2675
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2676
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2678
See \`config.log' for more details." >&5
2679
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2680
See \`config.log' for more details." >&2;}
2681
   { (exit 1); exit 1; }; }; }
2682
 
2683
# Provide some information about the compiler.
2684
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2685
set X $ac_compile
2686
ac_compiler=$2
2687
{ (ac_try="$ac_compiler --version >&5"
2688
case "(($ac_try" in
2689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690
  *) ac_try_echo=$ac_try;;
2691
esac
2692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2693
$as_echo "$ac_try_echo") >&5
2694
  (eval "$ac_compiler --version >&5") 2>&5
2695
  ac_status=$?
2696
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
  (exit $ac_status); }
2698
{ (ac_try="$ac_compiler -v >&5"
2699
case "(($ac_try" in
2700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701
  *) ac_try_echo=$ac_try;;
2702
esac
2703
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704
$as_echo "$ac_try_echo") >&5
2705
  (eval "$ac_compiler -v >&5") 2>&5
2706
  ac_status=$?
2707
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
  (exit $ac_status); }
2709
{ (ac_try="$ac_compiler -V >&5"
2710
case "(($ac_try" in
2711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712
  *) ac_try_echo=$ac_try;;
2713
esac
2714
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715
$as_echo "$ac_try_echo") >&5
2716
  (eval "$ac_compiler -V >&5") 2>&5
2717
  ac_status=$?
2718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719
  (exit $ac_status); }
2720
 
2721
cat >conftest.$ac_ext <<_ACEOF
2722
/* confdefs.h.  */
2723
_ACEOF
2724
cat confdefs.h >>conftest.$ac_ext
2725
cat >>conftest.$ac_ext <<_ACEOF
2726
/* end confdefs.h.  */
2727
 
2728
int
2729
main ()
2730
{
2731
 
2732
  ;
2733
  return 0;
2734
}
2735
_ACEOF
2736
ac_clean_files_save=$ac_clean_files
2737
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2738
# Try to create an executable without -o first, disregard a.out.
2739
# It will help us diagnose broken compilers, and finding out an intuition
2740
# of exeext.
2741
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2742
$as_echo_n "checking for C compiler default output file name... " >&6; }
2743
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2744
 
2745
# The possible output files:
2746
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2747
 
2748
ac_rmfiles=
2749
for ac_file in $ac_files
2750
do
2751
  case $ac_file in
2752
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754
  esac
2755
done
2756
rm -f $ac_rmfiles
2757
 
2758
if { (ac_try="$ac_link_default"
2759
case "(($ac_try" in
2760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761
  *) ac_try_echo=$ac_try;;
2762
esac
2763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764
$as_echo "$ac_try_echo") >&5
2765
  (eval "$ac_link_default") 2>&5
2766
  ac_status=$?
2767
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768
  (exit $ac_status); }; then
2769
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2770
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2771
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2772
# so that the user can short-circuit this test for compilers unknown to
2773
# Autoconf.
2774
for ac_file in $ac_files ''
2775
do
2776
  test -f "$ac_file" || continue
2777
  case $ac_file in
2778
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2779
	;;
2780
    [ab].out )
2781
	# We found the default executable, but exeext='' is most
2782
	# certainly right.
2783
	break;;
2784
    *.* )
2785
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2786
	then :; else
2787
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788
	fi
2789
	# We set ac_cv_exeext here because the later test for it is not
2790
	# safe: cross compilers may not add the suffix if given an `-o'
2791
	# argument, so we may need to know it at that point already.
2792
	# Even if this section looks crufty: it has the advantage of
2793
	# actually working.
2794
	break;;
2795
    * )
2796
	break;;
2797
  esac
2798
done
2799
test "$ac_cv_exeext" = no && ac_cv_exeext=
2800
 
2801
else
2802
  ac_file=''
2803
fi
2804
 
2805
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2806
$as_echo "$ac_file" >&6; }
2807
if test -z "$ac_file"; then
2808
  $as_echo "$as_me: failed program was:" >&5
2809
sed 's/^/| /' conftest.$ac_ext >&5
2810
 
2811
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2812
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2814
See \`config.log' for more details." >&5
2815
$as_echo "$as_me: error: C compiler cannot create executables
2816
See \`config.log' for more details." >&2;}
2817
   { (exit 77); exit 77; }; }; }
2818
fi
2819
 
2820
ac_exeext=$ac_cv_exeext
2821
 
2822
# Check that the compiler produces executables we can run.  If not, either
2823
# the compiler is broken, or we cross compile.
2824
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2825
$as_echo_n "checking whether the C compiler works... " >&6; }
2826
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2827
# If not cross compiling, check that we can run a simple program.
2828
if test "$cross_compiling" != yes; then
2829
  if { ac_try='./$ac_file'
2830
  { (case "(($ac_try" in
2831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832
  *) ac_try_echo=$ac_try;;
2833
esac
2834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2835
$as_echo "$ac_try_echo") >&5
2836
  (eval "$ac_try") 2>&5
2837
  ac_status=$?
2838
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839
  (exit $ac_status); }; }; then
2840
    cross_compiling=no
2841
  else
2842
    if test "$cross_compiling" = maybe; then
2843
	cross_compiling=yes
2844
    else
2845
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2846
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848
If you meant to cross compile, use \`--host'.
2849
See \`config.log' for more details." >&5
2850
$as_echo "$as_me: error: cannot run C compiled programs.
2851
If you meant to cross compile, use \`--host'.
2852
See \`config.log' for more details." >&2;}
2853
   { (exit 1); exit 1; }; }; }
2854
    fi
2855
  fi
2856
fi
2857
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2858
$as_echo "yes" >&6; }
2859
 
2860
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2861
ac_clean_files=$ac_clean_files_save
2862
# Check that the compiler produces executables we can run.  If not, either
2863
# the compiler is broken, or we cross compile.
2864
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865
$as_echo_n "checking whether we are cross compiling... " >&6; }
2866
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867
$as_echo "$cross_compiling" >&6; }
2868
 
2869
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870
$as_echo_n "checking for suffix of executables... " >&6; }
2871
if { (ac_try="$ac_link"
2872
case "(($ac_try" in
2873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874
  *) ac_try_echo=$ac_try;;
2875
esac
2876
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2877
$as_echo "$ac_try_echo") >&5
2878
  (eval "$ac_link") 2>&5
2879
  ac_status=$?
2880
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
  (exit $ac_status); }; then
2882
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2884
# work properly (i.e., refer to `conftest.exe'), while it won't with
2885
# `rm'.
2886
for ac_file in conftest.exe conftest conftest.*; do
2887
  test -f "$ac_file" || continue
2888
  case $ac_file in
2889
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891
	  break;;
2892
    * ) break;;
2893
  esac
2894
done
2895
else
2896
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2897
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2899
See \`config.log' for more details." >&5
2900
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2901
See \`config.log' for more details." >&2;}
2902
   { (exit 1); exit 1; }; }; }
2903
fi
2904
 
2905
rm -f conftest$ac_cv_exeext
2906
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2907
$as_echo "$ac_cv_exeext" >&6; }
2908
 
2909
rm -f conftest.$ac_ext
2910
EXEEXT=$ac_cv_exeext
2911
ac_exeext=$EXEEXT
2912
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2913
$as_echo_n "checking for suffix of object files... " >&6; }
2914
if test "${ac_cv_objext+set}" = set; then
2915
  $as_echo_n "(cached) " >&6
2916
else
2917
  cat >conftest.$ac_ext <<_ACEOF
2918
/* confdefs.h.  */
2919
_ACEOF
2920
cat confdefs.h >>conftest.$ac_ext
2921
cat >>conftest.$ac_ext <<_ACEOF
2922
/* end confdefs.h.  */
2923
 
2924
int
2925
main ()
2926
{
2927
 
2928
  ;
2929
  return 0;
2930
}
2931
_ACEOF
2932
rm -f conftest.o conftest.obj
2933
if { (ac_try="$ac_compile"
2934
case "(($ac_try" in
2935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936
  *) ac_try_echo=$ac_try;;
2937
esac
2938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939
$as_echo "$ac_try_echo") >&5
2940
  (eval "$ac_compile") 2>&5
2941
  ac_status=$?
2942
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943
  (exit $ac_status); }; then
2944
  for ac_file in conftest.o conftest.obj conftest.*; do
2945
  test -f "$ac_file" || continue;
2946
  case $ac_file in
2947
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2948
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949
       break;;
2950
  esac
2951
done
2952
else
2953
  $as_echo "$as_me: failed program was:" >&5
2954
sed 's/^/| /' conftest.$ac_ext >&5
2955
 
2956
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2957
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959
See \`config.log' for more details." >&5
2960
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961
See \`config.log' for more details." >&2;}
2962
   { (exit 1); exit 1; }; }; }
2963
fi
2964
 
2965
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966
fi
2967
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968
$as_echo "$ac_cv_objext" >&6; }
2969
OBJEXT=$ac_cv_objext
2970
ac_objext=$OBJEXT
2971
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2973
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974
  $as_echo_n "(cached) " >&6
2975
else
2976
  cat >conftest.$ac_ext <<_ACEOF
2977
/* confdefs.h.  */
2978
_ACEOF
2979
cat confdefs.h >>conftest.$ac_ext
2980
cat >>conftest.$ac_ext <<_ACEOF
2981
/* end confdefs.h.  */
2982
 
2983
int
2984
main ()
2985
{
2986
#ifndef __GNUC__
2987
       choke me
2988
#endif
2989
 
2990
  ;
2991
  return 0;
2992
}
2993
_ACEOF
2994
rm -f conftest.$ac_objext
2995
if { (ac_try="$ac_compile"
2996
case "(($ac_try" in
2997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998
  *) ac_try_echo=$ac_try;;
2999
esac
3000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3001
$as_echo "$ac_try_echo") >&5
3002
  (eval "$ac_compile") 2>conftest.er1
3003
  ac_status=$?
3004
  grep -v '^ *+' conftest.er1 >conftest.err
3005
  rm -f conftest.er1
3006
  cat conftest.err >&5
3007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
  (exit $ac_status); } && {
3009
	 test -z "$ac_c_werror_flag" ||
3010
	 test ! -s conftest.err
3011
       } && test -s conftest.$ac_objext; then
3012
  ac_compiler_gnu=yes
3013
else
3014
  $as_echo "$as_me: failed program was:" >&5
3015
sed 's/^/| /' conftest.$ac_ext >&5
3016
 
3017
	ac_compiler_gnu=no
3018
fi
3019
 
3020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022
 
3023
fi
3024
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3026
if test $ac_compiler_gnu = yes; then
3027
  GCC=yes
3028
else
3029
  GCC=
3030
fi
3031
ac_test_CFLAGS=${CFLAGS+set}
3032
ac_save_CFLAGS=$CFLAGS
3033
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3035
if test "${ac_cv_prog_cc_g+set}" = set; then
3036
  $as_echo_n "(cached) " >&6
3037
else
3038
  ac_save_c_werror_flag=$ac_c_werror_flag
3039
   ac_c_werror_flag=yes
3040
   ac_cv_prog_cc_g=no
3041
   CFLAGS="-g"
3042
   cat >conftest.$ac_ext <<_ACEOF
3043
/* confdefs.h.  */
3044
_ACEOF
3045
cat confdefs.h >>conftest.$ac_ext
3046
cat >>conftest.$ac_ext <<_ACEOF
3047
/* end confdefs.h.  */
3048
 
3049
int
3050
main ()
3051
{
3052
 
3053
  ;
3054
  return 0;
3055
}
3056
_ACEOF
3057
rm -f conftest.$ac_objext
3058
if { (ac_try="$ac_compile"
3059
case "(($ac_try" in
3060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061
  *) ac_try_echo=$ac_try;;
3062
esac
3063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3064
$as_echo "$ac_try_echo") >&5
3065
  (eval "$ac_compile") 2>conftest.er1
3066
  ac_status=$?
3067
  grep -v '^ *+' conftest.er1 >conftest.err
3068
  rm -f conftest.er1
3069
  cat conftest.err >&5
3070
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071
  (exit $ac_status); } && {
3072
	 test -z "$ac_c_werror_flag" ||
3073
	 test ! -s conftest.err
3074
       } && test -s conftest.$ac_objext; then
3075
  ac_cv_prog_cc_g=yes
3076
else
3077
  $as_echo "$as_me: failed program was:" >&5
3078
sed 's/^/| /' conftest.$ac_ext >&5
3079
 
3080
	CFLAGS=""
3081
      cat >conftest.$ac_ext <<_ACEOF
3082
/* confdefs.h.  */
3083
_ACEOF
3084
cat confdefs.h >>conftest.$ac_ext
3085
cat >>conftest.$ac_ext <<_ACEOF
3086
/* end confdefs.h.  */
3087
 
3088
int
3089
main ()
3090
{
3091
 
3092
  ;
3093
  return 0;
3094
}
3095
_ACEOF
3096
rm -f conftest.$ac_objext
3097
if { (ac_try="$ac_compile"
3098
case "(($ac_try" in
3099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100
  *) ac_try_echo=$ac_try;;
3101
esac
3102
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103
$as_echo "$ac_try_echo") >&5
3104
  (eval "$ac_compile") 2>conftest.er1
3105
  ac_status=$?
3106
  grep -v '^ *+' conftest.er1 >conftest.err
3107
  rm -f conftest.er1
3108
  cat conftest.err >&5
3109
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110
  (exit $ac_status); } && {
3111
	 test -z "$ac_c_werror_flag" ||
3112
	 test ! -s conftest.err
3113
       } && test -s conftest.$ac_objext; then
3114
  :
3115
else
3116
  $as_echo "$as_me: failed program was:" >&5
3117
sed 's/^/| /' conftest.$ac_ext >&5
3118
 
3119
	ac_c_werror_flag=$ac_save_c_werror_flag
3120
	 CFLAGS="-g"
3121
	 cat >conftest.$ac_ext <<_ACEOF
3122
/* confdefs.h.  */
3123
_ACEOF
3124
cat confdefs.h >>conftest.$ac_ext
3125
cat >>conftest.$ac_ext <<_ACEOF
3126
/* end confdefs.h.  */
3127
 
3128
int
3129
main ()
3130
{
3131
 
3132
  ;
3133
  return 0;
3134
}
3135
_ACEOF
3136
rm -f conftest.$ac_objext
3137
if { (ac_try="$ac_compile"
3138
case "(($ac_try" in
3139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140
  *) ac_try_echo=$ac_try;;
3141
esac
3142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143
$as_echo "$ac_try_echo") >&5
3144
  (eval "$ac_compile") 2>conftest.er1
3145
  ac_status=$?
3146
  grep -v '^ *+' conftest.er1 >conftest.err
3147
  rm -f conftest.er1
3148
  cat conftest.err >&5
3149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150
  (exit $ac_status); } && {
3151
	 test -z "$ac_c_werror_flag" ||
3152
	 test ! -s conftest.err
3153
       } && test -s conftest.$ac_objext; then
3154
  ac_cv_prog_cc_g=yes
3155
else
3156
  $as_echo "$as_me: failed program was:" >&5
3157
sed 's/^/| /' conftest.$ac_ext >&5
3158
 
3159
 
3160
fi
3161
 
3162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163
fi
3164
 
3165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166
fi
3167
 
3168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169
   ac_c_werror_flag=$ac_save_c_werror_flag
3170
fi
3171
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172
$as_echo "$ac_cv_prog_cc_g" >&6; }
3173
if test "$ac_test_CFLAGS" = set; then
3174
  CFLAGS=$ac_save_CFLAGS
3175
elif test $ac_cv_prog_cc_g = yes; then
3176
  if test "$GCC" = yes; then
3177
    CFLAGS="-g -O2"
3178
  else
3179
    CFLAGS="-g"
3180
  fi
3181
else
3182
  if test "$GCC" = yes; then
3183
    CFLAGS="-O2"
3184
  else
3185
    CFLAGS=
3186
  fi
3187
fi
3188
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3189
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3190
if test "${ac_cv_prog_cc_c89+set}" = set; then
3191
  $as_echo_n "(cached) " >&6
3192
else
3193
  ac_cv_prog_cc_c89=no
3194
ac_save_CC=$CC
3195
cat >conftest.$ac_ext <<_ACEOF
3196
/* confdefs.h.  */
3197
_ACEOF
3198
cat confdefs.h >>conftest.$ac_ext
3199
cat >>conftest.$ac_ext <<_ACEOF
3200
/* end confdefs.h.  */
3201
#include <stdarg.h>
3202
#include <stdio.h>
3203
#include <sys/types.h>
3204
#include <sys/stat.h>
3205
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3206
struct buf { int x; };
3207
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3208
static char *e (p, i)
3209
     char **p;
3210
     int i;
3211
{
3212
  return p[i];
3213
}
3214
static char *f (char * (*g) (char **, int), char **p, ...)
3215
{
3216
  char *s;
3217
  va_list v;
3218
  va_start (v,p);
3219
  s = g (p, va_arg (v,int));
3220
  va_end (v);
3221
  return s;
3222
}
3223
 
3224
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3225
   function prototypes and stuff, but not '\xHH' hex character constants.
3226
   These don't provoke an error unfortunately, instead are silently treated
3227
   as 'x'.  The following induces an error, until -std is added to get
3228
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3229
   array size at least.  It's necessary to write '\x00'==0 to get something
3230
   that's true only with -std.  */
3231
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3232
 
3233
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3234
   inside strings and character constants.  */
3235
#define FOO(x) 'x'
3236
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3237
 
3238
int test (int i, double x);
3239
struct s1 {int (*f) (int a);};
3240
struct s2 {int (*f) (double a);};
3241
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242
int argc;
3243
char **argv;
3244
int
3245
main ()
3246
{
3247
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3248
  ;
3249
  return 0;
3250
}
3251
_ACEOF
3252
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3253
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3254
do
3255
  CC="$ac_save_CC $ac_arg"
3256
  rm -f conftest.$ac_objext
3257
if { (ac_try="$ac_compile"
3258
case "(($ac_try" in
3259
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260
  *) ac_try_echo=$ac_try;;
3261
esac
3262
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263
$as_echo "$ac_try_echo") >&5
3264
  (eval "$ac_compile") 2>conftest.er1
3265
  ac_status=$?
3266
  grep -v '^ *+' conftest.er1 >conftest.err
3267
  rm -f conftest.er1
3268
  cat conftest.err >&5
3269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270
  (exit $ac_status); } && {
3271
	 test -z "$ac_c_werror_flag" ||
3272
	 test ! -s conftest.err
3273
       } && test -s conftest.$ac_objext; then
3274
  ac_cv_prog_cc_c89=$ac_arg
3275
else
3276
  $as_echo "$as_me: failed program was:" >&5
3277
sed 's/^/| /' conftest.$ac_ext >&5
3278
 
3279
 
3280
fi
3281
 
3282
rm -f core conftest.err conftest.$ac_objext
3283
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3284
done
3285
rm -f conftest.$ac_ext
3286
CC=$ac_save_CC
3287
 
3288
fi
3289
# AC_CACHE_VAL
3290
case "x$ac_cv_prog_cc_c89" in
3291
  x)
3292
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3293
$as_echo "none needed" >&6; } ;;
3294
  xno)
3295
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3296
$as_echo "unsupported" >&6; } ;;
3297
  *)
3298
    CC="$CC $ac_cv_prog_cc_c89"
3299
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3300
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3301
esac
3302
 
3303
 
3304
ac_ext=c
3305
ac_cpp='$CPP $CPPFLAGS'
3306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309
 
3310
 
3311
 
3312
 
3313
 
3314
cat >>confdefs.h <<\_ACEOF
3315
#define NEED_STRLCPY 1
3316
_ACEOF
3317
 
3318
  { $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
3319
$as_echo_n "checking for strlcpy... " >&6; }
3320
if test "${ac_cv_func_strlcpy+set}" = set; then
3321
  $as_echo_n "(cached) " >&6
3322
else
3323
  cat >conftest.$ac_ext <<_ACEOF
3324
/* confdefs.h.  */
3325
_ACEOF
3326
cat confdefs.h >>conftest.$ac_ext
3327
cat >>conftest.$ac_ext <<_ACEOF
3328
/* end confdefs.h.  */
3329
/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
3330
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3331
#define strlcpy innocuous_strlcpy
3332
 
3333
/* System header to define __stub macros and hopefully few prototypes,
3334
    which can conflict with char strlcpy (); below.
3335
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3336
    <limits.h> exists even on freestanding compilers.  */
3337
 
3338
#ifdef __STDC__
3339
# include <limits.h>
3340
#else
3341
# include <assert.h>
3342
#endif
3343
 
3344
#undef strlcpy
3345
 
3346
/* Override any GCC internal prototype to avoid an error.
3347
   Use char because int might match the return type of a GCC
3348
   builtin and then its argument prototype would still apply.  */
3349
#ifdef __cplusplus
3350
extern "C"
3351
#endif
3352
char strlcpy ();
3353
/* The GNU C library defines this for functions which it implements
3354
    to always fail with ENOSYS.  Some functions are actually named
3355
    something starting with __ and the normal name is an alias.  */
3356
#if defined __stub_strlcpy || defined __stub___strlcpy
3357
choke me
3358
#endif
3359
 
3360
int
3361
main ()
3362
{
3363
return strlcpy ();
3364
  ;
3365
  return 0;
3366
}
3367
_ACEOF
3368
rm -f conftest.$ac_objext conftest$ac_exeext
3369
if { (ac_try="$ac_link"
3370
case "(($ac_try" in
3371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372
  *) ac_try_echo=$ac_try;;
3373
esac
3374
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3375
$as_echo "$ac_try_echo") >&5
3376
  (eval "$ac_link") 2>conftest.er1
3377
  ac_status=$?
3378
  grep -v '^ *+' conftest.er1 >conftest.err
3379
  rm -f conftest.er1
3380
  cat conftest.err >&5
3381
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
  (exit $ac_status); } && {
3383
	 test -z "$ac_c_werror_flag" ||
3384
	 test ! -s conftest.err
3385
       } && test -s conftest$ac_exeext && {
3386
	 test "$cross_compiling" = yes ||
3387
	 $as_test_x conftest$ac_exeext
3388
       }; then
3389
  ac_cv_func_strlcpy=yes
3390
else
3391
  $as_echo "$as_me: failed program was:" >&5
3392
sed 's/^/| /' conftest.$ac_ext >&5
3393
 
3394
	ac_cv_func_strlcpy=no
3395
fi
3396
 
3397
rm -rf conftest.dSYM
3398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3399
      conftest$ac_exeext conftest.$ac_ext
3400
fi
3401
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
3402
$as_echo "$ac_cv_func_strlcpy" >&6; }
3403
if test "x$ac_cv_func_strlcpy" = x""yes; then
3404
 
3405
cat >>confdefs.h <<\_ACEOF
3406
#define HAVE_STRLCPY 1
3407
_ACEOF
3408
 
3409
else
3410
  case " $LIBOBJS " in
3411
  *" strlcpy.$ac_objext "* ) ;;
3412
  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
3413
 ;;
3414
esac
3415
 
3416
 
3417
fi
3418
 
3419
 
3420
 
3421
 
3422
 
3423
 
3424
cat >>confdefs.h <<\_ACEOF
3425
#define NEED_STRSEP 1
3426
_ACEOF
3427
 
3428
  { $as_echo "$as_me:$LINENO: checking for strsep" >&5
3429
$as_echo_n "checking for strsep... " >&6; }
3430
if test "${ac_cv_func_strsep+set}" = set; then
3431
  $as_echo_n "(cached) " >&6
3432
else
3433
  cat >conftest.$ac_ext <<_ACEOF
3434
/* confdefs.h.  */
3435
_ACEOF
3436
cat confdefs.h >>conftest.$ac_ext
3437
cat >>conftest.$ac_ext <<_ACEOF
3438
/* end confdefs.h.  */
3439
/* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
3440
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3441
#define strsep innocuous_strsep
3442
 
3443
/* System header to define __stub macros and hopefully few prototypes,
3444
    which can conflict with char strsep (); below.
3445
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446
    <limits.h> exists even on freestanding compilers.  */
3447
 
3448
#ifdef __STDC__
3449
# include <limits.h>
3450
#else
3451
# include <assert.h>
3452
#endif
3453
 
3454
#undef strsep
3455
 
3456
/* Override any GCC internal prototype to avoid an error.
3457
   Use char because int might match the return type of a GCC
3458
   builtin and then its argument prototype would still apply.  */
3459
#ifdef __cplusplus
3460
extern "C"
3461
#endif
3462
char strsep ();
3463
/* The GNU C library defines this for functions which it implements
3464
    to always fail with ENOSYS.  Some functions are actually named
3465
    something starting with __ and the normal name is an alias.  */
3466
#if defined __stub_strsep || defined __stub___strsep
3467
choke me
3468
#endif
3469
 
3470
int
3471
main ()
3472
{
3473
return strsep ();
3474
  ;
3475
  return 0;
3476
}
3477
_ACEOF
3478
rm -f conftest.$ac_objext conftest$ac_exeext
3479
if { (ac_try="$ac_link"
3480
case "(($ac_try" in
3481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482
  *) ac_try_echo=$ac_try;;
3483
esac
3484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485
$as_echo "$ac_try_echo") >&5
3486
  (eval "$ac_link") 2>conftest.er1
3487
  ac_status=$?
3488
  grep -v '^ *+' conftest.er1 >conftest.err
3489
  rm -f conftest.er1
3490
  cat conftest.err >&5
3491
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492
  (exit $ac_status); } && {
3493
	 test -z "$ac_c_werror_flag" ||
3494
	 test ! -s conftest.err
3495
       } && test -s conftest$ac_exeext && {
3496
	 test "$cross_compiling" = yes ||
3497
	 $as_test_x conftest$ac_exeext
3498
       }; then
3499
  ac_cv_func_strsep=yes
3500
else
3501
  $as_echo "$as_me: failed program was:" >&5
3502
sed 's/^/| /' conftest.$ac_ext >&5
3503
 
3504
	ac_cv_func_strsep=no
3505
fi
3506
 
3507
rm -rf conftest.dSYM
3508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3509
      conftest$ac_exeext conftest.$ac_ext
3510
fi
3511
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
3512
$as_echo "$ac_cv_func_strsep" >&6; }
3513
if test "x$ac_cv_func_strsep" = x""yes; then
3514
 
3515
cat >>confdefs.h <<\_ACEOF
3516
#define HAVE_STRSEP 1
3517
_ACEOF
3518
 
3519
else
3520
  case " $LIBOBJS " in
3521
  *" strsep.$ac_objext "* ) ;;
3522
  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
3523
 ;;
3524
esac
3525
 
3526
 
3527
fi
3528
 
3529
 
3530
 
3531
 
3532
 
3533
 
3534
 
3535
 
3536
 
3537
 
3538
  if test -z "libtar"; then
3539
    LISTHASH_PREFIX="${PACKAGE_NAME}";
3540
  else
3541
    LISTHASH_PREFIX="libtar";
3542
  fi
3543
 
3544
 
3545
  LISTHASH_DIR="listhash";
3546
 
3547
 
3548
  ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in"
3549
 
3550
  ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in"
3551
 
3552
  ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in"
3553
 
3554
  ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in"
3555
 
3556
  ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in"
3557
 
3558
 
3559
 
3560
 
3561
if test -z "$CFLAGS"; then
3562
  CFLAGS="-O"
3563
fi
3564
MKDIR="mkdir -p -m 755"
3565
 
3566
 
3567
 
3568
ac_ext=c
3569
ac_cpp='$CPP $CPPFLAGS'
3570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3574
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3575
# On Suns, sometimes $CPP names a directory.
3576
if test -n "$CPP" && test -d "$CPP"; then
3577
  CPP=
3578
fi
3579
if test -z "$CPP"; then
3580
  if test "${ac_cv_prog_CPP+set}" = set; then
3581
  $as_echo_n "(cached) " >&6
3582
else
3583
      # Double quotes because CPP needs to be expanded
3584
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3585
    do
3586
      ac_preproc_ok=false
3587
for ac_c_preproc_warn_flag in '' yes
3588
do
3589
  # Use a header file that comes with gcc, so configuring glibc
3590
  # with a fresh cross-compiler works.
3591
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592
  # <limits.h> exists even on freestanding compilers.
3593
  # On the NeXT, cc -E runs the code through the compiler's parser,
3594
  # not just through cpp. "Syntax error" is here to catch this case.
3595
  cat >conftest.$ac_ext <<_ACEOF
3596
/* confdefs.h.  */
3597
_ACEOF
3598
cat confdefs.h >>conftest.$ac_ext
3599
cat >>conftest.$ac_ext <<_ACEOF
3600
/* end confdefs.h.  */
3601
#ifdef __STDC__
3602
# include <limits.h>
3603
#else
3604
# include <assert.h>
3605
#endif
3606
		     Syntax error
3607
_ACEOF
3608
if { (ac_try="$ac_cpp conftest.$ac_ext"
3609
case "(($ac_try" in
3610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611
  *) ac_try_echo=$ac_try;;
3612
esac
3613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614
$as_echo "$ac_try_echo") >&5
3615
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616
  ac_status=$?
3617
  grep -v '^ *+' conftest.er1 >conftest.err
3618
  rm -f conftest.er1
3619
  cat conftest.err >&5
3620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
  (exit $ac_status); } >/dev/null && {
3622
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623
	 test ! -s conftest.err
3624
       }; then
3625
  :
3626
else
3627
  $as_echo "$as_me: failed program was:" >&5
3628
sed 's/^/| /' conftest.$ac_ext >&5
3629
 
3630
  # Broken: fails on valid input.
3631
continue
3632
fi
3633
 
3634
rm -f conftest.err conftest.$ac_ext
3635
 
3636
  # OK, works on sane cases.  Now check whether nonexistent headers
3637
  # can be detected and how.
3638
  cat >conftest.$ac_ext <<_ACEOF
3639
/* confdefs.h.  */
3640
_ACEOF
3641
cat confdefs.h >>conftest.$ac_ext
3642
cat >>conftest.$ac_ext <<_ACEOF
3643
/* end confdefs.h.  */
3644
#include <ac_nonexistent.h>
3645
_ACEOF
3646
if { (ac_try="$ac_cpp conftest.$ac_ext"
3647
case "(($ac_try" in
3648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649
  *) ac_try_echo=$ac_try;;
3650
esac
3651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652
$as_echo "$ac_try_echo") >&5
3653
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3654
  ac_status=$?
3655
  grep -v '^ *+' conftest.er1 >conftest.err
3656
  rm -f conftest.er1
3657
  cat conftest.err >&5
3658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659
  (exit $ac_status); } >/dev/null && {
3660
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3661
	 test ! -s conftest.err
3662
       }; then
3663
  # Broken: success on invalid input.
3664
continue
3665
else
3666
  $as_echo "$as_me: failed program was:" >&5
3667
sed 's/^/| /' conftest.$ac_ext >&5
3668
 
3669
  # Passes both tests.
3670
ac_preproc_ok=:
3671
break
3672
fi
3673
 
3674
rm -f conftest.err conftest.$ac_ext
3675
 
3676
done
3677
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678
rm -f conftest.err conftest.$ac_ext
3679
if $ac_preproc_ok; then
3680
  break
3681
fi
3682
 
3683
    done
3684
    ac_cv_prog_CPP=$CPP
3685
 
3686
fi
3687
  CPP=$ac_cv_prog_CPP
3688
else
3689
  ac_cv_prog_CPP=$CPP
3690
fi
3691
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3692
$as_echo "$CPP" >&6; }
3693
ac_preproc_ok=false
3694
for ac_c_preproc_warn_flag in '' yes
3695
do
3696
  # Use a header file that comes with gcc, so configuring glibc
3697
  # with a fresh cross-compiler works.
3698
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699
  # <limits.h> exists even on freestanding compilers.
3700
  # On the NeXT, cc -E runs the code through the compiler's parser,
3701
  # not just through cpp. "Syntax error" is here to catch this case.
3702
  cat >conftest.$ac_ext <<_ACEOF
3703
/* confdefs.h.  */
3704
_ACEOF
3705
cat confdefs.h >>conftest.$ac_ext
3706
cat >>conftest.$ac_ext <<_ACEOF
3707
/* end confdefs.h.  */
3708
#ifdef __STDC__
3709
# include <limits.h>
3710
#else
3711
# include <assert.h>
3712
#endif
3713
		     Syntax error
3714
_ACEOF
3715
if { (ac_try="$ac_cpp conftest.$ac_ext"
3716
case "(($ac_try" in
3717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718
  *) ac_try_echo=$ac_try;;
3719
esac
3720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721
$as_echo "$ac_try_echo") >&5
3722
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3723
  ac_status=$?
3724
  grep -v '^ *+' conftest.er1 >conftest.err
3725
  rm -f conftest.er1
3726
  cat conftest.err >&5
3727
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728
  (exit $ac_status); } >/dev/null && {
3729
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3730
	 test ! -s conftest.err
3731
       }; then
3732
  :
3733
else
3734
  $as_echo "$as_me: failed program was:" >&5
3735
sed 's/^/| /' conftest.$ac_ext >&5
3736
 
3737
  # Broken: fails on valid input.
3738
continue
3739
fi
3740
 
3741
rm -f conftest.err conftest.$ac_ext
3742
 
3743
  # OK, works on sane cases.  Now check whether nonexistent headers
3744
  # can be detected and how.
3745
  cat >conftest.$ac_ext <<_ACEOF
3746
/* confdefs.h.  */
3747
_ACEOF
3748
cat confdefs.h >>conftest.$ac_ext
3749
cat >>conftest.$ac_ext <<_ACEOF
3750
/* end confdefs.h.  */
3751
#include <ac_nonexistent.h>
3752
_ACEOF
3753
if { (ac_try="$ac_cpp conftest.$ac_ext"
3754
case "(($ac_try" in
3755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756
  *) ac_try_echo=$ac_try;;
3757
esac
3758
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759
$as_echo "$ac_try_echo") >&5
3760
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3761
  ac_status=$?
3762
  grep -v '^ *+' conftest.er1 >conftest.err
3763
  rm -f conftest.er1
3764
  cat conftest.err >&5
3765
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766
  (exit $ac_status); } >/dev/null && {
3767
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3768
	 test ! -s conftest.err
3769
       }; then
3770
  # Broken: success on invalid input.
3771
continue
3772
else
3773
  $as_echo "$as_me: failed program was:" >&5
3774
sed 's/^/| /' conftest.$ac_ext >&5
3775
 
3776
  # Passes both tests.
3777
ac_preproc_ok=:
3778
break
3779
fi
3780
 
3781
rm -f conftest.err conftest.$ac_ext
3782
 
3783
done
3784
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785
rm -f conftest.err conftest.$ac_ext
3786
if $ac_preproc_ok; then
3787
  :
3788
else
3789
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3790
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3792
See \`config.log' for more details." >&5
3793
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3794
See \`config.log' for more details." >&2;}
3795
   { (exit 1); exit 1; }; }; }
3796
fi
3797
 
3798
ac_ext=c
3799
ac_cpp='$CPP $CPPFLAGS'
3800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
 
3804
 
3805
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3806
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3807
if test "${ac_cv_path_GREP+set}" = set; then
3808
  $as_echo_n "(cached) " >&6
3809
else
3810
  if test -z "$GREP"; then
3811
  ac_path_GREP_found=false
3812
  # Loop through the user's path and test for each of PROGNAME-LIST
3813
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3815
do
3816
  IFS=$as_save_IFS
3817
  test -z "$as_dir" && as_dir=.
3818
  for ac_prog in grep ggrep; do
3819
    for ac_exec_ext in '' $ac_executable_extensions; do
3820
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3821
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3822
# Check for GNU ac_path_GREP and select it if it is found.
3823
  # Check for GNU $ac_path_GREP
3824
case `"$ac_path_GREP" --version 2>&1` in
3825
*GNU*)
3826
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3827
*)
3828
  ac_count=0
3829
  $as_echo_n 0123456789 >"conftest.in"
3830
  while :
3831
  do
3832
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3833
    mv "conftest.tmp" "conftest.in"
3834
    cp "conftest.in" "conftest.nl"
3835
    $as_echo 'GREP' >> "conftest.nl"
3836
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838
    ac_count=`expr $ac_count + 1`
3839
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3840
      # Best one so far, save it but keep looking for a better one
3841
      ac_cv_path_GREP="$ac_path_GREP"
3842
      ac_path_GREP_max=$ac_count
3843
    fi
3844
    # 10*(2^10) chars as input seems more than enough
3845
    test $ac_count -gt 10 && break
3846
  done
3847
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848
esac
3849
 
3850
      $ac_path_GREP_found && break 3
3851
    done
3852
  done
3853
done
3854
IFS=$as_save_IFS
3855
  if test -z "$ac_cv_path_GREP"; then
3856
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858
   { (exit 1); exit 1; }; }
3859
  fi
3860
else
3861
  ac_cv_path_GREP=$GREP
3862
fi
3863
 
3864
fi
3865
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3866
$as_echo "$ac_cv_path_GREP" >&6; }
3867
 GREP="$ac_cv_path_GREP"
3868
 
3869
 
3870
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3871
$as_echo_n "checking for egrep... " >&6; }
3872
if test "${ac_cv_path_EGREP+set}" = set; then
3873
  $as_echo_n "(cached) " >&6
3874
else
3875
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3876
   then ac_cv_path_EGREP="$GREP -E"
3877
   else
3878
     if test -z "$EGREP"; then
3879
  ac_path_EGREP_found=false
3880
  # Loop through the user's path and test for each of PROGNAME-LIST
3881
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883
do
3884
  IFS=$as_save_IFS
3885
  test -z "$as_dir" && as_dir=.
3886
  for ac_prog in egrep; do
3887
    for ac_exec_ext in '' $ac_executable_extensions; do
3888
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3889
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3890
# Check for GNU ac_path_EGREP and select it if it is found.
3891
  # Check for GNU $ac_path_EGREP
3892
case `"$ac_path_EGREP" --version 2>&1` in
3893
*GNU*)
3894
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3895
*)
3896
  ac_count=0
3897
  $as_echo_n 0123456789 >"conftest.in"
3898
  while :
3899
  do
3900
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3901
    mv "conftest.tmp" "conftest.in"
3902
    cp "conftest.in" "conftest.nl"
3903
    $as_echo 'EGREP' >> "conftest.nl"
3904
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906
    ac_count=`expr $ac_count + 1`
3907
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3908
      # Best one so far, save it but keep looking for a better one
3909
      ac_cv_path_EGREP="$ac_path_EGREP"
3910
      ac_path_EGREP_max=$ac_count
3911
    fi
3912
    # 10*(2^10) chars as input seems more than enough
3913
    test $ac_count -gt 10 && break
3914
  done
3915
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916
esac
3917
 
3918
      $ac_path_EGREP_found && break 3
3919
    done
3920
  done
3921
done
3922
IFS=$as_save_IFS
3923
  if test -z "$ac_cv_path_EGREP"; then
3924
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3925
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3926
   { (exit 1); exit 1; }; }
3927
  fi
3928
else
3929
  ac_cv_path_EGREP=$EGREP
3930
fi
3931
 
3932
   fi
3933
fi
3934
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3935
$as_echo "$ac_cv_path_EGREP" >&6; }
3936
 EGREP="$ac_cv_path_EGREP"
3937
 
3938
 
3939
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3940
$as_echo_n "checking for ANSI C header files... " >&6; }
3941
if test "${ac_cv_header_stdc+set}" = set; then
3942
  $as_echo_n "(cached) " >&6
3943
else
3944
  cat >conftest.$ac_ext <<_ACEOF
3945
/* confdefs.h.  */
3946
_ACEOF
3947
cat confdefs.h >>conftest.$ac_ext
3948
cat >>conftest.$ac_ext <<_ACEOF
3949
/* end confdefs.h.  */
3950
#include <stdlib.h>
3951
#include <stdarg.h>
3952
#include <string.h>
3953
#include <float.h>
3954
 
3955
int
3956
main ()
3957
{
3958
 
3959
  ;
3960
  return 0;
3961
}
3962
_ACEOF
3963
rm -f conftest.$ac_objext
3964
if { (ac_try="$ac_compile"
3965
case "(($ac_try" in
3966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967
  *) ac_try_echo=$ac_try;;
3968
esac
3969
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970
$as_echo "$ac_try_echo") >&5
3971
  (eval "$ac_compile") 2>conftest.er1
3972
  ac_status=$?
3973
  grep -v '^ *+' conftest.er1 >conftest.err
3974
  rm -f conftest.er1
3975
  cat conftest.err >&5
3976
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977
  (exit $ac_status); } && {
3978
	 test -z "$ac_c_werror_flag" ||
3979
	 test ! -s conftest.err
3980
       } && test -s conftest.$ac_objext; then
3981
  ac_cv_header_stdc=yes
3982
else
3983
  $as_echo "$as_me: failed program was:" >&5
3984
sed 's/^/| /' conftest.$ac_ext >&5
3985
 
3986
	ac_cv_header_stdc=no
3987
fi
3988
 
3989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990
 
3991
if test $ac_cv_header_stdc = yes; then
3992
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3993
  cat >conftest.$ac_ext <<_ACEOF
3994
/* confdefs.h.  */
3995
_ACEOF
3996
cat confdefs.h >>conftest.$ac_ext
3997
cat >>conftest.$ac_ext <<_ACEOF
3998
/* end confdefs.h.  */
3999
#include <string.h>
4000
 
4001
_ACEOF
4002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003
  $EGREP "memchr" >/dev/null 2>&1; then
4004
  :
4005
else
4006
  ac_cv_header_stdc=no
4007
fi
4008
rm -f conftest*
4009
 
4010
fi
4011
 
4012
if test $ac_cv_header_stdc = yes; then
4013
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4014
  cat >conftest.$ac_ext <<_ACEOF
4015
/* confdefs.h.  */
4016
_ACEOF
4017
cat confdefs.h >>conftest.$ac_ext
4018
cat >>conftest.$ac_ext <<_ACEOF
4019
/* end confdefs.h.  */
4020
#include <stdlib.h>
4021
 
4022
_ACEOF
4023
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024
  $EGREP "free" >/dev/null 2>&1; then
4025
  :
4026
else
4027
  ac_cv_header_stdc=no
4028
fi
4029
rm -f conftest*
4030
 
4031
fi
4032
 
4033
if test $ac_cv_header_stdc = yes; then
4034
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4035
  if test "$cross_compiling" = yes; then
4036
  :
4037
else
4038
  cat >conftest.$ac_ext <<_ACEOF
4039
/* confdefs.h.  */
4040
_ACEOF
4041
cat confdefs.h >>conftest.$ac_ext
4042
cat >>conftest.$ac_ext <<_ACEOF
4043
/* end confdefs.h.  */
4044
#include <ctype.h>
4045
#include <stdlib.h>
4046
#if ((' ' & 0x0FF) == 0x020)
4047
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4048
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4049
#else
4050
# define ISLOWER(c) \
4051
		   (('a' <= (c) && (c) <= 'i') \
4052
		     || ('j' <= (c) && (c) <= 'r') \
4053
		     || ('s' <= (c) && (c) <= 'z'))
4054
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4055
#endif
4056
 
4057
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4058
int
4059
main ()
4060
{
4061
  int i;
4062
  for (i = 0; i < 256; i++)
4063
    if (XOR (islower (i), ISLOWER (i))
4064
	|| toupper (i) != TOUPPER (i))
4065
      return 2;
4066
  return 0;
4067
}
4068
_ACEOF
4069
rm -f conftest$ac_exeext
4070
if { (ac_try="$ac_link"
4071
case "(($ac_try" in
4072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073
  *) ac_try_echo=$ac_try;;
4074
esac
4075
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4076
$as_echo "$ac_try_echo") >&5
4077
  (eval "$ac_link") 2>&5
4078
  ac_status=$?
4079
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4081
  { (case "(($ac_try" in
4082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083
  *) ac_try_echo=$ac_try;;
4084
esac
4085
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4086
$as_echo "$ac_try_echo") >&5
4087
  (eval "$ac_try") 2>&5
4088
  ac_status=$?
4089
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090
  (exit $ac_status); }; }; then
4091
  :
4092
else
4093
  $as_echo "$as_me: program exited with status $ac_status" >&5
4094
$as_echo "$as_me: failed program was:" >&5
4095
sed 's/^/| /' conftest.$ac_ext >&5
4096
 
4097
( exit $ac_status )
4098
ac_cv_header_stdc=no
4099
fi
4100
rm -rf conftest.dSYM
4101
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4102
fi
4103
 
4104
 
4105
fi
4106
fi
4107
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4108
$as_echo "$ac_cv_header_stdc" >&6; }
4109
if test $ac_cv_header_stdc = yes; then
4110
 
4111
cat >>confdefs.h <<\_ACEOF
4112
#define STDC_HEADERS 1
4113
_ACEOF
4114
 
4115
fi
4116
 
4117
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4118
 
4119
 
4120
 
4121
 
4122
 
4123
 
4124
 
4125
 
4126
 
4127
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4128
		  inttypes.h stdint.h unistd.h
4129
do
4130
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4131
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4132
$as_echo_n "checking for $ac_header... " >&6; }
4133
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4134
  $as_echo_n "(cached) " >&6
4135
else
4136
  cat >conftest.$ac_ext <<_ACEOF
4137
/* confdefs.h.  */
4138
_ACEOF
4139
cat confdefs.h >>conftest.$ac_ext
4140
cat >>conftest.$ac_ext <<_ACEOF
4141
/* end confdefs.h.  */
4142
$ac_includes_default
4143
 
4144
#include <$ac_header>
4145
_ACEOF
4146
rm -f conftest.$ac_objext
4147
if { (ac_try="$ac_compile"
4148
case "(($ac_try" in
4149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150
  *) ac_try_echo=$ac_try;;
4151
esac
4152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4153
$as_echo "$ac_try_echo") >&5
4154
  (eval "$ac_compile") 2>conftest.er1
4155
  ac_status=$?
4156
  grep -v '^ *+' conftest.er1 >conftest.err
4157
  rm -f conftest.er1
4158
  cat conftest.err >&5
4159
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
  (exit $ac_status); } && {
4161
	 test -z "$ac_c_werror_flag" ||
4162
	 test ! -s conftest.err
4163
       } && test -s conftest.$ac_objext; then
4164
  eval "$as_ac_Header=yes"
4165
else
4166
  $as_echo "$as_me: failed program was:" >&5
4167
sed 's/^/| /' conftest.$ac_ext >&5
4168
 
4169
	eval "$as_ac_Header=no"
4170
fi
4171
 
4172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173
fi
4174
ac_res=`eval 'as_val=${'$as_ac_Header'}
4175
		 $as_echo "$as_val"'`
4176
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4177
$as_echo "$ac_res" >&6; }
4178
as_val=`eval 'as_val=${'$as_ac_Header'}
4179
		 $as_echo "$as_val"'`
4180
   if test "x$as_val" = x""yes; then
4181
  cat >>confdefs.h <<_ACEOF
4182
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4183
_ACEOF
4184
 
4185
fi
4186
 
4187
done
4188
 
4189
 
4190
 
4191
  if test "${ac_cv_header_minix_config_h+set}" = set; then
4192
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4193
$as_echo_n "checking for minix/config.h... " >&6; }
4194
if test "${ac_cv_header_minix_config_h+set}" = set; then
4195
  $as_echo_n "(cached) " >&6
4196
fi
4197
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4198
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4199
else
4200
  # Is the header compilable?
4201
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4202
$as_echo_n "checking minix/config.h usability... " >&6; }
4203
cat >conftest.$ac_ext <<_ACEOF
4204
/* confdefs.h.  */
4205
_ACEOF
4206
cat confdefs.h >>conftest.$ac_ext
4207
cat >>conftest.$ac_ext <<_ACEOF
4208
/* end confdefs.h.  */
4209
$ac_includes_default
4210
#include <minix/config.h>
4211
_ACEOF
4212
rm -f conftest.$ac_objext
4213
if { (ac_try="$ac_compile"
4214
case "(($ac_try" in
4215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216
  *) ac_try_echo=$ac_try;;
4217
esac
4218
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219
$as_echo "$ac_try_echo") >&5
4220
  (eval "$ac_compile") 2>conftest.er1
4221
  ac_status=$?
4222
  grep -v '^ *+' conftest.er1 >conftest.err
4223
  rm -f conftest.er1
4224
  cat conftest.err >&5
4225
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226
  (exit $ac_status); } && {
4227
	 test -z "$ac_c_werror_flag" ||
4228
	 test ! -s conftest.err
4229
       } && test -s conftest.$ac_objext; then
4230
  ac_header_compiler=yes
4231
else
4232
  $as_echo "$as_me: failed program was:" >&5
4233
sed 's/^/| /' conftest.$ac_ext >&5
4234
 
4235
	ac_header_compiler=no
4236
fi
4237
 
4238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4240
$as_echo "$ac_header_compiler" >&6; }
4241
 
4242
# Is the header present?
4243
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4244
$as_echo_n "checking minix/config.h presence... " >&6; }
4245
cat >conftest.$ac_ext <<_ACEOF
4246
/* confdefs.h.  */
4247
_ACEOF
4248
cat confdefs.h >>conftest.$ac_ext
4249
cat >>conftest.$ac_ext <<_ACEOF
4250
/* end confdefs.h.  */
4251
#include <minix/config.h>
4252
_ACEOF
4253
if { (ac_try="$ac_cpp conftest.$ac_ext"
4254
case "(($ac_try" in
4255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256
  *) ac_try_echo=$ac_try;;
4257
esac
4258
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4259
$as_echo "$ac_try_echo") >&5
4260
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4261
  ac_status=$?
4262
  grep -v '^ *+' conftest.er1 >conftest.err
4263
  rm -f conftest.er1
4264
  cat conftest.err >&5
4265
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266
  (exit $ac_status); } >/dev/null && {
4267
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4268
	 test ! -s conftest.err
4269
       }; then
4270
  ac_header_preproc=yes
4271
else
4272
  $as_echo "$as_me: failed program was:" >&5
4273
sed 's/^/| /' conftest.$ac_ext >&5
4274
 
4275
  ac_header_preproc=no
4276
fi
4277
 
4278
rm -f conftest.err conftest.$ac_ext
4279
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4280
$as_echo "$ac_header_preproc" >&6; }
4281
 
4282
# So?  What about this header?
4283
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4284
  yes:no: )
4285
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4286
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4287
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4288
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4289
    ac_header_preproc=yes
4290
    ;;
4291
  no:yes:* )
4292
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4293
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4294
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4295
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4296
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4297
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4298
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4299
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4300
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4301
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4302
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4303
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4304
 
4305
    ;;
4306
esac
4307
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4308
$as_echo_n "checking for minix/config.h... " >&6; }
4309
if test "${ac_cv_header_minix_config_h+set}" = set; then
4310
  $as_echo_n "(cached) " >&6
4311
else
4312
  ac_cv_header_minix_config_h=$ac_header_preproc
4313
fi
4314
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4315
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4316
 
4317
fi
4318
if test "x$ac_cv_header_minix_config_h" = x""yes; then
4319
  MINIX=yes
4320
else
4321
  MINIX=
4322
fi
4323
 
4324
 
4325
  if test "$MINIX" = yes; then
4326
 
4327
cat >>confdefs.h <<\_ACEOF
4328
#define _POSIX_SOURCE 1
4329
_ACEOF
4330
 
4331
 
4332
cat >>confdefs.h <<\_ACEOF
4333
#define _POSIX_1_SOURCE 2
4334
_ACEOF
4335
 
4336
 
4337
cat >>confdefs.h <<\_ACEOF
4338
#define _MINIX 1
4339
_ACEOF
4340
 
4341
  fi
4342
 
4343
 
4344
 
4345
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4346
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4347
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4348
  $as_echo_n "(cached) " >&6
4349
else
4350
  cat >conftest.$ac_ext <<_ACEOF
4351
/* confdefs.h.  */
4352
_ACEOF
4353
cat confdefs.h >>conftest.$ac_ext
4354
cat >>conftest.$ac_ext <<_ACEOF
4355
/* end confdefs.h.  */
4356
 
4357
#	  define __EXTENSIONS__ 1
4358
	  $ac_includes_default
4359
int
4360
main ()
4361
{
4362
 
4363
  ;
4364
  return 0;
4365
}
4366
_ACEOF
4367
rm -f conftest.$ac_objext
4368
if { (ac_try="$ac_compile"
4369
case "(($ac_try" in
4370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371
  *) ac_try_echo=$ac_try;;
4372
esac
4373
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4374
$as_echo "$ac_try_echo") >&5
4375
  (eval "$ac_compile") 2>conftest.er1
4376
  ac_status=$?
4377
  grep -v '^ *+' conftest.er1 >conftest.err
4378
  rm -f conftest.er1
4379
  cat conftest.err >&5
4380
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
  (exit $ac_status); } && {
4382
	 test -z "$ac_c_werror_flag" ||
4383
	 test ! -s conftest.err
4384
       } && test -s conftest.$ac_objext; then
4385
  ac_cv_safe_to_define___extensions__=yes
4386
else
4387
  $as_echo "$as_me: failed program was:" >&5
4388
sed 's/^/| /' conftest.$ac_ext >&5
4389
 
4390
	ac_cv_safe_to_define___extensions__=no
4391
fi
4392
 
4393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394
fi
4395
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4396
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4397
  test $ac_cv_safe_to_define___extensions__ = yes &&
4398
    cat >>confdefs.h <<\_ACEOF
4399
#define __EXTENSIONS__ 1
4400
_ACEOF
4401
 
4402
  cat >>confdefs.h <<\_ACEOF
4403
#define _ALL_SOURCE 1
4404
_ACEOF
4405
 
4406
  cat >>confdefs.h <<\_ACEOF
4407
#define _GNU_SOURCE 1
4408
_ACEOF
4409
 
4410
  cat >>confdefs.h <<\_ACEOF
4411
#define _POSIX_PTHREAD_SEMANTICS 1
4412
_ACEOF
4413
 
4414
  cat >>confdefs.h <<\_ACEOF
4415
#define _TANDEM_SOURCE 1
4416
_ACEOF
4417
 
4418
 
4419
ac_ext=c
4420
ac_cpp='$CPP $CPPFLAGS'
4421
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
if test -n "$ac_tool_prefix"; then
4425
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4426
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4427
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4428
$as_echo_n "checking for $ac_word... " >&6; }
4429
if test "${ac_cv_prog_CC+set}" = set; then
4430
  $as_echo_n "(cached) " >&6
4431
else
4432
  if test -n "$CC"; then
4433
  ac_cv_prog_CC="$CC" # Let the user override the test.
4434
else
4435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436
for as_dir in $PATH
4437
do
4438
  IFS=$as_save_IFS
4439
  test -z "$as_dir" && as_dir=.
4440
  for ac_exec_ext in '' $ac_executable_extensions; do
4441
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4443
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444
    break 2
4445
  fi
4446
done
4447
done
4448
IFS=$as_save_IFS
4449
 
4450
fi
4451
fi
4452
CC=$ac_cv_prog_CC
4453
if test -n "$CC"; then
4454
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4455
$as_echo "$CC" >&6; }
4456
else
4457
  { $as_echo "$as_me:$LINENO: result: no" >&5
4458
$as_echo "no" >&6; }
4459
fi
4460
 
4461
 
4462
fi
4463
if test -z "$ac_cv_prog_CC"; then
4464
  ac_ct_CC=$CC
4465
  # Extract the first word of "gcc", so it can be a program name with args.
4466
set dummy gcc; ac_word=$2
4467
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4468
$as_echo_n "checking for $ac_word... " >&6; }
4469
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4470
  $as_echo_n "(cached) " >&6
4471
else
4472
  if test -n "$ac_ct_CC"; then
4473
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4474
else
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476
for as_dir in $PATH
4477
do
4478
  IFS=$as_save_IFS
4479
  test -z "$as_dir" && as_dir=.
4480
  for ac_exec_ext in '' $ac_executable_extensions; do
4481
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482
    ac_cv_prog_ac_ct_CC="gcc"
4483
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484
    break 2
4485
  fi
4486
done
4487
done
4488
IFS=$as_save_IFS
4489
 
4490
fi
4491
fi
4492
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4493
if test -n "$ac_ct_CC"; then
4494
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4495
$as_echo "$ac_ct_CC" >&6; }
4496
else
4497
  { $as_echo "$as_me:$LINENO: result: no" >&5
4498
$as_echo "no" >&6; }
4499
fi
4500
 
4501
  if test "x$ac_ct_CC" = x; then
4502
    CC=""
4503
  else
4504
    case $cross_compiling:$ac_tool_warned in
4505
yes:)
4506
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4507
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508
ac_tool_warned=yes ;;
4509
esac
4510
    CC=$ac_ct_CC
4511
  fi
4512
else
4513
  CC="$ac_cv_prog_CC"
4514
fi
4515
 
4516
if test -z "$CC"; then
4517
          if test -n "$ac_tool_prefix"; then
4518
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4519
set dummy ${ac_tool_prefix}cc; ac_word=$2
4520
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4521
$as_echo_n "checking for $ac_word... " >&6; }
4522
if test "${ac_cv_prog_CC+set}" = set; then
4523
  $as_echo_n "(cached) " >&6
4524
else
4525
  if test -n "$CC"; then
4526
  ac_cv_prog_CC="$CC" # Let the user override the test.
4527
else
4528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529
for as_dir in $PATH
4530
do
4531
  IFS=$as_save_IFS
4532
  test -z "$as_dir" && as_dir=.
4533
  for ac_exec_ext in '' $ac_executable_extensions; do
4534
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4536
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537
    break 2
4538
  fi
4539
done
4540
done
4541
IFS=$as_save_IFS
4542
 
4543
fi
4544
fi
4545
CC=$ac_cv_prog_CC
4546
if test -n "$CC"; then
4547
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4548
$as_echo "$CC" >&6; }
4549
else
4550
  { $as_echo "$as_me:$LINENO: result: no" >&5
4551
$as_echo "no" >&6; }
4552
fi
4553
 
4554
 
4555
  fi
4556
fi
4557
if test -z "$CC"; then
4558
  # Extract the first word of "cc", so it can be a program name with args.
4559
set dummy cc; ac_word=$2
4560
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4561
$as_echo_n "checking for $ac_word... " >&6; }
4562
if test "${ac_cv_prog_CC+set}" = set; then
4563
  $as_echo_n "(cached) " >&6
4564
else
4565
  if test -n "$CC"; then
4566
  ac_cv_prog_CC="$CC" # Let the user override the test.
4567
else
4568
  ac_prog_rejected=no
4569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570
for as_dir in $PATH
4571
do
4572
  IFS=$as_save_IFS
4573
  test -z "$as_dir" && as_dir=.
4574
  for ac_exec_ext in '' $ac_executable_extensions; do
4575
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4577
       ac_prog_rejected=yes
4578
       continue
4579
     fi
4580
    ac_cv_prog_CC="cc"
4581
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582
    break 2
4583
  fi
4584
done
4585
done
4586
IFS=$as_save_IFS
4587
 
4588
if test $ac_prog_rejected = yes; then
4589
  # We found a bogon in the path, so make sure we never use it.
4590
  set dummy $ac_cv_prog_CC
4591
  shift
4592
  if test $# != 0; then
4593
    # We chose a different compiler from the bogus one.
4594
    # However, it has the same basename, so the bogon will be chosen
4595
    # first if we set CC to just the basename; use the full file name.
4596
    shift
4597
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4598
  fi
4599
fi
4600
fi
4601
fi
4602
CC=$ac_cv_prog_CC
4603
if test -n "$CC"; then
4604
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4605
$as_echo "$CC" >&6; }
4606
else
4607
  { $as_echo "$as_me:$LINENO: result: no" >&5
4608
$as_echo "no" >&6; }
4609
fi
4610
 
4611
 
4612
fi
4613
if test -z "$CC"; then
4614
  if test -n "$ac_tool_prefix"; then
4615
  for ac_prog in cl.exe
4616
  do
4617
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4618
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4619
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4620
$as_echo_n "checking for $ac_word... " >&6; }
4621
if test "${ac_cv_prog_CC+set}" = set; then
4622
  $as_echo_n "(cached) " >&6
4623
else
4624
  if test -n "$CC"; then
4625
  ac_cv_prog_CC="$CC" # Let the user override the test.
4626
else
4627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628
for as_dir in $PATH
4629
do
4630
  IFS=$as_save_IFS
4631
  test -z "$as_dir" && as_dir=.
4632
  for ac_exec_ext in '' $ac_executable_extensions; do
4633
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4635
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636
    break 2
4637
  fi
4638
done
4639
done
4640
IFS=$as_save_IFS
4641
 
4642
fi
4643
fi
4644
CC=$ac_cv_prog_CC
4645
if test -n "$CC"; then
4646
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4647
$as_echo "$CC" >&6; }
4648
else
4649
  { $as_echo "$as_me:$LINENO: result: no" >&5
4650
$as_echo "no" >&6; }
4651
fi
4652
 
4653
 
4654
    test -n "$CC" && break
4655
  done
4656
fi
4657
if test -z "$CC"; then
4658
  ac_ct_CC=$CC
4659
  for ac_prog in cl.exe
4660
do
4661
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4662
set dummy $ac_prog; ac_word=$2
4663
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4664
$as_echo_n "checking for $ac_word... " >&6; }
4665
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4666
  $as_echo_n "(cached) " >&6
4667
else
4668
  if test -n "$ac_ct_CC"; then
4669
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4670
else
4671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672
for as_dir in $PATH
4673
do
4674
  IFS=$as_save_IFS
4675
  test -z "$as_dir" && as_dir=.
4676
  for ac_exec_ext in '' $ac_executable_extensions; do
4677
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678
    ac_cv_prog_ac_ct_CC="$ac_prog"
4679
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680
    break 2
4681
  fi
4682
done
4683
done
4684
IFS=$as_save_IFS
4685
 
4686
fi
4687
fi
4688
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4689
if test -n "$ac_ct_CC"; then
4690
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4691
$as_echo "$ac_ct_CC" >&6; }
4692
else
4693
  { $as_echo "$as_me:$LINENO: result: no" >&5
4694
$as_echo "no" >&6; }
4695
fi
4696
 
4697
 
4698
  test -n "$ac_ct_CC" && break
4699
done
4700
 
4701
  if test "x$ac_ct_CC" = x; then
4702
    CC=""
4703
  else
4704
    case $cross_compiling:$ac_tool_warned in
4705
yes:)
4706
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4707
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708
ac_tool_warned=yes ;;
4709
esac
4710
    CC=$ac_ct_CC
4711
  fi
4712
fi
4713
 
4714
fi
4715
 
4716
 
4717
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4718
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4719
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4720
See \`config.log' for more details." >&5
4721
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4722
See \`config.log' for more details." >&2;}
4723
   { (exit 1); exit 1; }; }; }
4724
 
4725
# Provide some information about the compiler.
4726
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4727
set X $ac_compile
4728
ac_compiler=$2
4729
{ (ac_try="$ac_compiler --version >&5"
4730
case "(($ac_try" in
4731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732
  *) ac_try_echo=$ac_try;;
4733
esac
4734
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735
$as_echo "$ac_try_echo") >&5
4736
  (eval "$ac_compiler --version >&5") 2>&5
4737
  ac_status=$?
4738
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
  (exit $ac_status); }
4740
{ (ac_try="$ac_compiler -v >&5"
4741
case "(($ac_try" in
4742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743
  *) ac_try_echo=$ac_try;;
4744
esac
4745
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746
$as_echo "$ac_try_echo") >&5
4747
  (eval "$ac_compiler -v >&5") 2>&5
4748
  ac_status=$?
4749
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750
  (exit $ac_status); }
4751
{ (ac_try="$ac_compiler -V >&5"
4752
case "(($ac_try" in
4753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754
  *) ac_try_echo=$ac_try;;
4755
esac
4756
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757
$as_echo "$ac_try_echo") >&5
4758
  (eval "$ac_compiler -V >&5") 2>&5
4759
  ac_status=$?
4760
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761
  (exit $ac_status); }
4762
 
4763
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4764
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4765
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4766
  $as_echo_n "(cached) " >&6
4767
else
4768
  cat >conftest.$ac_ext <<_ACEOF
4769
/* confdefs.h.  */
4770
_ACEOF
4771
cat confdefs.h >>conftest.$ac_ext
4772
cat >>conftest.$ac_ext <<_ACEOF
4773
/* end confdefs.h.  */
4774
 
4775
int
4776
main ()
4777
{
4778
#ifndef __GNUC__
4779
       choke me
4780
#endif
4781
 
4782
  ;
4783
  return 0;
4784
}
4785
_ACEOF
4786
rm -f conftest.$ac_objext
4787
if { (ac_try="$ac_compile"
4788
case "(($ac_try" in
4789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790
  *) ac_try_echo=$ac_try;;
4791
esac
4792
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793
$as_echo "$ac_try_echo") >&5
4794
  (eval "$ac_compile") 2>conftest.er1
4795
  ac_status=$?
4796
  grep -v '^ *+' conftest.er1 >conftest.err
4797
  rm -f conftest.er1
4798
  cat conftest.err >&5
4799
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800
  (exit $ac_status); } && {
4801
	 test -z "$ac_c_werror_flag" ||
4802
	 test ! -s conftest.err
4803
       } && test -s conftest.$ac_objext; then
4804
  ac_compiler_gnu=yes
4805
else
4806
  $as_echo "$as_me: failed program was:" >&5
4807
sed 's/^/| /' conftest.$ac_ext >&5
4808
 
4809
	ac_compiler_gnu=no
4810
fi
4811
 
4812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4814
 
4815
fi
4816
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4817
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4818
if test $ac_compiler_gnu = yes; then
4819
  GCC=yes
4820
else
4821
  GCC=
4822
fi
4823
ac_test_CFLAGS=${CFLAGS+set}
4824
ac_save_CFLAGS=$CFLAGS
4825
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4826
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4827
if test "${ac_cv_prog_cc_g+set}" = set; then
4828
  $as_echo_n "(cached) " >&6
4829
else
4830
  ac_save_c_werror_flag=$ac_c_werror_flag
4831
   ac_c_werror_flag=yes
4832
   ac_cv_prog_cc_g=no
4833
   CFLAGS="-g"
4834
   cat >conftest.$ac_ext <<_ACEOF
4835
/* confdefs.h.  */
4836
_ACEOF
4837
cat confdefs.h >>conftest.$ac_ext
4838
cat >>conftest.$ac_ext <<_ACEOF
4839
/* end confdefs.h.  */
4840
 
4841
int
4842
main ()
4843
{
4844
 
4845
  ;
4846
  return 0;
4847
}
4848
_ACEOF
4849
rm -f conftest.$ac_objext
4850
if { (ac_try="$ac_compile"
4851
case "(($ac_try" in
4852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853
  *) ac_try_echo=$ac_try;;
4854
esac
4855
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856
$as_echo "$ac_try_echo") >&5
4857
  (eval "$ac_compile") 2>conftest.er1
4858
  ac_status=$?
4859
  grep -v '^ *+' conftest.er1 >conftest.err
4860
  rm -f conftest.er1
4861
  cat conftest.err >&5
4862
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863
  (exit $ac_status); } && {
4864
	 test -z "$ac_c_werror_flag" ||
4865
	 test ! -s conftest.err
4866
       } && test -s conftest.$ac_objext; then
4867
  ac_cv_prog_cc_g=yes
4868
else
4869
  $as_echo "$as_me: failed program was:" >&5
4870
sed 's/^/| /' conftest.$ac_ext >&5
4871
 
4872
	CFLAGS=""
4873
      cat >conftest.$ac_ext <<_ACEOF
4874
/* confdefs.h.  */
4875
_ACEOF
4876
cat confdefs.h >>conftest.$ac_ext
4877
cat >>conftest.$ac_ext <<_ACEOF
4878
/* end confdefs.h.  */
4879
 
4880
int
4881
main ()
4882
{
4883
 
4884
  ;
4885
  return 0;
4886
}
4887
_ACEOF
4888
rm -f conftest.$ac_objext
4889
if { (ac_try="$ac_compile"
4890
case "(($ac_try" in
4891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892
  *) ac_try_echo=$ac_try;;
4893
esac
4894
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4895
$as_echo "$ac_try_echo") >&5
4896
  (eval "$ac_compile") 2>conftest.er1
4897
  ac_status=$?
4898
  grep -v '^ *+' conftest.er1 >conftest.err
4899
  rm -f conftest.er1
4900
  cat conftest.err >&5
4901
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902
  (exit $ac_status); } && {
4903
	 test -z "$ac_c_werror_flag" ||
4904
	 test ! -s conftest.err
4905
       } && test -s conftest.$ac_objext; then
4906
  :
4907
else
4908
  $as_echo "$as_me: failed program was:" >&5
4909
sed 's/^/| /' conftest.$ac_ext >&5
4910
 
4911
	ac_c_werror_flag=$ac_save_c_werror_flag
4912
	 CFLAGS="-g"
4913
	 cat >conftest.$ac_ext <<_ACEOF
4914
/* confdefs.h.  */
4915
_ACEOF
4916
cat confdefs.h >>conftest.$ac_ext
4917
cat >>conftest.$ac_ext <<_ACEOF
4918
/* end confdefs.h.  */
4919
 
4920
int
4921
main ()
4922
{
4923
 
4924
  ;
4925
  return 0;
4926
}
4927
_ACEOF
4928
rm -f conftest.$ac_objext
4929
if { (ac_try="$ac_compile"
4930
case "(($ac_try" in
4931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932
  *) ac_try_echo=$ac_try;;
4933
esac
4934
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935
$as_echo "$ac_try_echo") >&5
4936
  (eval "$ac_compile") 2>conftest.er1
4937
  ac_status=$?
4938
  grep -v '^ *+' conftest.er1 >conftest.err
4939
  rm -f conftest.er1
4940
  cat conftest.err >&5
4941
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942
  (exit $ac_status); } && {
4943
	 test -z "$ac_c_werror_flag" ||
4944
	 test ! -s conftest.err
4945
       } && test -s conftest.$ac_objext; then
4946
  ac_cv_prog_cc_g=yes
4947
else
4948
  $as_echo "$as_me: failed program was:" >&5
4949
sed 's/^/| /' conftest.$ac_ext >&5
4950
 
4951
 
4952
fi
4953
 
4954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
fi
4956
 
4957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958
fi
4959
 
4960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961
   ac_c_werror_flag=$ac_save_c_werror_flag
4962
fi
4963
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4964
$as_echo "$ac_cv_prog_cc_g" >&6; }
4965
if test "$ac_test_CFLAGS" = set; then
4966
  CFLAGS=$ac_save_CFLAGS
4967
elif test $ac_cv_prog_cc_g = yes; then
4968
  if test "$GCC" = yes; then
4969
    CFLAGS="-g -O2"
4970
  else
4971
    CFLAGS="-g"
4972
  fi
4973
else
4974
  if test "$GCC" = yes; then
4975
    CFLAGS="-O2"
4976
  else
4977
    CFLAGS=
4978
  fi
4979
fi
4980
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4981
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4982
if test "${ac_cv_prog_cc_c89+set}" = set; then
4983
  $as_echo_n "(cached) " >&6
4984
else
4985
  ac_cv_prog_cc_c89=no
4986
ac_save_CC=$CC
4987
cat >conftest.$ac_ext <<_ACEOF
4988
/* confdefs.h.  */
4989
_ACEOF
4990
cat confdefs.h >>conftest.$ac_ext
4991
cat >>conftest.$ac_ext <<_ACEOF
4992
/* end confdefs.h.  */
4993
#include <stdarg.h>
4994
#include <stdio.h>
4995
#include <sys/types.h>
4996
#include <sys/stat.h>
4997
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4998
struct buf { int x; };
4999
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5000
static char *e (p, i)
5001
     char **p;
5002
     int i;
5003
{
5004
  return p[i];
5005
}
5006
static char *f (char * (*g) (char **, int), char **p, ...)
5007
{
5008
  char *s;
5009
  va_list v;
5010
  va_start (v,p);
5011
  s = g (p, va_arg (v,int));
5012
  va_end (v);
5013
  return s;
5014
}
5015
 
5016
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5017
   function prototypes and stuff, but not '\xHH' hex character constants.
5018
   These don't provoke an error unfortunately, instead are silently treated
5019
   as 'x'.  The following induces an error, until -std is added to get
5020
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5021
   array size at least.  It's necessary to write '\x00'==0 to get something
5022
   that's true only with -std.  */
5023
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5024
 
5025
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5026
   inside strings and character constants.  */
5027
#define FOO(x) 'x'
5028
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5029
 
5030
int test (int i, double x);
5031
struct s1 {int (*f) (int a);};
5032
struct s2 {int (*f) (double a);};
5033
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5034
int argc;
5035
char **argv;
5036
int
5037
main ()
5038
{
5039
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5040
  ;
5041
  return 0;
5042
}
5043
_ACEOF
5044
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5045
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5046
do
5047
  CC="$ac_save_CC $ac_arg"
5048
  rm -f conftest.$ac_objext
5049
if { (ac_try="$ac_compile"
5050
case "(($ac_try" in
5051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052
  *) ac_try_echo=$ac_try;;
5053
esac
5054
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5055
$as_echo "$ac_try_echo") >&5
5056
  (eval "$ac_compile") 2>conftest.er1
5057
  ac_status=$?
5058
  grep -v '^ *+' conftest.er1 >conftest.err
5059
  rm -f conftest.er1
5060
  cat conftest.err >&5
5061
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062
  (exit $ac_status); } && {
5063
	 test -z "$ac_c_werror_flag" ||
5064
	 test ! -s conftest.err
5065
       } && test -s conftest.$ac_objext; then
5066
  ac_cv_prog_cc_c89=$ac_arg
5067
else
5068
  $as_echo "$as_me: failed program was:" >&5
5069
sed 's/^/| /' conftest.$ac_ext >&5
5070
 
5071
 
5072
fi
5073
 
5074
rm -f core conftest.err conftest.$ac_objext
5075
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5076
done
5077
rm -f conftest.$ac_ext
5078
CC=$ac_save_CC
5079
 
5080
fi
5081
# AC_CACHE_VAL
5082
case "x$ac_cv_prog_cc_c89" in
5083
  x)
5084
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5085
$as_echo "none needed" >&6; } ;;
5086
  xno)
5087
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5088
$as_echo "unsupported" >&6; } ;;
5089
  *)
5090
    CC="$CC $ac_cv_prog_cc_c89"
5091
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5092
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5093
esac
5094
 
5095
 
5096
ac_ext=c
5097
ac_cpp='$CPP $CPPFLAGS'
5098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
 
5102
case `pwd` in
5103
  *\ * | *\	*)
5104
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5105
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5106
esac
5107
 
5108
 
5109
 
5110
macro_version='2.2.6'
5111
macro_revision='1.3012'
5112
 
5113
 
5114
 
5115
 
5116
 
5117
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
ltmain="$ac_aux_dir/ltmain.sh"
5126
 
5127
# Make sure we can run config.sub.
5128
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5129
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5130
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5131
   { (exit 1); exit 1; }; }
5132
 
5133
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
5134
$as_echo_n "checking build system type... " >&6; }
5135
if test "${ac_cv_build+set}" = set; then
5136
  $as_echo_n "(cached) " >&6
5137
else
5138
  ac_build_alias=$build_alias
5139
test "x$ac_build_alias" = x &&
5140
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5141
test "x$ac_build_alias" = x &&
5142
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5143
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5144
   { (exit 1); exit 1; }; }
5145
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5146
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5147
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5148
   { (exit 1); exit 1; }; }
5149
 
5150
fi
5151
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5152
$as_echo "$ac_cv_build" >&6; }
5153
case $ac_cv_build in
5154
*-*-*) ;;
5155
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5156
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
5157
   { (exit 1); exit 1; }; };;
5158
esac
5159
build=$ac_cv_build
5160
ac_save_IFS=$IFS; IFS='-'
5161
set x $ac_cv_build
5162
shift
5163
build_cpu=$1
5164
build_vendor=$2
5165
shift; shift
5166
# Remember, the first character of IFS is used to create $*,
5167
# except with old shells:
5168
build_os=$*
5169
IFS=$ac_save_IFS
5170
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5171
 
5172
 
5173
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
5174
$as_echo_n "checking host system type... " >&6; }
5175
if test "${ac_cv_host+set}" = set; then
5176
  $as_echo_n "(cached) " >&6
5177
else
5178
  if test "x$host_alias" = x; then
5179
  ac_cv_host=$ac_cv_build
5180
else
5181
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5182
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5183
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5184
   { (exit 1); exit 1; }; }
5185
fi
5186
 
5187
fi
5188
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5189
$as_echo "$ac_cv_host" >&6; }
5190
case $ac_cv_host in
5191
*-*-*) ;;
5192
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5193
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
5194
   { (exit 1); exit 1; }; };;
5195
esac
5196
host=$ac_cv_host
5197
ac_save_IFS=$IFS; IFS='-'
5198
set x $ac_cv_host
5199
shift
5200
host_cpu=$1
5201
host_vendor=$2
5202
shift; shift
5203
# Remember, the first character of IFS is used to create $*,
5204
# except with old shells:
5205
host_os=$*
5206
IFS=$ac_save_IFS
5207
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5208
 
5209
 
5210
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5211
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5212
if test "${ac_cv_path_SED+set}" = set; then
5213
  $as_echo_n "(cached) " >&6
5214
else
5215
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5216
     for ac_i in 1 2 3 4 5 6 7; do
5217
       ac_script="$ac_script$as_nl$ac_script"
5218
     done
5219
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5220
     $as_unset ac_script || ac_script=
5221
     if test -z "$SED"; then
5222
  ac_path_SED_found=false
5223
  # Loop through the user's path and test for each of PROGNAME-LIST
5224
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225
for as_dir in $PATH
5226
do
5227
  IFS=$as_save_IFS
5228
  test -z "$as_dir" && as_dir=.
5229
  for ac_prog in sed gsed; do
5230
    for ac_exec_ext in '' $ac_executable_extensions; do
5231
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5232
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5233
# Check for GNU ac_path_SED and select it if it is found.
5234
  # Check for GNU $ac_path_SED
5235
case `"$ac_path_SED" --version 2>&1` in
5236
*GNU*)
5237
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5238
*)
5239
  ac_count=0
5240
  $as_echo_n 0123456789 >"conftest.in"
5241
  while :
5242
  do
5243
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5244
    mv "conftest.tmp" "conftest.in"
5245
    cp "conftest.in" "conftest.nl"
5246
    $as_echo '' >> "conftest.nl"
5247
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5248
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5249
    ac_count=`expr $ac_count + 1`
5250
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5251
      # Best one so far, save it but keep looking for a better one
5252
      ac_cv_path_SED="$ac_path_SED"
5253
      ac_path_SED_max=$ac_count
5254
    fi
5255
    # 10*(2^10) chars as input seems more than enough
5256
    test $ac_count -gt 10 && break
5257
  done
5258
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5259
esac
5260
 
5261
      $ac_path_SED_found && break 3
5262
    done
5263
  done
5264
done
5265
IFS=$as_save_IFS
5266
  if test -z "$ac_cv_path_SED"; then
5267
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5268
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5269
   { (exit 1); exit 1; }; }
5270
  fi
5271
else
5272
  ac_cv_path_SED=$SED
5273
fi
5274
 
5275
fi
5276
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5277
$as_echo "$ac_cv_path_SED" >&6; }
5278
 SED="$ac_cv_path_SED"
5279
  rm -f conftest.sed
5280
 
5281
test -z "$SED" && SED=sed
5282
Xsed="$SED -e 1s/^X//"
5283
 
5284
 
5285
 
5286
 
5287
 
5288
 
5289
 
5290
 
5291
 
5292
 
5293
 
5294
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5295
$as_echo_n "checking for fgrep... " >&6; }
5296
if test "${ac_cv_path_FGREP+set}" = set; then
5297
  $as_echo_n "(cached) " >&6
5298
else
5299
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5300
   then ac_cv_path_FGREP="$GREP -F"
5301
   else
5302
     if test -z "$FGREP"; then
5303
  ac_path_FGREP_found=false
5304
  # Loop through the user's path and test for each of PROGNAME-LIST
5305
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5307
do
5308
  IFS=$as_save_IFS
5309
  test -z "$as_dir" && as_dir=.
5310
  for ac_prog in fgrep; do
5311
    for ac_exec_ext in '' $ac_executable_extensions; do
5312
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5313
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5314
# Check for GNU ac_path_FGREP and select it if it is found.
5315
  # Check for GNU $ac_path_FGREP
5316
case `"$ac_path_FGREP" --version 2>&1` in
5317
*GNU*)
5318
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5319
*)
5320
  ac_count=0
5321
  $as_echo_n 0123456789 >"conftest.in"
5322
  while :
5323
  do
5324
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5325
    mv "conftest.tmp" "conftest.in"
5326
    cp "conftest.in" "conftest.nl"
5327
    $as_echo 'FGREP' >> "conftest.nl"
5328
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330
    ac_count=`expr $ac_count + 1`
5331
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5332
      # Best one so far, save it but keep looking for a better one
5333
      ac_cv_path_FGREP="$ac_path_FGREP"
5334
      ac_path_FGREP_max=$ac_count
5335
    fi
5336
    # 10*(2^10) chars as input seems more than enough
5337
    test $ac_count -gt 10 && break
5338
  done
5339
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340
esac
5341
 
5342
      $ac_path_FGREP_found && break 3
5343
    done
5344
  done
5345
done
5346
IFS=$as_save_IFS
5347
  if test -z "$ac_cv_path_FGREP"; then
5348
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5349
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5350
   { (exit 1); exit 1; }; }
5351
  fi
5352
else
5353
  ac_cv_path_FGREP=$FGREP
5354
fi
5355
 
5356
   fi
5357
fi
5358
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5359
$as_echo "$ac_cv_path_FGREP" >&6; }
5360
 FGREP="$ac_cv_path_FGREP"
5361
 
5362
 
5363
test -z "$GREP" && GREP=grep
5364
 
5365
 
5366
 
5367
 
5368
 
5369
 
5370
 
5371
 
5372
 
5373
 
5374
 
5375
 
5376
 
5377
 
5378
 
5379
 
5380
 
5381
 
5382
 
5383
# Check whether --with-gnu-ld was given.
5384
if test "${with_gnu_ld+set}" = set; then
5385
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5386
else
5387
  with_gnu_ld=no
5388
fi
5389
 
5390
ac_prog=ld
5391
if test "$GCC" = yes; then
5392
  # Check if gcc -print-prog-name=ld gives a path.
5393
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5394
$as_echo_n "checking for ld used by $CC... " >&6; }
5395
  case $host in
5396
  *-*-mingw*)
5397
    # gcc leaves a trailing carriage return which upsets mingw
5398
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5399
  *)
5400
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5401
  esac
5402
  case $ac_prog in
5403
    # Accept absolute paths.
5404
    [\\/]* | ?:[\\/]*)
5405
      re_direlt='/[^/][^/]*/\.\./'
5406
      # Canonicalize the pathname of ld
5407
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5408
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5409
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5410
      done
5411
      test -z "$LD" && LD="$ac_prog"
5412
      ;;
5413
  "")
5414
    # If it fails, then pretend we aren't using GCC.
5415
    ac_prog=ld
5416
    ;;
5417
  *)
5418
    # If it is relative, then search for the first ld in PATH.
5419
    with_gnu_ld=unknown
5420
    ;;
5421
  esac
5422
elif test "$with_gnu_ld" = yes; then
5423
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5424
$as_echo_n "checking for GNU ld... " >&6; }
5425
else
5426
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5427
$as_echo_n "checking for non-GNU ld... " >&6; }
5428
fi
5429
if test "${lt_cv_path_LD+set}" = set; then
5430
  $as_echo_n "(cached) " >&6
5431
else
5432
  if test -z "$LD"; then
5433
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434
  for ac_dir in $PATH; do
5435
    IFS="$lt_save_ifs"
5436
    test -z "$ac_dir" && ac_dir=.
5437
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5438
      lt_cv_path_LD="$ac_dir/$ac_prog"
5439
      # Check to see if the program is GNU ld.  I'd rather use --version,
5440
      # but apparently some variants of GNU ld only accept -v.
5441
      # Break only if it was the GNU/non-GNU ld that we prefer.
5442
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443
      *GNU* | *'with BFD'*)
5444
	test "$with_gnu_ld" != no && break
5445
	;;
5446
      *)
5447
	test "$with_gnu_ld" != yes && break
5448
	;;
5449
      esac
5450
    fi
5451
  done
5452
  IFS="$lt_save_ifs"
5453
else
5454
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5455
fi
5456
fi
5457
 
5458
LD="$lt_cv_path_LD"
5459
if test -n "$LD"; then
5460
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5461
$as_echo "$LD" >&6; }
5462
else
5463
  { $as_echo "$as_me:$LINENO: result: no" >&5
5464
$as_echo "no" >&6; }
5465
fi
5466
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5467
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5468
   { (exit 1); exit 1; }; }
5469
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5470
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5471
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5472
  $as_echo_n "(cached) " >&6
5473
else
5474
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5475
case `$LD -v 2>&1 </dev/null` in
5476
*GNU* | *'with BFD'*)
5477
  lt_cv_prog_gnu_ld=yes
5478
  ;;
5479
*)
5480
  lt_cv_prog_gnu_ld=no
5481
  ;;
5482
esac
5483
fi
5484
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5485
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5486
with_gnu_ld=$lt_cv_prog_gnu_ld
5487
 
5488
 
5489
 
5490
 
5491
 
5492
 
5493
 
5494
 
5495
 
5496
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5497
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5498
if test "${lt_cv_path_NM+set}" = set; then
5499
  $as_echo_n "(cached) " >&6
5500
else
5501
  if test -n "$NM"; then
5502
  # Let the user override the test.
5503
  lt_cv_path_NM="$NM"
5504
else
5505
  lt_nm_to_check="${ac_tool_prefix}nm"
5506
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5507
    lt_nm_to_check="$lt_nm_to_check nm"
5508
  fi
5509
  for lt_tmp_nm in $lt_nm_to_check; do
5510
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5511
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5512
      IFS="$lt_save_ifs"
5513
      test -z "$ac_dir" && ac_dir=.
5514
      tmp_nm="$ac_dir/$lt_tmp_nm"
5515
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5516
	# Check to see if the nm accepts a BSD-compat flag.
5517
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5518
	#   nm: unknown option "B" ignored
5519
	# Tru64's nm complains that /dev/null is an invalid object file
5520
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5521
	*/dev/null* | *'Invalid file or object type'*)
5522
	  lt_cv_path_NM="$tmp_nm -B"
5523
	  break
5524
	  ;;
5525
	*)
5526
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5527
	  */dev/null*)
5528
	    lt_cv_path_NM="$tmp_nm -p"
5529
	    break
5530
	    ;;
5531
	  *)
5532
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5533
	    continue # so that we can try to find one that supports BSD flags
5534
	    ;;
5535
	  esac
5536
	  ;;
5537
	esac
5538
      fi
5539
    done
5540
    IFS="$lt_save_ifs"
5541
  done
5542
  : ${lt_cv_path_NM=no}
5543
fi
5544
fi
5545
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5546
$as_echo "$lt_cv_path_NM" >&6; }
5547
if test "$lt_cv_path_NM" != "no"; then
5548
  NM="$lt_cv_path_NM"
5549
else
5550
  # Didn't find any BSD compatible name lister, look for dumpbin.
5551
  if test -n "$ac_tool_prefix"; then
5552
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5553
  do
5554
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557
$as_echo_n "checking for $ac_word... " >&6; }
5558
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5559
  $as_echo_n "(cached) " >&6
5560
else
5561
  if test -n "$DUMPBIN"; then
5562
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5563
else
5564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565
for as_dir in $PATH
5566
do
5567
  IFS=$as_save_IFS
5568
  test -z "$as_dir" && as_dir=.
5569
  for ac_exec_ext in '' $ac_executable_extensions; do
5570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5572
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573
    break 2
5574
  fi
5575
done
5576
done
5577
IFS=$as_save_IFS
5578
 
5579
fi
5580
fi
5581
DUMPBIN=$ac_cv_prog_DUMPBIN
5582
if test -n "$DUMPBIN"; then
5583
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5584
$as_echo "$DUMPBIN" >&6; }
5585
else
5586
  { $as_echo "$as_me:$LINENO: result: no" >&5
5587
$as_echo "no" >&6; }
5588
fi
5589
 
5590
 
5591
    test -n "$DUMPBIN" && break
5592
  done
5593
fi
5594
if test -z "$DUMPBIN"; then
5595
  ac_ct_DUMPBIN=$DUMPBIN
5596
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5597
do
5598
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5599
set dummy $ac_prog; ac_word=$2
5600
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601
$as_echo_n "checking for $ac_word... " >&6; }
5602
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5603
  $as_echo_n "(cached) " >&6
5604
else
5605
  if test -n "$ac_ct_DUMPBIN"; then
5606
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5607
else
5608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609
for as_dir in $PATH
5610
do
5611
  IFS=$as_save_IFS
5612
  test -z "$as_dir" && as_dir=.
5613
  for ac_exec_ext in '' $ac_executable_extensions; do
5614
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5616
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617
    break 2
5618
  fi
5619
done
5620
done
5621
IFS=$as_save_IFS
5622
 
5623
fi
5624
fi
5625
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5626
if test -n "$ac_ct_DUMPBIN"; then
5627
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5628
$as_echo "$ac_ct_DUMPBIN" >&6; }
5629
else
5630
  { $as_echo "$as_me:$LINENO: result: no" >&5
5631
$as_echo "no" >&6; }
5632
fi
5633
 
5634
 
5635
  test -n "$ac_ct_DUMPBIN" && break
5636
done
5637
 
5638
  if test "x$ac_ct_DUMPBIN" = x; then
5639
    DUMPBIN=":"
5640
  else
5641
    case $cross_compiling:$ac_tool_warned in
5642
yes:)
5643
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5644
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645
ac_tool_warned=yes ;;
5646
esac
5647
    DUMPBIN=$ac_ct_DUMPBIN
5648
  fi
5649
fi
5650
 
5651
 
5652
  if test "$DUMPBIN" != ":"; then
5653
    NM="$DUMPBIN"
5654
  fi
5655
fi
5656
test -z "$NM" && NM=nm
5657
 
5658
 
5659
 
5660
 
5661
 
5662
 
5663
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5664
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5665
if test "${lt_cv_nm_interface+set}" = set; then
5666
  $as_echo_n "(cached) " >&6
5667
else
5668
  lt_cv_nm_interface="BSD nm"
5669
  echo "int some_variable = 0;" > conftest.$ac_ext
5670
  (eval echo "\"\$as_me:5670: $ac_compile\"" >&5)
5671
  (eval "$ac_compile" 2>conftest.err)
5672
  cat conftest.err >&5
5673
  (eval echo "\"\$as_me:5673: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5674
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5675
  cat conftest.err >&5
5676
  (eval echo "\"\$as_me:5676: output\"" >&5)
5677
  cat conftest.out >&5
5678
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5679
    lt_cv_nm_interface="MS dumpbin"
5680
  fi
5681
  rm -f conftest*
5682
fi
5683
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5684
$as_echo "$lt_cv_nm_interface" >&6; }
5685
 
5686
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5687
$as_echo_n "checking whether ln -s works... " >&6; }
5688
LN_S=$as_ln_s
5689
if test "$LN_S" = "ln -s"; then
5690
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5691
$as_echo "yes" >&6; }
5692
else
5693
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5694
$as_echo "no, using $LN_S" >&6; }
5695
fi
5696
 
5697
# find the maximum length of command line arguments
5698
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5699
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5700
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5701
  $as_echo_n "(cached) " >&6
5702
else
5703
    i=0
5704
  teststring="ABCD"
5705
 
5706
  case $build_os in
5707
  msdosdjgpp*)
5708
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5709
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5710
    # during glob expansion).  Even if it were fixed, the result of this
5711
    # check would be larger than it should be.
5712
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5713
    ;;
5714
 
5715
  gnu*)
5716
    # Under GNU Hurd, this test is not required because there is
5717
    # no limit to the length of command line arguments.
5718
    # Libtool will interpret -1 as no limit whatsoever
5719
    lt_cv_sys_max_cmd_len=-1;
5720
    ;;
5721
 
5722
  cygwin* | mingw* | cegcc*)
5723
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5724
    # about 5 minutes as the teststring grows exponentially.
5725
    # Worse, since 9x/ME are not pre-emptively multitasking,
5726
    # you end up with a "frozen" computer, even though with patience
5727
    # the test eventually succeeds (with a max line length of 256k).
5728
    # Instead, let's just punt: use the minimum linelength reported by
5729
    # all of the supported platforms: 8192 (on NT/2K/XP).
5730
    lt_cv_sys_max_cmd_len=8192;
5731
    ;;
5732
 
5733
  amigaos*)
5734
    # On AmigaOS with pdksh, this test takes hours, literally.
5735
    # So we just punt and use a minimum line length of 8192.
5736
    lt_cv_sys_max_cmd_len=8192;
5737
    ;;
5738
 
5739
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5740
    # This has been around since 386BSD, at least.  Likely further.
5741
    if test -x /sbin/sysctl; then
5742
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5743
    elif test -x /usr/sbin/sysctl; then
5744
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5745
    else
5746
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5747
    fi
5748
    # And add a safety zone
5749
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5750
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5751
    ;;
5752
 
5753
  interix*)
5754
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5755
    lt_cv_sys_max_cmd_len=196608
5756
    ;;
5757
 
5758
  osf*)
5759
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5760
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5761
    # nice to cause kernel panics so lets avoid the loop below.
5762
    # First set a reasonable default.
5763
    lt_cv_sys_max_cmd_len=16384
5764
    #
5765
    if test -x /sbin/sysconfig; then
5766
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5767
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5768
      esac
5769
    fi
5770
    ;;
5771
  sco3.2v5*)
5772
    lt_cv_sys_max_cmd_len=102400
5773
    ;;
5774
  sysv5* | sco5v6* | sysv4.2uw2*)
5775
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5776
    if test -n "$kargmax"; then
5777
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5778
    else
5779
      lt_cv_sys_max_cmd_len=32768
5780
    fi
5781
    ;;
5782
  *)
5783
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5784
    if test -n "$lt_cv_sys_max_cmd_len"; then
5785
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5786
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5787
    else
5788
      # Make teststring a little bigger before we do anything with it.
5789
      # a 1K string should be a reasonable start.
5790
      for i in 1 2 3 4 5 6 7 8 ; do
5791
        teststring=$teststring$teststring
5792
      done
5793
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5794
      # If test is not a shell built-in, we'll probably end up computing a
5795
      # maximum length that is only half of the actual maximum length, but
5796
      # we can't tell.
5797
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5798
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5799
	      test $i != 17 # 1/2 MB should be enough
5800
      do
5801
        i=`expr $i + 1`
5802
        teststring=$teststring$teststring
5803
      done
5804
      # Only check the string length outside the loop.
5805
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5806
      teststring=
5807
      # Add a significant safety factor because C++ compilers can tack on
5808
      # massive amounts of additional arguments before passing them to the
5809
      # linker.  It appears as though 1/2 is a usable value.
5810
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5811
    fi
5812
    ;;
5813
  esac
5814
 
5815
fi
5816
 
5817
if test -n $lt_cv_sys_max_cmd_len ; then
5818
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5819
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5820
else
5821
  { $as_echo "$as_me:$LINENO: result: none" >&5
5822
$as_echo "none" >&6; }
5823
fi
5824
max_cmd_len=$lt_cv_sys_max_cmd_len
5825
 
5826
 
5827
 
5828
 
5829
 
5830
 
5831
: ${CP="cp -f"}
5832
: ${MV="mv -f"}
5833
: ${RM="rm -f"}
5834
 
5835
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5836
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5837
# Try some XSI features
5838
xsi_shell=no
5839
( _lt_dummy="a/b/c"
5840
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5841
      = c,a/b,, \
5842
    && eval 'test $(( 1 + 1 )) -eq 2 \
5843
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5844
  && xsi_shell=yes
5845
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5846
$as_echo "$xsi_shell" >&6; }
5847
 
5848
 
5849
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5850
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5851
lt_shell_append=no
5852
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5853
    >/dev/null 2>&1 \
5854
  && lt_shell_append=yes
5855
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5856
$as_echo "$lt_shell_append" >&6; }
5857
 
5858
 
5859
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5860
  lt_unset=unset
5861
else
5862
  lt_unset=false
5863
fi
5864
 
5865
 
5866
 
5867
 
5868
 
5869
# test EBCDIC or ASCII
5870
case `echo X|tr X '\101'` in
5871
 A) # ASCII based system
5872
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5873
  lt_SP2NL='tr \040 \012'
5874
  lt_NL2SP='tr \015\012 \040\040'
5875
  ;;
5876
 *) # EBCDIC based system
5877
  lt_SP2NL='tr \100 \n'
5878
  lt_NL2SP='tr \r\n \100\100'
5879
  ;;
5880
esac
5881
 
5882
 
5883
 
5884
 
5885
 
5886
 
5887
 
5888
 
5889
 
5890
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5891
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5892
if test "${lt_cv_ld_reload_flag+set}" = set; then
5893
  $as_echo_n "(cached) " >&6
5894
else
5895
  lt_cv_ld_reload_flag='-r'
5896
fi
5897
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5898
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5899
reload_flag=$lt_cv_ld_reload_flag
5900
case $reload_flag in
5901
"" | " "*) ;;
5902
*) reload_flag=" $reload_flag" ;;
5903
esac
5904
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5905
case $host_os in
5906
  darwin*)
5907
    if test "$GCC" = yes; then
5908
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5909
    else
5910
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5911
    fi
5912
    ;;
5913
esac
5914
 
5915
 
5916
 
5917
 
5918
 
5919
 
5920
 
5921
 
5922
 
5923
if test -n "$ac_tool_prefix"; then
5924
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5925
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5926
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5927
$as_echo_n "checking for $ac_word... " >&6; }
5928
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5929
  $as_echo_n "(cached) " >&6
5930
else
5931
  if test -n "$OBJDUMP"; then
5932
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5933
else
5934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935
for as_dir in $PATH
5936
do
5937
  IFS=$as_save_IFS
5938
  test -z "$as_dir" && as_dir=.
5939
  for ac_exec_ext in '' $ac_executable_extensions; do
5940
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5942
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943
    break 2
5944
  fi
5945
done
5946
done
5947
IFS=$as_save_IFS
5948
 
5949
fi
5950
fi
5951
OBJDUMP=$ac_cv_prog_OBJDUMP
5952
if test -n "$OBJDUMP"; then
5953
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5954
$as_echo "$OBJDUMP" >&6; }
5955
else
5956
  { $as_echo "$as_me:$LINENO: result: no" >&5
5957
$as_echo "no" >&6; }
5958
fi
5959
 
5960
 
5961
fi
5962
if test -z "$ac_cv_prog_OBJDUMP"; then
5963
  ac_ct_OBJDUMP=$OBJDUMP
5964
  # Extract the first word of "objdump", so it can be a program name with args.
5965
set dummy objdump; ac_word=$2
5966
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5967
$as_echo_n "checking for $ac_word... " >&6; }
5968
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5969
  $as_echo_n "(cached) " >&6
5970
else
5971
  if test -n "$ac_ct_OBJDUMP"; then
5972
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5973
else
5974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975
for as_dir in $PATH
5976
do
5977
  IFS=$as_save_IFS
5978
  test -z "$as_dir" && as_dir=.
5979
  for ac_exec_ext in '' $ac_executable_extensions; do
5980
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5982
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983
    break 2
5984
  fi
5985
done
5986
done
5987
IFS=$as_save_IFS
5988
 
5989
fi
5990
fi
5991
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5992
if test -n "$ac_ct_OBJDUMP"; then
5993
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5994
$as_echo "$ac_ct_OBJDUMP" >&6; }
5995
else
5996
  { $as_echo "$as_me:$LINENO: result: no" >&5
5997
$as_echo "no" >&6; }
5998
fi
5999
 
6000
  if test "x$ac_ct_OBJDUMP" = x; then
6001
    OBJDUMP="false"
6002
  else
6003
    case $cross_compiling:$ac_tool_warned in
6004
yes:)
6005
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6006
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007
ac_tool_warned=yes ;;
6008
esac
6009
    OBJDUMP=$ac_ct_OBJDUMP
6010
  fi
6011
else
6012
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6013
fi
6014
 
6015
test -z "$OBJDUMP" && OBJDUMP=objdump
6016
 
6017
 
6018
 
6019
 
6020
 
6021
 
6022
 
6023
 
6024
 
6025
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6026
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6027
if test "${lt_cv_deplibs_check_method+set}" = set; then
6028
  $as_echo_n "(cached) " >&6
6029
else
6030
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6031
lt_cv_file_magic_test_file=
6032
lt_cv_deplibs_check_method='unknown'
6033
# Need to set the preceding variable on all platforms that support
6034
# interlibrary dependencies.
6035
# 'none' -- dependencies not supported.
6036
# `unknown' -- same as none, but documents that we really don't know.
6037
# 'pass_all' -- all dependencies passed with no checks.
6038
# 'test_compile' -- check by making test program.
6039
# 'file_magic [[regex]]' -- check by looking for files in library path
6040
# which responds to the $file_magic_cmd with a given extended regex.
6041
# If you have `file' or equivalent on your system and you're not sure
6042
# whether `pass_all' will *always* work, you probably want this one.
6043
 
6044
case $host_os in
6045
aix[4-9]*)
6046
  lt_cv_deplibs_check_method=pass_all
6047
  ;;
6048
 
6049
beos*)
6050
  lt_cv_deplibs_check_method=pass_all
6051
  ;;
6052
 
6053
bsdi[45]*)
6054
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6055
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6056
  lt_cv_file_magic_test_file=/shlib/libc.so
6057
  ;;
6058
 
6059
cygwin*)
6060
  # func_win32_libid is a shell function defined in ltmain.sh
6061
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6062
  lt_cv_file_magic_cmd='func_win32_libid'
6063
  ;;
6064
 
6065
mingw* | pw32*)
6066
  # Base MSYS/MinGW do not provide the 'file' command needed by
6067
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6068
  # unless we find 'file', for example because we are cross-compiling.
6069
  if ( file / ) >/dev/null 2>&1; then
6070
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6071
    lt_cv_file_magic_cmd='func_win32_libid'
6072
  else
6073
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6074
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6075
  fi
6076
  ;;
6077
 
6078
cegcc)
6079
  # use the weaker test based on 'objdump'. See mingw*.
6080
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6081
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6082
  ;;
6083
 
6084
darwin* | rhapsody*)
6085
  lt_cv_deplibs_check_method=pass_all
6086
  ;;
6087
 
6088
freebsd* | dragonfly*)
6089
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6090
    case $host_cpu in
6091
    i*86 )
6092
      # Not sure whether the presence of OpenBSD here was a mistake.
6093
      # Let's accept both of them until this is cleared up.
6094
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6095
      lt_cv_file_magic_cmd=/usr/bin/file
6096
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6097
      ;;
6098
    esac
6099
  else
6100
    lt_cv_deplibs_check_method=pass_all
6101
  fi
6102
  ;;
6103
 
6104
gnu*)
6105
  lt_cv_deplibs_check_method=pass_all
6106
  ;;
6107
 
6108
hpux10.20* | hpux11*)
6109
  lt_cv_file_magic_cmd=/usr/bin/file
6110
  case $host_cpu in
6111
  ia64*)
6112
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6113
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6114
    ;;
6115
  hppa*64*)
6116
    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]'
6117
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6118
    ;;
6119
  *)
6120
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6121
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6122
    ;;
6123
  esac
6124
  ;;
6125
 
6126
interix[3-9]*)
6127
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6128
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6129
  ;;
6130
 
6131
irix5* | irix6* | nonstopux*)
6132
  case $LD in
6133
  *-32|*"-32 ") libmagic=32-bit;;
6134
  *-n32|*"-n32 ") libmagic=N32;;
6135
  *-64|*"-64 ") libmagic=64-bit;;
6136
  *) libmagic=never-match;;
6137
  esac
6138
  lt_cv_deplibs_check_method=pass_all
6139
  ;;
6140
 
6141
# This must be Linux ELF.
6142
linux* | k*bsd*-gnu)
6143
  lt_cv_deplibs_check_method=pass_all
6144
  ;;
6145
 
6146
netbsd* | netbsdelf*-gnu)
6147
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6148
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6149
  else
6150
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6151
  fi
6152
  ;;
6153
 
6154
newos6*)
6155
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6156
  lt_cv_file_magic_cmd=/usr/bin/file
6157
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6158
  ;;
6159
 
6160
*nto* | *qnx*)
6161
  lt_cv_deplibs_check_method=pass_all
6162
  ;;
6163
 
6164
openbsd*)
6165
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6166
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6167
  else
6168
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169
  fi
6170
  ;;
6171
 
6172
osf3* | osf4* | osf5*)
6173
  lt_cv_deplibs_check_method=pass_all
6174
  ;;
6175
 
6176
rdos*)
6177
  lt_cv_deplibs_check_method=pass_all
6178
  ;;
6179
 
6180
solaris*)
6181
  lt_cv_deplibs_check_method=pass_all
6182
  ;;
6183
 
6184
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6185
  lt_cv_deplibs_check_method=pass_all
6186
  ;;
6187
 
6188
sysv4 | sysv4.3*)
6189
  case $host_vendor in
6190
  motorola)
6191
    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]'
6192
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6193
    ;;
6194
  ncr)
6195
    lt_cv_deplibs_check_method=pass_all
6196
    ;;
6197
  sequent)
6198
    lt_cv_file_magic_cmd='/bin/file'
6199
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6200
    ;;
6201
  sni)
6202
    lt_cv_file_magic_cmd='/bin/file'
6203
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6204
    lt_cv_file_magic_test_file=/lib/libc.so
6205
    ;;
6206
  siemens)
6207
    lt_cv_deplibs_check_method=pass_all
6208
    ;;
6209
  pc)
6210
    lt_cv_deplibs_check_method=pass_all
6211
    ;;
6212
  esac
6213
  ;;
6214
 
6215
tpf*)
6216
  lt_cv_deplibs_check_method=pass_all
6217
  ;;
6218
esac
6219
 
6220
fi
6221
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6222
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6223
file_magic_cmd=$lt_cv_file_magic_cmd
6224
deplibs_check_method=$lt_cv_deplibs_check_method
6225
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6226
 
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
 
6236
 
6237
 
6238
if test -n "$ac_tool_prefix"; then
6239
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6240
set dummy ${ac_tool_prefix}ar; ac_word=$2
6241
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242
$as_echo_n "checking for $ac_word... " >&6; }
6243
if test "${ac_cv_prog_AR+set}" = set; then
6244
  $as_echo_n "(cached) " >&6
6245
else
6246
  if test -n "$AR"; then
6247
  ac_cv_prog_AR="$AR" # Let the user override the test.
6248
else
6249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250
for as_dir in $PATH
6251
do
6252
  IFS=$as_save_IFS
6253
  test -z "$as_dir" && as_dir=.
6254
  for ac_exec_ext in '' $ac_executable_extensions; do
6255
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6257
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258
    break 2
6259
  fi
6260
done
6261
done
6262
IFS=$as_save_IFS
6263
 
6264
fi
6265
fi
6266
AR=$ac_cv_prog_AR
6267
if test -n "$AR"; then
6268
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6269
$as_echo "$AR" >&6; }
6270
else
6271
  { $as_echo "$as_me:$LINENO: result: no" >&5
6272
$as_echo "no" >&6; }
6273
fi
6274
 
6275
 
6276
fi
6277
if test -z "$ac_cv_prog_AR"; then
6278
  ac_ct_AR=$AR
6279
  # Extract the first word of "ar", so it can be a program name with args.
6280
set dummy ar; ac_word=$2
6281
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282
$as_echo_n "checking for $ac_word... " >&6; }
6283
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6284
  $as_echo_n "(cached) " >&6
6285
else
6286
  if test -n "$ac_ct_AR"; then
6287
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6288
else
6289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290
for as_dir in $PATH
6291
do
6292
  IFS=$as_save_IFS
6293
  test -z "$as_dir" && as_dir=.
6294
  for ac_exec_ext in '' $ac_executable_extensions; do
6295
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296
    ac_cv_prog_ac_ct_AR="ar"
6297
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298
    break 2
6299
  fi
6300
done
6301
done
6302
IFS=$as_save_IFS
6303
 
6304
fi
6305
fi
6306
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6307
if test -n "$ac_ct_AR"; then
6308
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6309
$as_echo "$ac_ct_AR" >&6; }
6310
else
6311
  { $as_echo "$as_me:$LINENO: result: no" >&5
6312
$as_echo "no" >&6; }
6313
fi
6314
 
6315
  if test "x$ac_ct_AR" = x; then
6316
    AR="false"
6317
  else
6318
    case $cross_compiling:$ac_tool_warned in
6319
yes:)
6320
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6321
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322
ac_tool_warned=yes ;;
6323
esac
6324
    AR=$ac_ct_AR
6325
  fi
6326
else
6327
  AR="$ac_cv_prog_AR"
6328
fi
6329
 
6330
test -z "$AR" && AR=ar
6331
test -z "$AR_FLAGS" && AR_FLAGS=cru
6332
 
6333
 
6334
 
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
if test -n "$ac_tool_prefix"; then
6344
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6345
set dummy ${ac_tool_prefix}strip; ac_word=$2
6346
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6347
$as_echo_n "checking for $ac_word... " >&6; }
6348
if test "${ac_cv_prog_STRIP+set}" = set; then
6349
  $as_echo_n "(cached) " >&6
6350
else
6351
  if test -n "$STRIP"; then
6352
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6353
else
6354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355
for as_dir in $PATH
6356
do
6357
  IFS=$as_save_IFS
6358
  test -z "$as_dir" && as_dir=.
6359
  for ac_exec_ext in '' $ac_executable_extensions; do
6360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6362
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363
    break 2
6364
  fi
6365
done
6366
done
6367
IFS=$as_save_IFS
6368
 
6369
fi
6370
fi
6371
STRIP=$ac_cv_prog_STRIP
6372
if test -n "$STRIP"; then
6373
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6374
$as_echo "$STRIP" >&6; }
6375
else
6376
  { $as_echo "$as_me:$LINENO: result: no" >&5
6377
$as_echo "no" >&6; }
6378
fi
6379
 
6380
 
6381
fi
6382
if test -z "$ac_cv_prog_STRIP"; then
6383
  ac_ct_STRIP=$STRIP
6384
  # Extract the first word of "strip", so it can be a program name with args.
6385
set dummy strip; ac_word=$2
6386
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387
$as_echo_n "checking for $ac_word... " >&6; }
6388
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6389
  $as_echo_n "(cached) " >&6
6390
else
6391
  if test -n "$ac_ct_STRIP"; then
6392
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6393
else
6394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395
for as_dir in $PATH
6396
do
6397
  IFS=$as_save_IFS
6398
  test -z "$as_dir" && as_dir=.
6399
  for ac_exec_ext in '' $ac_executable_extensions; do
6400
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401
    ac_cv_prog_ac_ct_STRIP="strip"
6402
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403
    break 2
6404
  fi
6405
done
6406
done
6407
IFS=$as_save_IFS
6408
 
6409
fi
6410
fi
6411
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6412
if test -n "$ac_ct_STRIP"; then
6413
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6414
$as_echo "$ac_ct_STRIP" >&6; }
6415
else
6416
  { $as_echo "$as_me:$LINENO: result: no" >&5
6417
$as_echo "no" >&6; }
6418
fi
6419
 
6420
  if test "x$ac_ct_STRIP" = x; then
6421
    STRIP=":"
6422
  else
6423
    case $cross_compiling:$ac_tool_warned in
6424
yes:)
6425
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6426
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427
ac_tool_warned=yes ;;
6428
esac
6429
    STRIP=$ac_ct_STRIP
6430
  fi
6431
else
6432
  STRIP="$ac_cv_prog_STRIP"
6433
fi
6434
 
6435
test -z "$STRIP" && STRIP=:
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
if test -n "$ac_tool_prefix"; then
6443
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6444
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6445
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6446
$as_echo_n "checking for $ac_word... " >&6; }
6447
if test "${ac_cv_prog_RANLIB+set}" = set; then
6448
  $as_echo_n "(cached) " >&6
6449
else
6450
  if test -n "$RANLIB"; then
6451
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6452
else
6453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454
for as_dir in $PATH
6455
do
6456
  IFS=$as_save_IFS
6457
  test -z "$as_dir" && as_dir=.
6458
  for ac_exec_ext in '' $ac_executable_extensions; do
6459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6461
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462
    break 2
6463
  fi
6464
done
6465
done
6466
IFS=$as_save_IFS
6467
 
6468
fi
6469
fi
6470
RANLIB=$ac_cv_prog_RANLIB
6471
if test -n "$RANLIB"; then
6472
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6473
$as_echo "$RANLIB" >&6; }
6474
else
6475
  { $as_echo "$as_me:$LINENO: result: no" >&5
6476
$as_echo "no" >&6; }
6477
fi
6478
 
6479
 
6480
fi
6481
if test -z "$ac_cv_prog_RANLIB"; then
6482
  ac_ct_RANLIB=$RANLIB
6483
  # Extract the first word of "ranlib", so it can be a program name with args.
6484
set dummy ranlib; ac_word=$2
6485
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6486
$as_echo_n "checking for $ac_word... " >&6; }
6487
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488
  $as_echo_n "(cached) " >&6
6489
else
6490
  if test -n "$ac_ct_RANLIB"; then
6491
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492
else
6493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494
for as_dir in $PATH
6495
do
6496
  IFS=$as_save_IFS
6497
  test -z "$as_dir" && as_dir=.
6498
  for ac_exec_ext in '' $ac_executable_extensions; do
6499
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6501
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502
    break 2
6503
  fi
6504
done
6505
done
6506
IFS=$as_save_IFS
6507
 
6508
fi
6509
fi
6510
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511
if test -n "$ac_ct_RANLIB"; then
6512
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513
$as_echo "$ac_ct_RANLIB" >&6; }
6514
else
6515
  { $as_echo "$as_me:$LINENO: result: no" >&5
6516
$as_echo "no" >&6; }
6517
fi
6518
 
6519
  if test "x$ac_ct_RANLIB" = x; then
6520
    RANLIB=":"
6521
  else
6522
    case $cross_compiling:$ac_tool_warned in
6523
yes:)
6524
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6525
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526
ac_tool_warned=yes ;;
6527
esac
6528
    RANLIB=$ac_ct_RANLIB
6529
  fi
6530
else
6531
  RANLIB="$ac_cv_prog_RANLIB"
6532
fi
6533
 
6534
test -z "$RANLIB" && RANLIB=:
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
# Determine commands to create old-style static archives.
6542
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6543
old_postinstall_cmds='chmod 644 $oldlib'
6544
old_postuninstall_cmds=
6545
 
6546
if test -n "$RANLIB"; then
6547
  case $host_os in
6548
  openbsd*)
6549
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6550
    ;;
6551
  *)
6552
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6553
    ;;
6554
  esac
6555
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6556
fi
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590
 
6591
# If no C compiler was specified, use CC.
6592
LTCC=${LTCC-"$CC"}
6593
 
6594
# If no C compiler flags were specified, use CFLAGS.
6595
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6596
 
6597
# Allow CC to be a program name with arguments.
6598
compiler=$CC
6599
 
6600
 
6601
# Check for command to grab the raw symbol name followed by C symbol from nm.
6602
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6603
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6605
  $as_echo_n "(cached) " >&6
6606
else
6607
 
6608
# These are sane defaults that work on at least a few old systems.
6609
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6610
 
6611
# Character class describing NM global symbol codes.
6612
symcode='[BCDEGRST]'
6613
 
6614
# Regexp to match symbols that can be accessed directly from C.
6615
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6616
 
6617
# Define system-specific variables.
6618
case $host_os in
6619
aix*)
6620
  symcode='[BCDT]'
6621
  ;;
6622
cygwin* | mingw* | pw32* | cegcc*)
6623
  symcode='[ABCDGISTW]'
6624
  ;;
6625
hpux*)
6626
  if test "$host_cpu" = ia64; then
6627
    symcode='[ABCDEGRST]'
6628
  fi
6629
  ;;
6630
irix* | nonstopux*)
6631
  symcode='[BCDEGRST]'
6632
  ;;
6633
osf*)
6634
  symcode='[BCDEGQRST]'
6635
  ;;
6636
solaris*)
6637
  symcode='[BDRT]'
6638
  ;;
6639
sco3.2v5*)
6640
  symcode='[DT]'
6641
  ;;
6642
sysv4.2uw2*)
6643
  symcode='[DT]'
6644
  ;;
6645
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6646
  symcode='[ABDT]'
6647
  ;;
6648
sysv4)
6649
  symcode='[DFNSTU]'
6650
  ;;
6651
esac
6652
 
6653
# If we're using GNU nm, then use its standard symbol codes.
6654
case `$NM -V 2>&1` in
6655
*GNU* | *'with BFD'*)
6656
  symcode='[ABCDGIRSTW]' ;;
6657
esac
6658
 
6659
# Transform an extracted symbol line into a proper C declaration.
6660
# Some systems (esp. on ia64) link data and code symbols differently,
6661
# so use this general approach.
6662
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6663
 
6664
# Transform an extracted symbol line into symbol name and symbol address
6665
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6666
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'"
6667
 
6668
# Handle CRLF in mingw tool chain
6669
opt_cr=
6670
case $build_os in
6671
mingw*)
6672
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6673
  ;;
6674
esac
6675
 
6676
# Try without a prefix underscore, then with it.
6677
for ac_symprfx in "" "_"; do
6678
 
6679
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6680
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6681
 
6682
  # Write the raw and C identifiers.
6683
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684
    # Fake it for dumpbin and say T for any non-static function
6685
    # and D for any global variable.
6686
    # Also find C++ and __fastcall symbols from MSVC++,
6687
    # which start with @ or ?.
6688
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6689
"     {last_section=section; section=\$ 3};"\
6690
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6691
"     \$ 0!~/External *\|/{next};"\
6692
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6693
"     {if(hide[section]) next};"\
6694
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6695
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6696
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6697
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6698
"     ' prfx=^$ac_symprfx"
6699
  else
6700
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6701
  fi
6702
 
6703
  # Check to see that the pipe works correctly.
6704
  pipe_works=no
6705
 
6706
  rm -f conftest*
6707
  cat > conftest.$ac_ext <<_LT_EOF
6708
#ifdef __cplusplus
6709
extern "C" {
6710
#endif
6711
char nm_test_var;
6712
void nm_test_func(void);
6713
void nm_test_func(void){}
6714
#ifdef __cplusplus
6715
}
6716
#endif
6717
int main(){nm_test_var='a';nm_test_func();return(0);}
6718
_LT_EOF
6719
 
6720
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721
  (eval $ac_compile) 2>&5
6722
  ac_status=$?
6723
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724
  (exit $ac_status); }; then
6725
    # Now try to grab the symbols.
6726
    nlist=conftest.nm
6727
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6728
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6729
  ac_status=$?
6730
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731
  (exit $ac_status); } && test -s "$nlist"; then
6732
      # Try sorting and uniquifying the output.
6733
      if sort "$nlist" | uniq > "$nlist"T; then
6734
	mv -f "$nlist"T "$nlist"
6735
      else
6736
	rm -f "$nlist"T
6737
      fi
6738
 
6739
      # Make sure that we snagged all the symbols we need.
6740
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6741
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6742
	  cat <<_LT_EOF > conftest.$ac_ext
6743
#ifdef __cplusplus
6744
extern "C" {
6745
#endif
6746
 
6747
_LT_EOF
6748
	  # Now generate the symbol file.
6749
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6750
 
6751
	  cat <<_LT_EOF >> conftest.$ac_ext
6752
 
6753
/* The mapping between symbol names and symbols.  */
6754
const struct {
6755
  const char *name;
6756
  void       *address;
6757
}
6758
lt__PROGRAM__LTX_preloaded_symbols[] =
6759
{
6760
  { "@PROGRAM@", (void *) 0 },
6761
_LT_EOF
6762
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6763
	  cat <<\_LT_EOF >> conftest.$ac_ext
6764
  {0, (void *) 0}
6765
};
6766
 
6767
/* This works around a problem in FreeBSD linker */
6768
#ifdef FREEBSD_WORKAROUND
6769
static const void *lt_preloaded_setup() {
6770
  return lt__PROGRAM__LTX_preloaded_symbols;
6771
}
6772
#endif
6773
 
6774
#ifdef __cplusplus
6775
}
6776
#endif
6777
_LT_EOF
6778
	  # Now try linking the two files.
6779
	  mv conftest.$ac_objext conftstm.$ac_objext
6780
	  lt_save_LIBS="$LIBS"
6781
	  lt_save_CFLAGS="$CFLAGS"
6782
	  LIBS="conftstm.$ac_objext"
6783
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6784
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785
  (eval $ac_link) 2>&5
6786
  ac_status=$?
6787
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6789
	    pipe_works=yes
6790
	  fi
6791
	  LIBS="$lt_save_LIBS"
6792
	  CFLAGS="$lt_save_CFLAGS"
6793
	else
6794
	  echo "cannot find nm_test_func in $nlist" >&5
6795
	fi
6796
      else
6797
	echo "cannot find nm_test_var in $nlist" >&5
6798
      fi
6799
    else
6800
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6801
    fi
6802
  else
6803
    echo "$progname: failed program was:" >&5
6804
    cat conftest.$ac_ext >&5
6805
  fi
6806
  rm -rf conftest* conftst*
6807
 
6808
  # Do not use the global_symbol_pipe unless it works.
6809
  if test "$pipe_works" = yes; then
6810
    break
6811
  else
6812
    lt_cv_sys_global_symbol_pipe=
6813
  fi
6814
done
6815
 
6816
fi
6817
 
6818
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6819
  lt_cv_sys_global_symbol_to_cdecl=
6820
fi
6821
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6822
  { $as_echo "$as_me:$LINENO: result: failed" >&5
6823
$as_echo "failed" >&6; }
6824
else
6825
  { $as_echo "$as_me:$LINENO: result: ok" >&5
6826
$as_echo "ok" >&6; }
6827
fi
6828
 
6829
 
6830
 
6831
 
6832
 
6833
 
6834
 
6835
 
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849
 
6850
# Check whether --enable-libtool-lock was given.
6851
if test "${enable_libtool_lock+set}" = set; then
6852
  enableval=$enable_libtool_lock;
6853
fi
6854
 
6855
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6856
 
6857
# Some flags need to be propagated to the compiler or linker for good
6858
# libtool support.
6859
case $host in
6860
ia64-*-hpux*)
6861
  # Find out which ABI we are using.
6862
  echo 'int i;' > conftest.$ac_ext
6863
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864
  (eval $ac_compile) 2>&5
6865
  ac_status=$?
6866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867
  (exit $ac_status); }; then
6868
    case `/usr/bin/file conftest.$ac_objext` in
6869
      *ELF-32*)
6870
	HPUX_IA64_MODE="32"
6871
	;;
6872
      *ELF-64*)
6873
	HPUX_IA64_MODE="64"
6874
	;;
6875
    esac
6876
  fi
6877
  rm -rf conftest*
6878
  ;;
6879
*-*-irix6*)
6880
  # Find out which ABI we are using.
6881
  echo '#line 6881 "configure"' > conftest.$ac_ext
6882
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883
  (eval $ac_compile) 2>&5
6884
  ac_status=$?
6885
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886
  (exit $ac_status); }; then
6887
    if test "$lt_cv_prog_gnu_ld" = yes; then
6888
      case `/usr/bin/file conftest.$ac_objext` in
6889
	*32-bit*)
6890
	  LD="${LD-ld} -melf32bsmip"
6891
	  ;;
6892
	*N32*)
6893
	  LD="${LD-ld} -melf32bmipn32"
6894
	  ;;
6895
	*64-bit*)
6896
	  LD="${LD-ld} -melf64bmip"
6897
	;;
6898
      esac
6899
    else
6900
      case `/usr/bin/file conftest.$ac_objext` in
6901
	*32-bit*)
6902
	  LD="${LD-ld} -32"
6903
	  ;;
6904
	*N32*)
6905
	  LD="${LD-ld} -n32"
6906
	  ;;
6907
	*64-bit*)
6908
	  LD="${LD-ld} -64"
6909
	  ;;
6910
      esac
6911
    fi
6912
  fi
6913
  rm -rf conftest*
6914
  ;;
6915
 
6916
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6917
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6918
  # Find out which ABI we are using.
6919
  echo 'int i;' > conftest.$ac_ext
6920
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921
  (eval $ac_compile) 2>&5
6922
  ac_status=$?
6923
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924
  (exit $ac_status); }; then
6925
    case `/usr/bin/file conftest.o` in
6926
      *32-bit*)
6927
	case $host in
6928
	  x86_64-*kfreebsd*-gnu)
6929
	    LD="${LD-ld} -m elf_i386_fbsd"
6930
	    ;;
6931
	  x86_64-*linux*)
6932
	    LD="${LD-ld} -m elf_i386"
6933
	    ;;
6934
	  ppc64-*linux*|powerpc64-*linux*)
6935
	    LD="${LD-ld} -m elf32ppclinux"
6936
	    ;;
6937
	  s390x-*linux*)
6938
	    LD="${LD-ld} -m elf_s390"
6939
	    ;;
6940
	  sparc64-*linux*)
6941
	    LD="${LD-ld} -m elf32_sparc"
6942
	    ;;
6943
	esac
6944
	;;
6945
      *64-bit*)
6946
	case $host in
6947
	  x86_64-*kfreebsd*-gnu)
6948
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6949
	    ;;
6950
	  x86_64-*linux*)
6951
	    LD="${LD-ld} -m elf_x86_64"
6952
	    ;;
6953
	  ppc*-*linux*|powerpc*-*linux*)
6954
	    LD="${LD-ld} -m elf64ppc"
6955
	    ;;
6956
	  s390*-*linux*|s390*-*tpf*)
6957
	    LD="${LD-ld} -m elf64_s390"
6958
	    ;;
6959
	  sparc*-*linux*)
6960
	    LD="${LD-ld} -m elf64_sparc"
6961
	    ;;
6962
	esac
6963
	;;
6964
    esac
6965
  fi
6966
  rm -rf conftest*
6967
  ;;
6968
 
6969
*-*-sco3.2v5*)
6970
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6971
  SAVE_CFLAGS="$CFLAGS"
6972
  CFLAGS="$CFLAGS -belf"
6973
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6974
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6975
if test "${lt_cv_cc_needs_belf+set}" = set; then
6976
  $as_echo_n "(cached) " >&6
6977
else
6978
  ac_ext=c
6979
ac_cpp='$CPP $CPPFLAGS'
6980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6983
 
6984
     cat >conftest.$ac_ext <<_ACEOF
6985
/* confdefs.h.  */
6986
_ACEOF
6987
cat confdefs.h >>conftest.$ac_ext
6988
cat >>conftest.$ac_ext <<_ACEOF
6989
/* end confdefs.h.  */
6990
 
6991
int
6992
main ()
6993
{
6994
 
6995
  ;
6996
  return 0;
6997
}
6998
_ACEOF
6999
rm -f conftest.$ac_objext conftest$ac_exeext
7000
if { (ac_try="$ac_link"
7001
case "(($ac_try" in
7002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003
  *) ac_try_echo=$ac_try;;
7004
esac
7005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006
$as_echo "$ac_try_echo") >&5
7007
  (eval "$ac_link") 2>conftest.er1
7008
  ac_status=$?
7009
  grep -v '^ *+' conftest.er1 >conftest.err
7010
  rm -f conftest.er1
7011
  cat conftest.err >&5
7012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013
  (exit $ac_status); } && {
7014
	 test -z "$ac_c_werror_flag" ||
7015
	 test ! -s conftest.err
7016
       } && test -s conftest$ac_exeext && {
7017
	 test "$cross_compiling" = yes ||
7018
	 $as_test_x conftest$ac_exeext
7019
       }; then
7020
  lt_cv_cc_needs_belf=yes
7021
else
7022
  $as_echo "$as_me: failed program was:" >&5
7023
sed 's/^/| /' conftest.$ac_ext >&5
7024
 
7025
	lt_cv_cc_needs_belf=no
7026
fi
7027
 
7028
rm -rf conftest.dSYM
7029
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030
      conftest$ac_exeext conftest.$ac_ext
7031
     ac_ext=c
7032
ac_cpp='$CPP $CPPFLAGS'
7033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
 
7037
fi
7038
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7039
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7040
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7041
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7042
    CFLAGS="$SAVE_CFLAGS"
7043
  fi
7044
  ;;
7045
sparc*-*solaris*)
7046
  # Find out which ABI we are using.
7047
  echo 'int i;' > conftest.$ac_ext
7048
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049
  (eval $ac_compile) 2>&5
7050
  ac_status=$?
7051
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052
  (exit $ac_status); }; then
7053
    case `/usr/bin/file conftest.o` in
7054
    *64-bit*)
7055
      case $lt_cv_prog_gnu_ld in
7056
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7057
      *)
7058
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7059
	  LD="${LD-ld} -64"
7060
	fi
7061
	;;
7062
      esac
7063
      ;;
7064
    esac
7065
  fi
7066
  rm -rf conftest*
7067
  ;;
7068
esac
7069
 
7070
need_locks="$enable_libtool_lock"
7071
 
7072
 
7073
  case $host_os in
7074
    rhapsody* | darwin*)
7075
    if test -n "$ac_tool_prefix"; then
7076
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7077
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7078
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7079
$as_echo_n "checking for $ac_word... " >&6; }
7080
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7081
  $as_echo_n "(cached) " >&6
7082
else
7083
  if test -n "$DSYMUTIL"; then
7084
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7085
else
7086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087
for as_dir in $PATH
7088
do
7089
  IFS=$as_save_IFS
7090
  test -z "$as_dir" && as_dir=.
7091
  for ac_exec_ext in '' $ac_executable_extensions; do
7092
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7094
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095
    break 2
7096
  fi
7097
done
7098
done
7099
IFS=$as_save_IFS
7100
 
7101
fi
7102
fi
7103
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7104
if test -n "$DSYMUTIL"; then
7105
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7106
$as_echo "$DSYMUTIL" >&6; }
7107
else
7108
  { $as_echo "$as_me:$LINENO: result: no" >&5
7109
$as_echo "no" >&6; }
7110
fi
7111
 
7112
 
7113
fi
7114
if test -z "$ac_cv_prog_DSYMUTIL"; then
7115
  ac_ct_DSYMUTIL=$DSYMUTIL
7116
  # Extract the first word of "dsymutil", so it can be a program name with args.
7117
set dummy dsymutil; ac_word=$2
7118
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7119
$as_echo_n "checking for $ac_word... " >&6; }
7120
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7121
  $as_echo_n "(cached) " >&6
7122
else
7123
  if test -n "$ac_ct_DSYMUTIL"; then
7124
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7125
else
7126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127
for as_dir in $PATH
7128
do
7129
  IFS=$as_save_IFS
7130
  test -z "$as_dir" && as_dir=.
7131
  for ac_exec_ext in '' $ac_executable_extensions; do
7132
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7134
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135
    break 2
7136
  fi
7137
done
7138
done
7139
IFS=$as_save_IFS
7140
 
7141
fi
7142
fi
7143
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7144
if test -n "$ac_ct_DSYMUTIL"; then
7145
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7146
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7147
else
7148
  { $as_echo "$as_me:$LINENO: result: no" >&5
7149
$as_echo "no" >&6; }
7150
fi
7151
 
7152
  if test "x$ac_ct_DSYMUTIL" = x; then
7153
    DSYMUTIL=":"
7154
  else
7155
    case $cross_compiling:$ac_tool_warned in
7156
yes:)
7157
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7158
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159
ac_tool_warned=yes ;;
7160
esac
7161
    DSYMUTIL=$ac_ct_DSYMUTIL
7162
  fi
7163
else
7164
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7165
fi
7166
 
7167
    if test -n "$ac_tool_prefix"; then
7168
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7169
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7170
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7171
$as_echo_n "checking for $ac_word... " >&6; }
7172
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7173
  $as_echo_n "(cached) " >&6
7174
else
7175
  if test -n "$NMEDIT"; then
7176
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7177
else
7178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179
for as_dir in $PATH
7180
do
7181
  IFS=$as_save_IFS
7182
  test -z "$as_dir" && as_dir=.
7183
  for ac_exec_ext in '' $ac_executable_extensions; do
7184
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7186
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187
    break 2
7188
  fi
7189
done
7190
done
7191
IFS=$as_save_IFS
7192
 
7193
fi
7194
fi
7195
NMEDIT=$ac_cv_prog_NMEDIT
7196
if test -n "$NMEDIT"; then
7197
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7198
$as_echo "$NMEDIT" >&6; }
7199
else
7200
  { $as_echo "$as_me:$LINENO: result: no" >&5
7201
$as_echo "no" >&6; }
7202
fi
7203
 
7204
 
7205
fi
7206
if test -z "$ac_cv_prog_NMEDIT"; then
7207
  ac_ct_NMEDIT=$NMEDIT
7208
  # Extract the first word of "nmedit", so it can be a program name with args.
7209
set dummy nmedit; ac_word=$2
7210
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7211
$as_echo_n "checking for $ac_word... " >&6; }
7212
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7213
  $as_echo_n "(cached) " >&6
7214
else
7215
  if test -n "$ac_ct_NMEDIT"; then
7216
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7217
else
7218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219
for as_dir in $PATH
7220
do
7221
  IFS=$as_save_IFS
7222
  test -z "$as_dir" && as_dir=.
7223
  for ac_exec_ext in '' $ac_executable_extensions; do
7224
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7226
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227
    break 2
7228
  fi
7229
done
7230
done
7231
IFS=$as_save_IFS
7232
 
7233
fi
7234
fi
7235
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7236
if test -n "$ac_ct_NMEDIT"; then
7237
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7238
$as_echo "$ac_ct_NMEDIT" >&6; }
7239
else
7240
  { $as_echo "$as_me:$LINENO: result: no" >&5
7241
$as_echo "no" >&6; }
7242
fi
7243
 
7244
  if test "x$ac_ct_NMEDIT" = x; then
7245
    NMEDIT=":"
7246
  else
7247
    case $cross_compiling:$ac_tool_warned in
7248
yes:)
7249
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7250
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251
ac_tool_warned=yes ;;
7252
esac
7253
    NMEDIT=$ac_ct_NMEDIT
7254
  fi
7255
else
7256
  NMEDIT="$ac_cv_prog_NMEDIT"
7257
fi
7258
 
7259
    if test -n "$ac_tool_prefix"; then
7260
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7261
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7262
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7263
$as_echo_n "checking for $ac_word... " >&6; }
7264
if test "${ac_cv_prog_LIPO+set}" = set; then
7265
  $as_echo_n "(cached) " >&6
7266
else
7267
  if test -n "$LIPO"; then
7268
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7269
else
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271
for as_dir in $PATH
7272
do
7273
  IFS=$as_save_IFS
7274
  test -z "$as_dir" && as_dir=.
7275
  for ac_exec_ext in '' $ac_executable_extensions; do
7276
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7278
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279
    break 2
7280
  fi
7281
done
7282
done
7283
IFS=$as_save_IFS
7284
 
7285
fi
7286
fi
7287
LIPO=$ac_cv_prog_LIPO
7288
if test -n "$LIPO"; then
7289
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7290
$as_echo "$LIPO" >&6; }
7291
else
7292
  { $as_echo "$as_me:$LINENO: result: no" >&5
7293
$as_echo "no" >&6; }
7294
fi
7295
 
7296
 
7297
fi
7298
if test -z "$ac_cv_prog_LIPO"; then
7299
  ac_ct_LIPO=$LIPO
7300
  # Extract the first word of "lipo", so it can be a program name with args.
7301
set dummy lipo; ac_word=$2
7302
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7303
$as_echo_n "checking for $ac_word... " >&6; }
7304
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7305
  $as_echo_n "(cached) " >&6
7306
else
7307
  if test -n "$ac_ct_LIPO"; then
7308
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7309
else
7310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311
for as_dir in $PATH
7312
do
7313
  IFS=$as_save_IFS
7314
  test -z "$as_dir" && as_dir=.
7315
  for ac_exec_ext in '' $ac_executable_extensions; do
7316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317
    ac_cv_prog_ac_ct_LIPO="lipo"
7318
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319
    break 2
7320
  fi
7321
done
7322
done
7323
IFS=$as_save_IFS
7324
 
7325
fi
7326
fi
7327
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7328
if test -n "$ac_ct_LIPO"; then
7329
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7330
$as_echo "$ac_ct_LIPO" >&6; }
7331
else
7332
  { $as_echo "$as_me:$LINENO: result: no" >&5
7333
$as_echo "no" >&6; }
7334
fi
7335
 
7336
  if test "x$ac_ct_LIPO" = x; then
7337
    LIPO=":"
7338
  else
7339
    case $cross_compiling:$ac_tool_warned in
7340
yes:)
7341
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7342
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343
ac_tool_warned=yes ;;
7344
esac
7345
    LIPO=$ac_ct_LIPO
7346
  fi
7347
else
7348
  LIPO="$ac_cv_prog_LIPO"
7349
fi
7350
 
7351
    if test -n "$ac_tool_prefix"; then
7352
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7353
set dummy ${ac_tool_prefix}otool; ac_word=$2
7354
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7355
$as_echo_n "checking for $ac_word... " >&6; }
7356
if test "${ac_cv_prog_OTOOL+set}" = set; then
7357
  $as_echo_n "(cached) " >&6
7358
else
7359
  if test -n "$OTOOL"; then
7360
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7361
else
7362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363
for as_dir in $PATH
7364
do
7365
  IFS=$as_save_IFS
7366
  test -z "$as_dir" && as_dir=.
7367
  for ac_exec_ext in '' $ac_executable_extensions; do
7368
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7370
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371
    break 2
7372
  fi
7373
done
7374
done
7375
IFS=$as_save_IFS
7376
 
7377
fi
7378
fi
7379
OTOOL=$ac_cv_prog_OTOOL
7380
if test -n "$OTOOL"; then
7381
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7382
$as_echo "$OTOOL" >&6; }
7383
else
7384
  { $as_echo "$as_me:$LINENO: result: no" >&5
7385
$as_echo "no" >&6; }
7386
fi
7387
 
7388
 
7389
fi
7390
if test -z "$ac_cv_prog_OTOOL"; then
7391
  ac_ct_OTOOL=$OTOOL
7392
  # Extract the first word of "otool", so it can be a program name with args.
7393
set dummy otool; ac_word=$2
7394
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7395
$as_echo_n "checking for $ac_word... " >&6; }
7396
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7397
  $as_echo_n "(cached) " >&6
7398
else
7399
  if test -n "$ac_ct_OTOOL"; then
7400
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7401
else
7402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403
for as_dir in $PATH
7404
do
7405
  IFS=$as_save_IFS
7406
  test -z "$as_dir" && as_dir=.
7407
  for ac_exec_ext in '' $ac_executable_extensions; do
7408
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409
    ac_cv_prog_ac_ct_OTOOL="otool"
7410
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411
    break 2
7412
  fi
7413
done
7414
done
7415
IFS=$as_save_IFS
7416
 
7417
fi
7418
fi
7419
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7420
if test -n "$ac_ct_OTOOL"; then
7421
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7422
$as_echo "$ac_ct_OTOOL" >&6; }
7423
else
7424
  { $as_echo "$as_me:$LINENO: result: no" >&5
7425
$as_echo "no" >&6; }
7426
fi
7427
 
7428
  if test "x$ac_ct_OTOOL" = x; then
7429
    OTOOL=":"
7430
  else
7431
    case $cross_compiling:$ac_tool_warned in
7432
yes:)
7433
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7434
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435
ac_tool_warned=yes ;;
7436
esac
7437
    OTOOL=$ac_ct_OTOOL
7438
  fi
7439
else
7440
  OTOOL="$ac_cv_prog_OTOOL"
7441
fi
7442
 
7443
    if test -n "$ac_tool_prefix"; then
7444
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7445
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7447
$as_echo_n "checking for $ac_word... " >&6; }
7448
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7449
  $as_echo_n "(cached) " >&6
7450
else
7451
  if test -n "$OTOOL64"; then
7452
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7453
else
7454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455
for as_dir in $PATH
7456
do
7457
  IFS=$as_save_IFS
7458
  test -z "$as_dir" && as_dir=.
7459
  for ac_exec_ext in '' $ac_executable_extensions; do
7460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7462
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463
    break 2
7464
  fi
7465
done
7466
done
7467
IFS=$as_save_IFS
7468
 
7469
fi
7470
fi
7471
OTOOL64=$ac_cv_prog_OTOOL64
7472
if test -n "$OTOOL64"; then
7473
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7474
$as_echo "$OTOOL64" >&6; }
7475
else
7476
  { $as_echo "$as_me:$LINENO: result: no" >&5
7477
$as_echo "no" >&6; }
7478
fi
7479
 
7480
 
7481
fi
7482
if test -z "$ac_cv_prog_OTOOL64"; then
7483
  ac_ct_OTOOL64=$OTOOL64
7484
  # Extract the first word of "otool64", so it can be a program name with args.
7485
set dummy otool64; ac_word=$2
7486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7487
$as_echo_n "checking for $ac_word... " >&6; }
7488
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7489
  $as_echo_n "(cached) " >&6
7490
else
7491
  if test -n "$ac_ct_OTOOL64"; then
7492
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7493
else
7494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495
for as_dir in $PATH
7496
do
7497
  IFS=$as_save_IFS
7498
  test -z "$as_dir" && as_dir=.
7499
  for ac_exec_ext in '' $ac_executable_extensions; do
7500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7502
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503
    break 2
7504
  fi
7505
done
7506
done
7507
IFS=$as_save_IFS
7508
 
7509
fi
7510
fi
7511
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7512
if test -n "$ac_ct_OTOOL64"; then
7513
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7514
$as_echo "$ac_ct_OTOOL64" >&6; }
7515
else
7516
  { $as_echo "$as_me:$LINENO: result: no" >&5
7517
$as_echo "no" >&6; }
7518
fi
7519
 
7520
  if test "x$ac_ct_OTOOL64" = x; then
7521
    OTOOL64=":"
7522
  else
7523
    case $cross_compiling:$ac_tool_warned in
7524
yes:)
7525
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7526
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527
ac_tool_warned=yes ;;
7528
esac
7529
    OTOOL64=$ac_ct_OTOOL64
7530
  fi
7531
else
7532
  OTOOL64="$ac_cv_prog_OTOOL64"
7533
fi
7534
 
7535
 
7536
 
7537
 
7538
 
7539
 
7540
 
7541
 
7542
 
7543
 
7544
 
7545
 
7546
 
7547
 
7548
 
7549
 
7550
 
7551
 
7552
 
7553
 
7554
 
7555
 
7556
 
7557
 
7558
 
7559
 
7560
 
7561
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7562
$as_echo_n "checking for -single_module linker flag... " >&6; }
7563
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7564
  $as_echo_n "(cached) " >&6
7565
else
7566
  lt_cv_apple_cc_single_mod=no
7567
      if test -z "${LT_MULTI_MODULE}"; then
7568
	# By default we will add the -single_module flag. You can override
7569
	# by either setting the environment variable LT_MULTI_MODULE
7570
	# non-empty at configure time, or by adding -multi_module to the
7571
	# link flags.
7572
	rm -rf libconftest.dylib*
7573
	echo "int foo(void){return 1;}" > conftest.c
7574
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7575
-dynamiclib -Wl,-single_module conftest.c" >&5
7576
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7578
        _lt_result=$?
7579
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7580
	  lt_cv_apple_cc_single_mod=yes
7581
	else
7582
	  cat conftest.err >&5
7583
	fi
7584
	rm -rf libconftest.dylib*
7585
	rm -f conftest.*
7586
      fi
7587
fi
7588
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7589
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7590
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7591
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7592
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7593
  $as_echo_n "(cached) " >&6
7594
else
7595
  lt_cv_ld_exported_symbols_list=no
7596
      save_LDFLAGS=$LDFLAGS
7597
      echo "_main" > conftest.sym
7598
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7599
      cat >conftest.$ac_ext <<_ACEOF
7600
/* confdefs.h.  */
7601
_ACEOF
7602
cat confdefs.h >>conftest.$ac_ext
7603
cat >>conftest.$ac_ext <<_ACEOF
7604
/* end confdefs.h.  */
7605
 
7606
int
7607
main ()
7608
{
7609
 
7610
  ;
7611
  return 0;
7612
}
7613
_ACEOF
7614
rm -f conftest.$ac_objext conftest$ac_exeext
7615
if { (ac_try="$ac_link"
7616
case "(($ac_try" in
7617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618
  *) ac_try_echo=$ac_try;;
7619
esac
7620
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621
$as_echo "$ac_try_echo") >&5
7622
  (eval "$ac_link") 2>conftest.er1
7623
  ac_status=$?
7624
  grep -v '^ *+' conftest.er1 >conftest.err
7625
  rm -f conftest.er1
7626
  cat conftest.err >&5
7627
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628
  (exit $ac_status); } && {
7629
	 test -z "$ac_c_werror_flag" ||
7630
	 test ! -s conftest.err
7631
       } && test -s conftest$ac_exeext && {
7632
	 test "$cross_compiling" = yes ||
7633
	 $as_test_x conftest$ac_exeext
7634
       }; then
7635
  lt_cv_ld_exported_symbols_list=yes
7636
else
7637
  $as_echo "$as_me: failed program was:" >&5
7638
sed 's/^/| /' conftest.$ac_ext >&5
7639
 
7640
	lt_cv_ld_exported_symbols_list=no
7641
fi
7642
 
7643
rm -rf conftest.dSYM
7644
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7645
      conftest$ac_exeext conftest.$ac_ext
7646
	LDFLAGS="$save_LDFLAGS"
7647
 
7648
fi
7649
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7650
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7651
    case $host_os in
7652
    rhapsody* | darwin1.[012])
7653
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7654
    darwin1.*)
7655
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7656
    darwin*) # darwin 5.x on
7657
      # if running on 10.5 or later, the deployment target defaults
7658
      # to the OS version, if on x86, and 10.4, the deployment
7659
      # target defaults to 10.4. Don't you love it?
7660
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7661
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7662
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7663
	10.[012]*)
7664
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7665
	10.*)
7666
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7667
      esac
7668
    ;;
7669
  esac
7670
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7671
      _lt_dar_single_mod='$single_module'
7672
    fi
7673
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7674
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7675
    else
7676
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7677
    fi
7678
    if test "$DSYMUTIL" != ":"; then
7679
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7680
    else
7681
      _lt_dsymutil=
7682
    fi
7683
    ;;
7684
  esac
7685
 
7686
 
7687
for ac_header in dlfcn.h
7688
do
7689
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7690
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7691
$as_echo_n "checking for $ac_header... " >&6; }
7692
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7693
  $as_echo_n "(cached) " >&6
7694
else
7695
  cat >conftest.$ac_ext <<_ACEOF
7696
/* confdefs.h.  */
7697
_ACEOF
7698
cat confdefs.h >>conftest.$ac_ext
7699
cat >>conftest.$ac_ext <<_ACEOF
7700
/* end confdefs.h.  */
7701
$ac_includes_default
7702
 
7703
#include <$ac_header>
7704
_ACEOF
7705
rm -f conftest.$ac_objext
7706
if { (ac_try="$ac_compile"
7707
case "(($ac_try" in
7708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709
  *) ac_try_echo=$ac_try;;
7710
esac
7711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7712
$as_echo "$ac_try_echo") >&5
7713
  (eval "$ac_compile") 2>conftest.er1
7714
  ac_status=$?
7715
  grep -v '^ *+' conftest.er1 >conftest.err
7716
  rm -f conftest.er1
7717
  cat conftest.err >&5
7718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719
  (exit $ac_status); } && {
7720
	 test -z "$ac_c_werror_flag" ||
7721
	 test ! -s conftest.err
7722
       } && test -s conftest.$ac_objext; then
7723
  eval "$as_ac_Header=yes"
7724
else
7725
  $as_echo "$as_me: failed program was:" >&5
7726
sed 's/^/| /' conftest.$ac_ext >&5
7727
 
7728
	eval "$as_ac_Header=no"
7729
fi
7730
 
7731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732
fi
7733
ac_res=`eval 'as_val=${'$as_ac_Header'}
7734
		 $as_echo "$as_val"'`
7735
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7736
$as_echo "$ac_res" >&6; }
7737
as_val=`eval 'as_val=${'$as_ac_Header'}
7738
		 $as_echo "$as_val"'`
7739
   if test "x$as_val" = x""yes; then
7740
  cat >>confdefs.h <<_ACEOF
7741
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742
_ACEOF
7743
 
7744
fi
7745
 
7746
done
7747
 
7748
 
7749
 
7750
# Set options
7751
 
7752
 
7753
 
7754
        enable_dlopen=no
7755
 
7756
 
7757
  enable_win32_dll=no
7758
 
7759
 
7760
            # Check whether --enable-shared was given.
7761
if test "${enable_shared+set}" = set; then
7762
  enableval=$enable_shared; p=${PACKAGE-default}
7763
    case $enableval in
7764
    yes) enable_shared=yes ;;
7765
    no) enable_shared=no ;;
7766
    *)
7767
      enable_shared=no
7768
      # Look at the argument we got.  We use all the common list separators.
7769
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7770
      for pkg in $enableval; do
7771
	IFS="$lt_save_ifs"
7772
	if test "X$pkg" = "X$p"; then
7773
	  enable_shared=yes
7774
	fi
7775
      done
7776
      IFS="$lt_save_ifs"
7777
      ;;
7778
    esac
7779
else
7780
  enable_shared=yes
7781
fi
7782
 
7783
 
7784
 
7785
 
7786
 
7787
 
7788
 
7789
 
7790
 
7791
  # Check whether --enable-static was given.
7792
if test "${enable_static+set}" = set; then
7793
  enableval=$enable_static; p=${PACKAGE-default}
7794
    case $enableval in
7795
    yes) enable_static=yes ;;
7796
    no) enable_static=no ;;
7797
    *)
7798
     enable_static=no
7799
      # Look at the argument we got.  We use all the common list separators.
7800
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7801
      for pkg in $enableval; do
7802
	IFS="$lt_save_ifs"
7803
	if test "X$pkg" = "X$p"; then
7804
	  enable_static=yes
7805
	fi
7806
      done
7807
      IFS="$lt_save_ifs"
7808
      ;;
7809
    esac
7810
else
7811
  enable_static=yes
7812
fi
7813
 
7814
 
7815
 
7816
 
7817
 
7818
 
7819
 
7820
 
7821
 
7822
 
7823
# Check whether --with-pic was given.
7824
if test "${with_pic+set}" = set; then
7825
  withval=$with_pic; pic_mode="$withval"
7826
else
7827
  pic_mode=default
7828
fi
7829
 
7830
 
7831
test -z "$pic_mode" && pic_mode=default
7832
 
7833
 
7834
 
7835
 
7836
 
7837
 
7838
 
7839
  # Check whether --enable-fast-install was given.
7840
if test "${enable_fast_install+set}" = set; then
7841
  enableval=$enable_fast_install; p=${PACKAGE-default}
7842
    case $enableval in
7843
    yes) enable_fast_install=yes ;;
7844
    no) enable_fast_install=no ;;
7845
    *)
7846
      enable_fast_install=no
7847
      # Look at the argument we got.  We use all the common list separators.
7848
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7849
      for pkg in $enableval; do
7850
	IFS="$lt_save_ifs"
7851
	if test "X$pkg" = "X$p"; then
7852
	  enable_fast_install=yes
7853
	fi
7854
      done
7855
      IFS="$lt_save_ifs"
7856
      ;;
7857
    esac
7858
else
7859
  enable_fast_install=yes
7860
fi
7861
 
7862
 
7863
 
7864
 
7865
 
7866
 
7867
 
7868
 
7869
 
7870
 
7871
 
7872
# This can be used to rebuild libtool when needed
7873
LIBTOOL_DEPS="$ltmain"
7874
 
7875
# Always use our own libtool.
7876
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7877
 
7878
 
7879
 
7880
 
7881
 
7882
 
7883
 
7884
 
7885
 
7886
 
7887
 
7888
 
7889
 
7890
 
7891
 
7892
 
7893
 
7894
 
7895
 
7896
 
7897
 
7898
 
7899
 
7900
 
7901
 
7902
test -z "$LN_S" && LN_S="ln -s"
7903
 
7904
 
7905
 
7906
 
7907
 
7908
 
7909
 
7910
 
7911
 
7912
 
7913
 
7914
 
7915
 
7916
 
7917
if test -n "${ZSH_VERSION+set}" ; then
7918
   setopt NO_GLOB_SUBST
7919
fi
7920
 
7921
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7922
$as_echo_n "checking for objdir... " >&6; }
7923
if test "${lt_cv_objdir+set}" = set; then
7924
  $as_echo_n "(cached) " >&6
7925
else
7926
  rm -f .libs 2>/dev/null
7927
mkdir .libs 2>/dev/null
7928
if test -d .libs; then
7929
  lt_cv_objdir=.libs
7930
else
7931
  # MS-DOS does not allow filenames that begin with a dot.
7932
  lt_cv_objdir=_libs
7933
fi
7934
rmdir .libs 2>/dev/null
7935
fi
7936
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7937
$as_echo "$lt_cv_objdir" >&6; }
7938
objdir=$lt_cv_objdir
7939
 
7940
 
7941
 
7942
 
7943
 
7944
cat >>confdefs.h <<_ACEOF
7945
#define LT_OBJDIR "$lt_cv_objdir/"
7946
_ACEOF
7947
 
7948
 
7949
 
7950
 
7951
 
7952
 
7953
 
7954
 
7955
 
7956
 
7957
 
7958
 
7959
 
7960
 
7961
 
7962
 
7963
 
7964
case $host_os in
7965
aix3*)
7966
  # AIX sometimes has problems with the GCC collect2 program.  For some
7967
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7968
  # vanish in a puff of smoke.
7969
  if test "X${COLLECT_NAMES+set}" != Xset; then
7970
    COLLECT_NAMES=
7971
    export COLLECT_NAMES
7972
  fi
7973
  ;;
7974
esac
7975
 
7976
# Sed substitution that helps us do robust quoting.  It backslashifies
7977
# metacharacters that are still active within double-quoted strings.
7978
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7979
 
7980
# Same as above, but do not quote variable references.
7981
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7982
 
7983
# Sed substitution to delay expansion of an escaped shell variable in a
7984
# double_quote_subst'ed string.
7985
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7986
 
7987
# Sed substitution to delay expansion of an escaped single quote.
7988
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7989
 
7990
# Sed substitution to avoid accidental globbing in evaled expressions
7991
no_glob_subst='s/\*/\\\*/g'
7992
 
7993
# Global variables:
7994
ofile=libtool
7995
can_build_shared=yes
7996
 
7997
# All known linkers require a `.a' archive for static linking (except MSVC,
7998
# which needs '.lib').
7999
libext=a
8000
 
8001
with_gnu_ld="$lt_cv_prog_gnu_ld"
8002
 
8003
old_CC="$CC"
8004
old_CFLAGS="$CFLAGS"
8005
 
8006
# Set sane defaults for various variables
8007
test -z "$CC" && CC=cc
8008
test -z "$LTCC" && LTCC=$CC
8009
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8010
test -z "$LD" && LD=ld
8011
test -z "$ac_objext" && ac_objext=o
8012
 
8013
for cc_temp in $compiler""; do
8014
  case $cc_temp in
8015
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8016
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8017
    \-*) ;;
8018
    *) break;;
8019
  esac
8020
done
8021
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8022
 
8023
 
8024
# Only perform the check for file, if the check method requires it
8025
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8026
case $deplibs_check_method in
8027
file_magic*)
8028
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8029
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8030
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8031
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8032
  $as_echo_n "(cached) " >&6
8033
else
8034
  case $MAGIC_CMD in
8035
[\\/*] |  ?:[\\/]*)
8036
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8037
  ;;
8038
*)
8039
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8040
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8041
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8042
  for ac_dir in $ac_dummy; do
8043
    IFS="$lt_save_ifs"
8044
    test -z "$ac_dir" && ac_dir=.
8045
    if test -f $ac_dir/${ac_tool_prefix}file; then
8046
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8047
      if test -n "$file_magic_test_file"; then
8048
	case $deplibs_check_method in
8049
	"file_magic "*)
8050
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8051
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8053
	    $EGREP "$file_magic_regex" > /dev/null; then
8054
	    :
8055
	  else
8056
	    cat <<_LT_EOF 1>&2
8057
 
8058
*** Warning: the command libtool uses to detect shared libraries,
8059
*** $file_magic_cmd, produces output that libtool cannot recognize.
8060
*** The result is that libtool may fail to recognize shared libraries
8061
*** as such.  This will affect the creation of libtool libraries that
8062
*** depend on shared libraries, but programs linked with such libtool
8063
*** libraries will work regardless of this problem.  Nevertheless, you
8064
*** may want to report the problem to your system manager and/or to
8065
*** bug-libtool@gnu.org
8066
 
8067
_LT_EOF
8068
	  fi ;;
8069
	esac
8070
      fi
8071
      break
8072
    fi
8073
  done
8074
  IFS="$lt_save_ifs"
8075
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8076
  ;;
8077
esac
8078
fi
8079
 
8080
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8081
if test -n "$MAGIC_CMD"; then
8082
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8083
$as_echo "$MAGIC_CMD" >&6; }
8084
else
8085
  { $as_echo "$as_me:$LINENO: result: no" >&5
8086
$as_echo "no" >&6; }
8087
fi
8088
 
8089
 
8090
 
8091
 
8092
 
8093
if test -z "$lt_cv_path_MAGIC_CMD"; then
8094
  if test -n "$ac_tool_prefix"; then
8095
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8096
$as_echo_n "checking for file... " >&6; }
8097
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8098
  $as_echo_n "(cached) " >&6
8099
else
8100
  case $MAGIC_CMD in
8101
[\\/*] |  ?:[\\/]*)
8102
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8103
  ;;
8104
*)
8105
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8106
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8107
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8108
  for ac_dir in $ac_dummy; do
8109
    IFS="$lt_save_ifs"
8110
    test -z "$ac_dir" && ac_dir=.
8111
    if test -f $ac_dir/file; then
8112
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8113
      if test -n "$file_magic_test_file"; then
8114
	case $deplibs_check_method in
8115
	"file_magic "*)
8116
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8117
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8118
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8119
	    $EGREP "$file_magic_regex" > /dev/null; then
8120
	    :
8121
	  else
8122
	    cat <<_LT_EOF 1>&2
8123
 
8124
*** Warning: the command libtool uses to detect shared libraries,
8125
*** $file_magic_cmd, produces output that libtool cannot recognize.
8126
*** The result is that libtool may fail to recognize shared libraries
8127
*** as such.  This will affect the creation of libtool libraries that
8128
*** depend on shared libraries, but programs linked with such libtool
8129
*** libraries will work regardless of this problem.  Nevertheless, you
8130
*** may want to report the problem to your system manager and/or to
8131
*** bug-libtool@gnu.org
8132
 
8133
_LT_EOF
8134
	  fi ;;
8135
	esac
8136
      fi
8137
      break
8138
    fi
8139
  done
8140
  IFS="$lt_save_ifs"
8141
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8142
  ;;
8143
esac
8144
fi
8145
 
8146
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147
if test -n "$MAGIC_CMD"; then
8148
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8149
$as_echo "$MAGIC_CMD" >&6; }
8150
else
8151
  { $as_echo "$as_me:$LINENO: result: no" >&5
8152
$as_echo "no" >&6; }
8153
fi
8154
 
8155
 
8156
  else
8157
    MAGIC_CMD=:
8158
  fi
8159
fi
8160
 
8161
  fi
8162
  ;;
8163
esac
8164
 
8165
# Use C for the default configuration in the libtool script
8166
 
8167
lt_save_CC="$CC"
8168
ac_ext=c
8169
ac_cpp='$CPP $CPPFLAGS'
8170
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173
 
8174
 
8175
# Source file extension for C test sources.
8176
ac_ext=c
8177
 
8178
# Object file extension for compiled C test sources.
8179
objext=o
8180
objext=$objext
8181
 
8182
# Code to be used in simple compile tests
8183
lt_simple_compile_test_code="int some_variable = 0;"
8184
 
8185
# Code to be used in simple link tests
8186
lt_simple_link_test_code='int main(){return(0);}'
8187
 
8188
 
8189
 
8190
 
8191
 
8192
 
8193
 
8194
# If no C compiler was specified, use CC.
8195
LTCC=${LTCC-"$CC"}
8196
 
8197
# If no C compiler flags were specified, use CFLAGS.
8198
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8199
 
8200
# Allow CC to be a program name with arguments.
8201
compiler=$CC
8202
 
8203
# Save the default compiler, since it gets overwritten when the other
8204
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8205
compiler_DEFAULT=$CC
8206
 
8207
# save warnings/boilerplate of simple test code
8208
ac_outfile=conftest.$ac_objext
8209
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8210
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8211
_lt_compiler_boilerplate=`cat conftest.err`
8212
$RM conftest*
8213
 
8214
ac_outfile=conftest.$ac_objext
8215
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8216
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8217
_lt_linker_boilerplate=`cat conftest.err`
8218
$RM -r conftest*
8219
 
8220
 
8221
## CAVEAT EMPTOR:
8222
## There is no encapsulation within the following macros, do not change
8223
## the running order or otherwise move them around unless you know exactly
8224
## what you are doing...
8225
if test -n "$compiler"; then
8226
 
8227
lt_prog_compiler_no_builtin_flag=
8228
 
8229
if test "$GCC" = yes; then
8230
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8231
 
8232
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8233
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8234
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8235
  $as_echo_n "(cached) " >&6
8236
else
8237
  lt_cv_prog_compiler_rtti_exceptions=no
8238
   ac_outfile=conftest.$ac_objext
8239
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8241
   # Insert the option either (1) after the last *FLAGS variable, or
8242
   # (2) before a word containing "conftest.", or (3) at the end.
8243
   # Note that $ac_compile itself does not contain backslashes and begins
8244
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8245
   # The option is referenced via a variable to avoid confusing sed.
8246
   lt_compile=`echo "$ac_compile" | $SED \
8247
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249
   -e 's:$: $lt_compiler_flag:'`
8250
   (eval echo "\"\$as_me:8250: $lt_compile\"" >&5)
8251
   (eval "$lt_compile" 2>conftest.err)
8252
   ac_status=$?
8253
   cat conftest.err >&5
8254
   echo "$as_me:8254: \$? = $ac_status" >&5
8255
   if (exit $ac_status) && test -s "$ac_outfile"; then
8256
     # The compiler can only warn and ignore the option if not recognized
8257
     # So say no if there are warnings other than the usual output.
8258
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8259
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8260
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8261
       lt_cv_prog_compiler_rtti_exceptions=yes
8262
     fi
8263
   fi
8264
   $RM conftest*
8265
 
8266
fi
8267
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8268
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8269
 
8270
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8271
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8272
else
8273
    :
8274
fi
8275
 
8276
fi
8277
 
8278
 
8279
 
8280
 
8281
 
8282
 
8283
  lt_prog_compiler_wl=
8284
lt_prog_compiler_pic=
8285
lt_prog_compiler_static=
8286
 
8287
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8288
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8289
 
8290
  if test "$GCC" = yes; then
8291
    lt_prog_compiler_wl='-Wl,'
8292
    lt_prog_compiler_static='-static'
8293
 
8294
    case $host_os in
8295
      aix*)
8296
      # All AIX code is PIC.
8297
      if test "$host_cpu" = ia64; then
8298
	# AIX 5 now supports IA64 processor
8299
	lt_prog_compiler_static='-Bstatic'
8300
      fi
8301
      ;;
8302
 
8303
    amigaos*)
8304
      case $host_cpu in
8305
      powerpc)
8306
            # see comment about AmigaOS4 .so support
8307
            lt_prog_compiler_pic='-fPIC'
8308
        ;;
8309
      m68k)
8310
            # FIXME: we need at least 68020 code to build shared libraries, but
8311
            # adding the `-m68020' flag to GCC prevents building anything better,
8312
            # like `-m68040'.
8313
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8314
        ;;
8315
      esac
8316
      ;;
8317
 
8318
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8319
      # PIC is the default for these OSes.
8320
      ;;
8321
 
8322
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8323
      # This hack is so that the source file can tell whether it is being
8324
      # built for inclusion in a dll (and should export symbols for example).
8325
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8326
      # (--disable-auto-import) libraries
8327
      lt_prog_compiler_pic='-DDLL_EXPORT'
8328
      ;;
8329
 
8330
    darwin* | rhapsody*)
8331
      # PIC is the default on this platform
8332
      # Common symbols not allowed in MH_DYLIB files
8333
      lt_prog_compiler_pic='-fno-common'
8334
      ;;
8335
 
8336
    hpux*)
8337
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8338
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8339
      # sets the default TLS model and affects inlining.
8340
      case $host_cpu in
8341
      hppa*64*)
8342
	# +Z the default
8343
	;;
8344
      *)
8345
	lt_prog_compiler_pic='-fPIC'
8346
	;;
8347
      esac
8348
      ;;
8349
 
8350
    interix[3-9]*)
8351
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8352
      # Instead, we relocate shared libraries at runtime.
8353
      ;;
8354
 
8355
    msdosdjgpp*)
8356
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8357
      # on systems that don't support them.
8358
      lt_prog_compiler_can_build_shared=no
8359
      enable_shared=no
8360
      ;;
8361
 
8362
    *nto* | *qnx*)
8363
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8364
      # it will coredump.
8365
      lt_prog_compiler_pic='-fPIC -shared'
8366
      ;;
8367
 
8368
    sysv4*MP*)
8369
      if test -d /usr/nec; then
8370
	lt_prog_compiler_pic=-Kconform_pic
8371
      fi
8372
      ;;
8373
 
8374
    *)
8375
      lt_prog_compiler_pic='-fPIC'
8376
      ;;
8377
    esac
8378
  else
8379
    # PORTME Check for flag to pass linker flags through the system compiler.
8380
    case $host_os in
8381
    aix*)
8382
      lt_prog_compiler_wl='-Wl,'
8383
      if test "$host_cpu" = ia64; then
8384
	# AIX 5 now supports IA64 processor
8385
	lt_prog_compiler_static='-Bstatic'
8386
      else
8387
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8388
      fi
8389
      ;;
8390
 
8391
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8392
      # This hack is so that the source file can tell whether it is being
8393
      # built for inclusion in a dll (and should export symbols for example).
8394
      lt_prog_compiler_pic='-DDLL_EXPORT'
8395
      ;;
8396
 
8397
    hpux9* | hpux10* | hpux11*)
8398
      lt_prog_compiler_wl='-Wl,'
8399
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8400
      # not for PA HP-UX.
8401
      case $host_cpu in
8402
      hppa*64*|ia64*)
8403
	# +Z the default
8404
	;;
8405
      *)
8406
	lt_prog_compiler_pic='+Z'
8407
	;;
8408
      esac
8409
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8410
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8411
      ;;
8412
 
8413
    irix5* | irix6* | nonstopux*)
8414
      lt_prog_compiler_wl='-Wl,'
8415
      # PIC (with -KPIC) is the default.
8416
      lt_prog_compiler_static='-non_shared'
8417
      ;;
8418
 
8419
    linux* | k*bsd*-gnu)
8420
      case $cc_basename in
8421
      # old Intel for x86_64 which still supported -KPIC.
8422
      ecc*)
8423
	lt_prog_compiler_wl='-Wl,'
8424
	lt_prog_compiler_pic='-KPIC'
8425
	lt_prog_compiler_static='-static'
8426
        ;;
8427
      # icc used to be incompatible with GCC.
8428
      # ICC 10 doesn't accept -KPIC any more.
8429
      icc* | ifort*)
8430
	lt_prog_compiler_wl='-Wl,'
8431
	lt_prog_compiler_pic='-fPIC'
8432
	lt_prog_compiler_static='-static'
8433
        ;;
8434
      # Lahey Fortran 8.1.
8435
      lf95*)
8436
	lt_prog_compiler_wl='-Wl,'
8437
	lt_prog_compiler_pic='--shared'
8438
	lt_prog_compiler_static='--static'
8439
	;;
8440
      pgcc* | pgf77* | pgf90* | pgf95*)
8441
        # Portland Group compilers (*not* the Pentium gcc compiler,
8442
	# which looks to be a dead project)
8443
	lt_prog_compiler_wl='-Wl,'
8444
	lt_prog_compiler_pic='-fpic'
8445
	lt_prog_compiler_static='-Bstatic'
8446
        ;;
8447
      ccc*)
8448
        lt_prog_compiler_wl='-Wl,'
8449
        # All Alpha code is PIC.
8450
        lt_prog_compiler_static='-non_shared'
8451
        ;;
8452
      xl*)
8453
	# IBM XL C 8.0/Fortran 10.1 on PPC
8454
	lt_prog_compiler_wl='-Wl,'
8455
	lt_prog_compiler_pic='-qpic'
8456
	lt_prog_compiler_static='-qstaticlink'
8457
	;;
8458
      *)
8459
	case `$CC -V 2>&1 | sed 5q` in
8460
	*Sun\ C*)
8461
	  # Sun C 5.9
8462
	  lt_prog_compiler_pic='-KPIC'
8463
	  lt_prog_compiler_static='-Bstatic'
8464
	  lt_prog_compiler_wl='-Wl,'
8465
	  ;;
8466
	*Sun\ F*)
8467
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8468
	  lt_prog_compiler_pic='-KPIC'
8469
	  lt_prog_compiler_static='-Bstatic'
8470
	  lt_prog_compiler_wl=''
8471
	  ;;
8472
	esac
8473
	;;
8474
      esac
8475
      ;;
8476
 
8477
    newsos6)
8478
      lt_prog_compiler_pic='-KPIC'
8479
      lt_prog_compiler_static='-Bstatic'
8480
      ;;
8481
 
8482
    *nto* | *qnx*)
8483
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8484
      # it will coredump.
8485
      lt_prog_compiler_pic='-fPIC -shared'
8486
      ;;
8487
 
8488
    osf3* | osf4* | osf5*)
8489
      lt_prog_compiler_wl='-Wl,'
8490
      # All OSF/1 code is PIC.
8491
      lt_prog_compiler_static='-non_shared'
8492
      ;;
8493
 
8494
    rdos*)
8495
      lt_prog_compiler_static='-non_shared'
8496
      ;;
8497
 
8498
    solaris*)
8499
      lt_prog_compiler_pic='-KPIC'
8500
      lt_prog_compiler_static='-Bstatic'
8501
      case $cc_basename in
8502
      f77* | f90* | f95*)
8503
	lt_prog_compiler_wl='-Qoption ld ';;
8504
      *)
8505
	lt_prog_compiler_wl='-Wl,';;
8506
      esac
8507
      ;;
8508
 
8509
    sunos4*)
8510
      lt_prog_compiler_wl='-Qoption ld '
8511
      lt_prog_compiler_pic='-PIC'
8512
      lt_prog_compiler_static='-Bstatic'
8513
      ;;
8514
 
8515
    sysv4 | sysv4.2uw2* | sysv4.3*)
8516
      lt_prog_compiler_wl='-Wl,'
8517
      lt_prog_compiler_pic='-KPIC'
8518
      lt_prog_compiler_static='-Bstatic'
8519
      ;;
8520
 
8521
    sysv4*MP*)
8522
      if test -d /usr/nec ;then
8523
	lt_prog_compiler_pic='-Kconform_pic'
8524
	lt_prog_compiler_static='-Bstatic'
8525
      fi
8526
      ;;
8527
 
8528
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8529
      lt_prog_compiler_wl='-Wl,'
8530
      lt_prog_compiler_pic='-KPIC'
8531
      lt_prog_compiler_static='-Bstatic'
8532
      ;;
8533
 
8534
    unicos*)
8535
      lt_prog_compiler_wl='-Wl,'
8536
      lt_prog_compiler_can_build_shared=no
8537
      ;;
8538
 
8539
    uts4*)
8540
      lt_prog_compiler_pic='-pic'
8541
      lt_prog_compiler_static='-Bstatic'
8542
      ;;
8543
 
8544
    *)
8545
      lt_prog_compiler_can_build_shared=no
8546
      ;;
8547
    esac
8548
  fi
8549
 
8550
case $host_os in
8551
  # For platforms which do not support PIC, -DPIC is meaningless:
8552
  *djgpp*)
8553
    lt_prog_compiler_pic=
8554
    ;;
8555
  *)
8556
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8557
    ;;
8558
esac
8559
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8560
$as_echo "$lt_prog_compiler_pic" >&6; }
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
#
8568
# Check to make sure the PIC flag actually works.
8569
#
8570
if test -n "$lt_prog_compiler_pic"; then
8571
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8572
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8573
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8574
  $as_echo_n "(cached) " >&6
8575
else
8576
  lt_cv_prog_compiler_pic_works=no
8577
   ac_outfile=conftest.$ac_objext
8578
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8579
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8580
   # Insert the option either (1) after the last *FLAGS variable, or
8581
   # (2) before a word containing "conftest.", or (3) at the end.
8582
   # Note that $ac_compile itself does not contain backslashes and begins
8583
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8584
   # The option is referenced via a variable to avoid confusing sed.
8585
   lt_compile=`echo "$ac_compile" | $SED \
8586
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8587
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8588
   -e 's:$: $lt_compiler_flag:'`
8589
   (eval echo "\"\$as_me:8589: $lt_compile\"" >&5)
8590
   (eval "$lt_compile" 2>conftest.err)
8591
   ac_status=$?
8592
   cat conftest.err >&5
8593
   echo "$as_me:8593: \$? = $ac_status" >&5
8594
   if (exit $ac_status) && test -s "$ac_outfile"; then
8595
     # The compiler can only warn and ignore the option if not recognized
8596
     # So say no if there are warnings other than the usual output.
8597
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8598
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8599
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8600
       lt_cv_prog_compiler_pic_works=yes
8601
     fi
8602
   fi
8603
   $RM conftest*
8604
 
8605
fi
8606
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8607
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8608
 
8609
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8610
    case $lt_prog_compiler_pic in
8611
     "" | " "*) ;;
8612
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8613
     esac
8614
else
8615
    lt_prog_compiler_pic=
8616
     lt_prog_compiler_can_build_shared=no
8617
fi
8618
 
8619
fi
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
#
8627
# Check to make sure the static flag actually works.
8628
#
8629
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8630
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8631
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8632
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8633
  $as_echo_n "(cached) " >&6
8634
else
8635
  lt_cv_prog_compiler_static_works=no
8636
   save_LDFLAGS="$LDFLAGS"
8637
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8638
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8639
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8640
     # The linker can only warn and ignore the option if not recognized
8641
     # So say no if there are warnings
8642
     if test -s conftest.err; then
8643
       # Append any errors to the config.log.
8644
       cat conftest.err 1>&5
8645
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8646
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8647
       if diff conftest.exp conftest.er2 >/dev/null; then
8648
         lt_cv_prog_compiler_static_works=yes
8649
       fi
8650
     else
8651
       lt_cv_prog_compiler_static_works=yes
8652
     fi
8653
   fi
8654
   $RM -r conftest*
8655
   LDFLAGS="$save_LDFLAGS"
8656
 
8657
fi
8658
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8659
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8660
 
8661
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8662
    :
8663
else
8664
    lt_prog_compiler_static=
8665
fi
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8674
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8675
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8676
  $as_echo_n "(cached) " >&6
8677
else
8678
  lt_cv_prog_compiler_c_o=no
8679
   $RM -r conftest 2>/dev/null
8680
   mkdir conftest
8681
   cd conftest
8682
   mkdir out
8683
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8684
 
8685
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8686
   # Insert the option either (1) after the last *FLAGS variable, or
8687
   # (2) before a word containing "conftest.", or (3) at the end.
8688
   # Note that $ac_compile itself does not contain backslashes and begins
8689
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8690
   lt_compile=`echo "$ac_compile" | $SED \
8691
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8692
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8693
   -e 's:$: $lt_compiler_flag:'`
8694
   (eval echo "\"\$as_me:8694: $lt_compile\"" >&5)
8695
   (eval "$lt_compile" 2>out/conftest.err)
8696
   ac_status=$?
8697
   cat out/conftest.err >&5
8698
   echo "$as_me:8698: \$? = $ac_status" >&5
8699
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8700
   then
8701
     # The compiler can only warn and ignore the option if not recognized
8702
     # So say no if there are warnings
8703
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8704
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8705
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8706
       lt_cv_prog_compiler_c_o=yes
8707
     fi
8708
   fi
8709
   chmod u+w . 2>&5
8710
   $RM conftest*
8711
   # SGI C++ compiler will create directory out/ii_files/ for
8712
   # template instantiation
8713
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8714
   $RM out/* && rmdir out
8715
   cd ..
8716
   $RM -r conftest
8717
   $RM conftest*
8718
 
8719
fi
8720
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8721
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8729
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8730
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8731
  $as_echo_n "(cached) " >&6
8732
else
8733
  lt_cv_prog_compiler_c_o=no
8734
   $RM -r conftest 2>/dev/null
8735
   mkdir conftest
8736
   cd conftest
8737
   mkdir out
8738
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8739
 
8740
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8741
   # Insert the option either (1) after the last *FLAGS variable, or
8742
   # (2) before a word containing "conftest.", or (3) at the end.
8743
   # Note that $ac_compile itself does not contain backslashes and begins
8744
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8745
   lt_compile=`echo "$ac_compile" | $SED \
8746
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8747
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8748
   -e 's:$: $lt_compiler_flag:'`
8749
   (eval echo "\"\$as_me:8749: $lt_compile\"" >&5)
8750
   (eval "$lt_compile" 2>out/conftest.err)
8751
   ac_status=$?
8752
   cat out/conftest.err >&5
8753
   echo "$as_me:8753: \$? = $ac_status" >&5
8754
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8755
   then
8756
     # The compiler can only warn and ignore the option if not recognized
8757
     # So say no if there are warnings
8758
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8759
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8760
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8761
       lt_cv_prog_compiler_c_o=yes
8762
     fi
8763
   fi
8764
   chmod u+w . 2>&5
8765
   $RM conftest*
8766
   # SGI C++ compiler will create directory out/ii_files/ for
8767
   # template instantiation
8768
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8769
   $RM out/* && rmdir out
8770
   cd ..
8771
   $RM -r conftest
8772
   $RM conftest*
8773
 
8774
fi
8775
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8776
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8777
 
8778
 
8779
 
8780
 
8781
hard_links="nottested"
8782
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8783
  # do not overwrite the value of need_locks provided by the user
8784
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8785
$as_echo_n "checking if we can lock with hard links... " >&6; }
8786
  hard_links=yes
8787
  $RM conftest*
8788
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8789
  touch conftest.a
8790
  ln conftest.a conftest.b 2>&5 || hard_links=no
8791
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8792
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8793
$as_echo "$hard_links" >&6; }
8794
  if test "$hard_links" = no; then
8795
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8796
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8797
    need_locks=warn
8798
  fi
8799
else
8800
  need_locks=no
8801
fi
8802
 
8803
 
8804
 
8805
 
8806
 
8807
 
8808
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8809
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8810
 
8811
  runpath_var=
8812
  allow_undefined_flag=
8813
  always_export_symbols=no
8814
  archive_cmds=
8815
  archive_expsym_cmds=
8816
  compiler_needs_object=no
8817
  enable_shared_with_static_runtimes=no
8818
  export_dynamic_flag_spec=
8819
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8820
  hardcode_automatic=no
8821
  hardcode_direct=no
8822
  hardcode_direct_absolute=no
8823
  hardcode_libdir_flag_spec=
8824
  hardcode_libdir_flag_spec_ld=
8825
  hardcode_libdir_separator=
8826
  hardcode_minus_L=no
8827
  hardcode_shlibpath_var=unsupported
8828
  inherit_rpath=no
8829
  link_all_deplibs=unknown
8830
  module_cmds=
8831
  module_expsym_cmds=
8832
  old_archive_from_new_cmds=
8833
  old_archive_from_expsyms_cmds=
8834
  thread_safe_flag_spec=
8835
  whole_archive_flag_spec=
8836
  # include_expsyms should be a list of space-separated symbols to be *always*
8837
  # included in the symbol list
8838
  include_expsyms=
8839
  # exclude_expsyms can be an extended regexp of symbols to exclude
8840
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8841
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8842
  # as well as any symbol that contains `d'.
8843
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8844
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8845
  # platforms (ab)use it in PIC code, but their linkers get confused if
8846
  # the symbol is explicitly referenced.  Since portable code cannot
8847
  # rely on this symbol name, it's probably fine to never include it in
8848
  # preloaded symbol tables.
8849
  # Exclude shared library initialization/finalization symbols.
8850
  extract_expsyms_cmds=
8851
 
8852
  case $host_os in
8853
  cygwin* | mingw* | pw32* | cegcc*)
8854
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8855
    # When not using gcc, we currently assume that we are using
8856
    # Microsoft Visual C++.
8857
    if test "$GCC" != yes; then
8858
      with_gnu_ld=no
8859
    fi
8860
    ;;
8861
  interix*)
8862
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8863
    with_gnu_ld=yes
8864
    ;;
8865
  openbsd*)
8866
    with_gnu_ld=no
8867
    ;;
8868
  linux* | k*bsd*-gnu)
8869
    link_all_deplibs=no
8870
    ;;
8871
  esac
8872
 
8873
  ld_shlibs=yes
8874
  if test "$with_gnu_ld" = yes; then
8875
    # If archive_cmds runs LD, not CC, wlarc should be empty
8876
    wlarc='${wl}'
8877
 
8878
    # Set some defaults for GNU ld with shared library support. These
8879
    # are reset later if shared libraries are not supported. Putting them
8880
    # here allows them to be overridden if necessary.
8881
    runpath_var=LD_RUN_PATH
8882
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8883
    export_dynamic_flag_spec='${wl}--export-dynamic'
8884
    # ancient GNU ld didn't support --whole-archive et. al.
8885
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8886
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8887
    else
8888
      whole_archive_flag_spec=
8889
    fi
8890
    supports_anon_versioning=no
8891
    case `$LD -v 2>&1` in
8892
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8893
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8894
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8895
      *\ 2.11.*) ;; # other 2.11 versions
8896
      *) supports_anon_versioning=yes ;;
8897
    esac
8898
 
8899
    # See if GNU ld supports shared libraries.
8900
    case $host_os in
8901
    aix[3-9]*)
8902
      # On AIX/PPC, the GNU linker is very broken
8903
      if test "$host_cpu" != ia64; then
8904
	ld_shlibs=no
8905
	cat <<_LT_EOF 1>&2
8906
 
8907
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8908
*** to be unable to reliably create shared libraries on AIX.
8909
*** Therefore, libtool is disabling shared libraries support.  If you
8910
*** really care for shared libraries, you may want to modify your PATH
8911
*** so that a non-GNU linker is found, and then restart.
8912
 
8913
_LT_EOF
8914
      fi
8915
      ;;
8916
 
8917
    amigaos*)
8918
      case $host_cpu in
8919
      powerpc)
8920
            # see comment about AmigaOS4 .so support
8921
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922
            archive_expsym_cmds=''
8923
        ;;
8924
      m68k)
8925
            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)'
8926
            hardcode_libdir_flag_spec='-L$libdir'
8927
            hardcode_minus_L=yes
8928
        ;;
8929
      esac
8930
      ;;
8931
 
8932
    beos*)
8933
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934
	allow_undefined_flag=unsupported
8935
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8936
	# support --undefined.  This deserves some investigation.  FIXME
8937
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938
      else
8939
	ld_shlibs=no
8940
      fi
8941
      ;;
8942
 
8943
    cygwin* | mingw* | pw32* | cegcc*)
8944
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8945
      # as there is no search path for DLLs.
8946
      hardcode_libdir_flag_spec='-L$libdir'
8947
      allow_undefined_flag=unsupported
8948
      always_export_symbols=no
8949
      enable_shared_with_static_runtimes=yes
8950
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8951
 
8952
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8953
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8954
	# If the export-symbols file already is a .def file (1st line
8955
	# is EXPORTS), use it as is; otherwise, prepend...
8956
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8957
	  cp $export_symbols $output_objdir/$soname.def;
8958
	else
8959
	  echo EXPORTS > $output_objdir/$soname.def;
8960
	  cat $export_symbols >> $output_objdir/$soname.def;
8961
	fi~
8962
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8963
      else
8964
	ld_shlibs=no
8965
      fi
8966
      ;;
8967
 
8968
    interix[3-9]*)
8969
      hardcode_direct=no
8970
      hardcode_shlibpath_var=no
8971
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8972
      export_dynamic_flag_spec='${wl}-E'
8973
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8974
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8975
      # default) and relocated if they conflict, which is a slow very memory
8976
      # consuming and fragmenting process.  To avoid this, we pick a random,
8977
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8978
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8979
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8980
      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'
8981
      ;;
8982
 
8983
    gnu* | linux* | tpf* | k*bsd*-gnu)
8984
      tmp_diet=no
8985
      if test "$host_os" = linux-dietlibc; then
8986
	case $cc_basename in
8987
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8988
	esac
8989
      fi
8990
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8991
	 && test "$tmp_diet" = no
8992
      then
8993
	tmp_addflag=
8994
	tmp_sharedflag='-shared'
8995
	case $cc_basename,$host_cpu in
8996
        pgcc*)				# Portland Group C compiler
8997
	  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'
8998
	  tmp_addflag=' $pic_flag'
8999
	  ;;
9000
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9001
	  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'
9002
	  tmp_addflag=' $pic_flag -Mnomain' ;;
9003
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9004
	  tmp_addflag=' -i_dynamic' ;;
9005
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9006
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9007
	ifc* | ifort*)			# Intel Fortran compiler
9008
	  tmp_addflag=' -nofor_main' ;;
9009
	lf95*)				# Lahey Fortran 8.1
9010
	  whole_archive_flag_spec=
9011
	  tmp_sharedflag='--shared' ;;
9012
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9013
	  tmp_sharedflag='-qmkshrobj'
9014
	  tmp_addflag= ;;
9015
	esac
9016
	case `$CC -V 2>&1 | sed 5q` in
9017
	*Sun\ C*)			# Sun C 5.9
9018
	  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'
9019
	  compiler_needs_object=yes
9020
	  tmp_sharedflag='-G' ;;
9021
	*Sun\ F*)			# Sun Fortran 8.3
9022
	  tmp_sharedflag='-G' ;;
9023
	esac
9024
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025
 
9026
        if test "x$supports_anon_versioning" = xyes; then
9027
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9028
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9029
	    echo "local: *; };" >> $output_objdir/$libname.ver~
9030
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9031
        fi
9032
 
9033
	case $cc_basename in
9034
	xlf*)
9035
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9036
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9037
	  hardcode_libdir_flag_spec=
9038
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9039
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9040
	  if test "x$supports_anon_versioning" = xyes; then
9041
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9042
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9043
	      echo "local: *; };" >> $output_objdir/$libname.ver~
9044
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9045
	  fi
9046
	  ;;
9047
	esac
9048
      else
9049
        ld_shlibs=no
9050
      fi
9051
      ;;
9052
 
9053
    netbsd* | netbsdelf*-gnu)
9054
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9055
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9056
	wlarc=
9057
      else
9058
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060
      fi
9061
      ;;
9062
 
9063
    solaris*)
9064
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9065
	ld_shlibs=no
9066
	cat <<_LT_EOF 1>&2
9067
 
9068
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9069
*** create shared libraries on Solaris systems.  Therefore, libtool
9070
*** is disabling shared libraries support.  We urge you to upgrade GNU
9071
*** binutils to release 2.9.1 or newer.  Another option is to modify
9072
*** your PATH or compiler configuration so that the native linker is
9073
*** used, and then restart.
9074
 
9075
_LT_EOF
9076
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079
      else
9080
	ld_shlibs=no
9081
      fi
9082
      ;;
9083
 
9084
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9085
      case `$LD -v 2>&1` in
9086
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9087
	ld_shlibs=no
9088
	cat <<_LT_EOF 1>&2
9089
 
9090
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9091
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9092
*** is disabling shared libraries support.  We urge you to upgrade GNU
9093
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9094
*** your PATH or compiler configuration so that the native linker is
9095
*** used, and then restart.
9096
 
9097
_LT_EOF
9098
	;;
9099
	*)
9100
	  # For security reasons, it is highly recommended that you always
9101
	  # use absolute paths for naming shared libraries, and exclude the
9102
	  # DT_RUNPATH tag from executables and libraries.  But doing so
9103
	  # requires that you compile everything twice, which is a pain.
9104
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9105
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9106
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108
	  else
9109
	    ld_shlibs=no
9110
	  fi
9111
	;;
9112
      esac
9113
      ;;
9114
 
9115
    sunos4*)
9116
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9117
      wlarc=
9118
      hardcode_direct=yes
9119
      hardcode_shlibpath_var=no
9120
      ;;
9121
 
9122
    *)
9123
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9124
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9126
      else
9127
	ld_shlibs=no
9128
      fi
9129
      ;;
9130
    esac
9131
 
9132
    if test "$ld_shlibs" = no; then
9133
      runpath_var=
9134
      hardcode_libdir_flag_spec=
9135
      export_dynamic_flag_spec=
9136
      whole_archive_flag_spec=
9137
    fi
9138
  else
9139
    # PORTME fill in a description of your system's linker (not GNU ld)
9140
    case $host_os in
9141
    aix3*)
9142
      allow_undefined_flag=unsupported
9143
      always_export_symbols=yes
9144
      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'
9145
      # Note: this linker hardcodes the directories in LIBPATH if there
9146
      # are no directories specified by -L.
9147
      hardcode_minus_L=yes
9148
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9149
	# Neither direct hardcoding nor static linking is supported with a
9150
	# broken collect2.
9151
	hardcode_direct=unsupported
9152
      fi
9153
      ;;
9154
 
9155
    aix[4-9]*)
9156
      if test "$host_cpu" = ia64; then
9157
	# On IA64, the linker does run time linking by default, so we don't
9158
	# have to do anything special.
9159
	aix_use_runtimelinking=no
9160
	exp_sym_flag='-Bexport'
9161
	no_entry_flag=""
9162
      else
9163
	# If we're using GNU nm, then we don't want the "-C" option.
9164
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9165
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9166
	  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'
9167
	else
9168
	  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'
9169
	fi
9170
	aix_use_runtimelinking=no
9171
 
9172
	# Test if we are trying to use run time linking or normal
9173
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9174
	# need to do runtime linking.
9175
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9176
	  for ld_flag in $LDFLAGS; do
9177
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9178
	    aix_use_runtimelinking=yes
9179
	    break
9180
	  fi
9181
	  done
9182
	  ;;
9183
	esac
9184
 
9185
	exp_sym_flag='-bexport'
9186
	no_entry_flag='-bnoentry'
9187
      fi
9188
 
9189
      # When large executables or shared objects are built, AIX ld can
9190
      # have problems creating the table of contents.  If linking a library
9191
      # or program results in "error TOC overflow" add -mminimal-toc to
9192
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9193
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9194
 
9195
      archive_cmds=''
9196
      hardcode_direct=yes
9197
      hardcode_direct_absolute=yes
9198
      hardcode_libdir_separator=':'
9199
      link_all_deplibs=yes
9200
      file_list_spec='${wl}-f,'
9201
 
9202
      if test "$GCC" = yes; then
9203
	case $host_os in aix4.[012]|aix4.[012].*)
9204
	# We only want to do this on AIX 4.2 and lower, the check
9205
	# below for broken collect2 doesn't work under 4.3+
9206
	  collect2name=`${CC} -print-prog-name=collect2`
9207
	  if test -f "$collect2name" &&
9208
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9209
	  then
9210
	  # We have reworked collect2
9211
	  :
9212
	  else
9213
	  # We have old collect2
9214
	  hardcode_direct=unsupported
9215
	  # It fails to find uninstalled libraries when the uninstalled
9216
	  # path is not listed in the libpath.  Setting hardcode_minus_L
9217
	  # to unsupported forces relinking
9218
	  hardcode_minus_L=yes
9219
	  hardcode_libdir_flag_spec='-L$libdir'
9220
	  hardcode_libdir_separator=
9221
	  fi
9222
	  ;;
9223
	esac
9224
	shared_flag='-shared'
9225
	if test "$aix_use_runtimelinking" = yes; then
9226
	  shared_flag="$shared_flag "'${wl}-G'
9227
	fi
9228
	link_all_deplibs=no
9229
      else
9230
	# not using gcc
9231
	if test "$host_cpu" = ia64; then
9232
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9233
	# chokes on -Wl,-G. The following line is correct:
9234
	  shared_flag='-G'
9235
	else
9236
	  if test "$aix_use_runtimelinking" = yes; then
9237
	    shared_flag='${wl}-G'
9238
	  else
9239
	    shared_flag='${wl}-bM:SRE'
9240
	  fi
9241
	fi
9242
      fi
9243
 
9244
      export_dynamic_flag_spec='${wl}-bexpall'
9245
      # It seems that -bexpall does not export symbols beginning with
9246
      # underscore (_), so it is better to generate a list of symbols to export.
9247
      always_export_symbols=yes
9248
      if test "$aix_use_runtimelinking" = yes; then
9249
	# Warning - without using the other runtime loading flags (-brtl),
9250
	# -berok will link without error, but may produce a broken library.
9251
	allow_undefined_flag='-berok'
9252
        # Determine the default libpath from the value encoded in an
9253
        # empty executable.
9254
        cat >conftest.$ac_ext <<_ACEOF
9255
/* confdefs.h.  */
9256
_ACEOF
9257
cat confdefs.h >>conftest.$ac_ext
9258
cat >>conftest.$ac_ext <<_ACEOF
9259
/* end confdefs.h.  */
9260
 
9261
int
9262
main ()
9263
{
9264
 
9265
  ;
9266
  return 0;
9267
}
9268
_ACEOF
9269
rm -f conftest.$ac_objext conftest$ac_exeext
9270
if { (ac_try="$ac_link"
9271
case "(($ac_try" in
9272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273
  *) ac_try_echo=$ac_try;;
9274
esac
9275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9276
$as_echo "$ac_try_echo") >&5
9277
  (eval "$ac_link") 2>conftest.er1
9278
  ac_status=$?
9279
  grep -v '^ *+' conftest.er1 >conftest.err
9280
  rm -f conftest.er1
9281
  cat conftest.err >&5
9282
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283
  (exit $ac_status); } && {
9284
	 test -z "$ac_c_werror_flag" ||
9285
	 test ! -s conftest.err
9286
       } && test -s conftest$ac_exeext && {
9287
	 test "$cross_compiling" = yes ||
9288
	 $as_test_x conftest$ac_exeext
9289
       }; then
9290
 
9291
lt_aix_libpath_sed='
9292
    /Import File Strings/,/^$/ {
9293
	/^0/ {
9294
	    s/^0  *\(.*\)$/\1/
9295
	    p
9296
	}
9297
    }'
9298
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299
# Check for a 64-bit object if we didn't find anything.
9300
if test -z "$aix_libpath"; then
9301
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9302
fi
9303
else
9304
  $as_echo "$as_me: failed program was:" >&5
9305
sed 's/^/| /' conftest.$ac_ext >&5
9306
 
9307
 
9308
fi
9309
 
9310
rm -rf conftest.dSYM
9311
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9312
      conftest$ac_exeext conftest.$ac_ext
9313
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314
 
9315
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316
        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"
9317
      else
9318
	if test "$host_cpu" = ia64; then
9319
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9320
	  allow_undefined_flag="-z nodefs"
9321
	  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"
9322
	else
9323
	 # Determine the default libpath from the value encoded in an
9324
	 # empty executable.
9325
	 cat >conftest.$ac_ext <<_ACEOF
9326
/* confdefs.h.  */
9327
_ACEOF
9328
cat confdefs.h >>conftest.$ac_ext
9329
cat >>conftest.$ac_ext <<_ACEOF
9330
/* end confdefs.h.  */
9331
 
9332
int
9333
main ()
9334
{
9335
 
9336
  ;
9337
  return 0;
9338
}
9339
_ACEOF
9340
rm -f conftest.$ac_objext conftest$ac_exeext
9341
if { (ac_try="$ac_link"
9342
case "(($ac_try" in
9343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344
  *) ac_try_echo=$ac_try;;
9345
esac
9346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9347
$as_echo "$ac_try_echo") >&5
9348
  (eval "$ac_link") 2>conftest.er1
9349
  ac_status=$?
9350
  grep -v '^ *+' conftest.er1 >conftest.err
9351
  rm -f conftest.er1
9352
  cat conftest.err >&5
9353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354
  (exit $ac_status); } && {
9355
	 test -z "$ac_c_werror_flag" ||
9356
	 test ! -s conftest.err
9357
       } && test -s conftest$ac_exeext && {
9358
	 test "$cross_compiling" = yes ||
9359
	 $as_test_x conftest$ac_exeext
9360
       }; then
9361
 
9362
lt_aix_libpath_sed='
9363
    /Import File Strings/,/^$/ {
9364
	/^0/ {
9365
	    s/^0  *\(.*\)$/\1/
9366
	    p
9367
	}
9368
    }'
9369
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9370
# Check for a 64-bit object if we didn't find anything.
9371
if test -z "$aix_libpath"; then
9372
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9373
fi
9374
else
9375
  $as_echo "$as_me: failed program was:" >&5
9376
sed 's/^/| /' conftest.$ac_ext >&5
9377
 
9378
 
9379
fi
9380
 
9381
rm -rf conftest.dSYM
9382
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9383
      conftest$ac_exeext conftest.$ac_ext
9384
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9385
 
9386
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9387
	  # Warning - without using the other run time loading flags,
9388
	  # -berok will link without error, but may produce a broken library.
9389
	  no_undefined_flag=' ${wl}-bernotok'
9390
	  allow_undefined_flag=' ${wl}-berok'
9391
	  # Exported symbols can be pulled into shared objects from archives
9392
	  whole_archive_flag_spec='$convenience'
9393
	  archive_cmds_need_lc=yes
9394
	  # This is similar to how AIX traditionally builds its shared libraries.
9395
	  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'
9396
	fi
9397
      fi
9398
      ;;
9399
 
9400
    amigaos*)
9401
      case $host_cpu in
9402
      powerpc)
9403
            # see comment about AmigaOS4 .so support
9404
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405
            archive_expsym_cmds=''
9406
        ;;
9407
      m68k)
9408
            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)'
9409
            hardcode_libdir_flag_spec='-L$libdir'
9410
            hardcode_minus_L=yes
9411
        ;;
9412
      esac
9413
      ;;
9414
 
9415
    bsdi[45]*)
9416
      export_dynamic_flag_spec=-rdynamic
9417
      ;;
9418
 
9419
    cygwin* | mingw* | pw32* | cegcc*)
9420
      # When not using gcc, we currently assume that we are using
9421
      # Microsoft Visual C++.
9422
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9423
      # no search path for DLLs.
9424
      hardcode_libdir_flag_spec=' '
9425
      allow_undefined_flag=unsupported
9426
      # Tell ltmain to make .lib files, not .a files.
9427
      libext=lib
9428
      # Tell ltmain to make .dll files, not .so files.
9429
      shrext_cmds=".dll"
9430
      # FIXME: Setting linknames here is a bad hack.
9431
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9432
      # The linker will automatically build a .lib file if we build a DLL.
9433
      old_archive_from_new_cmds='true'
9434
      # FIXME: Should let the user specify the lib program.
9435
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9436
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9437
      enable_shared_with_static_runtimes=yes
9438
      ;;
9439
 
9440
    darwin* | rhapsody*)
9441
 
9442
 
9443
  archive_cmds_need_lc=no
9444
  hardcode_direct=no
9445
  hardcode_automatic=yes
9446
  hardcode_shlibpath_var=unsupported
9447
  whole_archive_flag_spec=''
9448
  link_all_deplibs=yes
9449
  allow_undefined_flag="$_lt_dar_allow_undefined"
9450
  case $cc_basename in
9451
     ifort*) _lt_dar_can_shared=yes ;;
9452
     *) _lt_dar_can_shared=$GCC ;;
9453
  esac
9454
  if test "$_lt_dar_can_shared" = "yes"; then
9455
    output_verbose_link_cmd=echo
9456
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9457
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9458
    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}"
9459
    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}"
9460
 
9461
  else
9462
  ld_shlibs=no
9463
  fi
9464
 
9465
      ;;
9466
 
9467
    dgux*)
9468
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469
      hardcode_libdir_flag_spec='-L$libdir'
9470
      hardcode_shlibpath_var=no
9471
      ;;
9472
 
9473
    freebsd1*)
9474
      ld_shlibs=no
9475
      ;;
9476
 
9477
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9478
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9479
    # does not break anything, and helps significantly (at the cost of a little
9480
    # extra space).
9481
    freebsd2.2*)
9482
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9483
      hardcode_libdir_flag_spec='-R$libdir'
9484
      hardcode_direct=yes
9485
      hardcode_shlibpath_var=no
9486
      ;;
9487
 
9488
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9489
    freebsd2*)
9490
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491
      hardcode_direct=yes
9492
      hardcode_minus_L=yes
9493
      hardcode_shlibpath_var=no
9494
      ;;
9495
 
9496
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9497
    freebsd* | dragonfly*)
9498
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9499
      hardcode_libdir_flag_spec='-R$libdir'
9500
      hardcode_direct=yes
9501
      hardcode_shlibpath_var=no
9502
      ;;
9503
 
9504
    hpux9*)
9505
      if test "$GCC" = yes; then
9506
	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'
9507
      else
9508
	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'
9509
      fi
9510
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9511
      hardcode_libdir_separator=:
9512
      hardcode_direct=yes
9513
 
9514
      # hardcode_minus_L: Not really in the search PATH,
9515
      # but as the default location of the library.
9516
      hardcode_minus_L=yes
9517
      export_dynamic_flag_spec='${wl}-E'
9518
      ;;
9519
 
9520
    hpux10*)
9521
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9522
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9523
      else
9524
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9525
      fi
9526
      if test "$with_gnu_ld" = no; then
9527
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9528
	hardcode_libdir_flag_spec_ld='+b $libdir'
9529
	hardcode_libdir_separator=:
9530
	hardcode_direct=yes
9531
	hardcode_direct_absolute=yes
9532
	export_dynamic_flag_spec='${wl}-E'
9533
	# hardcode_minus_L: Not really in the search PATH,
9534
	# but as the default location of the library.
9535
	hardcode_minus_L=yes
9536
      fi
9537
      ;;
9538
 
9539
    hpux11*)
9540
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9541
	case $host_cpu in
9542
	hppa*64*)
9543
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544
	  ;;
9545
	ia64*)
9546
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9547
	  ;;
9548
	*)
9549
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550
	  ;;
9551
	esac
9552
      else
9553
	case $host_cpu in
9554
	hppa*64*)
9555
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9556
	  ;;
9557
	ia64*)
9558
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9559
	  ;;
9560
	*)
9561
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9562
	  ;;
9563
	esac
9564
      fi
9565
      if test "$with_gnu_ld" = no; then
9566
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567
	hardcode_libdir_separator=:
9568
 
9569
	case $host_cpu in
9570
	hppa*64*|ia64*)
9571
	  hardcode_direct=no
9572
	  hardcode_shlibpath_var=no
9573
	  ;;
9574
	*)
9575
	  hardcode_direct=yes
9576
	  hardcode_direct_absolute=yes
9577
	  export_dynamic_flag_spec='${wl}-E'
9578
 
9579
	  # hardcode_minus_L: Not really in the search PATH,
9580
	  # but as the default location of the library.
9581
	  hardcode_minus_L=yes
9582
	  ;;
9583
	esac
9584
      fi
9585
      ;;
9586
 
9587
    irix5* | irix6* | nonstopux*)
9588
      if test "$GCC" = yes; then
9589
	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'
9590
	# Try to use the -exported_symbol ld option, if it does not
9591
	# work, assume that -exports_file does not work either and
9592
	# implicitly export all symbols.
9593
        save_LDFLAGS="$LDFLAGS"
9594
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9595
        cat >conftest.$ac_ext <<_ACEOF
9596
int foo(void) {}
9597
_ACEOF
9598
rm -f conftest.$ac_objext conftest$ac_exeext
9599
if { (ac_try="$ac_link"
9600
case "(($ac_try" in
9601
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602
  *) ac_try_echo=$ac_try;;
9603
esac
9604
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9605
$as_echo "$ac_try_echo") >&5
9606
  (eval "$ac_link") 2>conftest.er1
9607
  ac_status=$?
9608
  grep -v '^ *+' conftest.er1 >conftest.err
9609
  rm -f conftest.er1
9610
  cat conftest.err >&5
9611
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612
  (exit $ac_status); } && {
9613
	 test -z "$ac_c_werror_flag" ||
9614
	 test ! -s conftest.err
9615
       } && test -s conftest$ac_exeext && {
9616
	 test "$cross_compiling" = yes ||
9617
	 $as_test_x conftest$ac_exeext
9618
       }; then
9619
  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'
9620
 
9621
else
9622
  $as_echo "$as_me: failed program was:" >&5
9623
sed 's/^/| /' conftest.$ac_ext >&5
9624
 
9625
 
9626
fi
9627
 
9628
rm -rf conftest.dSYM
9629
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9630
      conftest$ac_exeext conftest.$ac_ext
9631
        LDFLAGS="$save_LDFLAGS"
9632
      else
9633
	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'
9634
	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'
9635
      fi
9636
      archive_cmds_need_lc='no'
9637
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638
      hardcode_libdir_separator=:
9639
      inherit_rpath=yes
9640
      link_all_deplibs=yes
9641
      ;;
9642
 
9643
    netbsd* | netbsdelf*-gnu)
9644
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9645
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9646
      else
9647
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9648
      fi
9649
      hardcode_libdir_flag_spec='-R$libdir'
9650
      hardcode_direct=yes
9651
      hardcode_shlibpath_var=no
9652
      ;;
9653
 
9654
    newsos6)
9655
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656
      hardcode_direct=yes
9657
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658
      hardcode_libdir_separator=:
9659
      hardcode_shlibpath_var=no
9660
      ;;
9661
 
9662
    *nto* | *qnx*)
9663
      ;;
9664
 
9665
    openbsd*)
9666
      if test -f /usr/libexec/ld.so; then
9667
	hardcode_direct=yes
9668
	hardcode_shlibpath_var=no
9669
	hardcode_direct_absolute=yes
9670
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9671
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9672
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9673
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9674
	  export_dynamic_flag_spec='${wl}-E'
9675
	else
9676
	  case $host_os in
9677
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9678
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9679
	     hardcode_libdir_flag_spec='-R$libdir'
9680
	     ;;
9681
	   *)
9682
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9683
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9684
	     ;;
9685
	  esac
9686
	fi
9687
      else
9688
	ld_shlibs=no
9689
      fi
9690
      ;;
9691
 
9692
    os2*)
9693
      hardcode_libdir_flag_spec='-L$libdir'
9694
      hardcode_minus_L=yes
9695
      allow_undefined_flag=unsupported
9696
      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'
9697
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9698
      ;;
9699
 
9700
    osf3*)
9701
      if test "$GCC" = yes; then
9702
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9703
	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'
9704
      else
9705
	allow_undefined_flag=' -expect_unresolved \*'
9706
	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'
9707
      fi
9708
      archive_cmds_need_lc='no'
9709
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710
      hardcode_libdir_separator=:
9711
      ;;
9712
 
9713
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9714
      if test "$GCC" = yes; then
9715
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9716
	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'
9717
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9718
      else
9719
	allow_undefined_flag=' -expect_unresolved \*'
9720
	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'
9721
	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~
9722
	$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'
9723
 
9724
	# Both c and cxx compiler support -rpath directly
9725
	hardcode_libdir_flag_spec='-rpath $libdir'
9726
      fi
9727
      archive_cmds_need_lc='no'
9728
      hardcode_libdir_separator=:
9729
      ;;
9730
 
9731
    solaris*)
9732
      no_undefined_flag=' -z defs'
9733
      if test "$GCC" = yes; then
9734
	wlarc='${wl}'
9735
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9736
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9737
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9738
      else
9739
	case `$CC -V 2>&1` in
9740
	*"Compilers 5.0"*)
9741
	  wlarc=''
9742
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9745
	  ;;
9746
	*)
9747
	  wlarc='${wl}'
9748
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9749
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9750
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9751
	  ;;
9752
	esac
9753
      fi
9754
      hardcode_libdir_flag_spec='-R$libdir'
9755
      hardcode_shlibpath_var=no
9756
      case $host_os in
9757
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9758
      *)
9759
	# The compiler driver will combine and reorder linker options,
9760
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9761
	# but is careful enough not to reorder.
9762
	# Supported since Solaris 2.6 (maybe 2.5.1?)
9763
	if test "$GCC" = yes; then
9764
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9765
	else
9766
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9767
	fi
9768
	;;
9769
      esac
9770
      link_all_deplibs=yes
9771
      ;;
9772
 
9773
    sunos4*)
9774
      if test "x$host_vendor" = xsequent; then
9775
	# Use $CC to link under sequent, because it throws in some extra .o
9776
	# files that make .init and .fini sections work.
9777
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9778
      else
9779
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9780
      fi
9781
      hardcode_libdir_flag_spec='-L$libdir'
9782
      hardcode_direct=yes
9783
      hardcode_minus_L=yes
9784
      hardcode_shlibpath_var=no
9785
      ;;
9786
 
9787
    sysv4)
9788
      case $host_vendor in
9789
	sni)
9790
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791
	  hardcode_direct=yes # is this really true???
9792
	;;
9793
	siemens)
9794
	  ## LD is ld it makes a PLAMLIB
9795
	  ## CC just makes a GrossModule.
9796
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9797
	  reload_cmds='$CC -r -o $output$reload_objs'
9798
	  hardcode_direct=no
9799
        ;;
9800
	motorola)
9801
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9803
	;;
9804
      esac
9805
      runpath_var='LD_RUN_PATH'
9806
      hardcode_shlibpath_var=no
9807
      ;;
9808
 
9809
    sysv4.3*)
9810
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811
      hardcode_shlibpath_var=no
9812
      export_dynamic_flag_spec='-Bexport'
9813
      ;;
9814
 
9815
    sysv4*MP*)
9816
      if test -d /usr/nec; then
9817
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818
	hardcode_shlibpath_var=no
9819
	runpath_var=LD_RUN_PATH
9820
	hardcode_runpath_var=yes
9821
	ld_shlibs=yes
9822
      fi
9823
      ;;
9824
 
9825
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9826
      no_undefined_flag='${wl}-z,text'
9827
      archive_cmds_need_lc=no
9828
      hardcode_shlibpath_var=no
9829
      runpath_var='LD_RUN_PATH'
9830
 
9831
      if test "$GCC" = yes; then
9832
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834
      else
9835
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837
      fi
9838
      ;;
9839
 
9840
    sysv5* | sco3.2v5* | sco5v6*)
9841
      # Note: We can NOT use -z defs as we might desire, because we do not
9842
      # link with -lc, and that would cause any symbols used from libc to
9843
      # always be unresolved, which means just about no library would
9844
      # ever link correctly.  If we're not using GNU ld we use -z text
9845
      # though, which does catch some bad symbols but isn't as heavy-handed
9846
      # as -z defs.
9847
      no_undefined_flag='${wl}-z,text'
9848
      allow_undefined_flag='${wl}-z,nodefs'
9849
      archive_cmds_need_lc=no
9850
      hardcode_shlibpath_var=no
9851
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9852
      hardcode_libdir_separator=':'
9853
      link_all_deplibs=yes
9854
      export_dynamic_flag_spec='${wl}-Bexport'
9855
      runpath_var='LD_RUN_PATH'
9856
 
9857
      if test "$GCC" = yes; then
9858
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9859
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860
      else
9861
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863
      fi
9864
      ;;
9865
 
9866
    uts4*)
9867
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868
      hardcode_libdir_flag_spec='-L$libdir'
9869
      hardcode_shlibpath_var=no
9870
      ;;
9871
 
9872
    *)
9873
      ld_shlibs=no
9874
      ;;
9875
    esac
9876
 
9877
    if test x$host_vendor = xsni; then
9878
      case $host in
9879
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9880
	export_dynamic_flag_spec='${wl}-Blargedynsym'
9881
	;;
9882
      esac
9883
    fi
9884
  fi
9885
 
9886
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9887
$as_echo "$ld_shlibs" >&6; }
9888
test "$ld_shlibs" = no && can_build_shared=no
9889
 
9890
with_gnu_ld=$with_gnu_ld
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
 
9903
 
9904
 
9905
 
9906
#
9907
# Do we need to explicitly link libc?
9908
#
9909
case "x$archive_cmds_need_lc" in
9910
x|xyes)
9911
  # Assume -lc should be added
9912
  archive_cmds_need_lc=yes
9913
 
9914
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9915
    case $archive_cmds in
9916
    *'~'*)
9917
      # FIXME: we may have to deal with multi-command sequences.
9918
      ;;
9919
    '$CC '*)
9920
      # Test whether the compiler implicitly links with -lc since on some
9921
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9922
      # to ld, don't add -lc before -lgcc.
9923
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9924
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9925
      $RM conftest*
9926
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9927
 
9928
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929
  (eval $ac_compile) 2>&5
9930
  ac_status=$?
9931
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932
  (exit $ac_status); } 2>conftest.err; then
9933
        soname=conftest
9934
        lib=conftest
9935
        libobjs=conftest.$ac_objext
9936
        deplibs=
9937
        wl=$lt_prog_compiler_wl
9938
	pic_flag=$lt_prog_compiler_pic
9939
        compiler_flags=-v
9940
        linker_flags=-v
9941
        verstring=
9942
        output_objdir=.
9943
        libname=conftest
9944
        lt_save_allow_undefined_flag=$allow_undefined_flag
9945
        allow_undefined_flag=
9946
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9947
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9948
  ac_status=$?
9949
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950
  (exit $ac_status); }
9951
        then
9952
	  archive_cmds_need_lc=no
9953
        else
9954
	  archive_cmds_need_lc=yes
9955
        fi
9956
        allow_undefined_flag=$lt_save_allow_undefined_flag
9957
      else
9958
        cat conftest.err 1>&5
9959
      fi
9960
      $RM conftest*
9961
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9962
$as_echo "$archive_cmds_need_lc" >&6; }
9963
      ;;
9964
    esac
9965
  fi
9966
  ;;
9967
esac
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
 
10046
 
10047
 
10048
 
10049
 
10050
 
10051
 
10052
 
10053
 
10054
 
10055
 
10056
 
10057
 
10058
 
10059
 
10060
 
10061
 
10062
 
10063
 
10064
 
10065
 
10066
 
10067
 
10068
 
10069
 
10070
 
10071
 
10072
 
10073
 
10074
 
10075
 
10076
 
10077
 
10078
 
10079
 
10080
 
10081
 
10082
 
10083
 
10084
 
10085
 
10086
 
10087
 
10088
 
10089
 
10090
 
10091
 
10092
 
10093
 
10094
 
10095
 
10096
 
10097
 
10098
 
10099
 
10100
 
10101
 
10102
 
10103
 
10104
 
10105
 
10106
 
10107
 
10108
 
10109
 
10110
 
10111
 
10112
 
10113
 
10114
 
10115
 
10116
 
10117
 
10118
 
10119
 
10120
 
10121
 
10122
 
10123
 
10124
 
10125
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10126
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10127
 
10128
if test "$GCC" = yes; then
10129
  case $host_os in
10130
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10131
    *) lt_awk_arg="/^libraries:/" ;;
10132
  esac
10133
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10134
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10135
    # if the path contains ";" then we assume it to be the separator
10136
    # otherwise default to the standard path separator (i.e. ":") - it is
10137
    # assumed that no part of a normal pathname contains ";" but that should
10138
    # okay in the real world where ";" in dirpaths is itself problematic.
10139
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10140
  else
10141
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10142
  fi
10143
  # Ok, now we have the path, separated by spaces, we can step through it
10144
  # and add multilib dir if necessary.
10145
  lt_tmp_lt_search_path_spec=
10146
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10147
  for lt_sys_path in $lt_search_path_spec; do
10148
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10149
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10150
    else
10151
      test -d "$lt_sys_path" && \
10152
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10153
    fi
10154
  done
10155
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10156
BEGIN {RS=" "; FS="/|\n";} {
10157
  lt_foo="";
10158
  lt_count=0;
10159
  for (lt_i = NF; lt_i > 0; lt_i--) {
10160
    if ($lt_i != "" && $lt_i != ".") {
10161
      if ($lt_i == "..") {
10162
        lt_count++;
10163
      } else {
10164
        if (lt_count == 0) {
10165
          lt_foo="/" $lt_i lt_foo;
10166
        } else {
10167
          lt_count--;
10168
        }
10169
      }
10170
    }
10171
  }
10172
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10173
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10174
}'`
10175
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10176
else
10177
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10178
fi
10179
library_names_spec=
10180
libname_spec='lib$name'
10181
soname_spec=
10182
shrext_cmds=".so"
10183
postinstall_cmds=
10184
postuninstall_cmds=
10185
finish_cmds=
10186
finish_eval=
10187
shlibpath_var=
10188
shlibpath_overrides_runpath=unknown
10189
version_type=none
10190
dynamic_linker="$host_os ld.so"
10191
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10192
need_lib_prefix=unknown
10193
hardcode_into_libs=no
10194
 
10195
# when you set need_version to no, make sure it does not cause -set_version
10196
# flags to be left without arguments
10197
need_version=unknown
10198
 
10199
case $host_os in
10200
aix3*)
10201
  version_type=linux
10202
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10203
  shlibpath_var=LIBPATH
10204
 
10205
  # AIX 3 has no versioning support, so we append a major version to the name.
10206
  soname_spec='${libname}${release}${shared_ext}$major'
10207
  ;;
10208
 
10209
aix[4-9]*)
10210
  version_type=linux
10211
  need_lib_prefix=no
10212
  need_version=no
10213
  hardcode_into_libs=yes
10214
  if test "$host_cpu" = ia64; then
10215
    # AIX 5 supports IA64
10216
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10217
    shlibpath_var=LD_LIBRARY_PATH
10218
  else
10219
    # With GCC up to 2.95.x, collect2 would create an import file
10220
    # for dependence libraries.  The import file would start with
10221
    # the line `#! .'.  This would cause the generated library to
10222
    # depend on `.', always an invalid library.  This was fixed in
10223
    # development snapshots of GCC prior to 3.0.
10224
    case $host_os in
10225
      aix4 | aix4.[01] | aix4.[01].*)
10226
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10227
	   echo ' yes '
10228
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10229
	:
10230
      else
10231
	can_build_shared=no
10232
      fi
10233
      ;;
10234
    esac
10235
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10236
    # soname into executable. Probably we can add versioning support to
10237
    # collect2, so additional links can be useful in future.
10238
    if test "$aix_use_runtimelinking" = yes; then
10239
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10240
      # instead of lib<name>.a to let people know that these are not
10241
      # typical AIX shared libraries.
10242
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243
    else
10244
      # We preserve .a as extension for shared libraries through AIX4.2
10245
      # and later when we are not doing run time linking.
10246
      library_names_spec='${libname}${release}.a $libname.a'
10247
      soname_spec='${libname}${release}${shared_ext}$major'
10248
    fi
10249
    shlibpath_var=LIBPATH
10250
  fi
10251
  ;;
10252
 
10253
amigaos*)
10254
  case $host_cpu in
10255
  powerpc)
10256
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10257
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10258
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259
    ;;
10260
  m68k)
10261
    library_names_spec='$libname.ixlibrary $libname.a'
10262
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10263
    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'
10264
    ;;
10265
  esac
10266
  ;;
10267
 
10268
beos*)
10269
  library_names_spec='${libname}${shared_ext}'
10270
  dynamic_linker="$host_os ld.so"
10271
  shlibpath_var=LIBRARY_PATH
10272
  ;;
10273
 
10274
bsdi[45]*)
10275
  version_type=linux
10276
  need_version=no
10277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278
  soname_spec='${libname}${release}${shared_ext}$major'
10279
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10280
  shlibpath_var=LD_LIBRARY_PATH
10281
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10282
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10283
  # the default ld.so.conf also contains /usr/contrib/lib and
10284
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10285
  # libtool to hard-code these into programs
10286
  ;;
10287
 
10288
cygwin* | mingw* | pw32* | cegcc*)
10289
  version_type=windows
10290
  shrext_cmds=".dll"
10291
  need_version=no
10292
  need_lib_prefix=no
10293
 
10294
  case $GCC,$host_os in
10295
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10296
    library_names_spec='$libname.dll.a'
10297
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10298
    postinstall_cmds='base_file=`basename \${file}`~
10299
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10300
      dldir=$destdir/`dirname \$dlpath`~
10301
      test -d \$dldir || mkdir -p \$dldir~
10302
      $install_prog $dir/$dlname \$dldir/$dlname~
10303
      chmod a+x \$dldir/$dlname~
10304
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10305
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10306
      fi'
10307
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10308
      dlpath=$dir/\$dldll~
10309
       $RM \$dlpath'
10310
    shlibpath_overrides_runpath=yes
10311
 
10312
    case $host_os in
10313
    cygwin*)
10314
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10315
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10317
      ;;
10318
    mingw* | cegcc*)
10319
      # MinGW DLLs use traditional 'lib' prefix
10320
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10322
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10323
        # It is most probably a Windows format PATH printed by
10324
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10325
        # path with ; separators, and with drive letters. We can handle the
10326
        # drive letters (cygwin fileutils understands them), so leave them,
10327
        # especially as we might pass files found there to a mingw objdump,
10328
        # which wouldn't understand a cygwinified path. Ahh.
10329
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10330
      else
10331
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10332
      fi
10333
      ;;
10334
    pw32*)
10335
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10336
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10337
      ;;
10338
    esac
10339
    ;;
10340
 
10341
  *)
10342
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10343
    ;;
10344
  esac
10345
  dynamic_linker='Win32 ld.exe'
10346
  # FIXME: first we should search . and the directory the executable is in
10347
  shlibpath_var=PATH
10348
  ;;
10349
 
10350
darwin* | rhapsody*)
10351
  dynamic_linker="$host_os dyld"
10352
  version_type=darwin
10353
  need_lib_prefix=no
10354
  need_version=no
10355
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10356
  soname_spec='${libname}${release}${major}$shared_ext'
10357
  shlibpath_overrides_runpath=yes
10358
  shlibpath_var=DYLD_LIBRARY_PATH
10359
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10360
 
10361
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10362
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10363
  ;;
10364
 
10365
dgux*)
10366
  version_type=linux
10367
  need_lib_prefix=no
10368
  need_version=no
10369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10370
  soname_spec='${libname}${release}${shared_ext}$major'
10371
  shlibpath_var=LD_LIBRARY_PATH
10372
  ;;
10373
 
10374
freebsd1*)
10375
  dynamic_linker=no
10376
  ;;
10377
 
10378
freebsd* | dragonfly*)
10379
  # DragonFly does not have aout.  When/if they implement a new
10380
  # versioning mechanism, adjust this.
10381
  if test -x /usr/bin/objformat; then
10382
    objformat=`/usr/bin/objformat`
10383
  else
10384
    case $host_os in
10385
    freebsd[123]*) objformat=aout ;;
10386
    *) objformat=elf ;;
10387
    esac
10388
  fi
10389
  version_type=freebsd-$objformat
10390
  case $version_type in
10391
    freebsd-elf*)
10392
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10393
      need_version=no
10394
      need_lib_prefix=no
10395
      ;;
10396
    freebsd-*)
10397
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10398
      need_version=yes
10399
      ;;
10400
  esac
10401
  shlibpath_var=LD_LIBRARY_PATH
10402
  case $host_os in
10403
  freebsd2*)
10404
    shlibpath_overrides_runpath=yes
10405
    ;;
10406
  freebsd3.[01]* | freebsdelf3.[01]*)
10407
    shlibpath_overrides_runpath=yes
10408
    hardcode_into_libs=yes
10409
    ;;
10410
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10411
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10412
    shlibpath_overrides_runpath=no
10413
    hardcode_into_libs=yes
10414
    ;;
10415
  *) # from 4.6 on, and DragonFly
10416
    shlibpath_overrides_runpath=yes
10417
    hardcode_into_libs=yes
10418
    ;;
10419
  esac
10420
  ;;
10421
 
10422
gnu*)
10423
  version_type=linux
10424
  need_lib_prefix=no
10425
  need_version=no
10426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10427
  soname_spec='${libname}${release}${shared_ext}$major'
10428
  shlibpath_var=LD_LIBRARY_PATH
10429
  hardcode_into_libs=yes
10430
  ;;
10431
 
10432
hpux9* | hpux10* | hpux11*)
10433
  # Give a soname corresponding to the major version so that dld.sl refuses to
10434
  # link against other versions.
10435
  version_type=sunos
10436
  need_lib_prefix=no
10437
  need_version=no
10438
  case $host_cpu in
10439
  ia64*)
10440
    shrext_cmds='.so'
10441
    hardcode_into_libs=yes
10442
    dynamic_linker="$host_os dld.so"
10443
    shlibpath_var=LD_LIBRARY_PATH
10444
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446
    soname_spec='${libname}${release}${shared_ext}$major'
10447
    if test "X$HPUX_IA64_MODE" = X32; then
10448
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10449
    else
10450
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10451
    fi
10452
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10453
    ;;
10454
  hppa*64*)
10455
    shrext_cmds='.sl'
10456
    hardcode_into_libs=yes
10457
    dynamic_linker="$host_os dld.sl"
10458
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10459
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461
    soname_spec='${libname}${release}${shared_ext}$major'
10462
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10463
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10464
    ;;
10465
  *)
10466
    shrext_cmds='.sl'
10467
    dynamic_linker="$host_os dld.sl"
10468
    shlibpath_var=SHLIB_PATH
10469
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10470
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471
    soname_spec='${libname}${release}${shared_ext}$major'
10472
    ;;
10473
  esac
10474
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10475
  postinstall_cmds='chmod 555 $lib'
10476
  ;;
10477
 
10478
interix[3-9]*)
10479
  version_type=linux
10480
  need_lib_prefix=no
10481
  need_version=no
10482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10483
  soname_spec='${libname}${release}${shared_ext}$major'
10484
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10485
  shlibpath_var=LD_LIBRARY_PATH
10486
  shlibpath_overrides_runpath=no
10487
  hardcode_into_libs=yes
10488
  ;;
10489
 
10490
irix5* | irix6* | nonstopux*)
10491
  case $host_os in
10492
    nonstopux*) version_type=nonstopux ;;
10493
    *)
10494
	if test "$lt_cv_prog_gnu_ld" = yes; then
10495
		version_type=linux
10496
	else
10497
		version_type=irix
10498
	fi ;;
10499
  esac
10500
  need_lib_prefix=no
10501
  need_version=no
10502
  soname_spec='${libname}${release}${shared_ext}$major'
10503
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10504
  case $host_os in
10505
  irix5* | nonstopux*)
10506
    libsuff= shlibsuff=
10507
    ;;
10508
  *)
10509
    case $LD in # libtool.m4 will add one of these switches to LD
10510
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10511
      libsuff= shlibsuff= libmagic=32-bit;;
10512
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10513
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10514
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10515
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10516
    *) libsuff= shlibsuff= libmagic=never-match;;
10517
    esac
10518
    ;;
10519
  esac
10520
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10521
  shlibpath_overrides_runpath=no
10522
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10523
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10524
  hardcode_into_libs=yes
10525
  ;;
10526
 
10527
# No shared lib support for Linux oldld, aout, or coff.
10528
linux*oldld* | linux*aout* | linux*coff*)
10529
  dynamic_linker=no
10530
  ;;
10531
 
10532
# This must be Linux ELF.
10533
linux* | k*bsd*-gnu)
10534
  version_type=linux
10535
  need_lib_prefix=no
10536
  need_version=no
10537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538
  soname_spec='${libname}${release}${shared_ext}$major'
10539
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10540
  shlibpath_var=LD_LIBRARY_PATH
10541
  shlibpath_overrides_runpath=no
10542
  # Some binutils ld are patched to set DT_RUNPATH
10543
  save_LDFLAGS=$LDFLAGS
10544
  save_libdir=$libdir
10545
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10546
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10547
  cat >conftest.$ac_ext <<_ACEOF
10548
/* confdefs.h.  */
10549
_ACEOF
10550
cat confdefs.h >>conftest.$ac_ext
10551
cat >>conftest.$ac_ext <<_ACEOF
10552
/* end confdefs.h.  */
10553
 
10554
int
10555
main ()
10556
{
10557
 
10558
  ;
10559
  return 0;
10560
}
10561
_ACEOF
10562
rm -f conftest.$ac_objext conftest$ac_exeext
10563
if { (ac_try="$ac_link"
10564
case "(($ac_try" in
10565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566
  *) ac_try_echo=$ac_try;;
10567
esac
10568
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569
$as_echo "$ac_try_echo") >&5
10570
  (eval "$ac_link") 2>conftest.er1
10571
  ac_status=$?
10572
  grep -v '^ *+' conftest.er1 >conftest.err
10573
  rm -f conftest.er1
10574
  cat conftest.err >&5
10575
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576
  (exit $ac_status); } && {
10577
	 test -z "$ac_c_werror_flag" ||
10578
	 test ! -s conftest.err
10579
       } && test -s conftest$ac_exeext && {
10580
	 test "$cross_compiling" = yes ||
10581
	 $as_test_x conftest$ac_exeext
10582
       }; then
10583
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10584
  shlibpath_overrides_runpath=yes
10585
fi
10586
 
10587
else
10588
  $as_echo "$as_me: failed program was:" >&5
10589
sed 's/^/| /' conftest.$ac_ext >&5
10590
 
10591
 
10592
fi
10593
 
10594
rm -rf conftest.dSYM
10595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10596
      conftest$ac_exeext conftest.$ac_ext
10597
  LDFLAGS=$save_LDFLAGS
10598
  libdir=$save_libdir
10599
 
10600
  # This implies no fast_install, which is unacceptable.
10601
  # Some rework will be needed to allow for fast_install
10602
  # before this can be enabled.
10603
  hardcode_into_libs=yes
10604
 
10605
  # Append ld.so.conf contents to the search path
10606
  if test -f /etc/ld.so.conf; then
10607
    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' ' '`
10608
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10609
  fi
10610
 
10611
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10612
  # powerpc, because MkLinux only supported shared libraries with the
10613
  # GNU dynamic linker.  Since this was broken with cross compilers,
10614
  # most powerpc-linux boxes support dynamic linking these days and
10615
  # people can always --disable-shared, the test was removed, and we
10616
  # assume the GNU/Linux dynamic linker is in use.
10617
  dynamic_linker='GNU/Linux ld.so'
10618
  ;;
10619
 
10620
netbsdelf*-gnu)
10621
  version_type=linux
10622
  need_lib_prefix=no
10623
  need_version=no
10624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10625
  soname_spec='${libname}${release}${shared_ext}$major'
10626
  shlibpath_var=LD_LIBRARY_PATH
10627
  shlibpath_overrides_runpath=no
10628
  hardcode_into_libs=yes
10629
  dynamic_linker='NetBSD ld.elf_so'
10630
  ;;
10631
 
10632
netbsd*)
10633
  version_type=sunos
10634
  need_lib_prefix=no
10635
  need_version=no
10636
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10637
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10639
    dynamic_linker='NetBSD (a.out) ld.so'
10640
  else
10641
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10642
    soname_spec='${libname}${release}${shared_ext}$major'
10643
    dynamic_linker='NetBSD ld.elf_so'
10644
  fi
10645
  shlibpath_var=LD_LIBRARY_PATH
10646
  shlibpath_overrides_runpath=yes
10647
  hardcode_into_libs=yes
10648
  ;;
10649
 
10650
newsos6)
10651
  version_type=linux
10652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653
  shlibpath_var=LD_LIBRARY_PATH
10654
  shlibpath_overrides_runpath=yes
10655
  ;;
10656
 
10657
*nto* | *qnx*)
10658
  version_type=qnx
10659
  need_lib_prefix=no
10660
  need_version=no
10661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662
  soname_spec='${libname}${release}${shared_ext}$major'
10663
  shlibpath_var=LD_LIBRARY_PATH
10664
  shlibpath_overrides_runpath=no
10665
  hardcode_into_libs=yes
10666
  dynamic_linker='ldqnx.so'
10667
  ;;
10668
 
10669
openbsd*)
10670
  version_type=sunos
10671
  sys_lib_dlsearch_path_spec="/usr/lib"
10672
  need_lib_prefix=no
10673
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10674
  case $host_os in
10675
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10676
    *)				need_version=no  ;;
10677
  esac
10678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10679
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10680
  shlibpath_var=LD_LIBRARY_PATH
10681
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10682
    case $host_os in
10683
      openbsd2.[89] | openbsd2.[89].*)
10684
	shlibpath_overrides_runpath=no
10685
	;;
10686
      *)
10687
	shlibpath_overrides_runpath=yes
10688
	;;
10689
      esac
10690
  else
10691
    shlibpath_overrides_runpath=yes
10692
  fi
10693
  ;;
10694
 
10695
os2*)
10696
  libname_spec='$name'
10697
  shrext_cmds=".dll"
10698
  need_lib_prefix=no
10699
  library_names_spec='$libname${shared_ext} $libname.a'
10700
  dynamic_linker='OS/2 ld.exe'
10701
  shlibpath_var=LIBPATH
10702
  ;;
10703
 
10704
osf3* | osf4* | osf5*)
10705
  version_type=osf
10706
  need_lib_prefix=no
10707
  need_version=no
10708
  soname_spec='${libname}${release}${shared_ext}$major'
10709
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710
  shlibpath_var=LD_LIBRARY_PATH
10711
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10712
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10713
  ;;
10714
 
10715
rdos*)
10716
  dynamic_linker=no
10717
  ;;
10718
 
10719
solaris*)
10720
  version_type=linux
10721
  need_lib_prefix=no
10722
  need_version=no
10723
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724
  soname_spec='${libname}${release}${shared_ext}$major'
10725
  shlibpath_var=LD_LIBRARY_PATH
10726
  shlibpath_overrides_runpath=yes
10727
  hardcode_into_libs=yes
10728
  # ldd complains unless libraries are executable
10729
  postinstall_cmds='chmod +x $lib'
10730
  ;;
10731
 
10732
sunos4*)
10733
  version_type=sunos
10734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10735
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10736
  shlibpath_var=LD_LIBRARY_PATH
10737
  shlibpath_overrides_runpath=yes
10738
  if test "$with_gnu_ld" = yes; then
10739
    need_lib_prefix=no
10740
  fi
10741
  need_version=yes
10742
  ;;
10743
 
10744
sysv4 | sysv4.3*)
10745
  version_type=linux
10746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747
  soname_spec='${libname}${release}${shared_ext}$major'
10748
  shlibpath_var=LD_LIBRARY_PATH
10749
  case $host_vendor in
10750
    sni)
10751
      shlibpath_overrides_runpath=no
10752
      need_lib_prefix=no
10753
      runpath_var=LD_RUN_PATH
10754
      ;;
10755
    siemens)
10756
      need_lib_prefix=no
10757
      ;;
10758
    motorola)
10759
      need_lib_prefix=no
10760
      need_version=no
10761
      shlibpath_overrides_runpath=no
10762
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10763
      ;;
10764
  esac
10765
  ;;
10766
 
10767
sysv4*MP*)
10768
  if test -d /usr/nec ;then
10769
    version_type=linux
10770
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10771
    soname_spec='$libname${shared_ext}.$major'
10772
    shlibpath_var=LD_LIBRARY_PATH
10773
  fi
10774
  ;;
10775
 
10776
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10777
  version_type=freebsd-elf
10778
  need_lib_prefix=no
10779
  need_version=no
10780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10781
  soname_spec='${libname}${release}${shared_ext}$major'
10782
  shlibpath_var=LD_LIBRARY_PATH
10783
  shlibpath_overrides_runpath=yes
10784
  hardcode_into_libs=yes
10785
  if test "$with_gnu_ld" = yes; then
10786
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10787
  else
10788
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10789
    case $host_os in
10790
      sco3.2v5*)
10791
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10792
	;;
10793
    esac
10794
  fi
10795
  sys_lib_dlsearch_path_spec='/usr/lib'
10796
  ;;
10797
 
10798
tpf*)
10799
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10800
  version_type=linux
10801
  need_lib_prefix=no
10802
  need_version=no
10803
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804
  shlibpath_var=LD_LIBRARY_PATH
10805
  shlibpath_overrides_runpath=no
10806
  hardcode_into_libs=yes
10807
  ;;
10808
 
10809
uts4*)
10810
  version_type=linux
10811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812
  soname_spec='${libname}${release}${shared_ext}$major'
10813
  shlibpath_var=LD_LIBRARY_PATH
10814
  ;;
10815
 
10816
*)
10817
  dynamic_linker=no
10818
  ;;
10819
esac
10820
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10821
$as_echo "$dynamic_linker" >&6; }
10822
test "$dynamic_linker" = no && can_build_shared=no
10823
 
10824
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10825
if test "$GCC" = yes; then
10826
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10827
fi
10828
 
10829
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10830
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10831
fi
10832
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10833
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10834
fi
10835
 
10836
 
10837
 
10838
 
10839
 
10840
 
10841
 
10842
 
10843
 
10844
 
10845
 
10846
 
10847
 
10848
 
10849
 
10850
 
10851
 
10852
 
10853
 
10854
 
10855
 
10856
 
10857
 
10858
 
10859
 
10860
 
10861
 
10862
 
10863
 
10864
 
10865
 
10866
 
10867
 
10868
 
10869
 
10870
 
10871
 
10872
 
10873
 
10874
 
10875
 
10876
 
10877
 
10878
 
10879
 
10880
 
10881
 
10882
 
10883
 
10884
 
10885
 
10886
 
10887
 
10888
 
10889
 
10890
 
10891
 
10892
 
10893
 
10894
 
10895
 
10896
 
10897
 
10898
 
10899
 
10900
 
10901
 
10902
 
10903
 
10904
 
10905
 
10906
 
10907
 
10908
 
10909
 
10910
 
10911
 
10912
 
10913
 
10914
 
10915
 
10916
 
10917
 
10918
 
10919
 
10920
 
10921
 
10922
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10923
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10924
hardcode_action=
10925
if test -n "$hardcode_libdir_flag_spec" ||
10926
   test -n "$runpath_var" ||
10927
   test "X$hardcode_automatic" = "Xyes" ; then
10928
 
10929
  # We can hardcode non-existent directories.
10930
  if test "$hardcode_direct" != no &&
10931
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10932
     # have to relink, otherwise we might link with an installed library
10933
     # when we should be linking with a yet-to-be-installed one
10934
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10935
     test "$hardcode_minus_L" != no; then
10936
    # Linking always hardcodes the temporary library directory.
10937
    hardcode_action=relink
10938
  else
10939
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10940
    hardcode_action=immediate
10941
  fi
10942
else
10943
  # We cannot hardcode anything, or else we can only hardcode existing
10944
  # directories.
10945
  hardcode_action=unsupported
10946
fi
10947
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10948
$as_echo "$hardcode_action" >&6; }
10949
 
10950
if test "$hardcode_action" = relink ||
10951
   test "$inherit_rpath" = yes; then
10952
  # Fast installation is not supported
10953
  enable_fast_install=no
10954
elif test "$shlibpath_overrides_runpath" = yes ||
10955
     test "$enable_shared" = no; then
10956
  # Fast installation is not necessary
10957
  enable_fast_install=needless
10958
fi
10959
 
10960
 
10961
 
10962
 
10963
 
10964
 
10965
  if test "x$enable_dlopen" != xyes; then
10966
  enable_dlopen=unknown
10967
  enable_dlopen_self=unknown
10968
  enable_dlopen_self_static=unknown
10969
else
10970
  lt_cv_dlopen=no
10971
  lt_cv_dlopen_libs=
10972
 
10973
  case $host_os in
10974
  beos*)
10975
    lt_cv_dlopen="load_add_on"
10976
    lt_cv_dlopen_libs=
10977
    lt_cv_dlopen_self=yes
10978
    ;;
10979
 
10980
  mingw* | pw32* | cegcc*)
10981
    lt_cv_dlopen="LoadLibrary"
10982
    lt_cv_dlopen_libs=
10983
    ;;
10984
 
10985
  cygwin*)
10986
    lt_cv_dlopen="dlopen"
10987
    lt_cv_dlopen_libs=
10988
    ;;
10989
 
10990
  darwin*)
10991
  # if libdl is installed we need to link against it
10992
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10993
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10994
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10995
  $as_echo_n "(cached) " >&6
10996
else
10997
  ac_check_lib_save_LIBS=$LIBS
10998
LIBS="-ldl  $LIBS"
10999
cat >conftest.$ac_ext <<_ACEOF
11000
/* confdefs.h.  */
11001
_ACEOF
11002
cat confdefs.h >>conftest.$ac_ext
11003
cat >>conftest.$ac_ext <<_ACEOF
11004
/* end confdefs.h.  */
11005
 
11006
/* Override any GCC internal prototype to avoid an error.
11007
   Use char because int might match the return type of a GCC
11008
   builtin and then its argument prototype would still apply.  */
11009
#ifdef __cplusplus
11010
extern "C"
11011
#endif
11012
char dlopen ();
11013
int
11014
main ()
11015
{
11016
return dlopen ();
11017
  ;
11018
  return 0;
11019
}
11020
_ACEOF
11021
rm -f conftest.$ac_objext conftest$ac_exeext
11022
if { (ac_try="$ac_link"
11023
case "(($ac_try" in
11024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025
  *) ac_try_echo=$ac_try;;
11026
esac
11027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11028
$as_echo "$ac_try_echo") >&5
11029
  (eval "$ac_link") 2>conftest.er1
11030
  ac_status=$?
11031
  grep -v '^ *+' conftest.er1 >conftest.err
11032
  rm -f conftest.er1
11033
  cat conftest.err >&5
11034
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035
  (exit $ac_status); } && {
11036
	 test -z "$ac_c_werror_flag" ||
11037
	 test ! -s conftest.err
11038
       } && test -s conftest$ac_exeext && {
11039
	 test "$cross_compiling" = yes ||
11040
	 $as_test_x conftest$ac_exeext
11041
       }; then
11042
  ac_cv_lib_dl_dlopen=yes
11043
else
11044
  $as_echo "$as_me: failed program was:" >&5
11045
sed 's/^/| /' conftest.$ac_ext >&5
11046
 
11047
	ac_cv_lib_dl_dlopen=no
11048
fi
11049
 
11050
rm -rf conftest.dSYM
11051
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052
      conftest$ac_exeext conftest.$ac_ext
11053
LIBS=$ac_check_lib_save_LIBS
11054
fi
11055
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11056
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11057
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11058
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11059
else
11060
 
11061
    lt_cv_dlopen="dyld"
11062
    lt_cv_dlopen_libs=
11063
    lt_cv_dlopen_self=yes
11064
 
11065
fi
11066
 
11067
    ;;
11068
 
11069
  *)
11070
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11071
$as_echo_n "checking for shl_load... " >&6; }
11072
if test "${ac_cv_func_shl_load+set}" = set; then
11073
  $as_echo_n "(cached) " >&6
11074
else
11075
  cat >conftest.$ac_ext <<_ACEOF
11076
/* confdefs.h.  */
11077
_ACEOF
11078
cat confdefs.h >>conftest.$ac_ext
11079
cat >>conftest.$ac_ext <<_ACEOF
11080
/* end confdefs.h.  */
11081
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11082
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11083
#define shl_load innocuous_shl_load
11084
 
11085
/* System header to define __stub macros and hopefully few prototypes,
11086
    which can conflict with char shl_load (); below.
11087
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11088
    <limits.h> exists even on freestanding compilers.  */
11089
 
11090
#ifdef __STDC__
11091
# include <limits.h>
11092
#else
11093
# include <assert.h>
11094
#endif
11095
 
11096
#undef shl_load
11097
 
11098
/* Override any GCC internal prototype to avoid an error.
11099
   Use char because int might match the return type of a GCC
11100
   builtin and then its argument prototype would still apply.  */
11101
#ifdef __cplusplus
11102
extern "C"
11103
#endif
11104
char shl_load ();
11105
/* The GNU C library defines this for functions which it implements
11106
    to always fail with ENOSYS.  Some functions are actually named
11107
    something starting with __ and the normal name is an alias.  */
11108
#if defined __stub_shl_load || defined __stub___shl_load
11109
choke me
11110
#endif
11111
 
11112
int
11113
main ()
11114
{
11115
return shl_load ();
11116
  ;
11117
  return 0;
11118
}
11119
_ACEOF
11120
rm -f conftest.$ac_objext conftest$ac_exeext
11121
if { (ac_try="$ac_link"
11122
case "(($ac_try" in
11123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124
  *) ac_try_echo=$ac_try;;
11125
esac
11126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127
$as_echo "$ac_try_echo") >&5
11128
  (eval "$ac_link") 2>conftest.er1
11129
  ac_status=$?
11130
  grep -v '^ *+' conftest.er1 >conftest.err
11131
  rm -f conftest.er1
11132
  cat conftest.err >&5
11133
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134
  (exit $ac_status); } && {
11135
	 test -z "$ac_c_werror_flag" ||
11136
	 test ! -s conftest.err
11137
       } && test -s conftest$ac_exeext && {
11138
	 test "$cross_compiling" = yes ||
11139
	 $as_test_x conftest$ac_exeext
11140
       }; then
11141
  ac_cv_func_shl_load=yes
11142
else
11143
  $as_echo "$as_me: failed program was:" >&5
11144
sed 's/^/| /' conftest.$ac_ext >&5
11145
 
11146
	ac_cv_func_shl_load=no
11147
fi
11148
 
11149
rm -rf conftest.dSYM
11150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11151
      conftest$ac_exeext conftest.$ac_ext
11152
fi
11153
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11154
$as_echo "$ac_cv_func_shl_load" >&6; }
11155
if test "x$ac_cv_func_shl_load" = x""yes; then
11156
  lt_cv_dlopen="shl_load"
11157
else
11158
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11159
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11160
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11161
  $as_echo_n "(cached) " >&6
11162
else
11163
  ac_check_lib_save_LIBS=$LIBS
11164
LIBS="-ldld  $LIBS"
11165
cat >conftest.$ac_ext <<_ACEOF
11166
/* confdefs.h.  */
11167
_ACEOF
11168
cat confdefs.h >>conftest.$ac_ext
11169
cat >>conftest.$ac_ext <<_ACEOF
11170
/* end confdefs.h.  */
11171
 
11172
/* Override any GCC internal prototype to avoid an error.
11173
   Use char because int might match the return type of a GCC
11174
   builtin and then its argument prototype would still apply.  */
11175
#ifdef __cplusplus
11176
extern "C"
11177
#endif
11178
char shl_load ();
11179
int
11180
main ()
11181
{
11182
return shl_load ();
11183
  ;
11184
  return 0;
11185
}
11186
_ACEOF
11187
rm -f conftest.$ac_objext conftest$ac_exeext
11188
if { (ac_try="$ac_link"
11189
case "(($ac_try" in
11190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191
  *) ac_try_echo=$ac_try;;
11192
esac
11193
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11194
$as_echo "$ac_try_echo") >&5
11195
  (eval "$ac_link") 2>conftest.er1
11196
  ac_status=$?
11197
  grep -v '^ *+' conftest.er1 >conftest.err
11198
  rm -f conftest.er1
11199
  cat conftest.err >&5
11200
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
  (exit $ac_status); } && {
11202
	 test -z "$ac_c_werror_flag" ||
11203
	 test ! -s conftest.err
11204
       } && test -s conftest$ac_exeext && {
11205
	 test "$cross_compiling" = yes ||
11206
	 $as_test_x conftest$ac_exeext
11207
       }; then
11208
  ac_cv_lib_dld_shl_load=yes
11209
else
11210
  $as_echo "$as_me: failed program was:" >&5
11211
sed 's/^/| /' conftest.$ac_ext >&5
11212
 
11213
	ac_cv_lib_dld_shl_load=no
11214
fi
11215
 
11216
rm -rf conftest.dSYM
11217
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11218
      conftest$ac_exeext conftest.$ac_ext
11219
LIBS=$ac_check_lib_save_LIBS
11220
fi
11221
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11222
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11223
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11224
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11225
else
11226
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11227
$as_echo_n "checking for dlopen... " >&6; }
11228
if test "${ac_cv_func_dlopen+set}" = set; then
11229
  $as_echo_n "(cached) " >&6
11230
else
11231
  cat >conftest.$ac_ext <<_ACEOF
11232
/* confdefs.h.  */
11233
_ACEOF
11234
cat confdefs.h >>conftest.$ac_ext
11235
cat >>conftest.$ac_ext <<_ACEOF
11236
/* end confdefs.h.  */
11237
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11238
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11239
#define dlopen innocuous_dlopen
11240
 
11241
/* System header to define __stub macros and hopefully few prototypes,
11242
    which can conflict with char dlopen (); below.
11243
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244
    <limits.h> exists even on freestanding compilers.  */
11245
 
11246
#ifdef __STDC__
11247
# include <limits.h>
11248
#else
11249
# include <assert.h>
11250
#endif
11251
 
11252
#undef dlopen
11253
 
11254
/* Override any GCC internal prototype to avoid an error.
11255
   Use char because int might match the return type of a GCC
11256
   builtin and then its argument prototype would still apply.  */
11257
#ifdef __cplusplus
11258
extern "C"
11259
#endif
11260
char dlopen ();
11261
/* The GNU C library defines this for functions which it implements
11262
    to always fail with ENOSYS.  Some functions are actually named
11263
    something starting with __ and the normal name is an alias.  */
11264
#if defined __stub_dlopen || defined __stub___dlopen
11265
choke me
11266
#endif
11267
 
11268
int
11269
main ()
11270
{
11271
return dlopen ();
11272
  ;
11273
  return 0;
11274
}
11275
_ACEOF
11276
rm -f conftest.$ac_objext conftest$ac_exeext
11277
if { (ac_try="$ac_link"
11278
case "(($ac_try" in
11279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280
  *) ac_try_echo=$ac_try;;
11281
esac
11282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11283
$as_echo "$ac_try_echo") >&5
11284
  (eval "$ac_link") 2>conftest.er1
11285
  ac_status=$?
11286
  grep -v '^ *+' conftest.er1 >conftest.err
11287
  rm -f conftest.er1
11288
  cat conftest.err >&5
11289
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290
  (exit $ac_status); } && {
11291
	 test -z "$ac_c_werror_flag" ||
11292
	 test ! -s conftest.err
11293
       } && test -s conftest$ac_exeext && {
11294
	 test "$cross_compiling" = yes ||
11295
	 $as_test_x conftest$ac_exeext
11296
       }; then
11297
  ac_cv_func_dlopen=yes
11298
else
11299
  $as_echo "$as_me: failed program was:" >&5
11300
sed 's/^/| /' conftest.$ac_ext >&5
11301
 
11302
	ac_cv_func_dlopen=no
11303
fi
11304
 
11305
rm -rf conftest.dSYM
11306
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11307
      conftest$ac_exeext conftest.$ac_ext
11308
fi
11309
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11310
$as_echo "$ac_cv_func_dlopen" >&6; }
11311
if test "x$ac_cv_func_dlopen" = x""yes; then
11312
  lt_cv_dlopen="dlopen"
11313
else
11314
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11315
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11316
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11317
  $as_echo_n "(cached) " >&6
11318
else
11319
  ac_check_lib_save_LIBS=$LIBS
11320
LIBS="-ldl  $LIBS"
11321
cat >conftest.$ac_ext <<_ACEOF
11322
/* confdefs.h.  */
11323
_ACEOF
11324
cat confdefs.h >>conftest.$ac_ext
11325
cat >>conftest.$ac_ext <<_ACEOF
11326
/* end confdefs.h.  */
11327
 
11328
/* Override any GCC internal prototype to avoid an error.
11329
   Use char because int might match the return type of a GCC
11330
   builtin and then its argument prototype would still apply.  */
11331
#ifdef __cplusplus
11332
extern "C"
11333
#endif
11334
char dlopen ();
11335
int
11336
main ()
11337
{
11338
return dlopen ();
11339
  ;
11340
  return 0;
11341
}
11342
_ACEOF
11343
rm -f conftest.$ac_objext conftest$ac_exeext
11344
if { (ac_try="$ac_link"
11345
case "(($ac_try" in
11346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347
  *) ac_try_echo=$ac_try;;
11348
esac
11349
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11350
$as_echo "$ac_try_echo") >&5
11351
  (eval "$ac_link") 2>conftest.er1
11352
  ac_status=$?
11353
  grep -v '^ *+' conftest.er1 >conftest.err
11354
  rm -f conftest.er1
11355
  cat conftest.err >&5
11356
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357
  (exit $ac_status); } && {
11358
	 test -z "$ac_c_werror_flag" ||
11359
	 test ! -s conftest.err
11360
       } && test -s conftest$ac_exeext && {
11361
	 test "$cross_compiling" = yes ||
11362
	 $as_test_x conftest$ac_exeext
11363
       }; then
11364
  ac_cv_lib_dl_dlopen=yes
11365
else
11366
  $as_echo "$as_me: failed program was:" >&5
11367
sed 's/^/| /' conftest.$ac_ext >&5
11368
 
11369
	ac_cv_lib_dl_dlopen=no
11370
fi
11371
 
11372
rm -rf conftest.dSYM
11373
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374
      conftest$ac_exeext conftest.$ac_ext
11375
LIBS=$ac_check_lib_save_LIBS
11376
fi
11377
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11378
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11379
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11380
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11381
else
11382
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11383
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11384
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11385
  $as_echo_n "(cached) " >&6
11386
else
11387
  ac_check_lib_save_LIBS=$LIBS
11388
LIBS="-lsvld  $LIBS"
11389
cat >conftest.$ac_ext <<_ACEOF
11390
/* confdefs.h.  */
11391
_ACEOF
11392
cat confdefs.h >>conftest.$ac_ext
11393
cat >>conftest.$ac_ext <<_ACEOF
11394
/* end confdefs.h.  */
11395
 
11396
/* Override any GCC internal prototype to avoid an error.
11397
   Use char because int might match the return type of a GCC
11398
   builtin and then its argument prototype would still apply.  */
11399
#ifdef __cplusplus
11400
extern "C"
11401
#endif
11402
char dlopen ();
11403
int
11404
main ()
11405
{
11406
return dlopen ();
11407
  ;
11408
  return 0;
11409
}
11410
_ACEOF
11411
rm -f conftest.$ac_objext conftest$ac_exeext
11412
if { (ac_try="$ac_link"
11413
case "(($ac_try" in
11414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415
  *) ac_try_echo=$ac_try;;
11416
esac
11417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11418
$as_echo "$ac_try_echo") >&5
11419
  (eval "$ac_link") 2>conftest.er1
11420
  ac_status=$?
11421
  grep -v '^ *+' conftest.er1 >conftest.err
11422
  rm -f conftest.er1
11423
  cat conftest.err >&5
11424
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425
  (exit $ac_status); } && {
11426
	 test -z "$ac_c_werror_flag" ||
11427
	 test ! -s conftest.err
11428
       } && test -s conftest$ac_exeext && {
11429
	 test "$cross_compiling" = yes ||
11430
	 $as_test_x conftest$ac_exeext
11431
       }; then
11432
  ac_cv_lib_svld_dlopen=yes
11433
else
11434
  $as_echo "$as_me: failed program was:" >&5
11435
sed 's/^/| /' conftest.$ac_ext >&5
11436
 
11437
	ac_cv_lib_svld_dlopen=no
11438
fi
11439
 
11440
rm -rf conftest.dSYM
11441
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11442
      conftest$ac_exeext conftest.$ac_ext
11443
LIBS=$ac_check_lib_save_LIBS
11444
fi
11445
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11446
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11447
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11448
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11449
else
11450
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11451
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11452
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11453
  $as_echo_n "(cached) " >&6
11454
else
11455
  ac_check_lib_save_LIBS=$LIBS
11456
LIBS="-ldld  $LIBS"
11457
cat >conftest.$ac_ext <<_ACEOF
11458
/* confdefs.h.  */
11459
_ACEOF
11460
cat confdefs.h >>conftest.$ac_ext
11461
cat >>conftest.$ac_ext <<_ACEOF
11462
/* end confdefs.h.  */
11463
 
11464
/* Override any GCC internal prototype to avoid an error.
11465
   Use char because int might match the return type of a GCC
11466
   builtin and then its argument prototype would still apply.  */
11467
#ifdef __cplusplus
11468
extern "C"
11469
#endif
11470
char dld_link ();
11471
int
11472
main ()
11473
{
11474
return dld_link ();
11475
  ;
11476
  return 0;
11477
}
11478
_ACEOF
11479
rm -f conftest.$ac_objext conftest$ac_exeext
11480
if { (ac_try="$ac_link"
11481
case "(($ac_try" in
11482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483
  *) ac_try_echo=$ac_try;;
11484
esac
11485
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11486
$as_echo "$ac_try_echo") >&5
11487
  (eval "$ac_link") 2>conftest.er1
11488
  ac_status=$?
11489
  grep -v '^ *+' conftest.er1 >conftest.err
11490
  rm -f conftest.er1
11491
  cat conftest.err >&5
11492
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
  (exit $ac_status); } && {
11494
	 test -z "$ac_c_werror_flag" ||
11495
	 test ! -s conftest.err
11496
       } && test -s conftest$ac_exeext && {
11497
	 test "$cross_compiling" = yes ||
11498
	 $as_test_x conftest$ac_exeext
11499
       }; then
11500
  ac_cv_lib_dld_dld_link=yes
11501
else
11502
  $as_echo "$as_me: failed program was:" >&5
11503
sed 's/^/| /' conftest.$ac_ext >&5
11504
 
11505
	ac_cv_lib_dld_dld_link=no
11506
fi
11507
 
11508
rm -rf conftest.dSYM
11509
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11510
      conftest$ac_exeext conftest.$ac_ext
11511
LIBS=$ac_check_lib_save_LIBS
11512
fi
11513
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11514
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11515
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11516
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11517
fi
11518
 
11519
 
11520
fi
11521
 
11522
 
11523
fi
11524
 
11525
 
11526
fi
11527
 
11528
 
11529
fi
11530
 
11531
 
11532
fi
11533
 
11534
    ;;
11535
  esac
11536
 
11537
  if test "x$lt_cv_dlopen" != xno; then
11538
    enable_dlopen=yes
11539
  else
11540
    enable_dlopen=no
11541
  fi
11542
 
11543
  case $lt_cv_dlopen in
11544
  dlopen)
11545
    save_CPPFLAGS="$CPPFLAGS"
11546
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11547
 
11548
    save_LDFLAGS="$LDFLAGS"
11549
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11550
 
11551
    save_LIBS="$LIBS"
11552
    LIBS="$lt_cv_dlopen_libs $LIBS"
11553
 
11554
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11555
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11556
if test "${lt_cv_dlopen_self+set}" = set; then
11557
  $as_echo_n "(cached) " >&6
11558
else
11559
  	  if test "$cross_compiling" = yes; then :
11560
  lt_cv_dlopen_self=cross
11561
else
11562
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11563
  lt_status=$lt_dlunknown
11564
  cat > conftest.$ac_ext <<_LT_EOF
11565
#line 11565 "configure"
11566
#include "confdefs.h"
11567
 
11568
#if HAVE_DLFCN_H
11569
#include <dlfcn.h>
11570
#endif
11571
 
11572
#include <stdio.h>
11573
 
11574
#ifdef RTLD_GLOBAL
11575
#  define LT_DLGLOBAL		RTLD_GLOBAL
11576
#else
11577
#  ifdef DL_GLOBAL
11578
#    define LT_DLGLOBAL		DL_GLOBAL
11579
#  else
11580
#    define LT_DLGLOBAL		0
11581
#  endif
11582
#endif
11583
 
11584
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11585
   find out it does not work in some platform. */
11586
#ifndef LT_DLLAZY_OR_NOW
11587
#  ifdef RTLD_LAZY
11588
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11589
#  else
11590
#    ifdef DL_LAZY
11591
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11592
#    else
11593
#      ifdef RTLD_NOW
11594
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11595
#      else
11596
#        ifdef DL_NOW
11597
#          define LT_DLLAZY_OR_NOW	DL_NOW
11598
#        else
11599
#          define LT_DLLAZY_OR_NOW	0
11600
#        endif
11601
#      endif
11602
#    endif
11603
#  endif
11604
#endif
11605
 
11606
void fnord() { int i=42;}
11607
int main ()
11608
{
11609
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11610
  int status = $lt_dlunknown;
11611
 
11612
  if (self)
11613
    {
11614
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11615
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11616
      /* dlclose (self); */
11617
    }
11618
  else
11619
    puts (dlerror ());
11620
 
11621
  return status;
11622
}
11623
_LT_EOF
11624
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625
  (eval $ac_link) 2>&5
11626
  ac_status=$?
11627
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11629
    (./conftest; exit; ) >&5 2>/dev/null
11630
    lt_status=$?
11631
    case x$lt_status in
11632
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11633
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11634
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11635
    esac
11636
  else :
11637
    # compilation failed
11638
    lt_cv_dlopen_self=no
11639
  fi
11640
fi
11641
rm -fr conftest*
11642
 
11643
 
11644
fi
11645
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11646
$as_echo "$lt_cv_dlopen_self" >&6; }
11647
 
11648
    if test "x$lt_cv_dlopen_self" = xyes; then
11649
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11650
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11651
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11652
if test "${lt_cv_dlopen_self_static+set}" = set; then
11653
  $as_echo_n "(cached) " >&6
11654
else
11655
  	  if test "$cross_compiling" = yes; then :
11656
  lt_cv_dlopen_self_static=cross
11657
else
11658
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11659
  lt_status=$lt_dlunknown
11660
  cat > conftest.$ac_ext <<_LT_EOF
11661
#line 11661 "configure"
11662
#include "confdefs.h"
11663
 
11664
#if HAVE_DLFCN_H
11665
#include <dlfcn.h>
11666
#endif
11667
 
11668
#include <stdio.h>
11669
 
11670
#ifdef RTLD_GLOBAL
11671
#  define LT_DLGLOBAL		RTLD_GLOBAL
11672
#else
11673
#  ifdef DL_GLOBAL
11674
#    define LT_DLGLOBAL		DL_GLOBAL
11675
#  else
11676
#    define LT_DLGLOBAL		0
11677
#  endif
11678
#endif
11679
 
11680
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11681
   find out it does not work in some platform. */
11682
#ifndef LT_DLLAZY_OR_NOW
11683
#  ifdef RTLD_LAZY
11684
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11685
#  else
11686
#    ifdef DL_LAZY
11687
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11688
#    else
11689
#      ifdef RTLD_NOW
11690
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11691
#      else
11692
#        ifdef DL_NOW
11693
#          define LT_DLLAZY_OR_NOW	DL_NOW
11694
#        else
11695
#          define LT_DLLAZY_OR_NOW	0
11696
#        endif
11697
#      endif
11698
#    endif
11699
#  endif
11700
#endif
11701
 
11702
void fnord() { int i=42;}
11703
int main ()
11704
{
11705
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706
  int status = $lt_dlunknown;
11707
 
11708
  if (self)
11709
    {
11710
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11711
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712
      /* dlclose (self); */
11713
    }
11714
  else
11715
    puts (dlerror ());
11716
 
11717
  return status;
11718
}
11719
_LT_EOF
11720
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721
  (eval $ac_link) 2>&5
11722
  ac_status=$?
11723
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11725
    (./conftest; exit; ) >&5 2>/dev/null
11726
    lt_status=$?
11727
    case x$lt_status in
11728
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11729
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11730
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11731
    esac
11732
  else :
11733
    # compilation failed
11734
    lt_cv_dlopen_self_static=no
11735
  fi
11736
fi
11737
rm -fr conftest*
11738
 
11739
 
11740
fi
11741
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11742
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11743
    fi
11744
 
11745
    CPPFLAGS="$save_CPPFLAGS"
11746
    LDFLAGS="$save_LDFLAGS"
11747
    LIBS="$save_LIBS"
11748
    ;;
11749
  esac
11750
 
11751
  case $lt_cv_dlopen_self in
11752
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11753
  *) enable_dlopen_self=unknown ;;
11754
  esac
11755
 
11756
  case $lt_cv_dlopen_self_static in
11757
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11758
  *) enable_dlopen_self_static=unknown ;;
11759
  esac
11760
fi
11761
 
11762
 
11763
 
11764
 
11765
 
11766
 
11767
 
11768
 
11769
 
11770
 
11771
 
11772
 
11773
 
11774
 
11775
 
11776
 
11777
 
11778
striplib=
11779
old_striplib=
11780
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11781
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11782
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11783
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11784
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11785
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11786
$as_echo "yes" >&6; }
11787
else
11788
# FIXME - insert some real tests, host_os isn't really good enough
11789
  case $host_os in
11790
  darwin*)
11791
    if test -n "$STRIP" ; then
11792
      striplib="$STRIP -x"
11793
      old_striplib="$STRIP -S"
11794
      { $as_echo "$as_me:$LINENO: result: yes" >&5
11795
$as_echo "yes" >&6; }
11796
    else
11797
      { $as_echo "$as_me:$LINENO: result: no" >&5
11798
$as_echo "no" >&6; }
11799
    fi
11800
    ;;
11801
  *)
11802
    { $as_echo "$as_me:$LINENO: result: no" >&5
11803
$as_echo "no" >&6; }
11804
    ;;
11805
  esac
11806
fi
11807
 
11808
 
11809
 
11810
 
11811
 
11812
 
11813
 
11814
 
11815
 
11816
 
11817
 
11818
 
11819
  # Report which library types will actually be built
11820
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11821
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11822
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11823
$as_echo "$can_build_shared" >&6; }
11824
 
11825
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11826
$as_echo_n "checking whether to build shared libraries... " >&6; }
11827
  test "$can_build_shared" = "no" && enable_shared=no
11828
 
11829
  # On AIX, shared libraries and static libraries use the same namespace, and
11830
  # are all built from PIC.
11831
  case $host_os in
11832
  aix3*)
11833
    test "$enable_shared" = yes && enable_static=no
11834
    if test -n "$RANLIB"; then
11835
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11836
      postinstall_cmds='$RANLIB $lib'
11837
    fi
11838
    ;;
11839
 
11840
  aix[4-9]*)
11841
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11842
      test "$enable_shared" = yes && enable_static=no
11843
    fi
11844
    ;;
11845
  esac
11846
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11847
$as_echo "$enable_shared" >&6; }
11848
 
11849
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11850
$as_echo_n "checking whether to build static libraries... " >&6; }
11851
  # Make sure either enable_shared or enable_static is yes.
11852
  test "$enable_shared" = yes || enable_static=yes
11853
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11854
$as_echo "$enable_static" >&6; }
11855
 
11856
 
11857
 
11858
 
11859
fi
11860
ac_ext=c
11861
ac_cpp='$CPP $CPPFLAGS'
11862
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865
 
11866
CC="$lt_save_CC"
11867
 
11868
 
11869
 
11870
 
11871
 
11872
 
11873
 
11874
 
11875
 
11876
 
11877
 
11878
 
11879
 
11880
        ac_config_commands="$ac_config_commands libtool"
11881
 
11882
 
11883
 
11884
 
11885
# Only expand once:
11886
 
11887
 
11888
# Find a good install program.  We prefer a C program (faster),
11889
# so one script is as good as another.  But avoid the broken or
11890
# incompatible versions:
11891
# SysV /etc/install, /usr/sbin/install
11892
# SunOS /usr/etc/install
11893
# IRIX /sbin/install
11894
# AIX /bin/install
11895
# AmigaOS /C/install, which installs bootblocks on floppy discs
11896
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11897
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11898
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11899
# OS/2's system install, which has a completely different semantic
11900
# ./install, which can be erroneously created by make from ./install.sh.
11901
# Reject install programs that cannot install multiple files.
11902
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11903
$as_echo_n "checking for a BSD-compatible install... " >&6; }
11904
if test -z "$INSTALL"; then
11905
if test "${ac_cv_path_install+set}" = set; then
11906
  $as_echo_n "(cached) " >&6
11907
else
11908
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909
for as_dir in $PATH
11910
do
11911
  IFS=$as_save_IFS
11912
  test -z "$as_dir" && as_dir=.
11913
  # Account for people who put trailing slashes in PATH elements.
11914
case $as_dir/ in
11915
  ./ | .// | /cC/* | \
11916
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11917
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11918
  /usr/ucb/* ) ;;
11919
  *)
11920
    # OSF1 and SCO ODT 3.0 have their own names for install.
11921
    # Don't use installbsd from OSF since it installs stuff as root
11922
    # by default.
11923
    for ac_prog in ginstall scoinst install; do
11924
      for ac_exec_ext in '' $ac_executable_extensions; do
11925
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11926
	  if test $ac_prog = install &&
11927
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11928
	    # AIX install.  It has an incompatible calling convention.
11929
	    :
11930
	  elif test $ac_prog = install &&
11931
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11932
	    # program-specific install script used by HP pwplus--don't use.
11933
	    :
11934
	  else
11935
	    rm -rf conftest.one conftest.two conftest.dir
11936
	    echo one > conftest.one
11937
	    echo two > conftest.two
11938
	    mkdir conftest.dir
11939
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11940
	      test -s conftest.one && test -s conftest.two &&
11941
	      test -s conftest.dir/conftest.one &&
11942
	      test -s conftest.dir/conftest.two
11943
	    then
11944
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11945
	      break 3
11946
	    fi
11947
	  fi
11948
	fi
11949
      done
11950
    done
11951
    ;;
11952
esac
11953
 
11954
done
11955
IFS=$as_save_IFS
11956
 
11957
rm -rf conftest.one conftest.two conftest.dir
11958
 
11959
fi
11960
  if test "${ac_cv_path_install+set}" = set; then
11961
    INSTALL=$ac_cv_path_install
11962
  else
11963
    # As a last resort, use the slow shell script.  Don't cache a
11964
    # value for INSTALL within a source directory, because that will
11965
    # break other packages using the cache if that directory is
11966
    # removed, or if the value is a relative name.
11967
    INSTALL=$ac_install_sh
11968
  fi
11969
fi
11970
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11971
$as_echo "$INSTALL" >&6; }
11972
 
11973
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11974
# It thinks the first close brace ends the variable substitution.
11975
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11976
 
11977
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11978
 
11979
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11980
 
11981
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11982
$as_echo_n "checking whether ln -s works... " >&6; }
11983
LN_S=$as_ln_s
11984
if test "$LN_S" = "ln -s"; then
11985
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11986
$as_echo "yes" >&6; }
11987
else
11988
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11989
$as_echo "no, using $LN_S" >&6; }
11990
fi
11991
 
11992
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11993
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11994
set x ${MAKE-make}
11995
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11996
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11997
  $as_echo_n "(cached) " >&6
11998
else
11999
  cat >conftest.make <<\_ACEOF
12000
SHELL = /bin/sh
12001
all:
12002
	@echo '@@@%%%=$(MAKE)=@@@%%%'
12003
_ACEOF
12004
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12005
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12006
  *@@@%%%=?*=@@@%%%*)
12007
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12008
  *)
12009
    eval ac_cv_prog_make_${ac_make}_set=no;;
12010
esac
12011
rm -f conftest.make
12012
fi
12013
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12014
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12015
$as_echo "yes" >&6; }
12016
  SET_MAKE=
12017
else
12018
  { $as_echo "$as_me:$LINENO: result: no" >&5
12019
$as_echo "no" >&6; }
12020
  SET_MAKE="MAKE=${MAKE-make}"
12021
fi
12022
 
12023
 
12024
 
12025
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12026
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12027
if test "${ac_cv_c_const+set}" = set; then
12028
  $as_echo_n "(cached) " >&6
12029
else
12030
  cat >conftest.$ac_ext <<_ACEOF
12031
/* confdefs.h.  */
12032
_ACEOF
12033
cat confdefs.h >>conftest.$ac_ext
12034
cat >>conftest.$ac_ext <<_ACEOF
12035
/* end confdefs.h.  */
12036
 
12037
int
12038
main ()
12039
{
12040
/* FIXME: Include the comments suggested by Paul. */
12041
#ifndef __cplusplus
12042
  /* Ultrix mips cc rejects this.  */
12043
  typedef int charset[2];
12044
  const charset cs;
12045
  /* SunOS 4.1.1 cc rejects this.  */
12046
  char const *const *pcpcc;
12047
  char **ppc;
12048
  /* NEC SVR4.0.2 mips cc rejects this.  */
12049
  struct point {int x, y;};
12050
  static struct point const zero = {0,0};
12051
  /* AIX XL C 1.02.0.0 rejects this.
12052
     It does not let you subtract one const X* pointer from another in
12053
     an arm of an if-expression whose if-part is not a constant
12054
     expression */
12055
  const char *g = "string";
12056
  pcpcc = &g + (g ? g-g : 0);
12057
  /* HPUX 7.0 cc rejects these. */
12058
  ++pcpcc;
12059
  ppc = (char**) pcpcc;
12060
  pcpcc = (char const *const *) ppc;
12061
  { /* SCO 3.2v4 cc rejects this.  */
12062
    char *t;
12063
    char const *s = 0 ? (char *) 0 : (char const *) 0;
12064
 
12065
    *t++ = 0;
12066
    if (s) return 0;
12067
  }
12068
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12069
    int x[] = {25, 17};
12070
    const int *foo = &x[0];
12071
    ++foo;
12072
  }
12073
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12074
    typedef const int *iptr;
12075
    iptr p = 0;
12076
    ++p;
12077
  }
12078
  { /* AIX XL C 1.02.0.0 rejects this saying
12079
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12080
    struct s { int j; const int *ap[3]; };
12081
    struct s *b; b->j = 5;
12082
  }
12083
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12084
    const int foo = 10;
12085
    if (!foo) return 0;
12086
  }
12087
  return !cs[0] && !zero.x;
12088
#endif
12089
 
12090
  ;
12091
  return 0;
12092
}
12093
_ACEOF
12094
rm -f conftest.$ac_objext
12095
if { (ac_try="$ac_compile"
12096
case "(($ac_try" in
12097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098
  *) ac_try_echo=$ac_try;;
12099
esac
12100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12101
$as_echo "$ac_try_echo") >&5
12102
  (eval "$ac_compile") 2>conftest.er1
12103
  ac_status=$?
12104
  grep -v '^ *+' conftest.er1 >conftest.err
12105
  rm -f conftest.er1
12106
  cat conftest.err >&5
12107
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108
  (exit $ac_status); } && {
12109
	 test -z "$ac_c_werror_flag" ||
12110
	 test ! -s conftest.err
12111
       } && test -s conftest.$ac_objext; then
12112
  ac_cv_c_const=yes
12113
else
12114
  $as_echo "$as_me: failed program was:" >&5
12115
sed 's/^/| /' conftest.$ac_ext >&5
12116
 
12117
	ac_cv_c_const=no
12118
fi
12119
 
12120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121
fi
12122
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12123
$as_echo "$ac_cv_c_const" >&6; }
12124
if test $ac_cv_c_const = no; then
12125
 
12126
cat >>confdefs.h <<\_ACEOF
12127
#define const /**/
12128
_ACEOF
12129
 
12130
fi
12131
 
12132
 
12133
 
12134
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12135
$as_echo_n "checking for ANSI C header files... " >&6; }
12136
if test "${ac_cv_header_stdc+set}" = set; then
12137
  $as_echo_n "(cached) " >&6
12138
else
12139
  cat >conftest.$ac_ext <<_ACEOF
12140
/* confdefs.h.  */
12141
_ACEOF
12142
cat confdefs.h >>conftest.$ac_ext
12143
cat >>conftest.$ac_ext <<_ACEOF
12144
/* end confdefs.h.  */
12145
#include <stdlib.h>
12146
#include <stdarg.h>
12147
#include <string.h>
12148
#include <float.h>
12149
 
12150
int
12151
main ()
12152
{
12153
 
12154
  ;
12155
  return 0;
12156
}
12157
_ACEOF
12158
rm -f conftest.$ac_objext
12159
if { (ac_try="$ac_compile"
12160
case "(($ac_try" in
12161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162
  *) ac_try_echo=$ac_try;;
12163
esac
12164
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12165
$as_echo "$ac_try_echo") >&5
12166
  (eval "$ac_compile") 2>conftest.er1
12167
  ac_status=$?
12168
  grep -v '^ *+' conftest.er1 >conftest.err
12169
  rm -f conftest.er1
12170
  cat conftest.err >&5
12171
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172
  (exit $ac_status); } && {
12173
	 test -z "$ac_c_werror_flag" ||
12174
	 test ! -s conftest.err
12175
       } && test -s conftest.$ac_objext; then
12176
  ac_cv_header_stdc=yes
12177
else
12178
  $as_echo "$as_me: failed program was:" >&5
12179
sed 's/^/| /' conftest.$ac_ext >&5
12180
 
12181
	ac_cv_header_stdc=no
12182
fi
12183
 
12184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185
 
12186
if test $ac_cv_header_stdc = yes; then
12187
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12188
  cat >conftest.$ac_ext <<_ACEOF
12189
/* confdefs.h.  */
12190
_ACEOF
12191
cat confdefs.h >>conftest.$ac_ext
12192
cat >>conftest.$ac_ext <<_ACEOF
12193
/* end confdefs.h.  */
12194
#include <string.h>
12195
 
12196
_ACEOF
12197
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12198
  $EGREP "memchr" >/dev/null 2>&1; then
12199
  :
12200
else
12201
  ac_cv_header_stdc=no
12202
fi
12203
rm -f conftest*
12204
 
12205
fi
12206
 
12207
if test $ac_cv_header_stdc = yes; then
12208
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12209
  cat >conftest.$ac_ext <<_ACEOF
12210
/* confdefs.h.  */
12211
_ACEOF
12212
cat confdefs.h >>conftest.$ac_ext
12213
cat >>conftest.$ac_ext <<_ACEOF
12214
/* end confdefs.h.  */
12215
#include <stdlib.h>
12216
 
12217
_ACEOF
12218
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12219
  $EGREP "free" >/dev/null 2>&1; then
12220
  :
12221
else
12222
  ac_cv_header_stdc=no
12223
fi
12224
rm -f conftest*
12225
 
12226
fi
12227
 
12228
if test $ac_cv_header_stdc = yes; then
12229
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12230
  if test "$cross_compiling" = yes; then
12231
  :
12232
else
12233
  cat >conftest.$ac_ext <<_ACEOF
12234
/* confdefs.h.  */
12235
_ACEOF
12236
cat confdefs.h >>conftest.$ac_ext
12237
cat >>conftest.$ac_ext <<_ACEOF
12238
/* end confdefs.h.  */
12239
#include <ctype.h>
12240
#include <stdlib.h>
12241
#if ((' ' & 0x0FF) == 0x020)
12242
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12243
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12244
#else
12245
# define ISLOWER(c) \
12246
		   (('a' <= (c) && (c) <= 'i') \
12247
		     || ('j' <= (c) && (c) <= 'r') \
12248
		     || ('s' <= (c) && (c) <= 'z'))
12249
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12250
#endif
12251
 
12252
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12253
int
12254
main ()
12255
{
12256
  int i;
12257
  for (i = 0; i < 256; i++)
12258
    if (XOR (islower (i), ISLOWER (i))
12259
	|| toupper (i) != TOUPPER (i))
12260
      return 2;
12261
  return 0;
12262
}
12263
_ACEOF
12264
rm -f conftest$ac_exeext
12265
if { (ac_try="$ac_link"
12266
case "(($ac_try" in
12267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268
  *) ac_try_echo=$ac_try;;
12269
esac
12270
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12271
$as_echo "$ac_try_echo") >&5
12272
  (eval "$ac_link") 2>&5
12273
  ac_status=$?
12274
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12276
  { (case "(($ac_try" in
12277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278
  *) ac_try_echo=$ac_try;;
12279
esac
12280
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12281
$as_echo "$ac_try_echo") >&5
12282
  (eval "$ac_try") 2>&5
12283
  ac_status=$?
12284
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285
  (exit $ac_status); }; }; then
12286
  :
12287
else
12288
  $as_echo "$as_me: program exited with status $ac_status" >&5
12289
$as_echo "$as_me: failed program was:" >&5
12290
sed 's/^/| /' conftest.$ac_ext >&5
12291
 
12292
( exit $ac_status )
12293
ac_cv_header_stdc=no
12294
fi
12295
rm -rf conftest.dSYM
12296
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12297
fi
12298
 
12299
 
12300
fi
12301
fi
12302
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12303
$as_echo "$ac_cv_header_stdc" >&6; }
12304
if test $ac_cv_header_stdc = yes; then
12305
 
12306
cat >>confdefs.h <<\_ACEOF
12307
#define STDC_HEADERS 1
12308
_ACEOF
12309
 
12310
fi
12311
 
12312
 
12313
for ac_header in unistd.h
12314
do
12315
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12316
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12318
$as_echo_n "checking for $ac_header... " >&6; }
12319
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320
  $as_echo_n "(cached) " >&6
12321
fi
12322
ac_res=`eval 'as_val=${'$as_ac_Header'}
12323
		 $as_echo "$as_val"'`
12324
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12325
$as_echo "$ac_res" >&6; }
12326
else
12327
  # Is the header compilable?
12328
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12329
$as_echo_n "checking $ac_header usability... " >&6; }
12330
cat >conftest.$ac_ext <<_ACEOF
12331
/* confdefs.h.  */
12332
_ACEOF
12333
cat confdefs.h >>conftest.$ac_ext
12334
cat >>conftest.$ac_ext <<_ACEOF
12335
/* end confdefs.h.  */
12336
$ac_includes_default
12337
#include <$ac_header>
12338
_ACEOF
12339
rm -f conftest.$ac_objext
12340
if { (ac_try="$ac_compile"
12341
case "(($ac_try" in
12342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343
  *) ac_try_echo=$ac_try;;
12344
esac
12345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12346
$as_echo "$ac_try_echo") >&5
12347
  (eval "$ac_compile") 2>conftest.er1
12348
  ac_status=$?
12349
  grep -v '^ *+' conftest.er1 >conftest.err
12350
  rm -f conftest.er1
12351
  cat conftest.err >&5
12352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353
  (exit $ac_status); } && {
12354
	 test -z "$ac_c_werror_flag" ||
12355
	 test ! -s conftest.err
12356
       } && test -s conftest.$ac_objext; then
12357
  ac_header_compiler=yes
12358
else
12359
  $as_echo "$as_me: failed program was:" >&5
12360
sed 's/^/| /' conftest.$ac_ext >&5
12361
 
12362
	ac_header_compiler=no
12363
fi
12364
 
12365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12367
$as_echo "$ac_header_compiler" >&6; }
12368
 
12369
# Is the header present?
12370
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12371
$as_echo_n "checking $ac_header presence... " >&6; }
12372
cat >conftest.$ac_ext <<_ACEOF
12373
/* confdefs.h.  */
12374
_ACEOF
12375
cat confdefs.h >>conftest.$ac_ext
12376
cat >>conftest.$ac_ext <<_ACEOF
12377
/* end confdefs.h.  */
12378
#include <$ac_header>
12379
_ACEOF
12380
if { (ac_try="$ac_cpp conftest.$ac_ext"
12381
case "(($ac_try" in
12382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383
  *) ac_try_echo=$ac_try;;
12384
esac
12385
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386
$as_echo "$ac_try_echo") >&5
12387
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12388
  ac_status=$?
12389
  grep -v '^ *+' conftest.er1 >conftest.err
12390
  rm -f conftest.er1
12391
  cat conftest.err >&5
12392
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393
  (exit $ac_status); } >/dev/null && {
12394
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12395
	 test ! -s conftest.err
12396
       }; then
12397
  ac_header_preproc=yes
12398
else
12399
  $as_echo "$as_me: failed program was:" >&5
12400
sed 's/^/| /' conftest.$ac_ext >&5
12401
 
12402
  ac_header_preproc=no
12403
fi
12404
 
12405
rm -f conftest.err conftest.$ac_ext
12406
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12407
$as_echo "$ac_header_preproc" >&6; }
12408
 
12409
# So?  What about this header?
12410
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12411
  yes:no: )
12412
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12413
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12414
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12415
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12416
    ac_header_preproc=yes
12417
    ;;
12418
  no:yes:* )
12419
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12420
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12421
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12422
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12423
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12424
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12425
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12426
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12427
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12428
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12429
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12430
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12431
 
12432
    ;;
12433
esac
12434
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12435
$as_echo_n "checking for $ac_header... " >&6; }
12436
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12437
  $as_echo_n "(cached) " >&6
12438
else
12439
  eval "$as_ac_Header=\$ac_header_preproc"
12440
fi
12441
ac_res=`eval 'as_val=${'$as_ac_Header'}
12442
		 $as_echo "$as_val"'`
12443
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12444
$as_echo "$ac_res" >&6; }
12445
 
12446
fi
12447
as_val=`eval 'as_val=${'$as_ac_Header'}
12448
		 $as_echo "$as_val"'`
12449
   if test "x$as_val" = x""yes; then
12450
  cat >>confdefs.h <<_ACEOF
12451
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12452
_ACEOF
12453
 
12454
fi
12455
 
12456
done
12457
 
12458
{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
12459
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12460
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
12461
  $as_echo_n "(cached) " >&6
12462
else
12463
  cat >conftest.$ac_ext <<_ACEOF
12464
/* confdefs.h.  */
12465
_ACEOF
12466
cat confdefs.h >>conftest.$ac_ext
12467
cat >>conftest.$ac_ext <<_ACEOF
12468
/* end confdefs.h.  */
12469
#include <sys/types.h>
12470
int
12471
main ()
12472
{
12473
return makedev(0, 0);
12474
  ;
12475
  return 0;
12476
}
12477
_ACEOF
12478
rm -f conftest.$ac_objext conftest$ac_exeext
12479
if { (ac_try="$ac_link"
12480
case "(($ac_try" in
12481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482
  *) ac_try_echo=$ac_try;;
12483
esac
12484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12485
$as_echo "$ac_try_echo") >&5
12486
  (eval "$ac_link") 2>conftest.er1
12487
  ac_status=$?
12488
  grep -v '^ *+' conftest.er1 >conftest.err
12489
  rm -f conftest.er1
12490
  cat conftest.err >&5
12491
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492
  (exit $ac_status); } && {
12493
	 test -z "$ac_c_werror_flag" ||
12494
	 test ! -s conftest.err
12495
       } && test -s conftest$ac_exeext && {
12496
	 test "$cross_compiling" = yes ||
12497
	 $as_test_x conftest$ac_exeext
12498
       }; then
12499
  ac_cv_header_sys_types_h_makedev=yes
12500
else
12501
  $as_echo "$as_me: failed program was:" >&5
12502
sed 's/^/| /' conftest.$ac_ext >&5
12503
 
12504
	ac_cv_header_sys_types_h_makedev=no
12505
fi
12506
 
12507
rm -rf conftest.dSYM
12508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509
      conftest$ac_exeext conftest.$ac_ext
12510
 
12511
fi
12512
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
12513
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12514
 
12515
if test $ac_cv_header_sys_types_h_makedev = no; then
12516
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
12517
  { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
12518
$as_echo_n "checking for sys/mkdev.h... " >&6; }
12519
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
12520
  $as_echo_n "(cached) " >&6
12521
fi
12522
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
12523
$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
12524
else
12525
  # Is the header compilable?
12526
{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
12527
$as_echo_n "checking sys/mkdev.h usability... " >&6; }
12528
cat >conftest.$ac_ext <<_ACEOF
12529
/* confdefs.h.  */
12530
_ACEOF
12531
cat confdefs.h >>conftest.$ac_ext
12532
cat >>conftest.$ac_ext <<_ACEOF
12533
/* end confdefs.h.  */
12534
$ac_includes_default
12535
#include <sys/mkdev.h>
12536
_ACEOF
12537
rm -f conftest.$ac_objext
12538
if { (ac_try="$ac_compile"
12539
case "(($ac_try" in
12540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541
  *) ac_try_echo=$ac_try;;
12542
esac
12543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12544
$as_echo "$ac_try_echo") >&5
12545
  (eval "$ac_compile") 2>conftest.er1
12546
  ac_status=$?
12547
  grep -v '^ *+' conftest.er1 >conftest.err
12548
  rm -f conftest.er1
12549
  cat conftest.err >&5
12550
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
  (exit $ac_status); } && {
12552
	 test -z "$ac_c_werror_flag" ||
12553
	 test ! -s conftest.err
12554
       } && test -s conftest.$ac_objext; then
12555
  ac_header_compiler=yes
12556
else
12557
  $as_echo "$as_me: failed program was:" >&5
12558
sed 's/^/| /' conftest.$ac_ext >&5
12559
 
12560
	ac_header_compiler=no
12561
fi
12562
 
12563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12565
$as_echo "$ac_header_compiler" >&6; }
12566
 
12567
# Is the header present?
12568
{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
12569
$as_echo_n "checking sys/mkdev.h presence... " >&6; }
12570
cat >conftest.$ac_ext <<_ACEOF
12571
/* confdefs.h.  */
12572
_ACEOF
12573
cat confdefs.h >>conftest.$ac_ext
12574
cat >>conftest.$ac_ext <<_ACEOF
12575
/* end confdefs.h.  */
12576
#include <sys/mkdev.h>
12577
_ACEOF
12578
if { (ac_try="$ac_cpp conftest.$ac_ext"
12579
case "(($ac_try" in
12580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581
  *) ac_try_echo=$ac_try;;
12582
esac
12583
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584
$as_echo "$ac_try_echo") >&5
12585
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12586
  ac_status=$?
12587
  grep -v '^ *+' conftest.er1 >conftest.err
12588
  rm -f conftest.er1
12589
  cat conftest.err >&5
12590
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591
  (exit $ac_status); } >/dev/null && {
12592
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12593
	 test ! -s conftest.err
12594
       }; then
12595
  ac_header_preproc=yes
12596
else
12597
  $as_echo "$as_me: failed program was:" >&5
12598
sed 's/^/| /' conftest.$ac_ext >&5
12599
 
12600
  ac_header_preproc=no
12601
fi
12602
 
12603
rm -f conftest.err conftest.$ac_ext
12604
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12605
$as_echo "$ac_header_preproc" >&6; }
12606
 
12607
# So?  What about this header?
12608
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12609
  yes:no: )
12610
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
12611
$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12612
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
12613
$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
12614
    ac_header_preproc=yes
12615
    ;;
12616
  no:yes:* )
12617
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
12618
$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
12619
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
12620
$as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
12621
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
12622
$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
12623
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
12624
$as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12625
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
12626
$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
12627
    { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
12628
$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
12629
 
12630
    ;;
12631
esac
12632
{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
12633
$as_echo_n "checking for sys/mkdev.h... " >&6; }
12634
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
12635
  $as_echo_n "(cached) " >&6
12636
else
12637
  ac_cv_header_sys_mkdev_h=$ac_header_preproc
12638
fi
12639
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
12640
$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
12641
 
12642
fi
12643
if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
12644
 
12645
cat >>confdefs.h <<\_ACEOF
12646
#define MAJOR_IN_MKDEV 1
12647
_ACEOF
12648
 
12649
fi
12650
 
12651
 
12652
 
12653
  if test $ac_cv_header_sys_mkdev_h = no; then
12654
    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
12655
  { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
12656
$as_echo_n "checking for sys/sysmacros.h... " >&6; }
12657
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
12658
  $as_echo_n "(cached) " >&6
12659
fi
12660
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
12661
$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
12662
else
12663
  # Is the header compilable?
12664
{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
12665
$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
12666
cat >conftest.$ac_ext <<_ACEOF
12667
/* confdefs.h.  */
12668
_ACEOF
12669
cat confdefs.h >>conftest.$ac_ext
12670
cat >>conftest.$ac_ext <<_ACEOF
12671
/* end confdefs.h.  */
12672
$ac_includes_default
12673
#include <sys/sysmacros.h>
12674
_ACEOF
12675
rm -f conftest.$ac_objext
12676
if { (ac_try="$ac_compile"
12677
case "(($ac_try" in
12678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679
  *) ac_try_echo=$ac_try;;
12680
esac
12681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12682
$as_echo "$ac_try_echo") >&5
12683
  (eval "$ac_compile") 2>conftest.er1
12684
  ac_status=$?
12685
  grep -v '^ *+' conftest.er1 >conftest.err
12686
  rm -f conftest.er1
12687
  cat conftest.err >&5
12688
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689
  (exit $ac_status); } && {
12690
	 test -z "$ac_c_werror_flag" ||
12691
	 test ! -s conftest.err
12692
       } && test -s conftest.$ac_objext; then
12693
  ac_header_compiler=yes
12694
else
12695
  $as_echo "$as_me: failed program was:" >&5
12696
sed 's/^/| /' conftest.$ac_ext >&5
12697
 
12698
	ac_header_compiler=no
12699
fi
12700
 
12701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12703
$as_echo "$ac_header_compiler" >&6; }
12704
 
12705
# Is the header present?
12706
{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
12707
$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
12708
cat >conftest.$ac_ext <<_ACEOF
12709
/* confdefs.h.  */
12710
_ACEOF
12711
cat confdefs.h >>conftest.$ac_ext
12712
cat >>conftest.$ac_ext <<_ACEOF
12713
/* end confdefs.h.  */
12714
#include <sys/sysmacros.h>
12715
_ACEOF
12716
if { (ac_try="$ac_cpp conftest.$ac_ext"
12717
case "(($ac_try" in
12718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719
  *) ac_try_echo=$ac_try;;
12720
esac
12721
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12722
$as_echo "$ac_try_echo") >&5
12723
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12724
  ac_status=$?
12725
  grep -v '^ *+' conftest.er1 >conftest.err
12726
  rm -f conftest.er1
12727
  cat conftest.err >&5
12728
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729
  (exit $ac_status); } >/dev/null && {
12730
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12731
	 test ! -s conftest.err
12732
       }; then
12733
  ac_header_preproc=yes
12734
else
12735
  $as_echo "$as_me: failed program was:" >&5
12736
sed 's/^/| /' conftest.$ac_ext >&5
12737
 
12738
  ac_header_preproc=no
12739
fi
12740
 
12741
rm -f conftest.err conftest.$ac_ext
12742
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12743
$as_echo "$ac_header_preproc" >&6; }
12744
 
12745
# So?  What about this header?
12746
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12747
  yes:no: )
12748
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
12749
$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12750
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
12751
$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
12752
    ac_header_preproc=yes
12753
    ;;
12754
  no:yes:* )
12755
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
12756
$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
12757
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
12758
$as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
12759
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
12760
$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
12761
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
12762
$as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12763
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
12764
$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
12765
    { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
12766
$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
12767
 
12768
    ;;
12769
esac
12770
{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
12771
$as_echo_n "checking for sys/sysmacros.h... " >&6; }
12772
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
12773
  $as_echo_n "(cached) " >&6
12774
else
12775
  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
12776
fi
12777
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
12778
$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
12779
 
12780
fi
12781
if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
12782
 
12783
cat >>confdefs.h <<\_ACEOF
12784
#define MAJOR_IN_SYSMACROS 1
12785
_ACEOF
12786
 
12787
fi
12788
 
12789
 
12790
  fi
12791
fi
12792
 
12793
{ $as_echo "$as_me:$LINENO: checking for major_t" >&5
12794
$as_echo_n "checking for major_t... " >&6; }
12795
if test "${ac_cv_type_major_t+set}" = set; then
12796
  $as_echo_n "(cached) " >&6
12797
else
12798
  ac_cv_type_major_t=no
12799
cat >conftest.$ac_ext <<_ACEOF
12800
/* confdefs.h.  */
12801
_ACEOF
12802
cat confdefs.h >>conftest.$ac_ext
12803
cat >>conftest.$ac_ext <<_ACEOF
12804
/* end confdefs.h.  */
12805
#include <sys/types.h>
12806
  #ifdef MAJOR_IN_MKDEV
12807
  # include <sys/mkdev.h>
12808
  #else
12809
  # ifdef MAJOR_IN_SYSMACROS
12810
  #  include <sys/sysmacros.h>
12811
  # endif
12812
  #endif
12813
 
12814
 
12815
 
12816
int
12817
main ()
12818
{
12819
if (sizeof (major_t))
12820
       return 0;
12821
  ;
12822
  return 0;
12823
}
12824
_ACEOF
12825
rm -f conftest.$ac_objext
12826
if { (ac_try="$ac_compile"
12827
case "(($ac_try" in
12828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829
  *) ac_try_echo=$ac_try;;
12830
esac
12831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832
$as_echo "$ac_try_echo") >&5
12833
  (eval "$ac_compile") 2>conftest.er1
12834
  ac_status=$?
12835
  grep -v '^ *+' conftest.er1 >conftest.err
12836
  rm -f conftest.er1
12837
  cat conftest.err >&5
12838
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839
  (exit $ac_status); } && {
12840
	 test -z "$ac_c_werror_flag" ||
12841
	 test ! -s conftest.err
12842
       } && test -s conftest.$ac_objext; then
12843
  cat >conftest.$ac_ext <<_ACEOF
12844
/* confdefs.h.  */
12845
_ACEOF
12846
cat confdefs.h >>conftest.$ac_ext
12847
cat >>conftest.$ac_ext <<_ACEOF
12848
/* end confdefs.h.  */
12849
#include <sys/types.h>
12850
  #ifdef MAJOR_IN_MKDEV
12851
  # include <sys/mkdev.h>
12852
  #else
12853
  # ifdef MAJOR_IN_SYSMACROS
12854
  #  include <sys/sysmacros.h>
12855
  # endif
12856
  #endif
12857
 
12858
 
12859
 
12860
int
12861
main ()
12862
{
12863
if (sizeof ((major_t)))
12864
	  return 0;
12865
  ;
12866
  return 0;
12867
}
12868
_ACEOF
12869
rm -f conftest.$ac_objext
12870
if { (ac_try="$ac_compile"
12871
case "(($ac_try" in
12872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873
  *) ac_try_echo=$ac_try;;
12874
esac
12875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12876
$as_echo "$ac_try_echo") >&5
12877
  (eval "$ac_compile") 2>conftest.er1
12878
  ac_status=$?
12879
  grep -v '^ *+' conftest.er1 >conftest.err
12880
  rm -f conftest.er1
12881
  cat conftest.err >&5
12882
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883
  (exit $ac_status); } && {
12884
	 test -z "$ac_c_werror_flag" ||
12885
	 test ! -s conftest.err
12886
       } && test -s conftest.$ac_objext; then
12887
  :
12888
else
12889
  $as_echo "$as_me: failed program was:" >&5
12890
sed 's/^/| /' conftest.$ac_ext >&5
12891
 
12892
	ac_cv_type_major_t=yes
12893
fi
12894
 
12895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896
else
12897
  $as_echo "$as_me: failed program was:" >&5
12898
sed 's/^/| /' conftest.$ac_ext >&5
12899
 
12900
 
12901
fi
12902
 
12903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12904
fi
12905
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12906
$as_echo "$ac_cv_type_major_t" >&6; }
12907
if test "x$ac_cv_type_major_t" = x""yes; then
12908
 
12909
cat >>confdefs.h <<_ACEOF
12910
#define HAVE_MAJOR_T 1
12911
_ACEOF
12912
 
12913
 
12914
else
12915
 
12916
cat >>confdefs.h <<\_ACEOF
12917
#define major_t unsigned int
12918
_ACEOF
12919
 
12920
fi
12921
 
12922
 
12923
{ $as_echo "$as_me:$LINENO: checking for minor_t" >&5
12924
$as_echo_n "checking for minor_t... " >&6; }
12925
if test "${ac_cv_type_minor_t+set}" = set; then
12926
  $as_echo_n "(cached) " >&6
12927
else
12928
  ac_cv_type_minor_t=no
12929
cat >conftest.$ac_ext <<_ACEOF
12930
/* confdefs.h.  */
12931
_ACEOF
12932
cat confdefs.h >>conftest.$ac_ext
12933
cat >>conftest.$ac_ext <<_ACEOF
12934
/* end confdefs.h.  */
12935
#include <sys/types.h>
12936
  #ifdef MAJOR_IN_MKDEV
12937
  # include <sys/mkdev.h>
12938
  #else
12939
  # ifdef MAJOR_IN_SYSMACROS
12940
  #  include <sys/sysmacros.h>
12941
  # endif
12942
  #endif
12943
 
12944
 
12945
 
12946
int
12947
main ()
12948
{
12949
if (sizeof (minor_t))
12950
       return 0;
12951
  ;
12952
  return 0;
12953
}
12954
_ACEOF
12955
rm -f conftest.$ac_objext
12956
if { (ac_try="$ac_compile"
12957
case "(($ac_try" in
12958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959
  *) ac_try_echo=$ac_try;;
12960
esac
12961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12962
$as_echo "$ac_try_echo") >&5
12963
  (eval "$ac_compile") 2>conftest.er1
12964
  ac_status=$?
12965
  grep -v '^ *+' conftest.er1 >conftest.err
12966
  rm -f conftest.er1
12967
  cat conftest.err >&5
12968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969
  (exit $ac_status); } && {
12970
	 test -z "$ac_c_werror_flag" ||
12971
	 test ! -s conftest.err
12972
       } && test -s conftest.$ac_objext; then
12973
  cat >conftest.$ac_ext <<_ACEOF
12974
/* confdefs.h.  */
12975
_ACEOF
12976
cat confdefs.h >>conftest.$ac_ext
12977
cat >>conftest.$ac_ext <<_ACEOF
12978
/* end confdefs.h.  */
12979
#include <sys/types.h>
12980
  #ifdef MAJOR_IN_MKDEV
12981
  # include <sys/mkdev.h>
12982
  #else
12983
  # ifdef MAJOR_IN_SYSMACROS
12984
  #  include <sys/sysmacros.h>
12985
  # endif
12986
  #endif
12987
 
12988
 
12989
 
12990
int
12991
main ()
12992
{
12993
if (sizeof ((minor_t)))
12994
	  return 0;
12995
  ;
12996
  return 0;
12997
}
12998
_ACEOF
12999
rm -f conftest.$ac_objext
13000
if { (ac_try="$ac_compile"
13001
case "(($ac_try" in
13002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003
  *) ac_try_echo=$ac_try;;
13004
esac
13005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006
$as_echo "$ac_try_echo") >&5
13007
  (eval "$ac_compile") 2>conftest.er1
13008
  ac_status=$?
13009
  grep -v '^ *+' conftest.er1 >conftest.err
13010
  rm -f conftest.er1
13011
  cat conftest.err >&5
13012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013
  (exit $ac_status); } && {
13014
	 test -z "$ac_c_werror_flag" ||
13015
	 test ! -s conftest.err
13016
       } && test -s conftest.$ac_objext; then
13017
  :
13018
else
13019
  $as_echo "$as_me: failed program was:" >&5
13020
sed 's/^/| /' conftest.$ac_ext >&5
13021
 
13022
	ac_cv_type_minor_t=yes
13023
fi
13024
 
13025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026
else
13027
  $as_echo "$as_me: failed program was:" >&5
13028
sed 's/^/| /' conftest.$ac_ext >&5
13029
 
13030
 
13031
fi
13032
 
13033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034
fi
13035
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13036
$as_echo "$ac_cv_type_minor_t" >&6; }
13037
if test "x$ac_cv_type_minor_t" = x""yes; then
13038
 
13039
cat >>confdefs.h <<_ACEOF
13040
#define HAVE_MINOR_T 1
13041
_ACEOF
13042
 
13043
 
13044
else
13045
 
13046
cat >>confdefs.h <<\_ACEOF
13047
#define minor_t unsigned int
13048
_ACEOF
13049
 
13050
fi
13051
 
13052
 
13053
{ $as_echo "$as_me:$LINENO: checking for dev_t" >&5
13054
$as_echo_n "checking for dev_t... " >&6; }
13055
if test "${ac_cv_type_dev_t+set}" = set; then
13056
  $as_echo_n "(cached) " >&6
13057
else
13058
  ac_cv_type_dev_t=no
13059
cat >conftest.$ac_ext <<_ACEOF
13060
/* confdefs.h.  */
13061
_ACEOF
13062
cat confdefs.h >>conftest.$ac_ext
13063
cat >>conftest.$ac_ext <<_ACEOF
13064
/* end confdefs.h.  */
13065
#include <sys/types.h>
13066
  #ifdef MAJOR_IN_MKDEV
13067
  # include <sys/mkdev.h>
13068
  #else
13069
  # ifdef MAJOR_IN_SYSMACROS
13070
  #  include <sys/sysmacros.h>
13071
  # endif
13072
  #endif
13073
 
13074
 
13075
 
13076
int
13077
main ()
13078
{
13079
if (sizeof (dev_t))
13080
       return 0;
13081
  ;
13082
  return 0;
13083
}
13084
_ACEOF
13085
rm -f conftest.$ac_objext
13086
if { (ac_try="$ac_compile"
13087
case "(($ac_try" in
13088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089
  *) ac_try_echo=$ac_try;;
13090
esac
13091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13092
$as_echo "$ac_try_echo") >&5
13093
  (eval "$ac_compile") 2>conftest.er1
13094
  ac_status=$?
13095
  grep -v '^ *+' conftest.er1 >conftest.err
13096
  rm -f conftest.er1
13097
  cat conftest.err >&5
13098
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099
  (exit $ac_status); } && {
13100
	 test -z "$ac_c_werror_flag" ||
13101
	 test ! -s conftest.err
13102
       } && test -s conftest.$ac_objext; then
13103
  cat >conftest.$ac_ext <<_ACEOF
13104
/* confdefs.h.  */
13105
_ACEOF
13106
cat confdefs.h >>conftest.$ac_ext
13107
cat >>conftest.$ac_ext <<_ACEOF
13108
/* end confdefs.h.  */
13109
#include <sys/types.h>
13110
  #ifdef MAJOR_IN_MKDEV
13111
  # include <sys/mkdev.h>
13112
  #else
13113
  # ifdef MAJOR_IN_SYSMACROS
13114
  #  include <sys/sysmacros.h>
13115
  # endif
13116
  #endif
13117
 
13118
 
13119
 
13120
int
13121
main ()
13122
{
13123
if (sizeof ((dev_t)))
13124
	  return 0;
13125
  ;
13126
  return 0;
13127
}
13128
_ACEOF
13129
rm -f conftest.$ac_objext
13130
if { (ac_try="$ac_compile"
13131
case "(($ac_try" in
13132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133
  *) ac_try_echo=$ac_try;;
13134
esac
13135
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136
$as_echo "$ac_try_echo") >&5
13137
  (eval "$ac_compile") 2>conftest.er1
13138
  ac_status=$?
13139
  grep -v '^ *+' conftest.er1 >conftest.err
13140
  rm -f conftest.er1
13141
  cat conftest.err >&5
13142
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143
  (exit $ac_status); } && {
13144
	 test -z "$ac_c_werror_flag" ||
13145
	 test ! -s conftest.err
13146
       } && test -s conftest.$ac_objext; then
13147
  :
13148
else
13149
  $as_echo "$as_me: failed program was:" >&5
13150
sed 's/^/| /' conftest.$ac_ext >&5
13151
 
13152
	ac_cv_type_dev_t=yes
13153
fi
13154
 
13155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156
else
13157
  $as_echo "$as_me: failed program was:" >&5
13158
sed 's/^/| /' conftest.$ac_ext >&5
13159
 
13160
 
13161
fi
13162
 
13163
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164
fi
13165
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13166
$as_echo "$ac_cv_type_dev_t" >&6; }
13167
if test "x$ac_cv_type_dev_t" = x""yes; then
13168
 
13169
cat >>confdefs.h <<_ACEOF
13170
#define HAVE_DEV_T 1
13171
_ACEOF
13172
 
13173
 
13174
else
13175
 
13176
cat >>confdefs.h <<\_ACEOF
13177
#define dev_t unsigned long
13178
_ACEOF
13179
 
13180
fi
13181
 
13182
 
13183
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
13184
$as_echo_n "checking for socklen_t... " >&6; }
13185
if test "${ac_cv_type_socklen_t+set}" = set; then
13186
  $as_echo_n "(cached) " >&6
13187
else
13188
  ac_cv_type_socklen_t=no
13189
cat >conftest.$ac_ext <<_ACEOF
13190
/* confdefs.h.  */
13191
_ACEOF
13192
cat confdefs.h >>conftest.$ac_ext
13193
cat >>conftest.$ac_ext <<_ACEOF
13194
/* end confdefs.h.  */
13195
#include <sys/types.h>
13196
  #include <sys/socket.h>
13197
 
13198
 
13199
 
13200
int
13201
main ()
13202
{
13203
if (sizeof (socklen_t))
13204
       return 0;
13205
  ;
13206
  return 0;
13207
}
13208
_ACEOF
13209
rm -f conftest.$ac_objext
13210
if { (ac_try="$ac_compile"
13211
case "(($ac_try" in
13212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213
  *) ac_try_echo=$ac_try;;
13214
esac
13215
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13216
$as_echo "$ac_try_echo") >&5
13217
  (eval "$ac_compile") 2>conftest.er1
13218
  ac_status=$?
13219
  grep -v '^ *+' conftest.er1 >conftest.err
13220
  rm -f conftest.er1
13221
  cat conftest.err >&5
13222
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223
  (exit $ac_status); } && {
13224
	 test -z "$ac_c_werror_flag" ||
13225
	 test ! -s conftest.err
13226
       } && test -s conftest.$ac_objext; then
13227
  cat >conftest.$ac_ext <<_ACEOF
13228
/* confdefs.h.  */
13229
_ACEOF
13230
cat confdefs.h >>conftest.$ac_ext
13231
cat >>conftest.$ac_ext <<_ACEOF
13232
/* end confdefs.h.  */
13233
#include <sys/types.h>
13234
  #include <sys/socket.h>
13235
 
13236
 
13237
 
13238
int
13239
main ()
13240
{
13241
if (sizeof ((socklen_t)))
13242
	  return 0;
13243
  ;
13244
  return 0;
13245
}
13246
_ACEOF
13247
rm -f conftest.$ac_objext
13248
if { (ac_try="$ac_compile"
13249
case "(($ac_try" in
13250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251
  *) ac_try_echo=$ac_try;;
13252
esac
13253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13254
$as_echo "$ac_try_echo") >&5
13255
  (eval "$ac_compile") 2>conftest.er1
13256
  ac_status=$?
13257
  grep -v '^ *+' conftest.er1 >conftest.err
13258
  rm -f conftest.er1
13259
  cat conftest.err >&5
13260
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261
  (exit $ac_status); } && {
13262
	 test -z "$ac_c_werror_flag" ||
13263
	 test ! -s conftest.err
13264
       } && test -s conftest.$ac_objext; then
13265
  :
13266
else
13267
  $as_echo "$as_me: failed program was:" >&5
13268
sed 's/^/| /' conftest.$ac_ext >&5
13269
 
13270
	ac_cv_type_socklen_t=yes
13271
fi
13272
 
13273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274
else
13275
  $as_echo "$as_me: failed program was:" >&5
13276
sed 's/^/| /' conftest.$ac_ext >&5
13277
 
13278
 
13279
fi
13280
 
13281
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282
fi
13283
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13284
$as_echo "$ac_cv_type_socklen_t" >&6; }
13285
if test "x$ac_cv_type_socklen_t" = x""yes; then
13286
 
13287
cat >>confdefs.h <<_ACEOF
13288
#define HAVE_SOCKLEN_T 1
13289
_ACEOF
13290
 
13291
 
13292
else
13293
 
13294
cat >>confdefs.h <<\_ACEOF
13295
#define socklen_t unsigned long
13296
_ACEOF
13297
 
13298
fi
13299
 
13300
 
13301
{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
13302
$as_echo_n "checking for uint64_t... " >&6; }
13303
if test "${ac_cv_type_uint64_t+set}" = set; then
13304
  $as_echo_n "(cached) " >&6
13305
else
13306
  ac_cv_type_uint64_t=no
13307
cat >conftest.$ac_ext <<_ACEOF
13308
/* confdefs.h.  */
13309
_ACEOF
13310
cat confdefs.h >>conftest.$ac_ext
13311
cat >>conftest.$ac_ext <<_ACEOF
13312
/* end confdefs.h.  */
13313
$ac_includes_default
13314
int
13315
main ()
13316
{
13317
if (sizeof (uint64_t))
13318
       return 0;
13319
  ;
13320
  return 0;
13321
}
13322
_ACEOF
13323
rm -f conftest.$ac_objext
13324
if { (ac_try="$ac_compile"
13325
case "(($ac_try" in
13326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327
  *) ac_try_echo=$ac_try;;
13328
esac
13329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13330
$as_echo "$ac_try_echo") >&5
13331
  (eval "$ac_compile") 2>conftest.er1
13332
  ac_status=$?
13333
  grep -v '^ *+' conftest.er1 >conftest.err
13334
  rm -f conftest.er1
13335
  cat conftest.err >&5
13336
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337
  (exit $ac_status); } && {
13338
	 test -z "$ac_c_werror_flag" ||
13339
	 test ! -s conftest.err
13340
       } && test -s conftest.$ac_objext; then
13341
  cat >conftest.$ac_ext <<_ACEOF
13342
/* confdefs.h.  */
13343
_ACEOF
13344
cat confdefs.h >>conftest.$ac_ext
13345
cat >>conftest.$ac_ext <<_ACEOF
13346
/* end confdefs.h.  */
13347
$ac_includes_default
13348
int
13349
main ()
13350
{
13351
if (sizeof ((uint64_t)))
13352
	  return 0;
13353
  ;
13354
  return 0;
13355
}
13356
_ACEOF
13357
rm -f conftest.$ac_objext
13358
if { (ac_try="$ac_compile"
13359
case "(($ac_try" in
13360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361
  *) ac_try_echo=$ac_try;;
13362
esac
13363
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13364
$as_echo "$ac_try_echo") >&5
13365
  (eval "$ac_compile") 2>conftest.er1
13366
  ac_status=$?
13367
  grep -v '^ *+' conftest.er1 >conftest.err
13368
  rm -f conftest.er1
13369
  cat conftest.err >&5
13370
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371
  (exit $ac_status); } && {
13372
	 test -z "$ac_c_werror_flag" ||
13373
	 test ! -s conftest.err
13374
       } && test -s conftest.$ac_objext; then
13375
  :
13376
else
13377
  $as_echo "$as_me: failed program was:" >&5
13378
sed 's/^/| /' conftest.$ac_ext >&5
13379
 
13380
	ac_cv_type_uint64_t=yes
13381
fi
13382
 
13383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384
else
13385
  $as_echo "$as_me: failed program was:" >&5
13386
sed 's/^/| /' conftest.$ac_ext >&5
13387
 
13388
 
13389
fi
13390
 
13391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392
fi
13393
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13394
$as_echo "$ac_cv_type_uint64_t" >&6; }
13395
if test "x$ac_cv_type_uint64_t" = x""yes; then
13396
 
13397
cat >>confdefs.h <<_ACEOF
13398
#define HAVE_UINT64_T 1
13399
_ACEOF
13400
 
13401
 
13402
else
13403
 
13404
cat >>confdefs.h <<\_ACEOF
13405
#define uint64_t long long
13406
_ACEOF
13407
 
13408
fi
13409
 
13410
 
13411
{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
13412
$as_echo_n "checking for mode_t... " >&6; }
13413
if test "${ac_cv_type_mode_t+set}" = set; then
13414
  $as_echo_n "(cached) " >&6
13415
else
13416
  ac_cv_type_mode_t=no
13417
cat >conftest.$ac_ext <<_ACEOF
13418
/* confdefs.h.  */
13419
_ACEOF
13420
cat confdefs.h >>conftest.$ac_ext
13421
cat >>conftest.$ac_ext <<_ACEOF
13422
/* end confdefs.h.  */
13423
$ac_includes_default
13424
int
13425
main ()
13426
{
13427
if (sizeof (mode_t))
13428
       return 0;
13429
  ;
13430
  return 0;
13431
}
13432
_ACEOF
13433
rm -f conftest.$ac_objext
13434
if { (ac_try="$ac_compile"
13435
case "(($ac_try" in
13436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437
  *) ac_try_echo=$ac_try;;
13438
esac
13439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13440
$as_echo "$ac_try_echo") >&5
13441
  (eval "$ac_compile") 2>conftest.er1
13442
  ac_status=$?
13443
  grep -v '^ *+' conftest.er1 >conftest.err
13444
  rm -f conftest.er1
13445
  cat conftest.err >&5
13446
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447
  (exit $ac_status); } && {
13448
	 test -z "$ac_c_werror_flag" ||
13449
	 test ! -s conftest.err
13450
       } && test -s conftest.$ac_objext; then
13451
  cat >conftest.$ac_ext <<_ACEOF
13452
/* confdefs.h.  */
13453
_ACEOF
13454
cat confdefs.h >>conftest.$ac_ext
13455
cat >>conftest.$ac_ext <<_ACEOF
13456
/* end confdefs.h.  */
13457
$ac_includes_default
13458
int
13459
main ()
13460
{
13461
if (sizeof ((mode_t)))
13462
	  return 0;
13463
  ;
13464
  return 0;
13465
}
13466
_ACEOF
13467
rm -f conftest.$ac_objext
13468
if { (ac_try="$ac_compile"
13469
case "(($ac_try" in
13470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471
  *) ac_try_echo=$ac_try;;
13472
esac
13473
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474
$as_echo "$ac_try_echo") >&5
13475
  (eval "$ac_compile") 2>conftest.er1
13476
  ac_status=$?
13477
  grep -v '^ *+' conftest.er1 >conftest.err
13478
  rm -f conftest.er1
13479
  cat conftest.err >&5
13480
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481
  (exit $ac_status); } && {
13482
	 test -z "$ac_c_werror_flag" ||
13483
	 test ! -s conftest.err
13484
       } && test -s conftest.$ac_objext; then
13485
  :
13486
else
13487
  $as_echo "$as_me: failed program was:" >&5
13488
sed 's/^/| /' conftest.$ac_ext >&5
13489
 
13490
	ac_cv_type_mode_t=yes
13491
fi
13492
 
13493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494
else
13495
  $as_echo "$as_me: failed program was:" >&5
13496
sed 's/^/| /' conftest.$ac_ext >&5
13497
 
13498
 
13499
fi
13500
 
13501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502
fi
13503
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13504
$as_echo "$ac_cv_type_mode_t" >&6; }
13505
if test "x$ac_cv_type_mode_t" = x""yes; then
13506
  :
13507
else
13508
 
13509
cat >>confdefs.h <<_ACEOF
13510
#define mode_t int
13511
_ACEOF
13512
 
13513
fi
13514
 
13515
{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
13516
$as_echo_n "checking for off_t... " >&6; }
13517
if test "${ac_cv_type_off_t+set}" = set; then
13518
  $as_echo_n "(cached) " >&6
13519
else
13520
  ac_cv_type_off_t=no
13521
cat >conftest.$ac_ext <<_ACEOF
13522
/* confdefs.h.  */
13523
_ACEOF
13524
cat confdefs.h >>conftest.$ac_ext
13525
cat >>conftest.$ac_ext <<_ACEOF
13526
/* end confdefs.h.  */
13527
$ac_includes_default
13528
int
13529
main ()
13530
{
13531
if (sizeof (off_t))
13532
       return 0;
13533
  ;
13534
  return 0;
13535
}
13536
_ACEOF
13537
rm -f conftest.$ac_objext
13538
if { (ac_try="$ac_compile"
13539
case "(($ac_try" in
13540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541
  *) ac_try_echo=$ac_try;;
13542
esac
13543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13544
$as_echo "$ac_try_echo") >&5
13545
  (eval "$ac_compile") 2>conftest.er1
13546
  ac_status=$?
13547
  grep -v '^ *+' conftest.er1 >conftest.err
13548
  rm -f conftest.er1
13549
  cat conftest.err >&5
13550
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551
  (exit $ac_status); } && {
13552
	 test -z "$ac_c_werror_flag" ||
13553
	 test ! -s conftest.err
13554
       } && test -s conftest.$ac_objext; then
13555
  cat >conftest.$ac_ext <<_ACEOF
13556
/* confdefs.h.  */
13557
_ACEOF
13558
cat confdefs.h >>conftest.$ac_ext
13559
cat >>conftest.$ac_ext <<_ACEOF
13560
/* end confdefs.h.  */
13561
$ac_includes_default
13562
int
13563
main ()
13564
{
13565
if (sizeof ((off_t)))
13566
	  return 0;
13567
  ;
13568
  return 0;
13569
}
13570
_ACEOF
13571
rm -f conftest.$ac_objext
13572
if { (ac_try="$ac_compile"
13573
case "(($ac_try" in
13574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575
  *) ac_try_echo=$ac_try;;
13576
esac
13577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13578
$as_echo "$ac_try_echo") >&5
13579
  (eval "$ac_compile") 2>conftest.er1
13580
  ac_status=$?
13581
  grep -v '^ *+' conftest.er1 >conftest.err
13582
  rm -f conftest.er1
13583
  cat conftest.err >&5
13584
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585
  (exit $ac_status); } && {
13586
	 test -z "$ac_c_werror_flag" ||
13587
	 test ! -s conftest.err
13588
       } && test -s conftest.$ac_objext; then
13589
  :
13590
else
13591
  $as_echo "$as_me: failed program was:" >&5
13592
sed 's/^/| /' conftest.$ac_ext >&5
13593
 
13594
	ac_cv_type_off_t=yes
13595
fi
13596
 
13597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598
else
13599
  $as_echo "$as_me: failed program was:" >&5
13600
sed 's/^/| /' conftest.$ac_ext >&5
13601
 
13602
 
13603
fi
13604
 
13605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606
fi
13607
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13608
$as_echo "$ac_cv_type_off_t" >&6; }
13609
if test "x$ac_cv_type_off_t" = x""yes; then
13610
  :
13611
else
13612
 
13613
cat >>confdefs.h <<_ACEOF
13614
#define off_t long int
13615
_ACEOF
13616
 
13617
fi
13618
 
13619
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13620
$as_echo_n "checking for size_t... " >&6; }
13621
if test "${ac_cv_type_size_t+set}" = set; then
13622
  $as_echo_n "(cached) " >&6
13623
else
13624
  ac_cv_type_size_t=no
13625
cat >conftest.$ac_ext <<_ACEOF
13626
/* confdefs.h.  */
13627
_ACEOF
13628
cat confdefs.h >>conftest.$ac_ext
13629
cat >>conftest.$ac_ext <<_ACEOF
13630
/* end confdefs.h.  */
13631
$ac_includes_default
13632
int
13633
main ()
13634
{
13635
if (sizeof (size_t))
13636
       return 0;
13637
  ;
13638
  return 0;
13639
}
13640
_ACEOF
13641
rm -f conftest.$ac_objext
13642
if { (ac_try="$ac_compile"
13643
case "(($ac_try" in
13644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645
  *) ac_try_echo=$ac_try;;
13646
esac
13647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13648
$as_echo "$ac_try_echo") >&5
13649
  (eval "$ac_compile") 2>conftest.er1
13650
  ac_status=$?
13651
  grep -v '^ *+' conftest.er1 >conftest.err
13652
  rm -f conftest.er1
13653
  cat conftest.err >&5
13654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655
  (exit $ac_status); } && {
13656
	 test -z "$ac_c_werror_flag" ||
13657
	 test ! -s conftest.err
13658
       } && test -s conftest.$ac_objext; then
13659
  cat >conftest.$ac_ext <<_ACEOF
13660
/* confdefs.h.  */
13661
_ACEOF
13662
cat confdefs.h >>conftest.$ac_ext
13663
cat >>conftest.$ac_ext <<_ACEOF
13664
/* end confdefs.h.  */
13665
$ac_includes_default
13666
int
13667
main ()
13668
{
13669
if (sizeof ((size_t)))
13670
	  return 0;
13671
  ;
13672
  return 0;
13673
}
13674
_ACEOF
13675
rm -f conftest.$ac_objext
13676
if { (ac_try="$ac_compile"
13677
case "(($ac_try" in
13678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679
  *) ac_try_echo=$ac_try;;
13680
esac
13681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13682
$as_echo "$ac_try_echo") >&5
13683
  (eval "$ac_compile") 2>conftest.er1
13684
  ac_status=$?
13685
  grep -v '^ *+' conftest.er1 >conftest.err
13686
  rm -f conftest.er1
13687
  cat conftest.err >&5
13688
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689
  (exit $ac_status); } && {
13690
	 test -z "$ac_c_werror_flag" ||
13691
	 test ! -s conftest.err
13692
       } && test -s conftest.$ac_objext; then
13693
  :
13694
else
13695
  $as_echo "$as_me: failed program was:" >&5
13696
sed 's/^/| /' conftest.$ac_ext >&5
13697
 
13698
	ac_cv_type_size_t=yes
13699
fi
13700
 
13701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702
else
13703
  $as_echo "$as_me: failed program was:" >&5
13704
sed 's/^/| /' conftest.$ac_ext >&5
13705
 
13706
 
13707
fi
13708
 
13709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710
fi
13711
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13712
$as_echo "$ac_cv_type_size_t" >&6; }
13713
if test "x$ac_cv_type_size_t" = x""yes; then
13714
  :
13715
else
13716
 
13717
cat >>confdefs.h <<_ACEOF
13718
#define size_t unsigned int
13719
_ACEOF
13720
 
13721
fi
13722
 
13723
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13724
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13725
if test "${ac_cv_type_uid_t+set}" = set; then
13726
  $as_echo_n "(cached) " >&6
13727
else
13728
  cat >conftest.$ac_ext <<_ACEOF
13729
/* confdefs.h.  */
13730
_ACEOF
13731
cat confdefs.h >>conftest.$ac_ext
13732
cat >>conftest.$ac_ext <<_ACEOF
13733
/* end confdefs.h.  */
13734
#include <sys/types.h>
13735
 
13736
_ACEOF
13737
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13738
  $EGREP "uid_t" >/dev/null 2>&1; then
13739
  ac_cv_type_uid_t=yes
13740
else
13741
  ac_cv_type_uid_t=no
13742
fi
13743
rm -f conftest*
13744
 
13745
fi
13746
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13747
$as_echo "$ac_cv_type_uid_t" >&6; }
13748
if test $ac_cv_type_uid_t = no; then
13749
 
13750
cat >>confdefs.h <<\_ACEOF
13751
#define uid_t int
13752
_ACEOF
13753
 
13754
 
13755
cat >>confdefs.h <<\_ACEOF
13756
#define gid_t int
13757
_ACEOF
13758
 
13759
fi
13760
 
13761
{ $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
13762
$as_echo_n "checking for nlink_t... " >&6; }
13763
if test "${ac_cv_type_nlink_t+set}" = set; then
13764
  $as_echo_n "(cached) " >&6
13765
else
13766
  ac_cv_type_nlink_t=no
13767
cat >conftest.$ac_ext <<_ACEOF
13768
/* confdefs.h.  */
13769
_ACEOF
13770
cat confdefs.h >>conftest.$ac_ext
13771
cat >>conftest.$ac_ext <<_ACEOF
13772
/* end confdefs.h.  */
13773
$ac_includes_default
13774
int
13775
main ()
13776
{
13777
if (sizeof (nlink_t))
13778
       return 0;
13779
  ;
13780
  return 0;
13781
}
13782
_ACEOF
13783
rm -f conftest.$ac_objext
13784
if { (ac_try="$ac_compile"
13785
case "(($ac_try" in
13786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787
  *) ac_try_echo=$ac_try;;
13788
esac
13789
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13790
$as_echo "$ac_try_echo") >&5
13791
  (eval "$ac_compile") 2>conftest.er1
13792
  ac_status=$?
13793
  grep -v '^ *+' conftest.er1 >conftest.err
13794
  rm -f conftest.er1
13795
  cat conftest.err >&5
13796
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797
  (exit $ac_status); } && {
13798
	 test -z "$ac_c_werror_flag" ||
13799
	 test ! -s conftest.err
13800
       } && test -s conftest.$ac_objext; then
13801
  cat >conftest.$ac_ext <<_ACEOF
13802
/* confdefs.h.  */
13803
_ACEOF
13804
cat confdefs.h >>conftest.$ac_ext
13805
cat >>conftest.$ac_ext <<_ACEOF
13806
/* end confdefs.h.  */
13807
$ac_includes_default
13808
int
13809
main ()
13810
{
13811
if (sizeof ((nlink_t)))
13812
	  return 0;
13813
  ;
13814
  return 0;
13815
}
13816
_ACEOF
13817
rm -f conftest.$ac_objext
13818
if { (ac_try="$ac_compile"
13819
case "(($ac_try" in
13820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821
  *) ac_try_echo=$ac_try;;
13822
esac
13823
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13824
$as_echo "$ac_try_echo") >&5
13825
  (eval "$ac_compile") 2>conftest.er1
13826
  ac_status=$?
13827
  grep -v '^ *+' conftest.er1 >conftest.err
13828
  rm -f conftest.er1
13829
  cat conftest.err >&5
13830
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831
  (exit $ac_status); } && {
13832
	 test -z "$ac_c_werror_flag" ||
13833
	 test ! -s conftest.err
13834
       } && test -s conftest.$ac_objext; then
13835
  :
13836
else
13837
  $as_echo "$as_me: failed program was:" >&5
13838
sed 's/^/| /' conftest.$ac_ext >&5
13839
 
13840
	ac_cv_type_nlink_t=yes
13841
fi
13842
 
13843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844
else
13845
  $as_echo "$as_me: failed program was:" >&5
13846
sed 's/^/| /' conftest.$ac_ext >&5
13847
 
13848
 
13849
fi
13850
 
13851
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852
fi
13853
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
13854
$as_echo "$ac_cv_type_nlink_t" >&6; }
13855
if test "x$ac_cv_type_nlink_t" = x""yes; then
13856
 
13857
cat >>confdefs.h <<_ACEOF
13858
#define HAVE_NLINK_T 1
13859
_ACEOF
13860
 
13861
 
13862
else
13863
 
13864
cat >>confdefs.h <<\_ACEOF
13865
#define nlink_t unsigned short
13866
_ACEOF
13867
 
13868
fi
13869
 
13870
 
13871
 
13872
 
13873
 
13874
 
13875
cat >>confdefs.h <<\_ACEOF
13876
#define NEED_BASENAME 1
13877
_ACEOF
13878
 
13879
 
13880
for ac_header in libgen.h
13881
do
13882
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13883
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13884
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13885
$as_echo_n "checking for $ac_header... " >&6; }
13886
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13887
  $as_echo_n "(cached) " >&6
13888
fi
13889
ac_res=`eval 'as_val=${'$as_ac_Header'}
13890
		 $as_echo "$as_val"'`
13891
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13892
$as_echo "$ac_res" >&6; }
13893
else
13894
  # Is the header compilable?
13895
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13896
$as_echo_n "checking $ac_header usability... " >&6; }
13897
cat >conftest.$ac_ext <<_ACEOF
13898
/* confdefs.h.  */
13899
_ACEOF
13900
cat confdefs.h >>conftest.$ac_ext
13901
cat >>conftest.$ac_ext <<_ACEOF
13902
/* end confdefs.h.  */
13903
$ac_includes_default
13904
#include <$ac_header>
13905
_ACEOF
13906
rm -f conftest.$ac_objext
13907
if { (ac_try="$ac_compile"
13908
case "(($ac_try" in
13909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910
  *) ac_try_echo=$ac_try;;
13911
esac
13912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13913
$as_echo "$ac_try_echo") >&5
13914
  (eval "$ac_compile") 2>conftest.er1
13915
  ac_status=$?
13916
  grep -v '^ *+' conftest.er1 >conftest.err
13917
  rm -f conftest.er1
13918
  cat conftest.err >&5
13919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920
  (exit $ac_status); } && {
13921
	 test -z "$ac_c_werror_flag" ||
13922
	 test ! -s conftest.err
13923
       } && test -s conftest.$ac_objext; then
13924
  ac_header_compiler=yes
13925
else
13926
  $as_echo "$as_me: failed program was:" >&5
13927
sed 's/^/| /' conftest.$ac_ext >&5
13928
 
13929
	ac_header_compiler=no
13930
fi
13931
 
13932
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13934
$as_echo "$ac_header_compiler" >&6; }
13935
 
13936
# Is the header present?
13937
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13938
$as_echo_n "checking $ac_header presence... " >&6; }
13939
cat >conftest.$ac_ext <<_ACEOF
13940
/* confdefs.h.  */
13941
_ACEOF
13942
cat confdefs.h >>conftest.$ac_ext
13943
cat >>conftest.$ac_ext <<_ACEOF
13944
/* end confdefs.h.  */
13945
#include <$ac_header>
13946
_ACEOF
13947
if { (ac_try="$ac_cpp conftest.$ac_ext"
13948
case "(($ac_try" in
13949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950
  *) ac_try_echo=$ac_try;;
13951
esac
13952
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953
$as_echo "$ac_try_echo") >&5
13954
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13955
  ac_status=$?
13956
  grep -v '^ *+' conftest.er1 >conftest.err
13957
  rm -f conftest.er1
13958
  cat conftest.err >&5
13959
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960
  (exit $ac_status); } >/dev/null && {
13961
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13962
	 test ! -s conftest.err
13963
       }; then
13964
  ac_header_preproc=yes
13965
else
13966
  $as_echo "$as_me: failed program was:" >&5
13967
sed 's/^/| /' conftest.$ac_ext >&5
13968
 
13969
  ac_header_preproc=no
13970
fi
13971
 
13972
rm -f conftest.err conftest.$ac_ext
13973
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13974
$as_echo "$ac_header_preproc" >&6; }
13975
 
13976
# So?  What about this header?
13977
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13978
  yes:no: )
13979
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13980
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13981
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13982
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13983
    ac_header_preproc=yes
13984
    ;;
13985
  no:yes:* )
13986
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13987
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13988
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13989
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13990
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13991
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13992
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13993
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13994
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13995
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13996
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13997
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13998
 
13999
    ;;
14000
esac
14001
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14002
$as_echo_n "checking for $ac_header... " >&6; }
14003
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14004
  $as_echo_n "(cached) " >&6
14005
else
14006
  eval "$as_ac_Header=\$ac_header_preproc"
14007
fi
14008
ac_res=`eval 'as_val=${'$as_ac_Header'}
14009
		 $as_echo "$as_val"'`
14010
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14011
$as_echo "$ac_res" >&6; }
14012
 
14013
fi
14014
as_val=`eval 'as_val=${'$as_ac_Header'}
14015
		 $as_echo "$as_val"'`
14016
   if test "x$as_val" = x""yes; then
14017
  cat >>confdefs.h <<_ACEOF
14018
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019
_ACEOF
14020
 
14021
fi
14022
 
14023
done
14024
 
14025
  { $as_echo "$as_me:$LINENO: checking for working basename" >&5
14026
$as_echo_n "checking for working basename... " >&6; }
14027
if test "${compat_cv_func_basename_works+set}" = set; then
14028
  $as_echo_n "(cached) " >&6
14029
else
14030
  if test "$cross_compiling" = yes; then
14031
  compat_cv_func_basename_works=no
14032
 
14033
else
14034
  cat >conftest.$ac_ext <<_ACEOF
14035
/* confdefs.h.  */
14036
_ACEOF
14037
cat confdefs.h >>conftest.$ac_ext
14038
cat >>conftest.$ac_ext <<_ACEOF
14039
/* end confdefs.h.  */
14040
 
14041
#include <stdio.h>
14042
#ifdef HAVE_LIBGEN_H
14043
# include <libgen.h>
14044
#endif
14045
 
14046
typedef struct {
14047
  char *test;
14048
  char *result;
14049
} test_t;
14050
 
14051
const test_t tests[] = {
14052
  { "/usr/local/foo", "foo" },
14053
  { "/usr/local/foo/", "foo" },
14054
  { NULL, NULL }
14055
};
14056
 
14057
int main() {
14058
  char test1[1024];
14059
  int i;
14060
 
14061
  for (i = 0; tests[i].test; i++) {
14062
    strcpy(test1, tests[i].test);
14063
    if (strcmp(basename(test1), tests[i].result) ||
14064
        strcmp(test1, tests[i].test))
14065
      exit(1);
14066
  }
14067
 
14068
  exit(0);
14069
}
14070
 
14071
_ACEOF
14072
rm -f conftest$ac_exeext
14073
if { (ac_try="$ac_link"
14074
case "(($ac_try" in
14075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076
  *) ac_try_echo=$ac_try;;
14077
esac
14078
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14079
$as_echo "$ac_try_echo") >&5
14080
  (eval "$ac_link") 2>&5
14081
  ac_status=$?
14082
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14084
  { (case "(($ac_try" in
14085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086
  *) ac_try_echo=$ac_try;;
14087
esac
14088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14089
$as_echo "$ac_try_echo") >&5
14090
  (eval "$ac_try") 2>&5
14091
  ac_status=$?
14092
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093
  (exit $ac_status); }; }; then
14094
  compat_cv_func_basename_works=yes
14095
else
14096
  $as_echo "$as_me: program exited with status $ac_status" >&5
14097
$as_echo "$as_me: failed program was:" >&5
14098
sed 's/^/| /' conftest.$ac_ext >&5
14099
 
14100
( exit $ac_status )
14101
compat_cv_func_basename_works=no
14102
fi
14103
rm -rf conftest.dSYM
14104
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14105
fi
14106
 
14107
 
14108
 
14109
fi
14110
{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_basename_works" >&5
14111
$as_echo "$compat_cv_func_basename_works" >&6; }
14112
  if test "$compat_cv_func_basename_works" = "yes"; then
14113
 
14114
cat >>confdefs.h <<\_ACEOF
14115
#define HAVE_BASENAME 1
14116
_ACEOF
14117
 
14118
  else
14119
    case " $LIBOBJS " in
14120
  *" basename.$ac_objext "* ) ;;
14121
  *) LIBOBJS="$LIBOBJS basename.$ac_objext"
14122
 ;;
14123
esac
14124
 
14125
  fi
14126
 
14127
 
14128
 
14129
cat >>confdefs.h <<\_ACEOF
14130
#define NEED_DIRNAME 1
14131
_ACEOF
14132
 
14133
 
14134
for ac_header in libgen.h
14135
do
14136
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14138
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14139
$as_echo_n "checking for $ac_header... " >&6; }
14140
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14141
  $as_echo_n "(cached) " >&6
14142
fi
14143
ac_res=`eval 'as_val=${'$as_ac_Header'}
14144
		 $as_echo "$as_val"'`
14145
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14146
$as_echo "$ac_res" >&6; }
14147
else
14148
  # Is the header compilable?
14149
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14150
$as_echo_n "checking $ac_header usability... " >&6; }
14151
cat >conftest.$ac_ext <<_ACEOF
14152
/* confdefs.h.  */
14153
_ACEOF
14154
cat confdefs.h >>conftest.$ac_ext
14155
cat >>conftest.$ac_ext <<_ACEOF
14156
/* end confdefs.h.  */
14157
$ac_includes_default
14158
#include <$ac_header>
14159
_ACEOF
14160
rm -f conftest.$ac_objext
14161
if { (ac_try="$ac_compile"
14162
case "(($ac_try" in
14163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164
  *) ac_try_echo=$ac_try;;
14165
esac
14166
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14167
$as_echo "$ac_try_echo") >&5
14168
  (eval "$ac_compile") 2>conftest.er1
14169
  ac_status=$?
14170
  grep -v '^ *+' conftest.er1 >conftest.err
14171
  rm -f conftest.er1
14172
  cat conftest.err >&5
14173
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174
  (exit $ac_status); } && {
14175
	 test -z "$ac_c_werror_flag" ||
14176
	 test ! -s conftest.err
14177
       } && test -s conftest.$ac_objext; then
14178
  ac_header_compiler=yes
14179
else
14180
  $as_echo "$as_me: failed program was:" >&5
14181
sed 's/^/| /' conftest.$ac_ext >&5
14182
 
14183
	ac_header_compiler=no
14184
fi
14185
 
14186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14188
$as_echo "$ac_header_compiler" >&6; }
14189
 
14190
# Is the header present?
14191
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14192
$as_echo_n "checking $ac_header presence... " >&6; }
14193
cat >conftest.$ac_ext <<_ACEOF
14194
/* confdefs.h.  */
14195
_ACEOF
14196
cat confdefs.h >>conftest.$ac_ext
14197
cat >>conftest.$ac_ext <<_ACEOF
14198
/* end confdefs.h.  */
14199
#include <$ac_header>
14200
_ACEOF
14201
if { (ac_try="$ac_cpp conftest.$ac_ext"
14202
case "(($ac_try" in
14203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204
  *) ac_try_echo=$ac_try;;
14205
esac
14206
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14207
$as_echo "$ac_try_echo") >&5
14208
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14209
  ac_status=$?
14210
  grep -v '^ *+' conftest.er1 >conftest.err
14211
  rm -f conftest.er1
14212
  cat conftest.err >&5
14213
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214
  (exit $ac_status); } >/dev/null && {
14215
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14216
	 test ! -s conftest.err
14217
       }; then
14218
  ac_header_preproc=yes
14219
else
14220
  $as_echo "$as_me: failed program was:" >&5
14221
sed 's/^/| /' conftest.$ac_ext >&5
14222
 
14223
  ac_header_preproc=no
14224
fi
14225
 
14226
rm -f conftest.err conftest.$ac_ext
14227
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14228
$as_echo "$ac_header_preproc" >&6; }
14229
 
14230
# So?  What about this header?
14231
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14232
  yes:no: )
14233
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14234
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14235
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14236
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14237
    ac_header_preproc=yes
14238
    ;;
14239
  no:yes:* )
14240
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14241
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14242
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14243
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14244
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14245
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14246
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14247
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14248
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14249
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14250
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14251
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14252
 
14253
    ;;
14254
esac
14255
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14256
$as_echo_n "checking for $ac_header... " >&6; }
14257
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14258
  $as_echo_n "(cached) " >&6
14259
else
14260
  eval "$as_ac_Header=\$ac_header_preproc"
14261
fi
14262
ac_res=`eval 'as_val=${'$as_ac_Header'}
14263
		 $as_echo "$as_val"'`
14264
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14265
$as_echo "$ac_res" >&6; }
14266
 
14267
fi
14268
as_val=`eval 'as_val=${'$as_ac_Header'}
14269
		 $as_echo "$as_val"'`
14270
   if test "x$as_val" = x""yes; then
14271
  cat >>confdefs.h <<_ACEOF
14272
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14273
_ACEOF
14274
 
14275
fi
14276
 
14277
done
14278
 
14279
  { $as_echo "$as_me:$LINENO: checking for working dirname" >&5
14280
$as_echo_n "checking for working dirname... " >&6; }
14281
if test "${compat_cv_func_dirname_works+set}" = set; then
14282
  $as_echo_n "(cached) " >&6
14283
else
14284
  if test "$cross_compiling" = yes; then
14285
  compat_cv_func_dirname_works=no
14286
 
14287
else
14288
  cat >conftest.$ac_ext <<_ACEOF
14289
/* confdefs.h.  */
14290
_ACEOF
14291
cat confdefs.h >>conftest.$ac_ext
14292
cat >>conftest.$ac_ext <<_ACEOF
14293
/* end confdefs.h.  */
14294
 
14295
#include <stdio.h>
14296
#ifdef HAVE_LIBGEN_H
14297
# include <libgen.h>
14298
#endif
14299
 
14300
typedef struct {
14301
  char *test;
14302
  char *result;
14303
} test_t;
14304
 
14305
const test_t tests[] = {
14306
  { "foobar", "." },
14307
  { "/usr/local/foo", "/usr/local" },
14308
  { "/usr/local/foo/", "/usr/local" },
14309
  { "/", "/" },
14310
  { "", "." },
14311
  { NULL, NULL }
14312
};
14313
 
14314
int main() {
14315
  char test1[1024];
14316
  int i;
14317
 
14318
  for (i = 0; tests[i].test; i++) {
14319
    strcpy(test1, tests[i].test);
14320
    if (strcmp(dirname(test1), tests[i].result) ||
14321
        strcmp(test1, tests[i].test))
14322
      exit(1);
14323
  }
14324
 
14325
  exit(0);
14326
}
14327
 
14328
_ACEOF
14329
rm -f conftest$ac_exeext
14330
if { (ac_try="$ac_link"
14331
case "(($ac_try" in
14332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333
  *) ac_try_echo=$ac_try;;
14334
esac
14335
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14336
$as_echo "$ac_try_echo") >&5
14337
  (eval "$ac_link") 2>&5
14338
  ac_status=$?
14339
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14341
  { (case "(($ac_try" in
14342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343
  *) ac_try_echo=$ac_try;;
14344
esac
14345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14346
$as_echo "$ac_try_echo") >&5
14347
  (eval "$ac_try") 2>&5
14348
  ac_status=$?
14349
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350
  (exit $ac_status); }; }; then
14351
  compat_cv_func_dirname_works=yes
14352
else
14353
  $as_echo "$as_me: program exited with status $ac_status" >&5
14354
$as_echo "$as_me: failed program was:" >&5
14355
sed 's/^/| /' conftest.$ac_ext >&5
14356
 
14357
( exit $ac_status )
14358
compat_cv_func_dirname_works=no
14359
fi
14360
rm -rf conftest.dSYM
14361
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14362
fi
14363
 
14364
 
14365
 
14366
fi
14367
{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_dirname_works" >&5
14368
$as_echo "$compat_cv_func_dirname_works" >&6; }
14369
  if test "$compat_cv_func_dirname_works" = "yes"; then
14370
 
14371
cat >>confdefs.h <<\_ACEOF
14372
#define HAVE_DIRNAME 1
14373
_ACEOF
14374
 
14375
  else
14376
    case " $LIBOBJS " in
14377
  *" dirname.$ac_objext "* ) ;;
14378
  *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
14379
 ;;
14380
esac
14381
 
14382
  fi
14383
 
14384
 
14385
 
14386
cat >>confdefs.h <<\_ACEOF
14387
#define NEED_FNMATCH 1
14388
_ACEOF
14389
 
14390
 
14391
for ac_header in fnmatch.h
14392
do
14393
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14395
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14396
$as_echo_n "checking for $ac_header... " >&6; }
14397
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398
  $as_echo_n "(cached) " >&6
14399
fi
14400
ac_res=`eval 'as_val=${'$as_ac_Header'}
14401
		 $as_echo "$as_val"'`
14402
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14403
$as_echo "$ac_res" >&6; }
14404
else
14405
  # Is the header compilable?
14406
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14407
$as_echo_n "checking $ac_header usability... " >&6; }
14408
cat >conftest.$ac_ext <<_ACEOF
14409
/* confdefs.h.  */
14410
_ACEOF
14411
cat confdefs.h >>conftest.$ac_ext
14412
cat >>conftest.$ac_ext <<_ACEOF
14413
/* end confdefs.h.  */
14414
$ac_includes_default
14415
#include <$ac_header>
14416
_ACEOF
14417
rm -f conftest.$ac_objext
14418
if { (ac_try="$ac_compile"
14419
case "(($ac_try" in
14420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421
  *) ac_try_echo=$ac_try;;
14422
esac
14423
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424
$as_echo "$ac_try_echo") >&5
14425
  (eval "$ac_compile") 2>conftest.er1
14426
  ac_status=$?
14427
  grep -v '^ *+' conftest.er1 >conftest.err
14428
  rm -f conftest.er1
14429
  cat conftest.err >&5
14430
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431
  (exit $ac_status); } && {
14432
	 test -z "$ac_c_werror_flag" ||
14433
	 test ! -s conftest.err
14434
       } && test -s conftest.$ac_objext; then
14435
  ac_header_compiler=yes
14436
else
14437
  $as_echo "$as_me: failed program was:" >&5
14438
sed 's/^/| /' conftest.$ac_ext >&5
14439
 
14440
	ac_header_compiler=no
14441
fi
14442
 
14443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14445
$as_echo "$ac_header_compiler" >&6; }
14446
 
14447
# Is the header present?
14448
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14449
$as_echo_n "checking $ac_header presence... " >&6; }
14450
cat >conftest.$ac_ext <<_ACEOF
14451
/* confdefs.h.  */
14452
_ACEOF
14453
cat confdefs.h >>conftest.$ac_ext
14454
cat >>conftest.$ac_ext <<_ACEOF
14455
/* end confdefs.h.  */
14456
#include <$ac_header>
14457
_ACEOF
14458
if { (ac_try="$ac_cpp conftest.$ac_ext"
14459
case "(($ac_try" in
14460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461
  *) ac_try_echo=$ac_try;;
14462
esac
14463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14464
$as_echo "$ac_try_echo") >&5
14465
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14466
  ac_status=$?
14467
  grep -v '^ *+' conftest.er1 >conftest.err
14468
  rm -f conftest.er1
14469
  cat conftest.err >&5
14470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471
  (exit $ac_status); } >/dev/null && {
14472
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14473
	 test ! -s conftest.err
14474
       }; then
14475
  ac_header_preproc=yes
14476
else
14477
  $as_echo "$as_me: failed program was:" >&5
14478
sed 's/^/| /' conftest.$ac_ext >&5
14479
 
14480
  ac_header_preproc=no
14481
fi
14482
 
14483
rm -f conftest.err conftest.$ac_ext
14484
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14485
$as_echo "$ac_header_preproc" >&6; }
14486
 
14487
# So?  What about this header?
14488
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14489
  yes:no: )
14490
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14491
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14492
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14493
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14494
    ac_header_preproc=yes
14495
    ;;
14496
  no:yes:* )
14497
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14498
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14499
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14500
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14501
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14502
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14503
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14504
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14505
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14506
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14507
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14508
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14509
 
14510
    ;;
14511
esac
14512
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14513
$as_echo_n "checking for $ac_header... " >&6; }
14514
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14515
  $as_echo_n "(cached) " >&6
14516
else
14517
  eval "$as_ac_Header=\$ac_header_preproc"
14518
fi
14519
ac_res=`eval 'as_val=${'$as_ac_Header'}
14520
		 $as_echo "$as_val"'`
14521
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14522
$as_echo "$ac_res" >&6; }
14523
 
14524
fi
14525
as_val=`eval 'as_val=${'$as_ac_Header'}
14526
		 $as_echo "$as_val"'`
14527
   if test "x$as_val" = x""yes; then
14528
  cat >>confdefs.h <<_ACEOF
14529
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14530
_ACEOF
14531
 
14532
fi
14533
 
14534
done
14535
 
14536
  if test "$ac_cv_header_fnmatch_h" = "yes"; then
14537
    { $as_echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
14538
$as_echo_n "checking for working POSIX fnmatch... " >&6; }
14539
if test "${ac_cv_func_fnmatch_works+set}" = set; then
14540
  $as_echo_n "(cached) " >&6
14541
else
14542
  # Some versions of Solaris, SCO, and the GNU C Library
14543
   # have a broken or incompatible fnmatch.
14544
   # So we run a test program.  If we are cross-compiling, take no chance.
14545
   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
14546
   if test "$cross_compiling" = yes; then
14547
  ac_cv_func_fnmatch_works=cross
14548
else
14549
  cat >conftest.$ac_ext <<_ACEOF
14550
/* confdefs.h.  */
14551
_ACEOF
14552
cat confdefs.h >>conftest.$ac_ext
14553
cat >>conftest.$ac_ext <<_ACEOF
14554
/* end confdefs.h.  */
14555
#include <fnmatch.h>
14556
#	   define y(a, b, c) (fnmatch (a, b, c) == 0)
14557
#	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
14558
 
14559
int
14560
main ()
14561
{
14562
return
14563
	   (!(y ("a*", "abc", 0)
14564
	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
14565
	      && y ("a\\\\bc", "abc", 0)
14566
	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
14567
	      && y ("*x", ".x", 0)
14568
	      && n ("*x", ".x", FNM_PERIOD)
14569
	      && 1));
14570
  ;
14571
  return 0;
14572
}
14573
_ACEOF
14574
rm -f conftest$ac_exeext
14575
if { (ac_try="$ac_link"
14576
case "(($ac_try" in
14577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578
  *) ac_try_echo=$ac_try;;
14579
esac
14580
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14581
$as_echo "$ac_try_echo") >&5
14582
  (eval "$ac_link") 2>&5
14583
  ac_status=$?
14584
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14586
  { (case "(($ac_try" in
14587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588
  *) ac_try_echo=$ac_try;;
14589
esac
14590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14591
$as_echo "$ac_try_echo") >&5
14592
  (eval "$ac_try") 2>&5
14593
  ac_status=$?
14594
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595
  (exit $ac_status); }; }; then
14596
  ac_cv_func_fnmatch_works=yes
14597
else
14598
  $as_echo "$as_me: program exited with status $ac_status" >&5
14599
$as_echo "$as_me: failed program was:" >&5
14600
sed 's/^/| /' conftest.$ac_ext >&5
14601
 
14602
( exit $ac_status )
14603
ac_cv_func_fnmatch_works=no
14604
fi
14605
rm -rf conftest.dSYM
14606
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14607
fi
14608
 
14609
 
14610
fi
14611
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
14612
$as_echo "$ac_cv_func_fnmatch_works" >&6; }
14613
if test $ac_cv_func_fnmatch_works = yes; then
14614
 
14615
cat >>confdefs.h <<\_ACEOF
14616
#define HAVE_FNMATCH 1
14617
_ACEOF
14618
 
14619
fi
14620
 
14621
 
14622
 
14623
  fi
14624
  if test "$ac_cv_func_fnmatch_works" != "yes"; then
14625
 
14626
for ac_header in ctype.h
14627
do
14628
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14629
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14630
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14631
$as_echo_n "checking for $ac_header... " >&6; }
14632
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14633
  $as_echo_n "(cached) " >&6
14634
fi
14635
ac_res=`eval 'as_val=${'$as_ac_Header'}
14636
		 $as_echo "$as_val"'`
14637
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14638
$as_echo "$ac_res" >&6; }
14639
else
14640
  # Is the header compilable?
14641
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14642
$as_echo_n "checking $ac_header usability... " >&6; }
14643
cat >conftest.$ac_ext <<_ACEOF
14644
/* confdefs.h.  */
14645
_ACEOF
14646
cat confdefs.h >>conftest.$ac_ext
14647
cat >>conftest.$ac_ext <<_ACEOF
14648
/* end confdefs.h.  */
14649
$ac_includes_default
14650
#include <$ac_header>
14651
_ACEOF
14652
rm -f conftest.$ac_objext
14653
if { (ac_try="$ac_compile"
14654
case "(($ac_try" in
14655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656
  *) ac_try_echo=$ac_try;;
14657
esac
14658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14659
$as_echo "$ac_try_echo") >&5
14660
  (eval "$ac_compile") 2>conftest.er1
14661
  ac_status=$?
14662
  grep -v '^ *+' conftest.er1 >conftest.err
14663
  rm -f conftest.er1
14664
  cat conftest.err >&5
14665
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666
  (exit $ac_status); } && {
14667
	 test -z "$ac_c_werror_flag" ||
14668
	 test ! -s conftest.err
14669
       } && test -s conftest.$ac_objext; then
14670
  ac_header_compiler=yes
14671
else
14672
  $as_echo "$as_me: failed program was:" >&5
14673
sed 's/^/| /' conftest.$ac_ext >&5
14674
 
14675
	ac_header_compiler=no
14676
fi
14677
 
14678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14680
$as_echo "$ac_header_compiler" >&6; }
14681
 
14682
# Is the header present?
14683
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14684
$as_echo_n "checking $ac_header presence... " >&6; }
14685
cat >conftest.$ac_ext <<_ACEOF
14686
/* confdefs.h.  */
14687
_ACEOF
14688
cat confdefs.h >>conftest.$ac_ext
14689
cat >>conftest.$ac_ext <<_ACEOF
14690
/* end confdefs.h.  */
14691
#include <$ac_header>
14692
_ACEOF
14693
if { (ac_try="$ac_cpp conftest.$ac_ext"
14694
case "(($ac_try" in
14695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696
  *) ac_try_echo=$ac_try;;
14697
esac
14698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14699
$as_echo "$ac_try_echo") >&5
14700
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14701
  ac_status=$?
14702
  grep -v '^ *+' conftest.er1 >conftest.err
14703
  rm -f conftest.er1
14704
  cat conftest.err >&5
14705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706
  (exit $ac_status); } >/dev/null && {
14707
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14708
	 test ! -s conftest.err
14709
       }; then
14710
  ac_header_preproc=yes
14711
else
14712
  $as_echo "$as_me: failed program was:" >&5
14713
sed 's/^/| /' conftest.$ac_ext >&5
14714
 
14715
  ac_header_preproc=no
14716
fi
14717
 
14718
rm -f conftest.err conftest.$ac_ext
14719
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14720
$as_echo "$ac_header_preproc" >&6; }
14721
 
14722
# So?  What about this header?
14723
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14724
  yes:no: )
14725
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14726
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14727
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14728
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14729
    ac_header_preproc=yes
14730
    ;;
14731
  no:yes:* )
14732
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14733
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14734
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14735
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14736
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14737
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14738
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14739
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14740
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14741
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14742
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14743
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14744
 
14745
    ;;
14746
esac
14747
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14748
$as_echo_n "checking for $ac_header... " >&6; }
14749
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14750
  $as_echo_n "(cached) " >&6
14751
else
14752
  eval "$as_ac_Header=\$ac_header_preproc"
14753
fi
14754
ac_res=`eval 'as_val=${'$as_ac_Header'}
14755
		 $as_echo "$as_val"'`
14756
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14757
$as_echo "$ac_res" >&6; }
14758
 
14759
fi
14760
as_val=`eval 'as_val=${'$as_ac_Header'}
14761
		 $as_echo "$as_val"'`
14762
   if test "x$as_val" = x""yes; then
14763
  cat >>confdefs.h <<_ACEOF
14764
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14765
_ACEOF
14766
 
14767
fi
14768
 
14769
done
14770
 
14771
    case " $LIBOBJS " in
14772
  *" fnmatch.$ac_objext "* ) ;;
14773
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
14774
 ;;
14775
esac
14776
 
14777
  fi
14778
 
14779
 
14780
for ac_func in lchown
14781
do
14782
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14784
$as_echo_n "checking for $ac_func... " >&6; }
14785
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786
  $as_echo_n "(cached) " >&6
14787
else
14788
  cat >conftest.$ac_ext <<_ACEOF
14789
/* confdefs.h.  */
14790
_ACEOF
14791
cat confdefs.h >>conftest.$ac_ext
14792
cat >>conftest.$ac_ext <<_ACEOF
14793
/* end confdefs.h.  */
14794
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14796
#define $ac_func innocuous_$ac_func
14797
 
14798
/* System header to define __stub macros and hopefully few prototypes,
14799
    which can conflict with char $ac_func (); below.
14800
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801
    <limits.h> exists even on freestanding compilers.  */
14802
 
14803
#ifdef __STDC__
14804
# include <limits.h>
14805
#else
14806
# include <assert.h>
14807
#endif
14808
 
14809
#undef $ac_func
14810
 
14811
/* Override any GCC internal prototype to avoid an error.
14812
   Use char because int might match the return type of a GCC
14813
   builtin and then its argument prototype would still apply.  */
14814
#ifdef __cplusplus
14815
extern "C"
14816
#endif
14817
char $ac_func ();
14818
/* The GNU C library defines this for functions which it implements
14819
    to always fail with ENOSYS.  Some functions are actually named
14820
    something starting with __ and the normal name is an alias.  */
14821
#if defined __stub_$ac_func || defined __stub___$ac_func
14822
choke me
14823
#endif
14824
 
14825
int
14826
main ()
14827
{
14828
return $ac_func ();
14829
  ;
14830
  return 0;
14831
}
14832
_ACEOF
14833
rm -f conftest.$ac_objext conftest$ac_exeext
14834
if { (ac_try="$ac_link"
14835
case "(($ac_try" in
14836
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837
  *) ac_try_echo=$ac_try;;
14838
esac
14839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840
$as_echo "$ac_try_echo") >&5
14841
  (eval "$ac_link") 2>conftest.er1
14842
  ac_status=$?
14843
  grep -v '^ *+' conftest.er1 >conftest.err
14844
  rm -f conftest.er1
14845
  cat conftest.err >&5
14846
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847
  (exit $ac_status); } && {
14848
	 test -z "$ac_c_werror_flag" ||
14849
	 test ! -s conftest.err
14850
       } && test -s conftest$ac_exeext && {
14851
	 test "$cross_compiling" = yes ||
14852
	 $as_test_x conftest$ac_exeext
14853
       }; then
14854
  eval "$as_ac_var=yes"
14855
else
14856
  $as_echo "$as_me: failed program was:" >&5
14857
sed 's/^/| /' conftest.$ac_ext >&5
14858
 
14859
	eval "$as_ac_var=no"
14860
fi
14861
 
14862
rm -rf conftest.dSYM
14863
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14864
      conftest$ac_exeext conftest.$ac_ext
14865
fi
14866
ac_res=`eval 'as_val=${'$as_ac_var'}
14867
		 $as_echo "$as_val"'`
14868
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14869
$as_echo "$ac_res" >&6; }
14870
as_val=`eval 'as_val=${'$as_ac_var'}
14871
		 $as_echo "$as_val"'`
14872
   if test "x$as_val" = x""yes; then
14873
  cat >>confdefs.h <<_ACEOF
14874
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14875
_ACEOF
14876
 
14877
fi
14878
done
14879
 
14880
 
14881
 
14882
 
14883
cat >>confdefs.h <<\_ACEOF
14884
#define NEED_MAKEDEV 1
14885
_ACEOF
14886
 
14887
  { $as_echo "$as_me:$LINENO: checking whether makedev expects three arguments" >&5
14888
$as_echo_n "checking whether makedev expects three arguments... " >&6; }
14889
if test "${compat_cv_func_makedev_three_args+set}" = set; then
14890
  $as_echo_n "(cached) " >&6
14891
else
14892
  if test "$cross_compiling" = yes; then
14893
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14894
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14895
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14896
See \`config.log' for more details." >&5
14897
$as_echo "$as_me: error: cannot run test program while cross compiling
14898
See \`config.log' for more details." >&2;}
14899
   { (exit 1); exit 1; }; }; }
14900
else
14901
  cat >conftest.$ac_ext <<_ACEOF
14902
 
14903
      /* confdefs.h.  */
14904
_ACEOF
14905
cat confdefs.h >>conftest.$ac_ext
14906
cat >>conftest.$ac_ext <<_ACEOF
14907
/* end confdefs.h.  */
14908
 
14909
#include <sys/types.h>
14910
#ifdef MAJOR_IN_MKDEV
14911
# include <sys/mkdev.h>
14912
#else
14913
# ifdef MAJOR_IN_SYSMACROS
14914
#  include <sys/sysmacros.h>
14915
# endif
14916
#endif
14917
 
14918
int
14919
main ()
14920
{
14921
 
14922
dev_t dev;
14923
major_t maj = 5;
14924
minor_t min = 7;
14925
 
14926
dev = makedev(0, maj, min);
14927
if (major(dev) != maj
14928
    || minor(dev) != min)
14929
  exit(1);
14930
exit(0);
14931
 
14932
  ;
14933
  return 0;
14934
}
14935
_ACEOF
14936
rm -f conftest$ac_exeext
14937
if { (ac_try="$ac_link"
14938
case "(($ac_try" in
14939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940
  *) ac_try_echo=$ac_try;;
14941
esac
14942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14943
$as_echo "$ac_try_echo") >&5
14944
  (eval "$ac_link") 2>&5
14945
  ac_status=$?
14946
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14948
  { (case "(($ac_try" in
14949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950
  *) ac_try_echo=$ac_try;;
14951
esac
14952
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14953
$as_echo "$ac_try_echo") >&5
14954
  (eval "$ac_try") 2>&5
14955
  ac_status=$?
14956
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957
  (exit $ac_status); }; }; then
14958
  compat_cv_func_makedev_three_args=yes
14959
else
14960
  $as_echo "$as_me: program exited with status $ac_status" >&5
14961
$as_echo "$as_me: failed program was:" >&5
14962
sed 's/^/| /' conftest.$ac_ext >&5
14963
 
14964
( exit $ac_status )
14965
compat_cv_func_makedev_three_args=no
14966
 
14967
fi
14968
rm -rf conftest.dSYM
14969
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14970
fi
14971
 
14972
 
14973
 
14974
fi
14975
{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_makedev_three_args" >&5
14976
$as_echo "$compat_cv_func_makedev_three_args" >&6; }
14977
  if test "$compat_cv_func_makedev_three_args" = "yes"; then
14978
 
14979
cat >>confdefs.h <<\_ACEOF
14980
#define MAKEDEV_THREE_ARGS 1
14981
_ACEOF
14982
 
14983
  fi
14984
 
14985
 
14986
 
14987
cat >>confdefs.h <<\_ACEOF
14988
#define NEED_SNPRINTF 1
14989
_ACEOF
14990
 
14991
  { $as_echo "$as_me:$LINENO: checking for working snprintf" >&5
14992
$as_echo_n "checking for working snprintf... " >&6; }
14993
if test "${compat_cv_func_snprintf_works+set}" = set; then
14994
  $as_echo_n "(cached) " >&6
14995
else
14996
  if test "$cross_compiling" = yes; then
14997
  compat_cv_func_snprintf_works=no
14998
 
14999
else
15000
  cat >conftest.$ac_ext <<_ACEOF
15001
/* confdefs.h.  */
15002
_ACEOF
15003
cat confdefs.h >>conftest.$ac_ext
15004
cat >>conftest.$ac_ext <<_ACEOF
15005
/* end confdefs.h.  */
15006
 
15007
#include <stdio.h>
15008
 
15009
typedef struct {
15010
  int length;
15011
  char *test;
15012
  int retval;
15013
  char *result;
15014
} test_t;
15015
 
15016
const test_t tests[] = {
15017
  { 10, "12345678901234567890", 20, "123456789" },
15018
#if 0
15019
  { 0, "12345678901234567890", 20, NULL },
15020
  { -1, "12345678901234567890", -1, NULL },
15021
#endif
15022
  { 0, NULL, 0, NULL }
15023
};
15024
 
15025
int main() {
15026
  char test1[1024];
15027
  int i;
15028
 
15029
  for (i = 0; tests[i].test; i++) {
15030
    memset(test1, 'X', sizeof(test1));
15031
    if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
15032
         != tests[i].retval) ||
15033
        (tests[i].result && strcmp(tests[i].result, test1)))
15034
      exit(1);
15035
  }
15036
 
15037
  exit(0);
15038
}
15039
 
15040
_ACEOF
15041
rm -f conftest$ac_exeext
15042
if { (ac_try="$ac_link"
15043
case "(($ac_try" in
15044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045
  *) ac_try_echo=$ac_try;;
15046
esac
15047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048
$as_echo "$ac_try_echo") >&5
15049
  (eval "$ac_link") 2>&5
15050
  ac_status=$?
15051
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15053
  { (case "(($ac_try" in
15054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055
  *) ac_try_echo=$ac_try;;
15056
esac
15057
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15058
$as_echo "$ac_try_echo") >&5
15059
  (eval "$ac_try") 2>&5
15060
  ac_status=$?
15061
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062
  (exit $ac_status); }; }; then
15063
  compat_cv_func_snprintf_works=yes
15064
else
15065
  $as_echo "$as_me: program exited with status $ac_status" >&5
15066
$as_echo "$as_me: failed program was:" >&5
15067
sed 's/^/| /' conftest.$ac_ext >&5
15068
 
15069
( exit $ac_status )
15070
compat_cv_func_snprintf_works=no
15071
fi
15072
rm -rf conftest.dSYM
15073
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15074
fi
15075
 
15076
 
15077
 
15078
fi
15079
{ $as_echo "$as_me:$LINENO: result: $compat_cv_func_snprintf_works" >&5
15080
$as_echo "$compat_cv_func_snprintf_works" >&6; }
15081
  if test "$compat_cv_func_snprintf_works" = "yes"; then
15082
 
15083
cat >>confdefs.h <<\_ACEOF
15084
#define HAVE_SNPRINTF 1
15085
_ACEOF
15086
 
15087
  else
15088
    case " $LIBOBJS " in
15089
  *" snprintf.$ac_objext "* ) ;;
15090
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15091
 ;;
15092
esac
15093
 
15094
  fi
15095
 
15096
 
15097
 
15098
 
15099
cat >>confdefs.h <<\_ACEOF
15100
#define NEED_STRDUP 1
15101
_ACEOF
15102
 
15103
  { $as_echo "$as_me:$LINENO: checking for strdup" >&5
15104
$as_echo_n "checking for strdup... " >&6; }
15105
if test "${ac_cv_func_strdup+set}" = set; then
15106
  $as_echo_n "(cached) " >&6
15107
else
15108
  cat >conftest.$ac_ext <<_ACEOF
15109
/* confdefs.h.  */
15110
_ACEOF
15111
cat confdefs.h >>conftest.$ac_ext
15112
cat >>conftest.$ac_ext <<_ACEOF
15113
/* end confdefs.h.  */
15114
/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
15115
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15116
#define strdup innocuous_strdup
15117
 
15118
/* System header to define __stub macros and hopefully few prototypes,
15119
    which can conflict with char strdup (); below.
15120
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15121
    <limits.h> exists even on freestanding compilers.  */
15122
 
15123
#ifdef __STDC__
15124
# include <limits.h>
15125
#else
15126
# include <assert.h>
15127
#endif
15128
 
15129
#undef strdup
15130
 
15131
/* Override any GCC internal prototype to avoid an error.
15132
   Use char because int might match the return type of a GCC
15133
   builtin and then its argument prototype would still apply.  */
15134
#ifdef __cplusplus
15135
extern "C"
15136
#endif
15137
char strdup ();
15138
/* The GNU C library defines this for functions which it implements
15139
    to always fail with ENOSYS.  Some functions are actually named
15140
    something starting with __ and the normal name is an alias.  */
15141
#if defined __stub_strdup || defined __stub___strdup
15142
choke me
15143
#endif
15144
 
15145
int
15146
main ()
15147
{
15148
return strdup ();
15149
  ;
15150
  return 0;
15151
}
15152
_ACEOF
15153
rm -f conftest.$ac_objext conftest$ac_exeext
15154
if { (ac_try="$ac_link"
15155
case "(($ac_try" in
15156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157
  *) ac_try_echo=$ac_try;;
15158
esac
15159
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15160
$as_echo "$ac_try_echo") >&5
15161
  (eval "$ac_link") 2>conftest.er1
15162
  ac_status=$?
15163
  grep -v '^ *+' conftest.er1 >conftest.err
15164
  rm -f conftest.er1
15165
  cat conftest.err >&5
15166
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167
  (exit $ac_status); } && {
15168
	 test -z "$ac_c_werror_flag" ||
15169
	 test ! -s conftest.err
15170
       } && test -s conftest$ac_exeext && {
15171
	 test "$cross_compiling" = yes ||
15172
	 $as_test_x conftest$ac_exeext
15173
       }; then
15174
  ac_cv_func_strdup=yes
15175
else
15176
  $as_echo "$as_me: failed program was:" >&5
15177
sed 's/^/| /' conftest.$ac_ext >&5
15178
 
15179
	ac_cv_func_strdup=no
15180
fi
15181
 
15182
rm -rf conftest.dSYM
15183
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15184
      conftest$ac_exeext conftest.$ac_ext
15185
fi
15186
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
15187
$as_echo "$ac_cv_func_strdup" >&6; }
15188
if test "x$ac_cv_func_strdup" = x""yes; then
15189
 
15190
cat >>confdefs.h <<\_ACEOF
15191
#define HAVE_STRDUP 1
15192
_ACEOF
15193
 
15194
else
15195
  case " $LIBOBJS " in
15196
  *" strdup.$ac_objext "* ) ;;
15197
  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
15198
 ;;
15199
esac
15200
 
15201
 
15202
fi
15203
 
15204
 
15205
 
15206
 
15207
for ac_func in strftime
15208
do
15209
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15210
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15211
$as_echo_n "checking for $ac_func... " >&6; }
15212
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15213
  $as_echo_n "(cached) " >&6
15214
else
15215
  cat >conftest.$ac_ext <<_ACEOF
15216
/* confdefs.h.  */
15217
_ACEOF
15218
cat confdefs.h >>conftest.$ac_ext
15219
cat >>conftest.$ac_ext <<_ACEOF
15220
/* end confdefs.h.  */
15221
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15222
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15223
#define $ac_func innocuous_$ac_func
15224
 
15225
/* System header to define __stub macros and hopefully few prototypes,
15226
    which can conflict with char $ac_func (); below.
15227
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15228
    <limits.h> exists even on freestanding compilers.  */
15229
 
15230
#ifdef __STDC__
15231
# include <limits.h>
15232
#else
15233
# include <assert.h>
15234
#endif
15235
 
15236
#undef $ac_func
15237
 
15238
/* Override any GCC internal prototype to avoid an error.
15239
   Use char because int might match the return type of a GCC
15240
   builtin and then its argument prototype would still apply.  */
15241
#ifdef __cplusplus
15242
extern "C"
15243
#endif
15244
char $ac_func ();
15245
/* The GNU C library defines this for functions which it implements
15246
    to always fail with ENOSYS.  Some functions are actually named
15247
    something starting with __ and the normal name is an alias.  */
15248
#if defined __stub_$ac_func || defined __stub___$ac_func
15249
choke me
15250
#endif
15251
 
15252
int
15253
main ()
15254
{
15255
return $ac_func ();
15256
  ;
15257
  return 0;
15258
}
15259
_ACEOF
15260
rm -f conftest.$ac_objext conftest$ac_exeext
15261
if { (ac_try="$ac_link"
15262
case "(($ac_try" in
15263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264
  *) ac_try_echo=$ac_try;;
15265
esac
15266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267
$as_echo "$ac_try_echo") >&5
15268
  (eval "$ac_link") 2>conftest.er1
15269
  ac_status=$?
15270
  grep -v '^ *+' conftest.er1 >conftest.err
15271
  rm -f conftest.er1
15272
  cat conftest.err >&5
15273
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274
  (exit $ac_status); } && {
15275
	 test -z "$ac_c_werror_flag" ||
15276
	 test ! -s conftest.err
15277
       } && test -s conftest$ac_exeext && {
15278
	 test "$cross_compiling" = yes ||
15279
	 $as_test_x conftest$ac_exeext
15280
       }; then
15281
  eval "$as_ac_var=yes"
15282
else
15283
  $as_echo "$as_me: failed program was:" >&5
15284
sed 's/^/| /' conftest.$ac_ext >&5
15285
 
15286
	eval "$as_ac_var=no"
15287
fi
15288
 
15289
rm -rf conftest.dSYM
15290
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291
      conftest$ac_exeext conftest.$ac_ext
15292
fi
15293
ac_res=`eval 'as_val=${'$as_ac_var'}
15294
		 $as_echo "$as_val"'`
15295
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15296
$as_echo "$ac_res" >&6; }
15297
as_val=`eval 'as_val=${'$as_ac_var'}
15298
		 $as_echo "$as_val"'`
15299
   if test "x$as_val" = x""yes; then
15300
  cat >>confdefs.h <<_ACEOF
15301
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15302
_ACEOF
15303
 
15304
else
15305
  # strftime is in -lintl on SCO UNIX.
15306
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15307
$as_echo_n "checking for strftime in -lintl... " >&6; }
15308
if test "${ac_cv_lib_intl_strftime+set}" = set; then
15309
  $as_echo_n "(cached) " >&6
15310
else
15311
  ac_check_lib_save_LIBS=$LIBS
15312
LIBS="-lintl  $LIBS"
15313
cat >conftest.$ac_ext <<_ACEOF
15314
/* confdefs.h.  */
15315
_ACEOF
15316
cat confdefs.h >>conftest.$ac_ext
15317
cat >>conftest.$ac_ext <<_ACEOF
15318
/* end confdefs.h.  */
15319
 
15320
/* Override any GCC internal prototype to avoid an error.
15321
   Use char because int might match the return type of a GCC
15322
   builtin and then its argument prototype would still apply.  */
15323
#ifdef __cplusplus
15324
extern "C"
15325
#endif
15326
char strftime ();
15327
int
15328
main ()
15329
{
15330
return strftime ();
15331
  ;
15332
  return 0;
15333
}
15334
_ACEOF
15335
rm -f conftest.$ac_objext conftest$ac_exeext
15336
if { (ac_try="$ac_link"
15337
case "(($ac_try" in
15338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339
  *) ac_try_echo=$ac_try;;
15340
esac
15341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15342
$as_echo "$ac_try_echo") >&5
15343
  (eval "$ac_link") 2>conftest.er1
15344
  ac_status=$?
15345
  grep -v '^ *+' conftest.er1 >conftest.err
15346
  rm -f conftest.er1
15347
  cat conftest.err >&5
15348
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349
  (exit $ac_status); } && {
15350
	 test -z "$ac_c_werror_flag" ||
15351
	 test ! -s conftest.err
15352
       } && test -s conftest$ac_exeext && {
15353
	 test "$cross_compiling" = yes ||
15354
	 $as_test_x conftest$ac_exeext
15355
       }; then
15356
  ac_cv_lib_intl_strftime=yes
15357
else
15358
  $as_echo "$as_me: failed program was:" >&5
15359
sed 's/^/| /' conftest.$ac_ext >&5
15360
 
15361
	ac_cv_lib_intl_strftime=no
15362
fi
15363
 
15364
rm -rf conftest.dSYM
15365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15366
      conftest$ac_exeext conftest.$ac_ext
15367
LIBS=$ac_check_lib_save_LIBS
15368
fi
15369
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15370
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
15371
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
15372
  cat >>confdefs.h <<\_ACEOF
15373
#define HAVE_STRFTIME 1
15374
_ACEOF
15375
 
15376
LIBS="-lintl $LIBS"
15377
fi
15378
 
15379
fi
15380
done
15381
 
15382
 
15383
 
15384
 
15385
cat >>confdefs.h <<\_ACEOF
15386
#define NEED_STRMODE 1
15387
_ACEOF
15388
 
15389
  { $as_echo "$as_me:$LINENO: checking for strmode" >&5
15390
$as_echo_n "checking for strmode... " >&6; }
15391
if test "${ac_cv_func_strmode+set}" = set; then
15392
  $as_echo_n "(cached) " >&6
15393
else
15394
  cat >conftest.$ac_ext <<_ACEOF
15395
/* confdefs.h.  */
15396
_ACEOF
15397
cat confdefs.h >>conftest.$ac_ext
15398
cat >>conftest.$ac_ext <<_ACEOF
15399
/* end confdefs.h.  */
15400
/* Define strmode to an innocuous variant, in case <limits.h> declares strmode.
15401
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15402
#define strmode innocuous_strmode
15403
 
15404
/* System header to define __stub macros and hopefully few prototypes,
15405
    which can conflict with char strmode (); below.
15406
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407
    <limits.h> exists even on freestanding compilers.  */
15408
 
15409
#ifdef __STDC__
15410
# include <limits.h>
15411
#else
15412
# include <assert.h>
15413
#endif
15414
 
15415
#undef strmode
15416
 
15417
/* Override any GCC internal prototype to avoid an error.
15418
   Use char because int might match the return type of a GCC
15419
   builtin and then its argument prototype would still apply.  */
15420
#ifdef __cplusplus
15421
extern "C"
15422
#endif
15423
char strmode ();
15424
/* The GNU C library defines this for functions which it implements
15425
    to always fail with ENOSYS.  Some functions are actually named
15426
    something starting with __ and the normal name is an alias.  */
15427
#if defined __stub_strmode || defined __stub___strmode
15428
choke me
15429
#endif
15430
 
15431
int
15432
main ()
15433
{
15434
return strmode ();
15435
  ;
15436
  return 0;
15437
}
15438
_ACEOF
15439
rm -f conftest.$ac_objext conftest$ac_exeext
15440
if { (ac_try="$ac_link"
15441
case "(($ac_try" in
15442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443
  *) ac_try_echo=$ac_try;;
15444
esac
15445
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15446
$as_echo "$ac_try_echo") >&5
15447
  (eval "$ac_link") 2>conftest.er1
15448
  ac_status=$?
15449
  grep -v '^ *+' conftest.er1 >conftest.err
15450
  rm -f conftest.er1
15451
  cat conftest.err >&5
15452
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453
  (exit $ac_status); } && {
15454
	 test -z "$ac_c_werror_flag" ||
15455
	 test ! -s conftest.err
15456
       } && test -s conftest$ac_exeext && {
15457
	 test "$cross_compiling" = yes ||
15458
	 $as_test_x conftest$ac_exeext
15459
       }; then
15460
  ac_cv_func_strmode=yes
15461
else
15462
  $as_echo "$as_me: failed program was:" >&5
15463
sed 's/^/| /' conftest.$ac_ext >&5
15464
 
15465
	ac_cv_func_strmode=no
15466
fi
15467
 
15468
rm -rf conftest.dSYM
15469
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470
      conftest$ac_exeext conftest.$ac_ext
15471
fi
15472
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strmode" >&5
15473
$as_echo "$ac_cv_func_strmode" >&6; }
15474
if test "x$ac_cv_func_strmode" = x""yes; then
15475
 
15476
cat >>confdefs.h <<\_ACEOF
15477
#define HAVE_STRMODE 1
15478
_ACEOF
15479
 
15480
else
15481
  case " $LIBOBJS " in
15482
  *" strmode.$ac_objext "* ) ;;
15483
  *) LIBOBJS="$LIBOBJS strmode.$ac_objext"
15484
 ;;
15485
esac
15486
 
15487
 
15488
fi
15489
 
15490
 
15491
 
15492
 
15493
 
15494
 
15495
# Check whether --with-zlib was given.
15496
if test "${with_zlib+set}" = set; then
15497
  withval=$with_zlib;
15498
else
15499
  with_zlib=yes
15500
fi
15501
 
15502
if test "$with_zlib" = "yes"; then
15503
 
15504
{ $as_echo "$as_me:$LINENO: checking for gzread in -lz" >&5
15505
$as_echo_n "checking for gzread in -lz... " >&6; }
15506
if test "${ac_cv_lib_z_gzread+set}" = set; then
15507
  $as_echo_n "(cached) " >&6
15508
else
15509
  ac_check_lib_save_LIBS=$LIBS
15510
LIBS="-lz  $LIBS"
15511
cat >conftest.$ac_ext <<_ACEOF
15512
/* confdefs.h.  */
15513
_ACEOF
15514
cat confdefs.h >>conftest.$ac_ext
15515
cat >>conftest.$ac_ext <<_ACEOF
15516
/* end confdefs.h.  */
15517
 
15518
/* Override any GCC internal prototype to avoid an error.
15519
   Use char because int might match the return type of a GCC
15520
   builtin and then its argument prototype would still apply.  */
15521
#ifdef __cplusplus
15522
extern "C"
15523
#endif
15524
char gzread ();
15525
int
15526
main ()
15527
{
15528
return gzread ();
15529
  ;
15530
  return 0;
15531
}
15532
_ACEOF
15533
rm -f conftest.$ac_objext conftest$ac_exeext
15534
if { (ac_try="$ac_link"
15535
case "(($ac_try" in
15536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537
  *) ac_try_echo=$ac_try;;
15538
esac
15539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15540
$as_echo "$ac_try_echo") >&5
15541
  (eval "$ac_link") 2>conftest.er1
15542
  ac_status=$?
15543
  grep -v '^ *+' conftest.er1 >conftest.err
15544
  rm -f conftest.er1
15545
  cat conftest.err >&5
15546
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547
  (exit $ac_status); } && {
15548
	 test -z "$ac_c_werror_flag" ||
15549
	 test ! -s conftest.err
15550
       } && test -s conftest$ac_exeext && {
15551
	 test "$cross_compiling" = yes ||
15552
	 $as_test_x conftest$ac_exeext
15553
       }; then
15554
  ac_cv_lib_z_gzread=yes
15555
else
15556
  $as_echo "$as_me: failed program was:" >&5
15557
sed 's/^/| /' conftest.$ac_ext >&5
15558
 
15559
	ac_cv_lib_z_gzread=no
15560
fi
15561
 
15562
rm -rf conftest.dSYM
15563
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15564
      conftest$ac_exeext conftest.$ac_ext
15565
LIBS=$ac_check_lib_save_LIBS
15566
fi
15567
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
15568
$as_echo "$ac_cv_lib_z_gzread" >&6; }
15569
if test "x$ac_cv_lib_z_gzread" = x""yes; then
15570
  cat >>confdefs.h <<_ACEOF
15571
#define HAVE_LIBZ 1
15572
_ACEOF
15573
 
15574
  LIBS="-lz $LIBS"
15575
 
15576
fi
15577
 
15578
fi
15579
 
15580
 
15581
ac_config_files="$ac_config_files Makefile lib/Makefile libtar/Makefile doc/Makefile"
15582
 
15583
cat >confcache <<\_ACEOF
15584
# This file is a shell script that caches the results of configure
15585
# tests run on this system so they can be shared between configure
15586
# scripts and configure runs, see configure's option --config-cache.
15587
# It is not useful on other systems.  If it contains results you don't
15588
# want to keep, you may remove or edit it.
15589
#
15590
# config.status only pays attention to the cache file if you give it
15591
# the --recheck option to rerun configure.
15592
#
15593
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15594
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15595
# following values.
15596
 
15597
_ACEOF
15598
 
15599
# The following way of writing the cache mishandles newlines in values,
15600
# but we know of no workaround that is simple, portable, and efficient.
15601
# So, we kill variables containing newlines.
15602
# Ultrix sh set writes to stderr and can't be redirected directly,
15603
# and sets the high bit in the cache file unless we assign to the vars.
15604
(
15605
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15606
    eval ac_val=\$$ac_var
15607
    case $ac_val in #(
15608
    *${as_nl}*)
15609
      case $ac_var in #(
15610
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15611
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15612
      esac
15613
      case $ac_var in #(
15614
      _ | IFS | as_nl) ;; #(
15615
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15616
      *) $as_unset $ac_var ;;
15617
      esac ;;
15618
    esac
15619
  done
15620
 
15621
  (set) 2>&1 |
15622
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15623
    *${as_nl}ac_space=\ *)
15624
      # `set' does not quote correctly, so add quotes (double-quote
15625
      # substitution turns \\\\ into \\, and sed turns \\ into \).
15626
      sed -n \
15627
	"s/'/'\\\\''/g;
15628
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15629
      ;; #(
15630
    *)
15631
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15632
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15633
      ;;
15634
    esac |
15635
    sort
15636
) |
15637
  sed '
15638
     /^ac_cv_env_/b end
15639
     t clear
15640
     :clear
15641
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15642
     t end
15643
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15644
     :end' >>confcache
15645
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15646
  if test -w "$cache_file"; then
15647
    test "x$cache_file" != "x/dev/null" &&
15648
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15649
$as_echo "$as_me: updating cache $cache_file" >&6;}
15650
    cat confcache >$cache_file
15651
  else
15652
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15653
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15654
  fi
15655
fi
15656
rm -f confcache
15657
 
15658
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15659
# Let make expand exec_prefix.
15660
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15661
 
15662
DEFS=-DHAVE_CONFIG_H
15663
 
15664
ac_libobjs=
15665
ac_ltlibobjs=
15666
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15667
  # 1. Remove the extension, and $U if already installed.
15668
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15669
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15670
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15671
  #    will be set to the directory where LIBOBJS objects are built.
15672
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15673
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15674
done
15675
LIBOBJS=$ac_libobjs
15676
 
15677
LTLIBOBJS=$ac_ltlibobjs
15678
 
15679
 
15680
 
15681
: ${CONFIG_STATUS=./config.status}
15682
ac_write_fail=0
15683
ac_clean_files_save=$ac_clean_files
15684
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15685
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15686
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15687
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688
#! $SHELL
15689
# Generated by $as_me.
15690
# Run this file to recreate the current configuration.
15691
# Compiler output produced by configure, useful for debugging
15692
# configure, is in config.log if it exists.
15693
 
15694
debug=false
15695
ac_cs_recheck=false
15696
ac_cs_silent=false
15697
SHELL=\${CONFIG_SHELL-$SHELL}
15698
_ACEOF
15699
 
15700
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701
## --------------------- ##
15702
## M4sh Initialization.  ##
15703
## --------------------- ##
15704
 
15705
# Be more Bourne compatible
15706
DUALCASE=1; export DUALCASE # for MKS sh
15707
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15708
  emulate sh
15709
  NULLCMD=:
15710
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15711
  # is contrary to our usage.  Disable this feature.
15712
  alias -g '${1+"$@"}'='"$@"'
15713
  setopt NO_GLOB_SUBST
15714
else
15715
  case `(set -o) 2>/dev/null` in
15716
  *posix*) set -o posix ;;
15717
esac
15718
 
15719
fi
15720
 
15721
 
15722
 
15723
 
15724
# PATH needs CR
15725
# Avoid depending upon Character Ranges.
15726
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15727
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15728
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15729
as_cr_digits='0123456789'
15730
as_cr_alnum=$as_cr_Letters$as_cr_digits
15731
 
15732
as_nl='
15733
'
15734
export as_nl
15735
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15736
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15737
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15738
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15739
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15740
  as_echo='printf %s\n'
15741
  as_echo_n='printf %s'
15742
else
15743
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15744
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15745
    as_echo_n='/usr/ucb/echo -n'
15746
  else
15747
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15748
    as_echo_n_body='eval
15749
      arg=$1;
15750
      case $arg in
15751
      *"$as_nl"*)
15752
	expr "X$arg" : "X\\(.*\\)$as_nl";
15753
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15754
      esac;
15755
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15756
    '
15757
    export as_echo_n_body
15758
    as_echo_n='sh -c $as_echo_n_body as_echo'
15759
  fi
15760
  export as_echo_body
15761
  as_echo='sh -c $as_echo_body as_echo'
15762
fi
15763
 
15764
# The user is always right.
15765
if test "${PATH_SEPARATOR+set}" != set; then
15766
  PATH_SEPARATOR=:
15767
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15768
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15769
      PATH_SEPARATOR=';'
15770
  }
15771
fi
15772
 
15773
# Support unset when possible.
15774
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15775
  as_unset=unset
15776
else
15777
  as_unset=false
15778
fi
15779
 
15780
 
15781
# IFS
15782
# We need space, tab and new line, in precisely that order.  Quoting is
15783
# there to prevent editors from complaining about space-tab.
15784
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15785
# splitting by setting IFS to empty value.)
15786
IFS=" ""	$as_nl"
15787
 
15788
# Find who we are.  Look in the path if we contain no directory separator.
15789
case $0 in
15790
  *[\\/]* ) as_myself=$0 ;;
15791
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792
for as_dir in $PATH
15793
do
15794
  IFS=$as_save_IFS
15795
  test -z "$as_dir" && as_dir=.
15796
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15797
done
15798
IFS=$as_save_IFS
15799
 
15800
     ;;
15801
esac
15802
# We did not find ourselves, most probably we were run as `sh COMMAND'
15803
# in which case we are not to be found in the path.
15804
if test "x$as_myself" = x; then
15805
  as_myself=$0
15806
fi
15807
if test ! -f "$as_myself"; then
15808
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15809
  { (exit 1); exit 1; }
15810
fi
15811
 
15812
# Work around bugs in pre-3.0 UWIN ksh.
15813
for as_var in ENV MAIL MAILPATH
15814
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15815
done
15816
PS1='$ '
15817
PS2='> '
15818
PS4='+ '
15819
 
15820
# NLS nuisances.
15821
LC_ALL=C
15822
export LC_ALL
15823
LANGUAGE=C
15824
export LANGUAGE
15825
 
15826
# Required to use basename.
15827
if expr a : '\(a\)' >/dev/null 2>&1 &&
15828
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15829
  as_expr=expr
15830
else
15831
  as_expr=false
15832
fi
15833
 
15834
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15835
  as_basename=basename
15836
else
15837
  as_basename=false
15838
fi
15839
 
15840
 
15841
# Name of the executable.
15842
as_me=`$as_basename -- "$0" ||
15843
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15844
	 X"$0" : 'X\(//\)$' \| \
15845
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15846
$as_echo X/"$0" |
15847
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15848
	    s//\1/
15849
	    q
15850
	  }
15851
	  /^X\/\(\/\/\)$/{
15852
	    s//\1/
15853
	    q
15854
	  }
15855
	  /^X\/\(\/\).*/{
15856
	    s//\1/
15857
	    q
15858
	  }
15859
	  s/.*/./; q'`
15860
 
15861
# CDPATH.
15862
$as_unset CDPATH
15863
 
15864
 
15865
 
15866
  as_lineno_1=$LINENO
15867
  as_lineno_2=$LINENO
15868
  test "x$as_lineno_1" != "x$as_lineno_2" &&
15869
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15870
 
15871
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15872
  # uniformly replaced by the line number.  The first 'sed' inserts a
15873
  # line-number line after each line using $LINENO; the second 'sed'
15874
  # does the real work.  The second script uses 'N' to pair each
15875
  # line-number line with the line containing $LINENO, and appends
15876
  # trailing '-' during substitution so that $LINENO is not a special
15877
  # case at line end.
15878
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15879
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15880
  # E. McMahon (1931-1989) for sed's syntax.  :-)
15881
  sed -n '
15882
    p
15883
    /[$]LINENO/=
15884
  ' <$as_myself |
15885
    sed '
15886
      s/[$]LINENO.*/&-/
15887
      t lineno
15888
      b
15889
      :lineno
15890
      N
15891
      :loop
15892
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15893
      t loop
15894
      s/-\n.*//
15895
    ' >$as_me.lineno &&
15896
  chmod +x "$as_me.lineno" ||
15897
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15898
   { (exit 1); exit 1; }; }
15899
 
15900
  # Don't try to exec as it changes $[0], causing all sort of problems
15901
  # (the dirname of $[0] is not the place where we might find the
15902
  # original and so on.  Autoconf is especially sensitive to this).
15903
  . "./$as_me.lineno"
15904
  # Exit status is that of the last command.
15905
  exit
15906
}
15907
 
15908
 
15909
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15910
  as_dirname=dirname
15911
else
15912
  as_dirname=false
15913
fi
15914
 
15915
ECHO_C= ECHO_N= ECHO_T=
15916
case `echo -n x` in
15917
-n*)
15918
  case `echo 'x\c'` in
15919
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15920
  *)   ECHO_C='\c';;
15921
  esac;;
15922
*)
15923
  ECHO_N='-n';;
15924
esac
15925
if expr a : '\(a\)' >/dev/null 2>&1 &&
15926
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15927
  as_expr=expr
15928
else
15929
  as_expr=false
15930
fi
15931
 
15932
rm -f conf$$ conf$$.exe conf$$.file
15933
if test -d conf$$.dir; then
15934
  rm -f conf$$.dir/conf$$.file
15935
else
15936
  rm -f conf$$.dir
15937
  mkdir conf$$.dir 2>/dev/null
15938
fi
15939
if (echo >conf$$.file) 2>/dev/null; then
15940
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15941
    as_ln_s='ln -s'
15942
    # ... but there are two gotchas:
15943
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15944
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15945
    # In both cases, we have to default to `cp -p'.
15946
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15947
      as_ln_s='cp -p'
15948
  elif ln conf$$.file conf$$ 2>/dev/null; then
15949
    as_ln_s=ln
15950
  else
15951
    as_ln_s='cp -p'
15952
  fi
15953
else
15954
  as_ln_s='cp -p'
15955
fi
15956
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15957
rmdir conf$$.dir 2>/dev/null
15958
 
15959
if mkdir -p . 2>/dev/null; then
15960
  as_mkdir_p=:
15961
else
15962
  test -d ./-p && rmdir ./-p
15963
  as_mkdir_p=false
15964
fi
15965
 
15966
if test -x / >/dev/null 2>&1; then
15967
  as_test_x='test -x'
15968
else
15969
  if ls -dL / >/dev/null 2>&1; then
15970
    as_ls_L_option=L
15971
  else
15972
    as_ls_L_option=
15973
  fi
15974
  as_test_x='
15975
    eval sh -c '\''
15976
      if test -d "$1"; then
15977
	test -d "$1/.";
15978
      else
15979
	case $1 in
15980
	-*)set "./$1";;
15981
	esac;
15982
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15983
	???[sx]*):;;*)false;;esac;fi
15984
    '\'' sh
15985
  '
15986
fi
15987
as_executable_p=$as_test_x
15988
 
15989
# Sed expression to map a string onto a valid CPP name.
15990
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15991
 
15992
# Sed expression to map a string onto a valid variable name.
15993
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15994
 
15995
 
15996
exec 6>&1
15997
 
15998
# Save the log message, to keep $[0] and so on meaningful, and to
15999
# report actual input values of CONFIG_FILES etc. instead of their
16000
# values after options handling.
16001
ac_log="
16002
This file was extended by libtar $as_me 1.2.11, which was
16003
generated by GNU Autoconf 2.63.  Invocation command line was
16004
 
16005
  CONFIG_FILES    = $CONFIG_FILES
16006
  CONFIG_HEADERS  = $CONFIG_HEADERS
16007
  CONFIG_LINKS    = $CONFIG_LINKS
16008
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16009
  $ $0 $@
16010
 
16011
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16012
"
16013
 
16014
_ACEOF
16015
 
16016
case $ac_config_files in *"
16017
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16018
esac
16019
 
16020
case $ac_config_headers in *"
16021
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16022
esac
16023
 
16024
 
16025
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026
# Files that config.status was made for.
16027
config_files="$ac_config_files"
16028
config_headers="$ac_config_headers"
16029
config_commands="$ac_config_commands"
16030
 
16031
_ACEOF
16032
 
16033
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16034
ac_cs_usage="\
16035
\`$as_me' instantiates files from templates according to the
16036
current configuration.
16037
 
16038
Usage: $0 [OPTION]... [FILE]...
16039
 
16040
  -h, --help       print this help, then exit
16041
  -V, --version    print version number and configuration settings, then exit
16042
  -q, --quiet, --silent
16043
                   do not print progress messages
16044
  -d, --debug      don't remove temporary files
16045
      --recheck    update $as_me by reconfiguring in the same conditions
16046
      --file=FILE[:TEMPLATE]
16047
                   instantiate the configuration file FILE
16048
      --header=FILE[:TEMPLATE]
16049
                   instantiate the configuration header FILE
16050
 
16051
Configuration files:
16052
$config_files
16053
 
16054
Configuration headers:
16055
$config_headers
16056
 
16057
Configuration commands:
16058
$config_commands
16059
 
16060
Report bugs to <bug-autoconf@gnu.org>."
16061
 
16062
_ACEOF
16063
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16064
ac_cs_version="\\
16065
libtar config.status 1.2.11
16066
configured by $0, generated by GNU Autoconf 2.63,
16067
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16068
 
16069
Copyright (C) 2008 Free Software Foundation, Inc.
16070
This config.status script is free software; the Free Software Foundation
16071
gives unlimited permission to copy, distribute and modify it."
16072
 
16073
ac_pwd='$ac_pwd'
16074
srcdir='$srcdir'
16075
INSTALL='$INSTALL'
16076
test -n "\$AWK" || AWK=awk
16077
_ACEOF
16078
 
16079
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080
# The default lists apply if the user does not specify any file.
16081
ac_need_defaults=:
16082
while test $# != 0
16083
do
16084
  case $1 in
16085
  --*=*)
16086
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16087
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16088
    ac_shift=:
16089
    ;;
16090
  *)
16091
    ac_option=$1
16092
    ac_optarg=$2
16093
    ac_shift=shift
16094
    ;;
16095
  esac
16096
 
16097
  case $ac_option in
16098
  # Handling of the options.
16099
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16100
    ac_cs_recheck=: ;;
16101
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16102
    $as_echo "$ac_cs_version"; exit ;;
16103
  --debug | --debu | --deb | --de | --d | -d )
16104
    debug=: ;;
16105
  --file | --fil | --fi | --f )
16106
    $ac_shift
16107
    case $ac_optarg in
16108
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16109
    esac
16110
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16111
    ac_need_defaults=false;;
16112
  --header | --heade | --head | --hea )
16113
    $ac_shift
16114
    case $ac_optarg in
16115
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16116
    esac
16117
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16118
    ac_need_defaults=false;;
16119
  --he | --h)
16120
    # Conflict between --help and --header
16121
    { $as_echo "$as_me: error: ambiguous option: $1
16122
Try \`$0 --help' for more information." >&2
16123
   { (exit 1); exit 1; }; };;
16124
  --help | --hel | -h )
16125
    $as_echo "$ac_cs_usage"; exit ;;
16126
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16127
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16128
    ac_cs_silent=: ;;
16129
 
16130
  # This is an error.
16131
  -*) { $as_echo "$as_me: error: unrecognized option: $1
16132
Try \`$0 --help' for more information." >&2
16133
   { (exit 1); exit 1; }; } ;;
16134
 
16135
  *) ac_config_targets="$ac_config_targets $1"
16136
     ac_need_defaults=false ;;
16137
 
16138
  esac
16139
  shift
16140
done
16141
 
16142
ac_configure_extra_args=
16143
 
16144
if $ac_cs_silent; then
16145
  exec 6>/dev/null
16146
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16147
fi
16148
 
16149
_ACEOF
16150
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16151
if \$ac_cs_recheck; then
16152
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16153
  shift
16154
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16155
  CONFIG_SHELL='$SHELL'
16156
  export CONFIG_SHELL
16157
  exec "\$@"
16158
fi
16159
 
16160
_ACEOF
16161
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16162
exec 5>>config.log
16163
{
16164
  echo
16165
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16166
## Running $as_me. ##
16167
_ASBOX
16168
  $as_echo "$ac_log"
16169
} >&5
16170
 
16171
_ACEOF
16172
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173
#
16174
# INIT-COMMANDS
16175
#
16176
 
16177
 
16178
# The HP-UX ksh and POSIX shell print the target directory to stdout
16179
# if CDPATH is set.
16180
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16181
 
16182
sed_quote_subst='$sed_quote_subst'
16183
double_quote_subst='$double_quote_subst'
16184
delay_variable_subst='$delay_variable_subst'
16185
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16186
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16187
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16188
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16189
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16190
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16191
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16192
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16193
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16194
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16195
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16196
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16197
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16198
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16199
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16200
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16201
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16202
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16203
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16204
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16205
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16206
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16207
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16208
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16209
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16210
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16211
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16212
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16213
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16214
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16215
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16216
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16217
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16218
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16219
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16220
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16221
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16222
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16223
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16224
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16225
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16226
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16227
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16228
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16229
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"`'
16230
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"`'
16231
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16232
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16233
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16234
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16235
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16236
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16237
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16238
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16239
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16240
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16241
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16242
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16243
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16244
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16245
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16246
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16247
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16248
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16249
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16250
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16251
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16252
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16253
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16254
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16255
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16256
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16257
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16258
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16259
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16260
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16261
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16262
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16263
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16264
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16265
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16266
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16267
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16268
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16269
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16270
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16271
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16272
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16273
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16274
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16275
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16276
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16277
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16278
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16280
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16281
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16282
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16283
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16284
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16285
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16286
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16287
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16288
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16289
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16290
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16291
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16292
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16293
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16294
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16295
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16296
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16297
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16298
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16299
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16300
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16301
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16302
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16303
 
16304
LTCC='$LTCC'
16305
LTCFLAGS='$LTCFLAGS'
16306
compiler='$compiler_DEFAULT'
16307
 
16308
# Quote evaled strings.
16309
for var in SED \
16310
GREP \
16311
EGREP \
16312
FGREP \
16313
LD \
16314
NM \
16315
LN_S \
16316
lt_SP2NL \
16317
lt_NL2SP \
16318
reload_flag \
16319
OBJDUMP \
16320
deplibs_check_method \
16321
file_magic_cmd \
16322
AR \
16323
AR_FLAGS \
16324
STRIP \
16325
RANLIB \
16326
CC \
16327
CFLAGS \
16328
compiler \
16329
lt_cv_sys_global_symbol_pipe \
16330
lt_cv_sys_global_symbol_to_cdecl \
16331
lt_cv_sys_global_symbol_to_c_name_address \
16332
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16333
SHELL \
16334
ECHO \
16335
lt_prog_compiler_no_builtin_flag \
16336
lt_prog_compiler_wl \
16337
lt_prog_compiler_pic \
16338
lt_prog_compiler_static \
16339
lt_cv_prog_compiler_c_o \
16340
need_locks \
16341
DSYMUTIL \
16342
NMEDIT \
16343
LIPO \
16344
OTOOL \
16345
OTOOL64 \
16346
shrext_cmds \
16347
export_dynamic_flag_spec \
16348
whole_archive_flag_spec \
16349
compiler_needs_object \
16350
with_gnu_ld \
16351
allow_undefined_flag \
16352
no_undefined_flag \
16353
hardcode_libdir_flag_spec \
16354
hardcode_libdir_flag_spec_ld \
16355
hardcode_libdir_separator \
16356
fix_srcfile_path \
16357
exclude_expsyms \
16358
include_expsyms \
16359
file_list_spec \
16360
variables_saved_for_relink \
16361
libname_spec \
16362
library_names_spec \
16363
soname_spec \
16364
finish_eval \
16365
old_striplib \
16366
striplib; do
16367
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16368
    *[\\\\\\\`\\"\\\$]*)
16369
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16370
      ;;
16371
    *)
16372
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16373
      ;;
16374
    esac
16375
done
16376
 
16377
# Double-quote double-evaled strings.
16378
for var in reload_cmds \
16379
old_postinstall_cmds \
16380
old_postuninstall_cmds \
16381
old_archive_cmds \
16382
extract_expsyms_cmds \
16383
old_archive_from_new_cmds \
16384
old_archive_from_expsyms_cmds \
16385
archive_cmds \
16386
archive_expsym_cmds \
16387
module_cmds \
16388
module_expsym_cmds \
16389
export_symbols_cmds \
16390
prelink_cmds \
16391
postinstall_cmds \
16392
postuninstall_cmds \
16393
finish_cmds \
16394
sys_lib_search_path_spec \
16395
sys_lib_dlsearch_path_spec; do
16396
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16397
    *[\\\\\\\`\\"\\\$]*)
16398
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16399
      ;;
16400
    *)
16401
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16402
      ;;
16403
    esac
16404
done
16405
 
16406
# Fix-up fallback echo if it was mangled by the above quoting rules.
16407
case \$lt_ECHO in
16408
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16409
  ;;
16410
esac
16411
 
16412
ac_aux_dir='$ac_aux_dir'
16413
xsi_shell='$xsi_shell'
16414
lt_shell_append='$lt_shell_append'
16415
 
16416
# See if we are running on zsh, and set the options which allow our
16417
# commands through without removal of \ escapes INIT.
16418
if test -n "\${ZSH_VERSION+set}" ; then
16419
   setopt NO_GLOB_SUBST
16420
fi
16421
 
16422
 
16423
    PACKAGE='$PACKAGE'
16424
    VERSION='$VERSION'
16425
    TIMESTAMP='$TIMESTAMP'
16426
    RM='$RM'
16427
    ofile='$ofile'
16428
 
16429
 
16430
 
16431
 
16432
_ACEOF
16433
 
16434
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16435
 
16436
# Handling of arguments.
16437
for ac_config_target in $ac_config_targets
16438
do
16439
  case $ac_config_target in
16440
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16441
    "listhash/${LISTHASH_PREFIX}_listhash.h") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in" ;;
16442
    "listhash/${LISTHASH_PREFIX}_list.c") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in" ;;
16443
    "listhash/${LISTHASH_PREFIX}_hash.c") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in" ;;
16444
    "listhash/${LISTHASH_PREFIX}_list_new.3") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in" ;;
16445
    "listhash/${LISTHASH_PREFIX}_hash_new.3") CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in" ;;
16446
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16447
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16448
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16449
    "libtar/Makefile") CONFIG_FILES="$CONFIG_FILES libtar/Makefile" ;;
16450
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16451
 
16452
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16453
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16454
   { (exit 1); exit 1; }; };;
16455
  esac
16456
done
16457
 
16458
 
16459
# If the user did not use the arguments to specify the items to instantiate,
16460
# then the envvar interface is used.  Set only those that are not.
16461
# We use the long form for the default assignment because of an extremely
16462
# bizarre bug on SunOS 4.1.3.
16463
if $ac_need_defaults; then
16464
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16465
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16466
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16467
fi
16468
 
16469
# Have a temporary directory for convenience.  Make it in the build tree
16470
# simply because there is no reason against having it here, and in addition,
16471
# creating and moving files from /tmp can sometimes cause problems.
16472
# Hook for its removal unless debugging.
16473
# Note that there is a small window in which the directory will not be cleaned:
16474
# after its creation but before its name has been assigned to `$tmp'.
16475
$debug ||
16476
{
16477
  tmp=
16478
  trap 'exit_status=$?
16479
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16480
' 0
16481
  trap '{ (exit 1); exit 1; }' 1 2 13 15
16482
}
16483
# Create a (secure) tmp directory for tmp files.
16484
 
16485
{
16486
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16487
  test -n "$tmp" && test -d "$tmp"
16488
}  ||
16489
{
16490
  tmp=./conf$$-$RANDOM
16491
  (umask 077 && mkdir "$tmp")
16492
} ||
16493
{
16494
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
16495
   { (exit 1); exit 1; }
16496
}
16497
 
16498
# Set up the scripts for CONFIG_FILES section.
16499
# No need to generate them if there are no CONFIG_FILES.
16500
# This happens for instance with `./config.status config.h'.
16501
if test -n "$CONFIG_FILES"; then
16502
 
16503
 
16504
ac_cr='
'
16505
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16506
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16507
  ac_cs_awk_cr='\\r'
16508
else
16509
  ac_cs_awk_cr=$ac_cr
16510
fi
16511
16512
 
16513
_ACEOF
16514
16515
 
16516
 
16517
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16518
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16519
  echo "_ACEOF"
16520
} >conf$$subs.sh ||
16521
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16522
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16523
   { (exit 1); exit 1; }; }
16524
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16525
ac_delim='%!_!# '
16526
for ac_last_try in false false false false false :; do
16527
  . ./conf$$subs.sh ||
16528
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16529
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16530
   { (exit 1); exit 1; }; }
16531
16532
 
16533
  if test $ac_delim_n = $ac_delim_num; then
16534
    break
16535
  elif $ac_last_try; then
16536
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16537
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16538
   { (exit 1); exit 1; }; }
16539
  else
16540
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16541
  fi
16542
done
16543
rm -f conf$$subs.sh
16544
16545
 
16546
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16547
_ACEOF
16548
sed -n '
16549
h
16550
s/^/S["/; s/!.*/"]=/
16551
p
16552
g
16553
s/^[^!]*!//
16554
:repl
16555
t repl
16556
s/'"$ac_delim"'$//
16557
t delim
16558
:nl
16559
h
16560
s/\(.\{148\}\).*/\1/
16561
t more1
16562
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16563
p
16564
n
16565
b repl
16566
:more1
16567
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16568
p
16569
g
16570
s/.\{148\}//
16571
t nl
16572
:delim
16573
h
16574
s/\(.\{148\}\).*/\1/
16575
t more2
16576
s/["\\]/\\&/g; s/^/"/; s/$/"/
16577
p
16578
b
16579
:more2
16580
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16581
p
16582
g
16583
s/.\{148\}//
16584
t delim
16585
' <conf$$subs.awk | sed '
16586
/^[^""]/{
16587
  N
16588
  s/\n//
16589
}
16590
' >>$CONFIG_STATUS || ac_write_fail=1
16591
rm -f conf$$subs.awk
16592
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16593
_ACAWK
16594
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16595
  for (key in S) S_is_set[key] = 1
16596
  FS = ""
16597
16598
 
16599
{
16600
  line = $ 0
16601
  nfields = split(line, field, "@")
16602
  substed = 0
16603
  len = length(field[1])
16604
  for (i = 2; i < nfields; i++) {
16605
    key = field[i]
16606
    keylen = length(key)
16607
    if (S_is_set[key]) {
16608
      value = S[key]
16609
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16610
      len += length(value) + length(field[++i])
16611
      substed = 1
16612
    } else
16613
      len += 1 + keylen
16614
  }
16615
16616
 
16617
}
16618
16619
 
16620
_ACEOF
16621
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16622
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16623
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16624
else
16625
  cat
16626
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16627
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16628
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16629
   { (exit 1); exit 1; }; }
16630
_ACEOF
16631
16632
 
16633
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16634
# trailing colons and then remove the whole line if VPATH becomes empty
16635
# (actually we leave an empty line to preserve line numbers).
16636
if test "x$srcdir" = x.; then
16637
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16638
s/:*\$(srcdir):*/:/
16639
s/:*\${srcdir}:*/:/
16640
s/:*@srcdir@:*/:/
16641
s/^\([^=]*=[	 ]*\):*/\1/
16642
s/:*$//
16643
s/^[^=]*=[	 ]*$//
16644
}'
16645
fi
16646
16647
 
16648
fi # test -n "$CONFIG_FILES"
16649
16650
 
16651
# No need to generate them if there are no CONFIG_HEADERS.
16652
# This happens for instance with `./config.status Makefile'.
16653
if test -n "$CONFIG_HEADERS"; then
16654
cat >"$tmp/defines.awk" <<\_ACAWK ||
16655
BEGIN {
16656
_ACEOF
16657
16658
 
16659
# here-document in config.status, that substitutes the proper values into
16660
# config.h.in to produce config.h.
16661
16662
 
16663
# handling of long lines.
16664
ac_delim='%!_!# '
16665
for ac_last_try in false false :; do
16666
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16667
  if test -z "$ac_t"; then
16668
    break
16669
  elif $ac_last_try; then
16670
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16671
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16672
   { (exit 1); exit 1; }; }
16673
  else
16674
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16675
  fi
16676
done
16677
16678
 
16679
# likewise P contains macro parameters if any.  Preserve backslash
16680
# newline sequences.
16681
16682
 
16683
sed -n '
16684
s/.\{148\}/&'"$ac_delim"'/g
16685
t rset
16686
:rset
16687
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16688
t def
16689
d
16690
:def
16691
s/\\$//
16692
t bsnl
16693
s/["\\]/\\&/g
16694
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16695
D["\1"]=" \3"/p
16696
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16697
d
16698
:bsnl
16699
s/["\\]/\\&/g
16700
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16701
D["\1"]=" \3\\\\\\n"\\/p
16702
t cont
16703
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16704
t cont
16705
d
16706
:cont
16707
n
16708
s/.\{148\}/&'"$ac_delim"'/g
16709
t clear
16710
:clear
16711
s/\\$//
16712
t bsnlc
16713
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16714
d
16715
:bsnlc
16716
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16717
b cont
16718
' <confdefs.h | sed '
16719
s/'"$ac_delim"'/"\\\
16720
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16721
16722
 
16723
  for (key in D) D_is_set[key] = 1
16724
  FS = ""
16725
}
16726
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16727
  line = \$ 0
16728
  split(line, arg, " ")
16729
  if (arg[1] == "#") {
16730
    defundef = arg[2]
16731
    mac1 = arg[3]
16732
  } else {
16733
    defundef = substr(arg[1], 2)
16734
    mac1 = arg[2]
16735
  }
16736
  split(mac1, mac2, "(") #)
16737
  macro = mac2[1]
16738
  prefix = substr(line, 1, index(line, defundef) - 1)
16739
  if (D_is_set[macro]) {
16740
    # Preserve the white space surrounding the "#".
16741
    print prefix "define", macro P[macro] D[macro]
16742
    next
16743
  } else {
16744
    # Replace #undef with comments.  This is necessary, for example,
16745
    # in the case of _POSIX_SOURCE, which is predefined and required
16746
    # on some systems where configure will not decide to define it.
16747
    if (defundef == "undef") {
16748
      print "/*", prefix defundef, macro, "*/"
16749
      next
16750
    }
16751
  }
16752
}
16753
{ print }
16754
_ACAWK
16755
_ACEOF
16756
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16757
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16758
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16759
   { (exit 1); exit 1; }; }
16760
fi # test -n "$CONFIG_HEADERS"
16761
16762
 
16763
 
16764
shift
16765
for ac_tag
16766
do
16767
  case $ac_tag in
16768
  :[FHLC]) ac_mode=$ac_tag; continue;;
16769
  esac
16770
  case $ac_mode$ac_tag in
16771
  :[FHL]*:*);;
16772
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16773
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16774
   { (exit 1); exit 1; }; };;
16775
  :[FH]-) ac_tag=-:-;;
16776
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16777
  esac
16778
  ac_save_IFS=$IFS
16779
  IFS=:
16780
  set x $ac_tag
16781
  IFS=$ac_save_IFS
16782
  shift
16783
  ac_file=$1
16784
  shift
16785
16786
 
16787
  :L) ac_source=$1;;
16788
  :[FH])
16789
    ac_file_inputs=
16790
    for ac_f
16791
    do
16792
      case $ac_f in
16793
      -) ac_f="$tmp/stdin";;
16794
      *) # Look for the file first in the build tree, then in the source tree
16795
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16796
	 # because $ac_f cannot contain `:'.
16797
	 test -f "$ac_f" ||
16798
	   case $ac_f in
16799
	   [\\/$]*) false;;
16800
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16801
	   esac ||
16802
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16803
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16804
   { (exit 1); exit 1; }; };;
16805
      esac
16806
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16807
      ac_file_inputs="$ac_file_inputs '$ac_f'"
16808
    done
16809
16810
 
16811
    # use $as_me), people would be surprised to read:
16812
    #    /* config.h.  Generated by config.status.  */
16813
    configure_input='Generated from '`
16814
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16815
	`' by configure.'
16816
    if test x"$ac_file" != x-; then
16817
      configure_input="$ac_file.  $configure_input"
16818
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16819
$as_echo "$as_me: creating $ac_file" >&6;}
16820
    fi
16821
    # Neutralize special characters interpreted by sed in replacement strings.
16822
    case $configure_input in #(
16823
    *\&* | *\|* | *\\* )
16824
       ac_sed_conf_input=`$as_echo "$configure_input" |
16825
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16826
    *) ac_sed_conf_input=$configure_input;;
16827
    esac
16828
16829
 
16830
    *:-:* | *:-) cat >"$tmp/stdin" \
16831
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16832
$as_echo "$as_me: error: could not create $ac_file" >&2;}
16833
   { (exit 1); exit 1; }; } ;;
16834
    esac
16835
    ;;
16836
  esac
16837
16838
 
16839
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16840
	 X"$ac_file" : 'X\(//\)[^/]' \| \
16841
	 X"$ac_file" : 'X\(//\)$' \| \
16842
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16843
$as_echo X"$ac_file" |
16844
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16845
	    s//\1/
16846
	    q
16847
	  }
16848
	  /^X\(\/\/\)[^/].*/{
16849
	    s//\1/
16850
	    q
16851
	  }
16852
	  /^X\(\/\/\)$/{
16853
	    s//\1/
16854
	    q
16855
	  }
16856
	  /^X\(\/\).*/{
16857
	    s//\1/
16858
	    q
16859
	  }
16860
	  s/.*/./; q'`
16861
  { as_dir="$ac_dir"
16862
  case $as_dir in #(
16863
  -*) as_dir=./$as_dir;;
16864
  esac
16865
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16866
    as_dirs=
16867
    while :; do
16868
      case $as_dir in #(
16869
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16870
      *) as_qdir=$as_dir;;
16871
      esac
16872
      as_dirs="'$as_qdir' $as_dirs"
16873
      as_dir=`$as_dirname -- "$as_dir" ||
16874
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16875
	 X"$as_dir" : 'X\(//\)[^/]' \| \
16876
	 X"$as_dir" : 'X\(//\)$' \| \
16877
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16878
$as_echo X"$as_dir" |
16879
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16880
	    s//\1/
16881
	    q
16882
	  }
16883
	  /^X\(\/\/\)[^/].*/{
16884
	    s//\1/
16885
	    q
16886
	  }
16887
	  /^X\(\/\/\)$/{
16888
	    s//\1/
16889
	    q
16890
	  }
16891
	  /^X\(\/\).*/{
16892
	    s//\1/
16893
	    q
16894
	  }
16895
	  s/.*/./; q'`
16896
      test -d "$as_dir" && break
16897
    done
16898
    test -z "$as_dirs" || eval "mkdir $as_dirs"
16899
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16900
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16901
   { (exit 1); exit 1; }; }; }
16902
  ac_builddir=.
16903
16904
 
16905
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16906
*)
16907
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16908
  # A ".." for each directory in $ac_dir_suffix.
16909
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16910
  case $ac_top_builddir_sub in
16911
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16912
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16913
  esac ;;
16914
esac
16915
ac_abs_top_builddir=$ac_pwd
16916
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16917
# for backward compatibility:
16918
ac_top_builddir=$ac_top_build_prefix
16919
16920
 
16921
  .)  # We are building in place.
16922
    ac_srcdir=.
16923
    ac_top_srcdir=$ac_top_builddir_sub
16924
    ac_abs_top_srcdir=$ac_pwd ;;
16925
  [\\/]* | ?:[\\/]* )  # Absolute name.
16926
    ac_srcdir=$srcdir$ac_dir_suffix;
16927
    ac_top_srcdir=$srcdir
16928
    ac_abs_top_srcdir=$srcdir ;;
16929
  *) # Relative name.
16930
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16931
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16932
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16933
esac
16934
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16935
16936
 
16937
 
16938
  :F)
16939
  #
16940
  # CONFIG_FILE
16941
  #
16942
16943
 
16944
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16945
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16946
  esac
16947
_ACEOF
16948
16949
 
16950
# If the template does not know about datarootdir, expand it.
16951
# FIXME: This hack should be removed a few years after 2.60.
16952
ac_datarootdir_hack=; ac_datarootdir_seen=
16953
16954
 
16955
/datarootdir/ {
16956
  p
16957
  q
16958
}
16959
/@datadir@/p
16960
/@docdir@/p
16961
/@infodir@/p
16962
/@localedir@/p
16963
/@mandir@/p
16964
'
16965
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16966
*datarootdir*) ac_datarootdir_seen=yes;;
16967
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16968
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16969
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16970
_ACEOF
16971
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16972
  ac_datarootdir_hack='
16973
  s&@datadir@&$datadir&g
16974
  s&@docdir@&$docdir&g
16975
  s&@infodir@&$infodir&g
16976
  s&@localedir@&$localedir&g
16977
  s&@mandir@&$mandir&g
16978
    s&\\\${datarootdir}&$datarootdir&g' ;;
16979
esac
16980
_ACEOF
16981
16982
 
16983
# Shell code in configure.ac might set extrasub.
16984
# FIXME: do we really want to maintain this feature?
16985
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16986
ac_sed_extra="$ac_vpsub
16987
$extrasub
16988
_ACEOF
16989
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16990
:t
16991
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16992
s|@configure_input@|$ac_sed_conf_input|;t t
16993
s&@top_builddir@&$ac_top_builddir_sub&;t t
16994
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16995
s&@srcdir@&$ac_srcdir&;t t
16996
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16997
s&@top_srcdir@&$ac_top_srcdir&;t t
16998
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16999
s&@builddir@&$ac_builddir&;t t
17000
s&@abs_builddir@&$ac_abs_builddir&;t t
17001
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17002
s&@INSTALL@&$ac_INSTALL&;t t
17003
$ac_datarootdir_hack
17004
"
17005
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17006
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17007
$as_echo "$as_me: error: could not create $ac_file" >&2;}
17008
   { (exit 1); exit 1; }; }
17009
17010
 
17011
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17012
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17013
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17014
which seems to be undefined.  Please make sure it is defined." >&5
17015
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17016
which seems to be undefined.  Please make sure it is defined." >&2;}
17017
17018
 
17019
  case $ac_file in
17020
  -) cat "$tmp/out" && rm -f "$tmp/out";;
17021
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17022
  esac \
17023
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17024
$as_echo "$as_me: error: could not create $ac_file" >&2;}
17025
   { (exit 1); exit 1; }; }
17026
 ;;
17027
  :H)
17028
  #
17029
  # CONFIG_HEADER
17030
  #
17031
  if test x"$ac_file" != x-; then
17032
    {
17033
      $as_echo "/* $configure_input  */" \
17034
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17035
    } >"$tmp/config.h" \
17036
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17037
$as_echo "$as_me: error: could not create $ac_file" >&2;}
17038
   { (exit 1); exit 1; }; }
17039
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17040
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17041
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17042
    else
17043
      rm -f "$ac_file"
17044
      mv "$tmp/config.h" "$ac_file" \
17045
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17046
$as_echo "$as_me: error: could not create $ac_file" >&2;}
17047
   { (exit 1); exit 1; }; }
17048
    fi
17049
  else
17050
    $as_echo "/* $configure_input  */" \
17051
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17052
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17053
$as_echo "$as_me: error: could not create -" >&2;}
17054
   { (exit 1); exit 1; }; }
17055
  fi
17056
 ;;
17057
17058
 
17059
$as_echo "$as_me: executing $ac_file commands" >&6;}
17060
 ;;
17061
  esac
17062
17063
 
17064
 
17065
    "libtool":C)
17066
17067
 
17068
    # commands through without removal of \ escapes.
17069
    if test -n "${ZSH_VERSION+set}" ; then
17070
      setopt NO_GLOB_SUBST
17071
    fi
17072
17073
 
17074
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17075
    $RM "$cfgfile"
17076
17077
 
17078
#! $SHELL
17079
17080
 
17081
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17082
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17083
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17084
#
17085
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17086
#                 2006, 2007, 2008 Free Software Foundation, Inc.
17087
#   Written by Gordon Matzigkeit, 1996
17088
#
17089
#   This file is part of GNU Libtool.
17090
#
17091
# GNU Libtool is free software; you can redistribute it and/or
17092
# modify it under the terms of the GNU General Public License as
17093
# published by the Free Software Foundation; either version 2 of
17094
# the License, or (at your option) any later version.
17095
#
17096
# As a special exception to the GNU General Public License,
17097
# if you distribute this file as part of a program or library that
17098
# is built using GNU Libtool, you may include this file under the
17099
# same distribution terms that you use for the rest of that program.
17100
#
17101
# GNU Libtool is distributed in the hope that it will be useful,
17102
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17103
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17104
# GNU General Public License for more details.
17105
#
17106
# You should have received a copy of the GNU General Public License
17107
# along with GNU Libtool; see the file COPYING.  If not, a copy
17108
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17109
# obtained by writing to the Free Software Foundation, Inc.,
17110
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17111
17112
 
17113
 
17114
available_tags=""
17115
17116
 
17117
17118
 
17119
macro_version=$macro_version
17120
macro_revision=$macro_revision
17121
17122
 
17123
build_libtool_libs=$enable_shared
17124
17125
 
17126
build_old_libs=$enable_static
17127
17128
 
17129
pic_mode=$pic_mode
17130
17131
 
17132
fast_install=$enable_fast_install
17133
17134
 
17135
host_alias=$host_alias
17136
host=$host
17137
host_os=$host_os
17138
17139
 
17140
build_alias=$build_alias
17141
build=$build
17142
build_os=$build_os
17143
17144
 
17145
SED=$lt_SED
17146
17147
 
17148
Xsed="\$SED -e 1s/^X//"
17149
17150
 
17151
GREP=$lt_GREP
17152
17153
 
17154
EGREP=$lt_EGREP
17155
17156
 
17157
FGREP=$lt_FGREP
17158
17159
 
17160
NM=$lt_NM
17161
17162
 
17163
LN_S=$lt_LN_S
17164
17165
 
17166
max_cmd_len=$max_cmd_len
17167
17168
 
17169
objext=$ac_objext
17170
17171
 
17172
exeext=$exeext
17173
17174
 
17175
lt_unset=$lt_unset
17176
17177
 
17178
SP2NL=$lt_lt_SP2NL
17179
17180
 
17181
NL2SP=$lt_lt_NL2SP
17182
17183
 
17184
reload_flag=$lt_reload_flag
17185
reload_cmds=$lt_reload_cmds
17186
17187
 
17188
OBJDUMP=$lt_OBJDUMP
17189
17190
 
17191
deplibs_check_method=$lt_deplibs_check_method
17192
17193
 
17194
file_magic_cmd=$lt_file_magic_cmd
17195
17196
 
17197
AR=$lt_AR
17198
AR_FLAGS=$lt_AR_FLAGS
17199
17200
 
17201
STRIP=$lt_STRIP
17202
17203
 
17204
RANLIB=$lt_RANLIB
17205
old_postinstall_cmds=$lt_old_postinstall_cmds
17206
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17207
17208
 
17209
LTCC=$lt_CC
17210
17211
 
17212
LTCFLAGS=$lt_CFLAGS
17213
17214
 
17215
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17216
17217
 
17218
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17219
17220
 
17221
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17222
17223
 
17224
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17225
17226
 
17227
objdir=$objdir
17228
17229
 
17230
SHELL=$lt_SHELL
17231
17232
 
17233
ECHO=$lt_ECHO
17234
17235
 
17236
MAGIC_CMD=$MAGIC_CMD
17237
17238
 
17239
need_locks=$lt_need_locks
17240
17241
 
17242
DSYMUTIL=$lt_DSYMUTIL
17243
17244
 
17245
NMEDIT=$lt_NMEDIT
17246
17247
 
17248
LIPO=$lt_LIPO
17249
17250
 
17251
OTOOL=$lt_OTOOL
17252
17253
 
17254
OTOOL64=$lt_OTOOL64
17255
17256
 
17257
libext=$libext
17258
17259
 
17260
shrext_cmds=$lt_shrext_cmds
17261
17262
 
17263
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17264
17265
 
17266
# restored at link time.
17267
variables_saved_for_relink=$lt_variables_saved_for_relink
17268
17269
 
17270
need_lib_prefix=$need_lib_prefix
17271
17272
 
17273
need_version=$need_version
17274
17275
 
17276
version_type=$version_type
17277
17278
 
17279
runpath_var=$runpath_var
17280
17281
 
17282
shlibpath_var=$shlibpath_var
17283
17284
 
17285
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17286
17287
 
17288
libname_spec=$lt_libname_spec
17289
17290
 
17291
# The last name is the one that the linker finds with -lNAME
17292
library_names_spec=$lt_library_names_spec
17293
17294
 
17295
soname_spec=$lt_soname_spec
17296
17297
 
17298
postinstall_cmds=$lt_postinstall_cmds
17299
17300
 
17301
postuninstall_cmds=$lt_postuninstall_cmds
17302
17303
 
17304
finish_cmds=$lt_finish_cmds
17305
17306
 
17307
# not shown.
17308
finish_eval=$lt_finish_eval
17309
17310
 
17311
hardcode_into_libs=$hardcode_into_libs
17312
17313
 
17314
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17315
17316
 
17317
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17318
17319
 
17320
dlopen_support=$enable_dlopen
17321
17322
 
17323
dlopen_self=$enable_dlopen_self
17324
17325
 
17326
dlopen_self_static=$enable_dlopen_self_static
17327
17328
 
17329
old_striplib=$lt_old_striplib
17330
striplib=$lt_striplib
17331
17332
 
17333
 
17334
LD=$lt_LD
17335
17336
 
17337
old_archive_cmds=$lt_old_archive_cmds
17338
17339
 
17340
CC=$lt_compiler
17341
17342
 
17343
with_gcc=$GCC
17344
17345
 
17346
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17347
17348
 
17349
wl=$lt_lt_prog_compiler_wl
17350
17351
 
17352
pic_flag=$lt_lt_prog_compiler_pic
17353
17354
 
17355
link_static_flag=$lt_lt_prog_compiler_static
17356
17357
 
17358
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17359
17360
 
17361
build_libtool_need_lc=$archive_cmds_need_lc
17362
17363
 
17364
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17365
17366
 
17367
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17368
17369
 
17370
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17371
17372
 
17373
compiler_needs_object=$lt_compiler_needs_object
17374
17375
 
17376
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17377
17378
 
17379
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17380
17381
 
17382
archive_cmds=$lt_archive_cmds
17383
archive_expsym_cmds=$lt_archive_expsym_cmds
17384
17385
 
17386
# a shared archive.
17387
module_cmds=$lt_module_cmds
17388
module_expsym_cmds=$lt_module_expsym_cmds
17389
17390
 
17391
with_gnu_ld=$lt_with_gnu_ld
17392
17393
 
17394
allow_undefined_flag=$lt_allow_undefined_flag
17395
17396
 
17397
no_undefined_flag=$lt_no_undefined_flag
17398
17399
 
17400
# This must work even if \$libdir does not exist
17401
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17402
17403
 
17404
# during linking.  This must work even if \$libdir does not exist.
17405
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17406
17407
 
17408
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17409
17410
 
17411
# DIR into the resulting binary.
17412
hardcode_direct=$hardcode_direct
17413
17414
 
17415
# DIR into the resulting binary and the resulting library dependency is
17416
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17417
# library is relocated.
17418
hardcode_direct_absolute=$hardcode_direct_absolute
17419
17420
 
17421
# into the resulting binary.
17422
hardcode_minus_L=$hardcode_minus_L
17423
17424
 
17425
# into the resulting binary.
17426
hardcode_shlibpath_var=$hardcode_shlibpath_var
17427
17428
 
17429
# into the library and all subsequent libraries and executables linked
17430
# against it.
17431
hardcode_automatic=$hardcode_automatic
17432
17433
 
17434
# to runtime path list.
17435
inherit_rpath=$inherit_rpath
17436
17437
 
17438
link_all_deplibs=$link_all_deplibs
17439
17440
 
17441
fix_srcfile_path=$lt_fix_srcfile_path
17442
17443
 
17444
always_export_symbols=$always_export_symbols
17445
17446
 
17447
export_symbols_cmds=$lt_export_symbols_cmds
17448
17449
 
17450
exclude_expsyms=$lt_exclude_expsyms
17451
17452
 
17453
include_expsyms=$lt_include_expsyms
17454
17455
 
17456
prelink_cmds=$lt_prelink_cmds
17457
17458
 
17459
file_list_spec=$lt_file_list_spec
17460
17461
 
17462
hardcode_action=$hardcode_action
17463
17464
 
17465
17466
 
17467
17468
 
17469
  aix3*)
17470
    cat <<\_LT_EOF >> "$cfgfile"
17471
# AIX sometimes has problems with the GCC collect2 program.  For some
17472
# reason, if we set the COLLECT_NAMES environment variable, the problems
17473
# vanish in a puff of smoke.
17474
if test "X${COLLECT_NAMES+set}" != Xset; then
17475
  COLLECT_NAMES=
17476
  export COLLECT_NAMES
17477
fi
17478
_LT_EOF
17479
    ;;
17480
  esac
17481
17482
 
17483
 
17484
17485
 
17486
 
17487
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17488
  # text mode, it properly converts lines to CR/LF.  This bash problem
17489
  # is reportedly fixed, but why not run on old versions too?
17490
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17491
    || (rm -f "$cfgfile"; exit 1)
17492
17493
 
17494
  yes)
17495
    cat << \_LT_EOF >> "$cfgfile"
17496
17497
 
17498
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17499
# otherwise set result to NONDIR_REPLACEMENT.
17500
func_dirname ()
17501
{
17502
  case ${1} in
17503
    */*) func_dirname_result="${1%/*}${2}" ;;
17504
    *  ) func_dirname_result="${3}" ;;
17505
  esac
17506
}
17507
17508
 
17509
func_basename ()
17510
{
17511
  func_basename_result="${1##*/}"
17512
}
17513
17514
 
17515
# perform func_basename and func_dirname in a single function
17516
# call:
17517
#   dirname:  Compute the dirname of FILE.  If nonempty,
17518
#             add APPEND to the result, otherwise set result
17519
#             to NONDIR_REPLACEMENT.
17520
#             value returned in "$func_dirname_result"
17521
#   basename: Compute filename of FILE.
17522
#             value retuned in "$func_basename_result"
17523
# Implementation must be kept synchronized with func_dirname
17524
# and func_basename. For efficiency, we do not delegate to
17525
# those functions but instead duplicate the functionality here.
17526
func_dirname_and_basename ()
17527
{
17528
  case ${1} in
17529
    */*) func_dirname_result="${1%/*}${2}" ;;
17530
    *  ) func_dirname_result="${3}" ;;
17531
  esac
17532
  func_basename_result="${1##*/}"
17533
}
17534
17535
 
17536
# strip PREFIX and SUFFIX off of NAME.
17537
# PREFIX and SUFFIX must not contain globbing or regex special
17538
# characters, hashes, percent signs, but SUFFIX may contain a leading
17539
# dot (in which case that matches only a dot).
17540
func_stripname ()
17541
{
17542
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17543
  # positional parameters, so assign one to ordinary parameter first.
17544
  func_stripname_result=${3}
17545
  func_stripname_result=${func_stripname_result#"${1}"}
17546
  func_stripname_result=${func_stripname_result%"${2}"}
17547
}
17548
17549
 
17550
func_opt_split ()
17551
{
17552
  func_opt_split_opt=${1%%=*}
17553
  func_opt_split_arg=${1#*=}
17554
}
17555
17556
 
17557
func_lo2o ()
17558
{
17559
  case ${1} in
17560
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17561
    *)    func_lo2o_result=${1} ;;
17562
  esac
17563
}
17564
17565
 
17566
func_xform ()
17567
{
17568
  func_xform_result=${1%.*}.lo
17569
}
17570
17571
 
17572
func_arith ()
17573
{
17574
  func_arith_result=$(( $* ))
17575
}
17576
17577
 
17578
# STRING may not start with a hyphen.
17579
func_len ()
17580
{
17581
  func_len_result=${#1}
17582
}
17583
17584
 
17585
    ;;
17586
  *) # Bourne compatible functions.
17587
    cat << \_LT_EOF >> "$cfgfile"
17588
17589
 
17590
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17591
# otherwise set result to NONDIR_REPLACEMENT.
17592
func_dirname ()
17593
{
17594
  # Extract subdirectory from the argument.
17595
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17596
  if test "X$func_dirname_result" = "X${1}"; then
17597
    func_dirname_result="${3}"
17598
  else
17599
    func_dirname_result="$func_dirname_result${2}"
17600
  fi
17601
}
17602
17603
 
17604
func_basename ()
17605
{
17606
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17607
}
17608
17609
 
17610
 
17611
# strip PREFIX and SUFFIX off of NAME.
17612
# PREFIX and SUFFIX must not contain globbing or regex special
17613
# characters, hashes, percent signs, but SUFFIX may contain a leading
17614
# dot (in which case that matches only a dot).
17615
# func_strip_suffix prefix name
17616
func_stripname ()
17617
{
17618
  case ${2} in
17619
    .*) func_stripname_result=`$ECHO "X${3}" \
17620
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17621
    *)  func_stripname_result=`$ECHO "X${3}" \
17622
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17623
  esac
17624
}
17625
17626
 
17627
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17628
my_sed_long_arg='1s/^-[^=]*=//'
17629
17630
 
17631
func_opt_split ()
17632
{
17633
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17634
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17635
}
17636
17637
 
17638
func_lo2o ()
17639
{
17640
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17641
}
17642
17643
 
17644
func_xform ()
17645
{
17646
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17647
}
17648
17649
 
17650
func_arith ()
17651
{
17652
  func_arith_result=`expr "$@"`
17653
}
17654
17655
 
17656
# STRING may not start with a hyphen.
17657
func_len ()
17658
{
17659
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17660
}
17661
17662
 
17663
esac
17664
17665
 
17666
  yes)
17667
    cat << \_LT_EOF >> "$cfgfile"
17668
17669
 
17670
# Append VALUE to the end of shell variable VAR.
17671
func_append ()
17672
{
17673
  eval "$1+=\$2"
17674
}
17675
_LT_EOF
17676
    ;;
17677
  *)
17678
    cat << \_LT_EOF >> "$cfgfile"
17679
17680
 
17681
# Append VALUE to the end of shell variable VAR.
17682
func_append ()
17683
{
17684
  eval "$1=\$$1\$2"
17685
}
17686
17687
 
17688
    ;;
17689
  esac
17690
17691
 
17692
 
17693
    || (rm -f "$cfgfile"; exit 1)
17694
17695
 
17696
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17697
  chmod +x "$ofile"
17698
17699
 
17700
17701
 
17702
done # for ac_tag
17703
17704
 
17705
 
17706
_ACEOF
17707
chmod +x $CONFIG_STATUS
17708
ac_clean_files=$ac_clean_files_save
17709
17710
 
17711
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17712
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17713
   { (exit 1); exit 1; }; }
17714
17715
 
17716
 
17717
# config.status does its own redirection, appending to config.log.
17718
# Unfortunately, on DOS this fails, as config.log is still kept open
17719
# by configure, so config.status won't be able to write to it; its
17720
# output is simply discarded.  So we exec the FD to /dev/null,
17721
# effectively closing config.log, so it can be properly (re)opened and
17722
# appended to by config.status.  When coming back to configure, we
17723
# need to make the FD available again.
17724
if test "$no_create" != yes; then
17725
  ac_cs_success=:
17726
  ac_config_status_args=
17727
  test "$silent" = yes &&
17728
    ac_config_status_args="$ac_config_status_args --quiet"
17729
  exec 5>/dev/null
17730
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17731
  exec 5>>config.log
17732
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17733
  # would make configure fail if this is the last instruction.
17734
  $ac_cs_success || { (exit 1); exit 1; }
17735
fi
17736
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17737
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17738
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17739
fi
17740
17741
 
17742